pub fn from_key_pair(key_pair: Ed25519KeyPair) -> Self {
        let der_encoded_public_key = der_encode_public_key(key_pair.public_key().as_ref().to_vec());

        Self {
            key_pair,
            der_encoded_public_key,
        }
    }
/// Create a BasicIdentity from a KeyPair from the ring crate.
Create a BasicIdentity from a KeyPair from the ring crate.
Create a BasicIdentity from a KeyPair from the ring crate .
pub fn from_key_pair(key_pair: Ed25519KeyPair) -> Self {
        let der_encoded_public_key = der_encode_public_key(key_pair.public_key().as_ref().to_vec());
        Self {
            key_pair,
            der_encoded_public_key,
        }
    }
pub fn from_key_pair ( key_pair : Ed25519KeyPair ) -> Self { let der_encoded_public_key = der_encode_public_key ( key_pair . public_key ( ) . as_ref ( ) . to_vec ( ) ) ; Self { key_pair , der_encoded_public_key , } }
Create a BasicIdentity from a KeyPair from the ring crate.
Create a BasicIdentity from a KeyPair from the ring crate .
key_pair
Ed25519KeyPair
key_pair
Ed25519KeyPair