Module common

Module common 

Source
Expand description

Types which are common to both v1 and v2

Modules§

test_helpers
Helper functions for tests

Structs§

CheckPrivateShares
An implementation of p256k1’s MultiMult trait that allows fast checking of DKG private shares We convert a set of checked polynomial evaluations into a single giant multimult These evaluations take the form of s * G == \Sum{k=0}{T+1}(a_k * x^k) where the a vals are the coeffs of the polys There is 1 share per poly, N polys, and each poly is degree T-1 (so T coeffs) First we evaluate each poly, then we subtract each s * G
Nonce
A composite private nonce used as a random commitment in the protocol
PolyCommitment
A commitment to a polynonial, with a Schnorr proof of ownership bound to the ID
PublicNonce
A commitment to the private nonce
Signature
An aggregated group signature
SignatureShare
A share of the party signature with related values
TupleProof
A Chaum-Pedersen proof that (G, A=aG, B=bG, K=(a*b)*G) is a DH tuple

Functions§

check_public_shares
Check that the PolyCommitment is properly signed and has the correct degree polynomial
validate_key_id
Check that the passed key_id is valid
validate_signer_id
Check that the passed signer_id is valid

Type Aliases§

MerkleRoot
A merkle root is a 256 bit hash