Commit Graph

182 Commits

Author SHA1 Message Date
Conrado Gouvea ab74fed813 point to main reddsa 2023-10-06 11:57:25 -03:00
natalie 0c528929c5
Improve consistency of testing across projects (#76)
* Update participant tests to use DKG format (#37)

Update Makefile to not run --all-features in tests
cli tests were not touched

* Update tests in trusted dealer (#37)

* Refactor test files structure to be consistent across projects (#37)

* Add cross project integration test (#37)

* Remove empty test files (#37)

* Remove reference to old test (#37)

* print entire identifier instead of converting back to integer

* Remove commented code (#37)

* Add signature verification step to participant demo (#78)

* Add verification step to participant demo (#56)

* Add cli test to participant (#56)

Clean up some comments and prints

---------

Co-authored-by: Conrado Gouvea <conradoplg@gmail.com>
2023-09-27 13:27:01 -03:00
dependabot[bot] c2d4d5548a
Bump thiserror from 1.0.47 to 1.0.48 (#73)
Bumps [thiserror](https://github.com/dtolnay/thiserror) from 1.0.47 to 1.0.48.
- [Release notes](https://github.com/dtolnay/thiserror/releases)
- [Commits](https://github.com/dtolnay/thiserror/compare/1.0.47...1.0.48)

---
updated-dependencies:
- dependency-name: thiserror
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-09-11 16:20:47 -03:00
Conrado Gouvea 3d9b8e30b3 Merge remote-tracking branch 'origin/main' into add-redpallas 2023-09-05 15:25:23 -03:00
dependabot[bot] 5b9d32172f
Bump thiserror from 1.0.43 to 1.0.47 (#69)
Bumps [thiserror](https://github.com/dtolnay/thiserror) from 1.0.43 to 1.0.47.
- [Release notes](https://github.com/dtolnay/thiserror/releases)
- [Commits](https://github.com/dtolnay/thiserror/compare/1.0.43...1.0.47)

---
updated-dependencies:
- dependency-name: thiserror
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-08-21 19:21:41 -03:00
dependabot[bot] 67e9a0401e
Bump serde_json from 1.0.103 to 1.0.105 (#68)
Bumps [serde_json](https://github.com/serde-rs/json) from 1.0.103 to 1.0.105.
- [Release notes](https://github.com/serde-rs/json/releases)
- [Commits](https://github.com/serde-rs/json/compare/v1.0.103...v1.0.105)

---
updated-dependencies:
- dependency-name: serde_json
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-08-21 19:03:53 -03:00
natalie bb4ea6b3e7
Fix serde tests across the projects (#66) (#70) 2023-08-21 19:00:34 -03:00
Conrado Gouvea 577f5421a1 add support for redpallas 2023-07-21 22:39:05 -03:00
Conrado Gouvea 519623678c use serde for all demos 2023-07-20 22:06:57 -03:00
Conrado Gouvea 760c3fc8df use serde in trusted-dealer 2023-07-20 19:27:33 -03:00
natalie 58abe8d3e3
Create Coordinator CLI (#59)
* Add coordinator demo (#48)

* Add test for step_3 in coordinator (#48)

* Add validation for participant selection in coordinator demo (#48)

* Add tests for validation in step_1 for coordinator (#48)

* Improve error handling in Coordinator (#48)

* Fix clippy error (#48)

* Improve usability for coordinator demo (#48)

Fix test values
Improve identifier input so it doesn't need to be in quotes
Remove unecessary text
2023-07-20 11:13:14 -03:00
Conrado Gouvea c40b4d7e3e fix clippy warning 2023-07-18 11:50:54 -03:00
Conrado Gouvea 12cffcce24 add DKG tests 2023-07-17 20:00:06 -03:00
natalie d0cb462907
Upgrade frost-ed25519 to v0.6.0 (#49)
* Upgrade to frost-ed25519 v0.6.0 (#39)

* Fix conflict resolution errors (#39)
2023-07-12 14:55:26 -03:00
natalie 4481c19dfc
Add exit codes for participant demo (#11) (#45) 2023-07-11 12:21:39 -03:00
dependabot[bot] 1025cd0e53
Bump itertools from 0.10.5 to 0.11.0
Bumps [itertools](https://github.com/rust-itertools/itertools) from 0.10.5 to 0.11.0.
- [Changelog](https://github.com/rust-itertools/itertools/blob/master/CHANGELOG.md)
- [Commits](https://github.com/rust-itertools/itertools/compare/v0.10.5...v0.11.0)

---
updated-dependencies:
- dependency-name: itertools
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-06-29 08:11:14 +00:00
natalie e7a061df65
Merge pull request #36 from ZcashFoundation/dkg-demo
WIP: DKG demo
2023-06-29 09:10:35 +01:00
natalie 1d52e92ee5
Generate nonces and commitments in participant demo (#38)
* Generate nonces and commitments in participant demo (#20)

* Add comment stating that nonces are secret (#20)
2023-06-28 19:12:15 -03:00
Conrado Gouvea 679ef16734 Merge remote-tracking branch 'origin/main' into dkg-demo 2023-06-27 11:54:24 -03:00
natalie b66001fb89
Add vss commitment to participant demo and generate key package (#35)
* Add text for vss_commitment input for Participant project (#32)

* Add vss_commitment input for participant project (#32)

* Refactor lib tests for participant project (#32)

* Add error for vss_commitment input to panic with invalid input (#32)

This error should be handled properly in a later commit

* Fix trusted dealer participant identifier output to be a hex encoded string (#32)

* Update trusted dealer identifier to return original u8 value (#32)

* Generate key package for participant (#32)

* Add error handling for generate_key_package (#32)

* Use frost-ed25519 v0.5.0 (#32)

* Improve commenting and output messages (#32)

Update commitment output message in trusted dealer
Remove answered comments
Improve comments around error handling for participant demo
2023-06-27 11:27:57 -03:00
Conrado Gouvea 0070088950 return errors instead of unwraping, remove unneeded files 2023-06-26 16:22:45 -03:00
Conrado Gouvea d9e7df2365 working; needs cleaning up 2023-06-23 17:32:06 -03:00
natalie 7936c55e1e
Add public key to Participant project (#28)
* Add text for requesting public key for participant (#17)

* Add public key to Participant Config (#17)

* Add error handling for incorrect pub key length (#17)
2023-06-19 15:58:27 -03:00
natalie bce4acbdd6
Add Participant project (#15)
* Add Participant project (#12)

* Refactor trusted dealer into own project (#12)

Set up project structure for trusted dealer and participant

* Update READMEs for top level and Pariticipant project (#12)

* Fix makefile to run both projects (#12)

Some formatting

* Add Participant project (#12)

* Fix clippy errors for participant project (#12)

* Fix clippy and fmt errors from leftover conflicts (#12)
2023-06-15 13:23:37 -03:00
natalie 6f33c44d22
Return VerifiableSecretSharingCommitment (#10)
* Update frost-ed25519 crate to v0.4.0 (#324)

* Refactor keygen to return SecretShares and not KeyPackages (#324)

* Update secret key input text

Co-authored-by: Conrado Gouvea <conrado@zfnd.org>

* Add commitment output (#324)

* Refactor Errors in input tests (#324)

* Handle errors in secret key input (#324)

* Improve error handling for split_secret (#324)

* Refactor validate_inputs into request_inputs function (#324)

* Refactor main into cli function (#324)

* Fix encoding not handling more than 9 signers (#324)

* Add borrow to parameter in output to remove unecessary clones (#324)

---------

Co-authored-by: Conrado Gouvea <conrado@zfnd.org>
2023-06-14 14:52:43 -03:00
natalie 480c5c10ff Import split function from library (#362)
Update frost-ed25519 to v0.3.0
Fix typo in README command
2023-05-24 15:37:43 +01:00
natalie 078a8cbc26 Handle errors for trusted_dealer_keygen (#326) 2023-05-05 17:16:34 +01:00
natalie b584b60461 Sort participants by identifier (#283)
Improve error handling
Add tests for output
hex encode outputs
2023-04-26 15:21:42 +01:00
natalie a8710860d1 Update frost-ed25519 to v0.2.0 (#325) 2023-04-25 14:54:17 +01:00
natalie 4b25c4b7a4 Print group public key (#283)
Keygen implementation
Fix APACHE License
2023-04-17 11:01:27 +01:00
natalie 5d4f19b0ed Validate inputs for number of signers (#283)
Prompt for input and handle errors
2023-03-22 23:41:26 +00:00
natalieesk 5b6f66e29c Initial commit 2023-03-14 11:52:16 +00:00