Version bump and synchronize packages

Uses "dleq-serai", instead of "dleq", as the dleq crate name hasn't been 
transferred yet :(
This commit is contained in:
Luke Parker 2022-07-12 03:38:59 -04:00
parent 0b55fb6e06
commit d81f6270c7
No known key found for this signature in database
GPG key ID: F9F1386DB1E119B6
11 changed files with 19 additions and 15 deletions

View file

@ -31,7 +31,7 @@ dalek-ff-group = { path = "../../crypto/dalek-ff-group" }
transcript = { package = "flexible-transcript", path = "../../crypto/transcript", features = ["recommended"], optional = true } transcript = { package = "flexible-transcript", path = "../../crypto/transcript", features = ["recommended"], optional = true }
frost = { package = "modular-frost", path = "../../crypto/frost", features = ["ed25519"], optional = true } frost = { package = "modular-frost", path = "../../crypto/frost", features = ["ed25519"], optional = true }
dleq = { path = "../../crypto/dleq", features = ["serialize"], optional = true } dleq = { package = "dleq-serai", path = "../../crypto/dleq", features = ["serialize"], optional = true }
hex = "0.4" hex = "0.4"
serde = { version = "1.0", features = ["derive"] } serde = { version = "1.0", features = ["derive"] }

View file

@ -1,6 +1,6 @@
[package] [package]
name = "dalek-ff-group" name = "dalek-ff-group"
version = "0.1.1" version = "0.1.2"
description = "ff/group bindings around curve25519-dalek" description = "ff/group bindings around curve25519-dalek"
license = "MIT" license = "MIT"
repository = "https://github.com/serai-dex/serai" repository = "https://github.com/serai-dex/serai"

View file

@ -1,5 +1,5 @@
[package] [package]
name = "dleq" name = "dleq-serai"
version = "0.1.0" version = "0.1.0"
description = "Implementation of single and cross-curve Discrete Log Equality proofs" description = "Implementation of single and cross-curve Discrete Log Equality proofs"
license = "MIT" license = "MIT"

View file

@ -7,9 +7,9 @@ use group::{Group, GroupEncoding};
use blake2::{Digest, Blake2b512}; use blake2::{Digest, Blake2b512};
use k256::{Scalar, ProjectivePoint}; use k256::{Scalar, ProjectivePoint};
use dalek_ff_group::{self as dfg, EdwardsPoint, CompressedEdwardsY}; use dalek_ff_group::{self as dfg, EdwardsPoint};
use transcript::RecommendedTranscript; use transcript::{Transcript, RecommendedTranscript};
use crate::{ use crate::{
Generators, Generators,
@ -41,9 +41,9 @@ pub(crate) fn generators() -> (Generators<G0>, Generators<G1>) {
Generators::new( Generators::new(
EdwardsPoint::generator(), EdwardsPoint::generator(),
CompressedEdwardsY::new( EdwardsPoint::from_bytes(
hex!("8b655970153799af2aeadc9ff1add0ea6c7251d54154cfa92c173a0dd39c1f94") &hex!("8b655970153799af2aeadc9ff1add0ea6c7251d54154cfa92c173a0dd39c1f94")
).decompress().unwrap() ).unwrap()
) )
) )
} }

View file

@ -3,7 +3,7 @@ use rand_core::OsRng;
use group::{ff::{Field, PrimeFieldBits}, prime::PrimeGroup}; use group::{ff::{Field, PrimeFieldBits}, prime::PrimeGroup};
use multiexp::BatchVerifier; use multiexp::BatchVerifier;
use transcript::RecommendedTranscript; use transcript::{Transcript, RecommendedTranscript};
use crate::cross_group::schnorr::SchnorrPoK; use crate::cross_group::schnorr::SchnorrPoK;

View file

@ -9,7 +9,7 @@ use group::GroupEncoding;
use k256::{Scalar, ProjectivePoint}; use k256::{Scalar, ProjectivePoint};
use transcript::RecommendedTranscript; use transcript::{Transcript, RecommendedTranscript};
use crate::{Generators, DLEqProof}; use crate::{Generators, DLEqProof};

View file

@ -1,6 +1,6 @@
[package] [package]
name = "modular-frost" name = "modular-frost"
version = "0.1.0" version = "0.2.0"
description = "Modular implementation of FROST over ff/group" description = "Modular implementation of FROST over ff/group"
license = "MIT" license = "MIT"
repository = "https://github.com/serai-dex/serai" repository = "https://github.com/serai-dex/serai"
@ -26,9 +26,9 @@ dalek-ff-group = { path = "../dalek-ff-group", version = "0.1", optional = true
transcript = { package = "flexible-transcript", path = "../transcript", version = "0.1" } transcript = { package = "flexible-transcript", path = "../transcript", version = "0.1" }
multiexp = { path = "../multiexp", version = "0.1", features = ["batch"] } multiexp = { path = "../multiexp", version = "0.2", features = ["batch"] }
dleq = { package = "dleq", path = "../dleq", version = "0.1", features = ["serialize"] } dleq = { package = "dleq-serai", path = "../dleq", version = "0.1", features = ["serialize"] }
[dev-dependencies] [dev-dependencies]
rand = "0.8" rand = "0.8"

View file

@ -221,6 +221,8 @@ fn sign_with_share<C: Curve, A: Algorithm<C>>(
// Re-format into the FROST-expected rho transcript // Re-format into the FROST-expected rho transcript
let mut rho_transcript = A::Transcript::new(b"FROST_rho"); let mut rho_transcript = A::Transcript::new(b"FROST_rho");
rho_transcript.append_message(b"message", &C::hash_msg(&msg)); rho_transcript.append_message(b"message", &C::hash_msg(&msg));
// This won't just be the commitments, yet the full existing transcript if used in an extended
// protocol
rho_transcript.append_message( rho_transcript.append_message(
b"commitments", b"commitments",
&C::hash_msg(transcript.challenge(b"commitments").as_ref()) &C::hash_msg(transcript.challenge(b"commitments").as_ref())

View file

@ -1,6 +1,6 @@
[package] [package]
name = "multiexp" name = "multiexp"
version = "0.1.0" version = "0.2.0"
description = "Multiexponentation algorithms for ff/group" description = "Multiexponentation algorithms for ff/group"
license = "MIT" license = "MIT"
repository = "https://github.com/serai-dex/serai" repository = "https://github.com/serai-dex/serai"

View file

@ -1,6 +1,6 @@
[package] [package]
name = "flexible-transcript" name = "flexible-transcript"
version = "0.1.2" version = "0.1.3"
description = "A simple transcript trait definition, along with viable options" description = "A simple transcript trait definition, along with viable options"
license = "MIT" license = "MIT"
repository = "https://github.com/serai-dex/serai" repository = "https://github.com/serai-dex/serai"

View file

@ -3,7 +3,9 @@ name = "serai-processor"
version = "0.1.0" version = "0.1.0"
description = "Multichain processor premised on canonicity to reach distributed consensus automatically" description = "Multichain processor premised on canonicity to reach distributed consensus automatically"
license = "AGPL-3.0-only" license = "AGPL-3.0-only"
repository = "https://github.com/serai-dex/processor"
authors = ["Luke Parker <lukeparker5132@gmail.com>"] authors = ["Luke Parker <lukeparker5132@gmail.com>"]
keywords = []
edition = "2021" edition = "2021"
publish = false publish = false