Skip to main content

KeyManager

Trait KeyManager 

Source
pub trait KeyManager: Send + Sync {
    // Required methods
    fn scheme(&self) -> SignatureScheme;
    fn commitment(&self) -> Word;
    fn commitment_hex(&self) -> String;
    fn public_key_hex(&self) -> String;
    fn sign_word_hex(&self, message: Word) -> String;
}
Expand description

Signing boundary for GUARDIAN authentication and multisig proposal workflows.

Required Methods§

Source

fn scheme(&self) -> SignatureScheme

Returns the signer’s signature scheme.

Source

fn commitment(&self) -> Word

Returns the signer’s commitment as a Word.

Source

fn commitment_hex(&self) -> String

Returns the signer’s commitment as a hex string with 0x prefix.

Source

fn public_key_hex(&self) -> String

Returns the signer’s public key as a hex string with 0x prefix.

Source

fn sign_word_hex(&self, message: Word) -> String

Signs the provided word and returns the hex-encoded signature.

Dyn Compatibility§

This trait is dyn compatible.

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

Implementors§