Commit Graph

87 Commits

Author SHA1 Message Date
dependabot[bot] 6f5a2f7c14
Bump reviewdog/action-actionlint from 1.38.0 to 1.39.1 (#84)
Bumps [reviewdog/action-actionlint](https://github.com/reviewdog/action-actionlint) from 1.38.0 to 1.39.1.
- [Release notes](https://github.com/reviewdog/action-actionlint/releases)
- [Commits](https://github.com/reviewdog/action-actionlint/compare/v1.38.0...v1.39.1)

---
updated-dependencies:
- dependency-name: reviewdog/action-actionlint
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-10-04 10:58:10 -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] c6056d0e45
Bump reviewdog/action-actionlint from 1.37.1 to 1.38.0 (#75)
Bumps [reviewdog/action-actionlint](https://github.com/reviewdog/action-actionlint) from 1.37.1 to 1.38.0.
- [Release notes](https://github.com/reviewdog/action-actionlint/releases)
- [Commits](https://github.com/reviewdog/action-actionlint/compare/v1.37.1...v1.38.0)

---
updated-dependencies:
- dependency-name: reviewdog/action-actionlint
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-09-11 16:21:34 -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
natalie 32fb05b158
Merge pull request #64 from ZcashFoundation/add-redpallas
add support for redpallas
2023-09-06 10:02:53 +01:00
Conrado Gouvea 2e4c5c6592 remove --all-features from CI 2023-09-05 17:08:57 -03:00
Conrado Gouvea 3d9b8e30b3 Merge remote-tracking branch 'origin/main' into add-redpallas 2023-09-05 15:25:23 -03:00
Conrado Gouvea 1e1773184c fix wrong error being used 2023-09-05 15:24:29 -03:00
dependabot[bot] bcfbf1ce40
Bump actions/checkout from 3.5.3 to 4.0.0 (#74)
Bumps [actions/checkout](https://github.com/actions/checkout) from 3.5.3 to 4.0.0.
- [Release notes](https://github.com/actions/checkout/releases)
- [Changelog](https://github.com/actions/checkout/blob/main/CHANGELOG.md)
- [Commits](https://github.com/actions/checkout/compare/v3.5.3...v4.0.0)

---
updated-dependencies:
- dependency-name: actions/checkout
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-09-05 12:23:47 -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 2c0ad41227
Update READMEs (#54) (#71) 2023-08-21 19:01:16 -03:00
natalie bb4ea6b3e7
Fix serde tests across the projects (#66) (#70) 2023-08-21 19:00:34 -03:00
natalie 888bd6e57b
Merge pull request #62 from ZcashFoundation/use-serde
Use serde for all demos
2023-08-07 14:55:00 +01:00
Conrado Gouvea 577f5421a1 add support for redpallas 2023-07-21 22:39:05 -03:00
Conrado Gouvea 31535624cf comment out more outdated tests 2023-07-21 12:37:26 -03:00
Conrado Gouvea 2cd6862cca improved some prompts for clarity 2023-07-21 12:30:27 -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 af1d45980e
Add unit tests to coordinator demo (#60)
* Add step 1 test for coordinator (#53)

* Add step_2() tests for coordinator (#53)

* Fix tests in coordinator after changes (#53)
2023-07-20 19:04:14 -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
natalie 2c26bf99ab
Merge pull request #57 from ZcashFoundation/dkg-tests
add DKG tests
2023-07-20 12:31:51 +01: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
natalie 0831c3053a
Serialize round 2 output in Participant demo (#44)
* Add round 2 inputs for participant demo (#20)

* Generate signature in participant demo (#20)

Add integration test

* Refactor rounds into own files in participant demo (#20)

* Refactor rounds tests into own files in participant demo (#20)

* Remove unnecessary test lib file from participant (#20)

* Add test for round 1 output for participant (#20)

* Print values for round 2 participant (#20)

Add back in decode_vss_commitment test

* Add in some errors (#23)

* Fix test for invalid length of vss commitment (#23)

* Improve readability of text output

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

* Improve readability of text output

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

* Refactor and rename (#23)

---------

Co-authored-by: Conrado Gouvea <conrado@zfnd.org>
2023-07-10 19:09:00 -03:00
natalie a70d0342e0
Merge pull request #29 from ZcashFoundation/dependabot/github_actions/reviewdog/action-actionlint-1.37.1
Bump reviewdog/action-actionlint from 1.37.0 to 1.37.1
2023-07-07 17:12:28 +01:00
natalie 11cf0319c3
Merge pull request #33 from ZcashFoundation/dependabot/cargo/itertools-0.11.0
Bump itertools from 0.10.5 to 0.11.0
2023-07-07 17:11:23 +01: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
Conrado Gouvea 8311efe9ff fix identifier reading; address review comments 2023-06-27 11:49:38 -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 02910565bf clean up reading, writing and error handling 2023-06-23 18:55:10 -03:00
Conrado Gouvea d9e7df2365 working; needs cleaning up 2023-06-23 17:32:06 -03:00
natalie b8de83e180
Add secret share input for participant project (#31)
* Add text for secret share input for participant project (#19)

* Add signing share input for participant project (#19)

* Add error handling for signing_share input in Participant project (#19)
2023-06-20 19:30:31 -03:00
natalie f5e7f6b09f
Add group public key to participant project (#30)
* Add text for group public key input for Participant CLI (#18)

* Refactor lib tests into own file (#18)

* Fix formatting (#18)

* Add group public key input to Participant (#18)

* Handle error for group public key (#18)

Update group_public_key field in config to use VerifyingKey type
2023-06-20 15:42:57 -03:00
dependabot[bot] ebba08b3e5
Bump reviewdog/action-actionlint from 1.37.0 to 1.37.1
Bumps [reviewdog/action-actionlint](https://github.com/reviewdog/action-actionlint) from 1.37.0 to 1.37.1.
- [Release notes](https://github.com/reviewdog/action-actionlint/releases)
- [Commits](https://github.com/reviewdog/action-actionlint/compare/v1.37.0...v1.37.1)

---
updated-dependencies:
- dependency-name: reviewdog/action-actionlint
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-06-20 01:05:10 +00: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 2092ccca0d
Add Participant identifier input for Participant CLI (#22)
* Request identifier for Participant (#16)

* Test for error when Identifier has value 0 for participant (#16)

* Add error test for malformed identifier for participant (#16)

* Improve text for participant identifier input request (#16)
2023-06-16 16:17:09 -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 f9cdba6ceb
Merge pull request #5 from ZcashFoundation/dependabot/github_actions/codecov/codecov-action-3.1.4
Bump codecov/codecov-action from 3.1.2 to 3.1.4
2023-06-15 12:50:45 +01:00
natalie 2bd2824c5b
Merge pull request #13 from ZcashFoundation/dependabot/github_actions/actions/checkout-3.5.3
Bump actions/checkout from 3.5.2 to 3.5.3
2023-06-15 12:50:32 +01: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
dependabot[bot] f06af79b13
Bump actions/checkout from 3.5.2 to 3.5.3
Bumps [actions/checkout](https://github.com/actions/checkout) from 3.5.2 to 3.5.3.
- [Release notes](https://github.com/actions/checkout/releases)
- [Changelog](https://github.com/actions/checkout/blob/main/CHANGELOG.md)
- [Commits](https://github.com/actions/checkout/compare/v3.5.2...v3.5.3)

---
updated-dependencies:
- dependency-name: actions/checkout
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-06-10 00:57:37 +00:00
natalie ac921c364d
Merge pull request #8 from ZcashFoundation/add_split_362
Add split function
2023-06-05 19:33:10 +01:00
natalie 28359ee3e0
Update secret key input text
Co-authored-by: Conrado Gouvea <conrado@zfnd.org>
2023-06-05 19:26:46 +01:00