Type Definition did_key::P256KeyPair
source · pub type P256KeyPair = AsymmetricKey<VerifyingKey, SigningKey>;
Trait Implementations§
source§impl CoreSign for P256KeyPair
impl CoreSign for P256KeyPair
source§impl 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
source§impl Debug for P256KeyPair
impl Debug for P256KeyPair
source§impl ECDH for P256KeyPair
impl ECDH for P256KeyPair
source§impl Fingerprint for P256KeyPair
impl Fingerprint for P256KeyPair
fn fingerprint(&self) -> String
source§impl Generate for P256KeyPair
impl Generate for P256KeyPair
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_bytes: &[u8]) -> Self
fn from_secret_key(secret_key_bytes: &[u8]) -> Self
Generate instance from existing secret key
source§impl KeyMaterial for P256KeyPair
impl KeyMaterial for P256KeyPair
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