Struct schnorrkel::PreparedBatch
source · pub struct PreparedBatch { /* private fields */ }
Expand description
Half-aggregated aka prepared batch signature
Implementation of “Non-interactive half-aggregation of EdDSA and variantsof Schnorr signatures” by Konstantinos Chalkias, François Garillot, Yashvanth Kondi, and Valeria Nikolaenko available from https://eprint.iacr.org/2021/350.pdf
Implementations§
source§impl PreparedBatch
impl PreparedBatch
sourcepub fn new<T, I, R>(
transcripts: I,
signatures: &[Signature],
public_keys: &[PublicKey],
) -> PreparedBatchwhere
T: SigningTranscript,
I: IntoIterator<Item = T>,
pub fn new<T, I, R>(
transcripts: I,
signatures: &[Signature],
public_keys: &[PublicKey],
) -> PreparedBatchwhere
T: SigningTranscript,
I: IntoIterator<Item = T>,
Create a half-aggregated aka prepared batch signature from many other signatures.
sourcepub fn verify<T, I>(
&self,
transcripts: I,
public_keys: &[PublicKey],
deduplicate_public_keys: bool,
) -> SignatureResult<()>where
T: SigningTranscript,
I: IntoIterator<Item = T>,
pub fn verify<T, I>(
&self,
transcripts: I,
public_keys: &[PublicKey],
deduplicate_public_keys: bool,
) -> SignatureResult<()>where
T: SigningTranscript,
I: IntoIterator<Item = T>,
Verify a half-aggregated aka prepared batch signature
sourcepub fn read_bytes(&self, bytes: &[u8]) -> SignatureResult<PreparedBatch>
pub fn read_bytes(&self, bytes: &[u8]) -> SignatureResult<PreparedBatch>
Reads a PreparedBatch
from a correctly sized buffer
sourcepub fn write_bytes(&self, bytes: &mut [u8])
pub fn write_bytes(&self, bytes: &mut [u8])
Serializes into exactly sized buffer
Auto Trait Implementations§
impl Freeze for PreparedBatch
impl RefUnwindSafe for PreparedBatch
impl Send for PreparedBatch
impl Sync for PreparedBatch
impl Unpin for PreparedBatch
impl UnwindSafe for PreparedBatch
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