pub struct Cmp20SigningPipeline {
pub threshold: u32,
pub party_count: u32,
pub paillier_keys: Vec<PaillierKeypair>,
pub key_shares: Vec<Scalar>,
pub public_key: AffinePoint,
}Expand description
Full CMP20 signing pipeline for T-of-N.
Fields§
§threshold: u32§party_count: u32§paillier_keys: Vec<PaillierKeypair>Each party’s Paillier keypair. 642-bit primes (~1284-bit N): the MtA proofs require N > q⁵ + q² for honest no-wrap shares.
Each party’s secret key share x_i.
public_key: AffinePointJoint public key Y = sum(x_i * G).
Implementations§
Source§impl Cmp20SigningPipeline
impl Cmp20SigningPipeline
Sourcepub fn new(threshold: u32, party_count: u32, key_shares: Vec<Scalar>) -> Self
pub fn new(threshold: u32, party_count: u32, key_shares: Vec<Scalar>) -> Self
Create a pipeline with pre-generated shares (from DKG).
Auto Trait Implementations§
impl Freeze for Cmp20SigningPipeline
impl RefUnwindSafe for Cmp20SigningPipeline
impl Send for Cmp20SigningPipeline
impl Sync for Cmp20SigningPipeline
impl Unpin for Cmp20SigningPipeline
impl UnsafeUnpin for Cmp20SigningPipeline
impl UnwindSafe for Cmp20SigningPipeline
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more