Type Definition did_key::P256KeyPair
source · pub type P256KeyPair = AsymmetricKey<VerifyingKey, SigningKey>;Trait Implementations
sourceimpl CoreSign for P256KeyPair
impl CoreSign for P256KeyPair
sourceimpl DIDCore for P256KeyPair
impl DIDCore for P256KeyPair
fn get_verification_methods(
&self,
config: Config,
controller: &str
) -> Vec<VerificationMethod>
fn get_did_document(&self, config: Config) -> Document
sourceimpl Debug for P256KeyPair
impl Debug for P256KeyPair
sourceimpl ECDH for P256KeyPair
impl ECDH for P256KeyPair
sourcefn key_exchange(&self, _: &Self) -> Vec<u8>
fn key_exchange(&self, _: &Self) -> Vec<u8>
Perform key exchange operation
sourceimpl Fingerprint for P256KeyPair
impl Fingerprint for P256KeyPair
fn fingerprint(&self) -> String
sourceimpl Generate for P256KeyPair
impl Generate for P256KeyPair
sourcefn new_with_seed(seed: &[u8]) -> Self
fn new_with_seed(seed: &[u8]) -> Self
Generate key deterministically using a given seed
sourcefn from_public_key(public_key: &[u8]) -> Self
fn from_public_key(public_key: &[u8]) -> Self
Generate instance from existing public key
sourcefn from_secret_key(secret_key_bytes: &[u8]) -> Self
fn from_secret_key(secret_key_bytes: &[u8]) -> Self
Generate instance from existing secret key
sourceimpl KeyMaterial for P256KeyPair
impl KeyMaterial for P256KeyPair
sourcefn public_key_bytes(&self) -> Vec<u8>
fn public_key_bytes(&self) -> Vec<u8>
Returns the public key bytes as slice
sourcefn private_key_bytes(&self) -> Vec<u8>
fn private_key_bytes(&self) -> Vec<u8>
Returns the secret key bytes as slice