pub struct MultiSigWires {
pub message: [Wire; 4],
pub epoch: Wire,
pub signers: Vec<SignerWires>,
}Expand description
The wires an aggregate verification occupies.
The message, the epoch and every signer’s public key are public inputs; the signatures are private witnesses.
Fields§
§message: [Wire; 4]§epoch: Wire§signers: Vec<SignerWires>Implementations§
Source§impl MultiSigWires
impl MultiSigWires
Sourcepub fn new(builder: &CircuitBuilder, num_signers: usize) -> Self
pub fn new(builder: &CircuitBuilder, num_signers: usize) -> Self
Allocates the wires for num_signers signers.
Sourcepub fn populate(
&self,
w: &mut WitnessFiller<'_>,
message: &Message,
epoch: u32,
signatures: &[(XmssPublicKey, XmssSignature)],
)
pub fn populate( &self, w: &mut WitnessFiller<'_>, message: &Message, epoch: u32, signatures: &[(XmssPublicKey, XmssSignature)], )
Populates every wire from a message, an epoch and one key-and-signature pair per signer.
§Panics
If the number of pairs is not the number of signers the wires were allocated for.
Trait Implementations§
Source§impl Clone for MultiSigWires
impl Clone for MultiSigWires
Source§fn clone(&self) -> MultiSigWires
fn clone(&self) -> MultiSigWires
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for MultiSigWires
impl RefUnwindSafe for MultiSigWires
impl Send for MultiSigWires
impl Sync for MultiSigWires
impl Unpin for MultiSigWires
impl UnsafeUnpin for MultiSigWires
impl UnwindSafe for MultiSigWires
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more