Entries are listed in reverse chronological order.
- All crates from RustCrypto have been bumped to the latest versions,
version
randhas been updated to0.10 - MSRV has been bumped to Rust 1.86, making all crates no-std.
Refer to the 3.0.0-rc.0 entry below for the main changes if you are upgrading
from 2.x.
- Fixed
verify_signature_share()so that it calls theCiphersuite::pre_commitment_aggregate()hook
- The
cheater-detectionfeature was removed. If you relied on it (either by using the default features, or by explicitly enabling it), then you don't have to do anything (other than not enabling it explicitly if you were doing so); the default behaviour is now as ifcheater-detectionwas enabled. If you explicitly did not enable it, you can avoid cheater detection by callingaggregate_custom()withCheaterDetection::Disabled. - Changed
InvalidSignatureShare::culprittoculprits; it is now aVec. - Changed
Error::culprit()toculprits(); is is now aVec. - Added a
min_signersargument toPublicKeyPackage::new(). - The
stdandnightlyfeatures were removed from all crates since the crates are allno-std. If you enabled them, just remove the feature from the import. - Renamed
frost_core::keys::refresh::refresh_dkg_part_1torefresh_dkg_part1. - Fixed the crate-specific versions of the
refreshmodule to be non-generic. - Removed the
min_signersandmax_signersarguments fromfrost_core::keys::refresh::compute_refreshing_shares(). The former is now read from thepub_key_package; if you pass a pre-3.0.0 generate package, you will need to fills itsmin_signersfield with the original threshold before calling the function (recreate it withPublicKeyPackage::new()). The latter was simply redundant. SigningKeyis no longerCopy; and now it implementsZeroizeOnDrop.- Refactored the
frost_core::keys::repairablemodule:repair_share_step_1()was renamed torepair_share_part1()and now takes aKeyPackageand returns a map with a newDeltatype instead of a rawScalarrepair_share_step_2()was renamed torepair_share_part2()and now takes theDeltatype and returns a newSigmatype instead of a rawScalarrepair_share_step_3()was renamed torepair_share_part3()and now takes theSigmatype and aPublicKeyPackageinstead ofVerifiableSecretSharingCommitment; and returns aKeyPackageinstead ofSecretShare.- These changes provide more type safety and are make it more useful since
SecretPackages are not expected to be stored.
- The
Ciphersuite,ScalarandElementtraits now must implementSendandSync. This should be trivial in most cases. - The
SignatureSerialization,Field::SerializationandElement::Serializationtraits do not need to implementTryFrom<Vec<u8>>anymore; instead, they must implementAsMut<[u8]>andTryFrom<&[u8]>. This should be trivial in most cases since they are often implemented by arrays.
- Added DKG refresh functions to the crate-specific
refreshmodules. - Re-exported the
frost-rerandomizedcrate in the ciphersuite functions, e.g. you can callfrost_ristretto255::rerandomized::sign_with_randomizer_seed(). - Added the
pre_commitment_aggregate()andpre_commitment_sign()hooks to theCiphersuitetrait. - Added
aggregate_custom()function to allow specifying which cheater detection strategy to use. The originalaggregate()behaviour is to use theCheaterDetection::FirstCheaterstrategy. - Added
ZeroizeOnDropfor more types. - Added
NonceCommitmentgetters andnew()underinternalsfeature.
- Fixed
dkg::round2::SecretPackageserialization (it would previously return an error when deserialized). Technically this is a breaking change; if somehow your application has serialized round 2 SecretPackages in long-term storage and you need to deserialize then, you will need to manually parse them and discard the first element of thecommitmentfield. - Fixed the build for some specific feature combinations.
- Added validation for the
min_signersparameter in thefrost_core::keys::refreshfunctions. It was not clear that it is not possible to changemin_signerswith the refresh procedure. Using a smaller value would not decrease the threshold, and attempts to sign using a smaller threshold would fail. Additionally, after refreshing the shares with a smaller threshold, it would still be possible to sign with the original threshold; however, this could cause a security loss to the participant's shares. We have not determined the exact security implications of doing so and judged simpler to just validatemin_signers. If for some reason you have done a refresh share procedure with a smallermin_signerswe strongly recommend migrating to a new key. Thank you BlockSec for reporting the finding.
- MSRV has been bumped to Rust 1.81, making all crates no-std (except
frost-ed448). - Added DKG refresh functions to the crate-specific
refreshmodules. - Added
VerifiableSecretSharingCommitment::{serialize,deserialize}_whole()methods. - Added
Ciphersuite::post_generate()method to allow more ciphersuite customization.
- It is now possible to identify the culprit in
frost_core::keys::dkg::part3()if an invalid secret share was sent by one of the participants (by callingfrost_core::Error<C>::culprit()) (#728) - Added frost-secp256k1-tr crate, allowing to generate Bitcoin Taproot (BIP340/BIP341) compatible signatures (#730).
- Support refreshing shares using the DKG approach using the
frost_core::keys::refresh::refresh_dkg_{part1,part2,shares}()functions (#766). frost_core::keys::dkg::part{1,2}::SecretPackageare now serializable (#833).
- Updated docs
- Added missing
derive(Getters)fordkg::{round1, round2} - Added
internalfeature forvalidate_num_of_signers - Added refresh share functionality for trusted dealer:
frost_core::keys::refresh::{compute_refreshing_shares, refresh_share} - Added a
'staticbound to theCiphersuitetrait. This is a breaking change, but it's likely to not require any code changes since most ciphersuite implementations are probably just empty structs. The bound makes it possible to usefrost_core::Error<C>inBox<dyn std::error::Error>. - Added getters to
round1::SecretPackageandround2::SecretPackage. - Added a
frost_core::verify_signature_share()function which allows verifying individual signature shares. This is not required for regular FROST usage but might useful in certain situations where it is desired to verify each individual signature share before aggregating the signature.
- Changed the
deserialize()function of Elements and structs containing Elements to return an error if the element is the identity. This is a requirement in the FROST specification that wasn't being followed. We are not aware of any possible security issues that could be caused by this; in the unlikely case that the identity was being serialized, this would be caught by deserialization methods. However, we consider this change the right thing to do as a defense-in-depth mechanism. This entails the following changes:Group::serialize()now returns an error. When implementing it, you must return an error if it attempts to serialize the identity.VerifyingShare::serialize(),CoefficientCommitment::serialize(),VerifiableSecretSharingCommitment::serialize(),NonceCommitment::serialize(),Signature::serialize(),VerifyingKey::serialize()can now all return an error.
- Changed the
serialize()anddeserialize()methods of all Scalar- and Element-wrapping structs; instead of taking or returning aField::SerializationorElement::Serializationtrait (which are usually defined by ciphersuites as arrays of specific sizes), they simply respectively take&[u8]and returnVec<u8>, exactly as the other structs, which should greatly simplify non-serde serialization code. You can port existing code with e.g.x.serialize().as_ref()->x.serialize()andX::deserialize(bytes.try_into().unwrap())->X::deserialize(&bytes). - Removed the
ops::{Mul, MulAssign, Sub}implementation forIdentifier. These were being used internally, but library users shouldn't need to use them. If you have low-level code that relied on it, useIdentifier::{new, to_scalar}to handle the underlying scalar. - Removed
batch::Item::into()which created a batch Item from a triple of VerifyingKey, Signature and message. Use the newbatch::Item::new()instead (which can return an error). - Add no-std support to all crates except frost-ed448. To use, do not enable the
stdfeature that is enabled by default (i.e. usedefault-features = false); Note that it always links to an externalalloccrate (i.e. there is noallocfeature). When disablingstd, the only impact in the API is thatErrorwill no longer implement thestd::error::Errortrait. This is a breaking change if you are disabling default features but rely onErrorimplementingstd::error::Error. In that case, simply enable thestdfeature. - Fixed
no-default-features, previously it wouldn't compile. - Fixed some feature handling that would include unneeded dependencies in some cases.
- Exposed the
SigningKey::from_scalar()andto_scalar()methods. This helps interoperability with other implementations. - Exposed the
SigningNonces::from_nonces()method to allow it to be deserialized. - Fixed bug that prevented deserialization with in some cases (e.g. JSON containing escape codes).
- Added
new()methods forVerifirableSecretSharingCommitmentandCoefficientCommitment.
- The
frost-core::frostmodule contents were merged intofrost-core, thus eliminating thefrostmodule. You can adapt any calling code with e.g. changinguse frost_core::frost::*touse frost-core::*. Challenge,BindingFactor,BindingFactorListandGroupCommitmentare no longer public (you can use them with theinternalsfeature).- Both serde serialization and the default byte-oriented serialization now
include a version field (a u8) at the beginning which is always 0 for now. The
ciphersuite ID field was moved from the last field to the second field, after
the version. Both version and ciphersuite ID are now grouped into a "header"
struct, which affects self-describing formats like JSON. The ciphersuite ID
string was also changed for all ciphersuites: it is now equal to the
contextStringof each ciphersuite per the FROST spec. - Add an option to disable cheater detection during aggregation of signatures.
- Add
PublicKeyPackage::from_commitment()andPublicKeyPackage::from_dkg_commitmentsto create aPublicKeyPackagefrom the commitments generated in trusted dealer or distributed key generation. - Ciphersuite crates now re-export
serdeif enabled. - Convert all
HashMapstoBTreeMaps. - Update some field names in
KeyPackage,Package,SecretShareandPublicKeyPackage. - Add generate Randomizer by hashing
SigningPackage - Add postcard-serde-encoded serialization as the default
- Remove
BindingFactor::deserialize()andBindingFactorList::iter()
- Challenge hashing during DKG computation was changed to match the paper. This means that code running this version won't interoperate with code running previous versions.
- A new
min_signersfield was added toKeyPackage, which changes itsnew()method and its serde serialization. reconstruct()was changed to take a slice ofKeyPackages instead ofSecretShares since users are expect to store the former and not the latter.- New
serialize()/deserialize()methods were added so that a default byte-oriented serialization is available for all structs that need to be communicated. It is still possible to use serde with you own encoder. Note that the format will likely change in the next release. - Audit findings were addressed.
- The following structs had a
Identifierfield removed, which affects how they are encoded and instantiated:dkg::round1::Packagedkg::round2::PackageSigningCommitmentsSignatureShare
- The following functions and methods changed parameters from
VectoHashMapso that callers need to indicate the identifier of the source of each value being passed:aggregate()dkg::part2()dkg::part3()SigningPackage::new()
commit()andpreprocess()no longer take an identifier as inputSignatureResponsewas removed.SignatureSharecan now be encoded directly withfrom/to_bytes().- rename all
to_bytes()/from_bytes()toserialize()/deserialize() - The group public key is now included in the hash inside the binding factor computation. This reflects an upcoming change to the specification: cfrg/draft-irtf-cfrg-frost#439
generate_with_dealer()was change to allow specifying which identifiers to use- Identifiers can now be derived from arbitrary strings with
Identifier::derive() - Added
RandomizerParams::from_randomizer()to allow specifying a randomizer - Added
Error::culprit()to easily get the identifier of a misbehaving participant - Most public types now implement common traits such as Clone and Debug
- expose SigningShare, VerifyingShare, NonceCommitment and SignatureResponse in ciphersuite libraries
- most structs now have a private field which mean that they can no longer be
instantiated directly.
new()methods have been added to them. - change
SigningPackage::new()to take&[u8]P instead ofVec` - add
serdesupport underserdefeature to allow encoding structs which need to be communicated between participants. - expand docs to show the overall structure and contents
- add serialize and deserialize functions for VerifiableSecretSharingCommitment
- add value, serialize and deserialize functions for CoefficientCommitment
- add multiscalar support to speed up signing and aggregating
- change errors caused by protocol violations to contain the misbehaving party
- add frost::keys::split()
- rename reconstruct_secret() to reconstruct(), make it takes a slice instead of a Vector, make it return SigningKey, fix it to return Error instead of an error string
- rename keygen_with_dealer() to generate_with_dealer()
- change SigningKey::new() to take a reference instead of a value
- Implement Zeroize where needed or skip where not needed (fixes compiling error) (#301)
- Change keygen_with_dealer() to return a HashMap (#288)
- Re-export the frost-core traits and rand-core as part of top-level impls API (#297)
- Initial release.