Type Definition did_key::X25519KeyPair
source · pub type X25519KeyPair = AsymmetricKey<PublicKey, StaticSecret>;
Trait Implementations§
source§impl CoreSign for X25519KeyPair
impl CoreSign for X25519KeyPair
source§impl DIDCore for X25519KeyPair
impl DIDCore for X25519KeyPair
fn get_verification_methods(
&self,
config: Config,
controller: &str
) -> Vec<VerificationMethod>
fn get_did_document(&self, config: Config) -> Document
source§impl ECDH for X25519KeyPair
impl ECDH for X25519KeyPair
source§impl Fingerprint for X25519KeyPair
impl Fingerprint for X25519KeyPair
fn fingerprint(&self) -> String
source§impl From<AsymmetricKey<PublicKey, SecretKey>> for X25519KeyPair
impl From<AsymmetricKey<PublicKey, SecretKey>> for X25519KeyPair
source§fn from(key: Ed25519KeyPair) -> Self
fn from(key: Ed25519KeyPair) -> Self
Converts to this type from the input type.
source§impl Generate for X25519KeyPair
impl Generate for X25519KeyPair
source§fn new_with_seed(seed: &[u8]) -> Self
fn new_with_seed(seed: &[u8]) -> Self
Generate key deterministically using a given seed
source§fn from_public_key(public_key: &[u8]) -> Self
fn from_public_key(public_key: &[u8]) -> Self
Generate instance from existing public key
source§fn from_secret_key(secret_key: &[u8]) -> Self
fn from_secret_key(secret_key: &[u8]) -> Self
Generate instance from existing secret key
source§impl KeyMaterial for X25519KeyPair
impl KeyMaterial for X25519KeyPair
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