Commit Graph

38 Commits

Author SHA1 Message Date
natalie 06c0c2453d
Implement phase 2 for Participant (#123) (#197)
* Add http option for Participant (#123)

* Fix redpallas tests for participant phase 2 (#123)

* Update participant/src/comms/http.rs

* Remove unnecessary session id for participant round 2 (#123)

* Fix clippy error (#123)

---------

Co-authored-by: Conrado Gouvea <conrado@zfnd.org>
2024-05-17 09:30:38 -03:00
dependabot[bot] 5413e06705 Bump async-trait from 0.1.78 to 0.1.80
Bumps [async-trait](https://github.com/dtolnay/async-trait) from 0.1.78 to 0.1.80.
- [Release notes](https://github.com/dtolnay/async-trait/releases)
- [Commits](https://github.com/dtolnay/async-trait/compare/0.1.78...0.1.80)

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

Signed-off-by: dependabot[bot] <support@github.com>
2024-04-15 11:06:59 +01:00
dependabot[bot] a124cab5b3
Bump clap from 4.5.3 to 4.5.4 (#183)
Bumps [clap](https://github.com/clap-rs/clap) from 4.5.3 to 4.5.4.
- [Release notes](https://github.com/clap-rs/clap/releases)
- [Changelog](https://github.com/clap-rs/clap/blob/master/CHANGELOG.md)
- [Commits](https://github.com/clap-rs/clap/compare/v4.5.3...v4.5.4)

---
updated-dependencies:
- dependency-name: clap
  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>
2024-04-15 10:53:00 +01:00
natalie 07ea1a1f66
Fix coordinator units tests (#144)
* Add extra pipeline jobs (#135)

Add test for ed25519 with sockets

* Fix coordinator unit tests (#135)

* Remove unnecessary prints (#135)

* Clean up (#135)

* Clean up after merge (#135)

* pin to older nightly version

* Update default values for Args (#135)

* Clean up (#135)

* Fix conflict in workflows (#135)

* Remove pipeline job for removed sockets feature (#135)

* Use stable instead of nightly

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

---------

Co-authored-by: Conrado Gouvea <conradoplg@gmail.com>
Co-authored-by: Conrado Gouvea <conrado@zfnd.org>
2024-03-21 10:08:18 -03:00
dependabot[bot] 74a08420cf
Bump clap from 4.5.1 to 4.5.2 (#163)
Bumps [clap](https://github.com/clap-rs/clap) from 4.5.1 to 4.5.2.
- [Release notes](https://github.com/clap-rs/clap/releases)
- [Changelog](https://github.com/clap-rs/clap/blob/master/CHANGELOG.md)
- [Commits](https://github.com/clap-rs/clap/compare/clap_complete-v4.5.1...v4.5.2)

---
updated-dependencies:
- dependency-name: clap
  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>
2024-03-14 18:31:22 -03:00
dependabot[bot] 23aa8df597
Bump frost-ed25519 from 1.0.0-rc.0 to 1.0.0 (#151)
Bumps [frost-ed25519](https://github.com/ZcashFoundation/frost) from 1.0.0-rc.0 to 1.0.0.
- [Release notes](https://github.com/ZcashFoundation/frost/releases)
- [Commits](https://github.com/ZcashFoundation/frost/compare/frost-ed25519/v1.0.0-rc.0...frost-ed25519/v1.0.0)

---
updated-dependencies:
- dependency-name: frost-ed25519
  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>
2024-03-14 18:23:21 -03:00
dependabot[bot] c09f0d064a
Bump clap from 4.5.0 to 4.5.1 (#148)
Bumps [clap](https://github.com/clap-rs/clap) from 4.5.0 to 4.5.1.
- [Release notes](https://github.com/clap-rs/clap/releases)
- [Changelog](https://github.com/clap-rs/clap/blob/master/CHANGELOG.md)
- [Commits](https://github.com/clap-rs/clap/compare/clap_complete-v4.5.0...clap_complete-v4.5.1)

---
updated-dependencies:
- dependency-name: clap
  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>
2024-02-28 16:39:09 -03:00
Conrado Gouvea cb77d35f26
Phase 1: also send randomizer (#140)
* also send randomizer in socket comms

* participant: change default IP address
2024-02-21 14:20:11 +00:00
dependabot[bot] 0091b9c24f
Bump clap from 4.4.18 to 4.5.0 (#145)
Bumps [clap](https://github.com/clap-rs/clap) from 4.4.18 to 4.5.0.
- [Release notes](https://github.com/clap-rs/clap/releases)
- [Changelog](https://github.com/clap-rs/clap/blob/master/CHANGELOG.md)
- [Commits](https://github.com/clap-rs/clap/compare/v4.4.18...clap_complete-v4.5.0)

---
updated-dependencies:
- dependency-name: clap
  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>
2024-02-09 16:31:31 -03:00
Conrado Gouvea 14a2bf16ca
Phase 1 cleanup (#138)
* coordinator: remove sockets feature, add --cli flag

* participant: remove sockets feature, add --cli flag

* revert CI to stable

* fix tests
2024-02-09 17:29:26 +00:00
dependabot[bot] 01795660e8
Bump eyre from 0.6.11 to 0.6.12 (#137)
Bumps [eyre](https://github.com/eyre-rs/eyre) from 0.6.11 to 0.6.12.
- [Commits](https://github.com/eyre-rs/eyre/commits)

---
updated-dependencies:
- dependency-name: eyre
  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>
2024-02-02 16:58:04 -03:00
Conrado Gouvea a04a829930
change coordinator and participant to allow them to be non-interactive (#133)
* trusted-dealer: allow reading params from arguments, and writing to files

* change coordinator and participant to allow them to be non-interactive

* allow reading message from file

* remove warnings

* fix tests
2024-01-31 14:07:44 +00:00
natalie 4925183519
Add socket comms for Participant demo (#131)
* Add CLI comms to participant demo (#92)

* Update Coordinator unit tests after comms changes (#92)

* Update integration tests with participant cli comms (#92)

* Add socket comms to Participant demo (#92)

Remove group signature verification from participant demo

* Update participant cli test (#92)

* fix redpallas compile issue

* Update participant/src/args.rs

---------

Co-authored-by: Conrado Gouvea <conradoplg@gmail.com>
Co-authored-by: Conrado Gouvea <conrado@zfnd.org>
2024-01-30 16:07:32 -03:00
Jesse Eisenberg e9269f204e
Improve messaging during dkg demo (#128)
The group signature must be a quoted string, to meet serde_json formatting needs, which is not clear to the user currently.
2024-01-29 19:19:27 -03:00
Conrado Gouvea 824a133642
update reddsa and remove manual into_positive_y() invocations (#104) 2024-01-05 16:40:32 +00:00
dependabot[bot] c335d7a072
Bump eyre from 0.6.9 to 0.6.11 (#99)
Bumps [eyre](https://github.com/eyre-rs/eyre) from 0.6.9 to 0.6.11.
- [Commits](https://github.com/eyre-rs/eyre/compare/eyre@0.6.9...eyre@0.6.11)

---
updated-dependencies:
- dependency-name: eyre
  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-12-18 18:30:13 -03:00
Conrado Gouvea 0a9e830fa0
Add initial implementation of socket communications to the demo (phase 1) - Coordinator (#89)
* move commitments to step_1
* halfway through making things async; need to fix handling input/output
* async step_1
* async step_3
* started SocketComms
* SocketComms compiling
* Finished SocketComms; untested
* fixed existing tests
* update frost-rerandomized; skip tests if redpallas enabled
* ci: use nightly, and overall cleanup
* point frost to 1.0.0-rc.0
2023-11-21 14:56:29 +00:00
Conrado Gouvea ab74fed813 point to main reddsa 2023-10-06 11:57:25 -03:00
Conrado Gouvea 68e445940b fix redpallas issues; build it in CI 2023-10-06 11:44:44 -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
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
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
Conrado Gouvea 577f5421a1 add support for redpallas 2023-07-21 22:39:05 -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 c40b4d7e3e fix clippy warning 2023-07-18 11:50:54 -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 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
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
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
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