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§
Sourcefn scheme(&self) -> SignatureScheme
fn scheme(&self) -> SignatureScheme
Returns the signer’s signature scheme.
Sourcefn commitment(&self) -> Word
fn commitment(&self) -> Word
Returns the signer’s commitment as a Word.
Sourcefn commitment_hex(&self) -> String
fn commitment_hex(&self) -> String
Returns the signer’s commitment as a hex string with 0x prefix.
Sourcefn public_key_hex(&self) -> String
fn public_key_hex(&self) -> String
Returns the signer’s public key as a hex string with 0x prefix.
Sourcefn sign_word_hex(&self, message: Word) -> String
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".