* 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 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
* 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>
* 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>
* Support naive batch verification
* Generic batch verification compiles, but the batch verify test in core fails 😭
* The 'z' in old impl is now 'blind', as we call the response 'z' in our signatures
Co-authored-by: Conrado Gouvea <conradoplg@gmail.com>
* Do the last scalar mul by the Ciphersuite::Group::cofactor() with the check
* Make VerifyingKey::verify_prehashed() pub(crate)
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