Skip to main content

WitnessKeyResolver

Trait WitnessKeyResolver 

Source
pub trait WitnessKeyResolver: Send + Sync {
    // Required method
    fn get_public_key(&self, witness_did: &str) -> Option<Vec<u8>>;
}
Expand description

Witness public key resolver.

Implementations provide public keys for witnesses by their DID.

Required Methods§

Source

fn get_public_key(&self, witness_did: &str) -> Option<Vec<u8>>

Get the Ed25519 public key (32 bytes) for a witness DID.

Implementors§