Function did_key::from_existing_key [−][src]
pub fn from_existing_key<T: Generate + Ecdsa + Ecdh + DIDCore + Fingerprint + Into<KeyPair>>(
public_key: &[u8],
private_key: Option<&[u8]>
) -> KeyPair
Generate key pair from existing key material