Skip to main content

IdentitySigner

Trait IdentitySigner 

Source
pub trait IdentitySigner {
    // Required methods
    fn encryption_public_key(&self) -> IdentityEncryptionPublicKey;
    fn signing_public_key(&self) -> IdentitySigningPublicKey;
    fn sign(&self, message: &[u8]) -> Ed25519Signature;

    // Provided methods
    fn identity_hash(&self) -> IdentityHash { ... }
    fn public_key_bytes(&self) -> [u8; 64] { ... }
}
Expand description

Deliberately the operation surface, not the secret one. No accessor for either private key.

Required Methods§

Provided Methods§

Source

fn identity_hash(&self) -> IdentityHash

Source

fn public_key_bytes(&self) -> [u8; 64]

The wire form RNS calls Identity.get_public_key(): encryption key ‖ signing key.

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§