Skip to content

Commit 391cd1b

Browse files
authored
Merge pull request #128 from LFDT-Lockness/cggmp24/update-specs
Update the spec
2 parents 4b00e86 + 404c212 commit 391cd1b

File tree

5 files changed

+1434
-877
lines changed

5 files changed

+1434
-877
lines changed

cggmp21-keygen/src/non_threshold.rs

+8-2
Original file line numberDiff line numberDiff line change
@@ -103,11 +103,13 @@ mod unambiguous {
103103
#[derive(udigest::Digestable)]
104104
#[udigest(tag = prefixed!("schnorr_pok"))]
105105
#[udigest(bound = "")]
106-
pub struct SchnorrPok<'a> {
106+
pub struct SchnorrPok<'a, E: Curve> {
107107
pub sid: ExecutionId<'a>,
108108
pub prover: u16,
109109
#[udigest(as_bytes)]
110110
pub rid: &'a [u8],
111+
pub X: &'a generic_ec::NonZero<generic_ec::Point<E>>,
112+
pub sch_commit: &'a generic_ec_zkp::schnorr_pok::Commit<E>,
111113
}
112114

113115
#[derive(udigest::Digestable)]
@@ -175,7 +177,7 @@ where
175177
let my_decommitment = MsgRound2 {
176178
rid,
177179
X: X_i,
178-
sch_commit,
180+
sch_commit: sch_commit.clone(),
179181
#[cfg(feature = "hd-wallet")]
180182
chain_code: chain_code_local,
181183
decommit: {
@@ -307,6 +309,8 @@ where
307309
sid,
308310
prover: i,
309311
rid: rid.as_ref(),
312+
X: &X_i,
313+
sch_commit: &sch_commit,
310314
});
311315
let challenge = schnorr_pok::Challenge { nonce: challenge };
312316

@@ -337,6 +341,8 @@ where
337341
sid,
338342
prover: j,
339343
rid: rid.as_ref(),
344+
X: &decom.X,
345+
sch_commit: &decom.sch_commit,
340346
});
341347
let challenge = schnorr_pok::Challenge { nonce: challenge };
342348
sch_proof

paillier-zk/src/no_small_factor.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -30,8 +30,8 @@
3030
//!
3131
//! let aux: p::Aux = pregenerated::verifier_aux();
3232
//! let security = p::SecurityParams {
33-
//! l: 4,
34-
//! epsilon: 128,
33+
//! l: 256,
34+
//! epsilon: 230,
3535
//! q: (Integer::ONE << 128_u32).complete(),
3636
//! };
3737
//!

shell.nix

+5-14
Original file line numberDiff line numberDiff line change
@@ -1,26 +1,17 @@
1-
let # Rust
2-
pkgs = import <nixpkgs> { overlays = [ rustOverlay ]; };
3-
lib = pkgs.lib;
4-
isDarwin = pkgs.hostPlatform.isDarwin;
1+
# shell for compiling latex spec
52

6-
rustVersion = "1.75.0";
7-
rustOverlay = import (builtins.fetchTarball "https://github.com/oxalica/rust-overlay/archive/master.tar.gz");
3+
let
4+
pkgs = import <nixpkgs> {};
85

9-
rust = pkgs.rust-bin.stable.${rustVersion}.default.override {
10-
extensions = [
11-
"rust-src" # for rust-analyzer
12-
];
13-
};
146
# Latex
157
tex = (pkgs.texlive.combine {
168
inherit (pkgs.texlive) scheme-small
17-
collection-mathscience preprint amsmath;
9+
collection-mathscience preprint amsmath enumitem placeins;
1810
});
1911

2012
in pkgs.stdenv.mkDerivation {
2113
name = "signers-env";
2214
nativeBuildInputs = [
23-
rust pkgs.rust-analyzer tex pkgs.gnum4
15+
tex
2416
];
25-
buildInputs = lib.optionals isDarwin [pkgs.darwin.apple_sdk.frameworks.Security];
2617
}

0 commit comments

Comments
 (0)