* Prelim implementation of including the group public key in computing the binding factor
Needs updated test vectors from the spec PoC and updated tests
* update test vectors
* add integration_test.rs to gencode which we forgot to do before
---------
Co-authored-by: Conrado Gouvea <conradoplg@gmail.com>
* Implement serde for network messages.
* Make sure marker type implements serde.
* add serde support to all required structs
* use serdect
* gate under serde feature
* ci: add build with default features job
* add serde tests and required changes/fixes
* add support for encoding ciphersuite ID
---------
Co-authored-by: David Craven <david@craven.ch>
* Add funvtion to create new CoefficientCommitment (#323)
* Update function to create new Coefficient Commitment and add error case (#323)
* Add function for CoefficientCommitment to return associated Element (#323)
* Add serialize function for VerifiableSecretSharingCommitment (#323)
* Rename test for the serialize function of vss_commitment (#323)
* Add deserialize function for VerifiableSecretSharingCommitment (#323)
* Rename new to deserialize for CoefficientCommitment (#323)
* Refactor CoefficientCommitment::deserialize (#323)
Update README with developer information
* Improve deserialize function for vss_commitment (#323)
* Handle errors for deserialization function for vss_commitment (#323)
* Update changelog (#323)
Add v0.4.0 to changelog
Remove deprecated changelog file
* Refactor error in deserialize function for CoefficientCommitment
Co-authored-by: Conrado Gouvea <conrado@zfnd.org>
* Update vss commitment serialization and deserialization functions (#323)
* Refactor tests for serialization and deserialization of commitments (#323)
* Refactor test to remove PartialEq trait from Group Serialization (#323)
Co-authored-by: Conrado Gouvea <conrado@zfnd.org>
* Add serialize function for CoefficientCommitment (#323)
* Fix formatting (#323)
* Add back in error test for vss commitment deserialize (#323)
* Clean up commitment tests (#323)
---------
Co-authored-by: Conrado Gouvea <conrado@zfnd.org>
* Add compute random value function for repair share functionality (#41)
This is step 1 of 3
* Add compute random value function for repair share functionality for each ciphersuite (#41)
* Add compute_sum_of_random_values function for repair share functionality (#41)
This is step 2 of 3
* Add recover_share function for repair share functionality (#41)
This is step 3 of 3
* Add communication rounds functions for repair share functionality for each ciphersuite (#41)
Add compute_sum_of_random_variables function
Add recover_share function
* Fix recover_share tests so they test the right thing
Fix secp256 recover share test values
Fix ristretto255 recover share test values
Fix ristretto255 compute sum of random values test values
* Rewrite compute_random_values to generate_random_values for repair share functionality (#41)
Test generate_random_values directly
End to end test to be added in another commit
Updated gendoc to use original file values to fix clippy complaints
* Rename functions and update documentation for repair (#41)
* Add end to end test for repair share (#41)
Fix lagrange coefficient calculation
Co-authored-by: conrado <conradoplg@gmail.com>
* Fix formatting (#41)
* Remove comment (#41)
Co-authored-by: Conrado Gouvea <conrado@zfnd.org>
* Update documentation for step 1 of RTS (#41)
Co-authored-by: Conrado Gouvea <conrado@zfnd.org>
* Update documentation for method of computing step 1 of RTS (#41)
Co-authored-by: Conrado Gouvea <conrado@zfnd.org>
* Rename repair share functions (#41)
* Improve documentation for Repairable Threshold Scheme (#41)
* Remove unecessary code from repairable tests (#41)
* Update repairable documentation
Co-authored-by: Conrado Gouvea <conrado@zfnd.org>
* Rename steps in repairable to be more consistent with DKG pattern (#41)
* Update gitignore (#41)
* Update repairable to use new keygen_with_dealer signature (#41)
* Update frost-core/src/frost/keys/repairable.rs
---------
Co-authored-by: conrado <conradoplg@gmail.com>
Co-authored-by: Conrado Gouvea <conrado@zfnd.org>
* add Identifier to InvalidSignatureShare
* rustdoc
* also update secp256k1
* add Identifier::deserialize; make serialize public
* make it work with Ed448
* Some space
* Fixing spacing for rustfmt
* Revert 🤦♂️
Co-authored-by: Deirdre Connolly <durumcrustulum@gmail.com>
* use Identifier instead of index
* remove pub(crate) from the Identifier index
* Refreshed Identifier newtype of Scalar with traits
* Remove commented out lines
* add test vectors with indices larger than 1 byte
* add little_endian_serialize to implement Ord for Identifier
* use u16 for number of signers
* fix variable use
Co-authored-by: Deirdre Connolly <durumcrustulum@gmail.com>
* use Identifier instead of index
* remove pub(crate) from the Identifier index
* Refreshed Identifier newtype of Scalar with traits
* Remove commented out lines
* add test vectors with indices larger than 1 byte
* add little_endian_serialize to implement Ord for Identifier
* remove 'as' keyword when not needed
* use Scalar shortcut
* use Element shortcut
* remove more instances of 'as' keyword when not needed
* rustfmt
Co-authored-by: Deirdre Connolly <durumcrustulum@gmail.com>
* use Identifier instead of index
* remove pub(crate) from the Identifier index
* Refreshed Identifier newtype of Scalar with traits
* Remove commented out lines
* add test vectors with indices larger than 1 byte
* add little_endian_serialize to implement Ord for Identifier
Co-authored-by: Conrado Gouvea <conradoplg@gmail.com>
* add DKG support
* refactor: call SecretShare::verify() in keygen_part3
* refactor: add generate_secret_polynomial and evaluate_polynomial
* refactor: factor out `evaluate_vss`
* refactor: factor out `compute_verifying_keys`
* fix full vector of coefficients not being returned
* simplify evaluate_polynomial to not receive constant term separately
* delete accidentally comitted .orig file
* Apply suggestions from code review
Co-authored-by: Marek <mail@marek.onl>
* Update frost-core/src/frost/keys.rs
Co-authored-by: Marek <mail@marek.onl>
* fix doc warnings
Co-authored-by: Marek <mail@marek.onl>
* add VerifySignature method to Ciphersuite with default implementation
* VerifySignature -> verify_signature; fix comment
* add comment to verify_signature about batch verification
* fix batch support after rebase
* derive Eq when possible and disable clippy::derive_partial_eq_without_eq which is emitting false positives
* Make verify_prehashed() an associated method of the generic VerifyingKey
Co-authored-by: Deirdre Connolly <durumcrustulum@gmail.com>
* use Identifier instead of index
* remove pub(crate) from the Identifier index
* A comment
* Whitespace for readability
* check for zero in Identifier::to_scalar()
Co-authored-by: Deirdre Connolly <durumcrustulum@gmail.com>
* add commit(), use it instead of preprocess()
* use a single scalarmul in compute_group_commitment per v5 spec
* add nonce_generate() from the spec and use it
* remove Order() from Group trait since it's not used
* style: carriage return
* use Secret instead of KeyPackage in some methods
* change commit to take explicit params and not return vectors
* removed unused import
Co-authored-by: Conrado Gouvea <conradoplg@gmail.com>
* Remove AsMut bound which is not needed
* Use the generator point to get the encoded point size, since the identity in P-256 is just a single byte
* Remove FromHex bound
* Remove Default bound from Group
* frost-core Cargo.toml
* Ciphersuite trait
* Signature trait
* Copy stub ristretto impl for now
* First stab at making signing and verifying generic over frost-core::Ciphersuite
* Update signing
* Nice const generics and stuff for frost-core::Ciphersuite
* Have to implement traits for the pre-parameterized types inside the module
* Ciphersuite::Group::Field
* Make frost/keys generic over Ciphersuite
* frost-core genericization mostly done, modulo batch
* Move tests around
* Remove internal test module
* Lots of tidies, including type refinement of Scalar, Challenge
* More genericization and tidy'ing
* Test vectors working against Ristretto impl in the frost-core integration tests
* clippy fix
* Fix generic params for full frost example integration test using ristretto
* Genericize proptests
* clippy --fix
* Doc comment identifier module
* In-flight batch and multiscalar mul
* Stop using Scalar::from_hash() as it expects impl Digest which sha2 0.10+ isn't doing anymore
* run cargo udeps
* Update frost-core/src/frost/round1.rs
* Update frost-core/src/frost.rs
* Update frost-core/src/frost/keys.rs