[−][src]Trait nubls::ThresholdSignature
A trait that describes a signature from a threshold signing protocol. Given a threshold set of signature fragments, a full signature can be assembled and verified by its corresponding threshold key.
Required methods
fn assemble(fragments: &[Self]) -> Self
The assemble
function assembles a signature given a Vec
containing a
threshold amount of signatures.
The fully-assembled signature can be verified by its corresponding
threshold key.
fn is_fragment(&self) -> bool
The is_fragment
method returns a bool
when the PrivateKey
is
used for a threshold computation.
Implementors
impl ThresholdSignature for Signature
[src]
Implements Threshold BLS signatures on Signature
.
We use Shamir's Secret Sharing scheme to share n
fragments of a PrivateKey
where m
fragments are needed to recover it.
For BLS threshold signatures, this translates to needing m
signatures of
identical data to assemble the final Signature
.
fn assemble(fragments: &[Signature]) -> Signature
[src]
Assembles a Signature
from collected signature fragments
.
Note: The data signed by each of the fragment signatures must be identical,
or else the assembled Signature
will be invalid.
This calculates the final signature by using Lagrange basis polynomials.
fn is_fragment(&self) -> bool
[src]
Returns whether or not this is a fragment of a threshold signature.