Function sp_io::crypto::ecdsa_generate[][src]

pub fn ecdsa_generate(id: KeyTypeId, seed: Option<Vec<u8>>) -> Public

Generate an ecdsa key for the given key type using an optional seed and store it in the keystore.

The seed needs to be a valid utf8.

Returns the public key.