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
11 changed files with 19 additions and 15 deletions

View File

@@ -1,6 +1,6 @@
[package]
name = "modular-frost"
version = "0.1.0"
version = "0.2.0"
description = "Modular implementation of FROST over ff/group"
license = "MIT"
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" }
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]
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
let mut rho_transcript = A::Transcript::new(b"FROST_rho");
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(
b"commitments",
&C::hash_msg(transcript.challenge(b"commitments").as_ref())