Type Definition did_key::Ed25519KeyPair
source · pub type Ed25519KeyPair = AsymmetricKey<PublicKey, SecretKey>;
Implementations§
source§impl Ed25519KeyPair
impl Ed25519KeyPair
pub fn from_seed(seed: &[u8]) -> Self
pub fn from_public_key(public_key: &[u8]) -> Self
pub fn get_x25519(&self) -> X25519KeyPair
Trait Implementations§
source§impl CoreSign for Ed25519KeyPair
impl CoreSign for Ed25519KeyPair
source§impl DIDCore for Ed25519KeyPair
impl DIDCore for Ed25519KeyPair
fn get_verification_methods(
&self,
config: Config,
controller: &str
) -> Vec<VerificationMethod>
fn get_did_document(&self, config: Config) -> Document
source§impl Debug for Ed25519KeyPair
impl Debug for Ed25519KeyPair
source§impl ECDH for Ed25519KeyPair
impl ECDH for Ed25519KeyPair
source§impl Fingerprint for Ed25519KeyPair
impl Fingerprint for Ed25519KeyPair
fn fingerprint(&self) -> String
source§impl Generate for Ed25519KeyPair
impl Generate for Ed25519KeyPair
source§fn new() -> Ed25519KeyPair
fn new() -> Ed25519KeyPair
Generate random key
source§fn new_with_seed(seed: &[u8]) -> Ed25519KeyPair
fn new_with_seed(seed: &[u8]) -> Ed25519KeyPair
Generate key deterministically using a given seed
source§fn from_public_key(public_key: &[u8]) -> Ed25519KeyPair
fn from_public_key(public_key: &[u8]) -> Ed25519KeyPair
Generate instance from existing public key
source§fn from_secret_key(secret_key: &[u8]) -> Ed25519KeyPair
fn from_secret_key(secret_key: &[u8]) -> Ed25519KeyPair
Generate instance from existing secret key
source§impl KeyMaterial for Ed25519KeyPair
impl KeyMaterial for Ed25519KeyPair
source§fn public_key_bytes(&self) -> Vec<u8>
fn public_key_bytes(&self) -> Vec<u8>
Returns the public key bytes as slice
source§fn private_key_bytes(&self) -> Vec<u8>
fn private_key_bytes(&self) -> Vec<u8>
Returns the secret key bytes as slice