Skip to main content

Signer

Trait Signer 

Source
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§

Source

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".

Implementors§