Commit Graph

41 Commits

Author SHA1 Message Date
Conrado Gouvea d7b6ab7644
server: misc cleanups (#407) 2024-12-26 19:03:16 -03:00
Conrado Gouvea 3385036c50
frost-client: support multiple sessions (#399) 2024-12-26 18:45:51 -03:00
Conrado Gouvea 11c4583091
frost-client: force encryption when using HTTP (#398)
* frost-client: force encryption when using HTTP

* fix test

* fix new test
2024-12-26 18:40:12 -03:00
Conrado Gouvea 5e860be303
add HTTPS support to the server (#402) 2024-12-26 16:44:49 -03:00
Conrado Gouvea 2a07585b85
server: remove username and password support (#383)
* remove username and password support

* remove sqlx dependency
2024-12-26 16:42:12 -03:00
Conrado Gouvea fe7ea0a27d
server: support private key authentication (#381)
* server: support private key authentication

* use PublicKey for all instances in types.rs
2024-12-18 23:17:57 +00:00
Conrado Gouvea 36772857ca
frost-client: add encryption and authentication (#336) 2024-11-20 15:11:47 +00:00
Conrado Gouvea 3338161fc1
add frost-client {coordinator,participant} (#328) 2024-10-24 10:36:20 -03:00
Conrado Gouvea 21a15316bb
Make server act as "aggregator" (#265) 2024-08-14 18:53:56 -03:00
Conrado Gouvea 4c6e860d69
Add user registration (#252)
* add user registration

* addint support to coordinator and participant

* Update participant/src/comms/http.rs

Co-authored-by: Pili Guerra <mpguerra@users.noreply.github.com>

---------

Co-authored-by: Pili Guerra <mpguerra@users.noreply.github.com>
2024-08-14 18:48:59 -03:00
Conrado Gouvea 82b2ef8c40 update to frost 2.0.0-rc.0 2024-07-04 14:09:25 +01:00
Conrado Gouvea ef3012bc7c participant: use generics 2024-07-01 14:29:14 +01:00
Conrado Gouvea 1b0acb6299
server: make it ciphersuite-generic (#223) 2024-06-19 14:54:09 -03:00
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
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
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
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
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
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 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 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