[−][src]Function indyrs::crypto::create_key
pub fn create_key(
wallet_handle: WalletHandle,
my_key_json: Option<&str>
) -> Box<dyn Future<Item = String, Error = IndyError>>
Creates key pair in wallet
Arguments
wallet_handle
- wallet handle (created by Wallet::open)my_key_json
- Optional key information as json. If none then defaults are used.
Example
my_key_json { "seed": string, (optional) Seed that allows deterministic key creation (if not set random one will be created). Can be UTF-8, base64 or hex string. "crypto_type": string, // Optional (if not set then ed25519 curve is used); Currently only 'ed25519' value is supported for this field. }
Returns
verkey of generated key pair, also used as key identifier