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.