pub trait Signer {
// Required method
fn sign(
&self,
updater: &dyn SignatureUpdater,
) -> Result<Vec<u8>, CryptError>;
}Expand description
A trait for signing data with an RSA private key.
Equivalent to Signer interface in Minecraft.
Required Methods§
Sourcefn sign(&self, updater: &dyn SignatureUpdater) -> Result<Vec<u8>, CryptError>
fn sign(&self, updater: &dyn SignatureUpdater) -> Result<Vec<u8>, CryptError>
Signs the data provided by the updater and returns the signature bytes.
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".