Function did_key::generate[][src]

pub fn generate<T: Generate + Ecdsa + Ecdh + DIDCore + Fingerprint + Into<KeyPair>>(
    seed: Option<&[u8]>
) -> KeyPair

Generate new did:key of the specified type