Struct dryoc::sign::IncrementalSigner
source · pub struct IncrementalSigner { /* private fields */ }
Expand description
Multi-part (incremental) interface for SigningKeyPair
.
Implementations§
source§impl IncrementalSigner
impl IncrementalSigner
sourcepub fn update<Message: Bytes>(&mut self, message: &Message)
pub fn update<Message: Bytes>(&mut self, message: &Message)
Updates the state for this incremental signer with message
.
sourcepub fn finalize<Signature: NewByteArray<CRYPTO_SIGN_BYTES>, SecretKey: ByteArray<CRYPTO_SIGN_SECRETKEYBYTES>>(
self,
secret_key: &SecretKey
) -> Result<Signature, Error>
pub fn finalize<Signature: NewByteArray<CRYPTO_SIGN_BYTES>, SecretKey: ByteArray<CRYPTO_SIGN_SECRETKEYBYTES>>( self, secret_key: &SecretKey ) -> Result<Signature, Error>
Finalizes this incremental signer, returning the signature upon success.
sourcepub fn verify<Signature: ByteArray<CRYPTO_SIGN_BYTES>, PublicKey: ByteArray<CRYPTO_SIGN_PUBLICKEYBYTES>>(
self,
signature: &Signature,
public_key: &PublicKey
) -> Result<(), Error>
pub fn verify<Signature: ByteArray<CRYPTO_SIGN_BYTES>, PublicKey: ByteArray<CRYPTO_SIGN_PUBLICKEYBYTES>>( self, signature: &Signature, public_key: &PublicKey ) -> Result<(), Error>
Verifies signature
as a valid signature for this signer.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for IncrementalSigner
impl RefUnwindSafe for IncrementalSigner
impl Send for IncrementalSigner
impl Sync for IncrementalSigner
impl Unpin for IncrementalSigner
impl UnwindSafe for IncrementalSigner
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