ed448 release (#276)

* Tidy Cargo.toml for publishing

* Waiting for ed448-goldilocks to publish

* point to ed448-goldilocks 0.9.0; use new to_bytes_rfc_8032() method

---------

Co-authored-by: Conrado Gouvea <conradoplg@gmail.com>
This commit is contained in:
Deirdre Connolly 2023-03-10 20:04:09 -05:00 committed by GitHub
parent 7c8553bf10
commit 81ae27b1fa
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 5 additions and 8 deletions

View File

@ -14,17 +14,15 @@ readme = "README.md"
license = "MIT OR Apache-2.0"
repository = "https://github.com/ZcashFoundation/frost"
categories = ["cryptography"]
keywords = ["cryptography", "crypto", "ristretto", "threshold", "signature"]
description = "A Schnorr signature scheme over the prime-order Ristretto group that supports FROST ."
keywords = ["cryptography", "crypto", "ed448", "threshold", "signature"]
description = "A Schnorr signature scheme over Ed448 that supports FROST."
[package.metadata.docs.rs]
features = ["nightly"]
[dependencies]
# Pointing to a commit after 0.8.3 with the required functions for FROST.
# TODO: update after a release is made
ed448-goldilocks = { git = "https://github.com/crate-crypto/Ed448-Goldilocks.git", rev = "54ffc6b8f14030688996da50a1bfb7bb713eb172" }
frost-core = { path = "../frost-core", features = ["test-impl"] }
ed448-goldilocks = { version = "0.9.0" }
frost-core = { path = "../frost-core", version = "0.1.0", features = ["test-impl"] }
rand_core = "0.6"
sha3 = "0.10.6"

View File

@ -50,8 +50,7 @@ impl Field for Ed448ScalarField {
}
fn serialize(scalar: &Self::Scalar) -> Self::Serialization {
let bytes = scalar.to_bytes();
std::array::from_fn(|i| if i < 56 { bytes[i] } else { 0 })
scalar.to_bytes_rfc_8032()
}
fn deserialize(buf: &Self::Serialization) -> Result<Self::Scalar, FieldError> {