[][src]Function indyrs::anoncreds::prover_create_master_secret

pub fn prover_create_master_secret(
    wallet_handle: WalletHandle,
    master_secret_id: Option<&str>
) -> Box<dyn Future<Item = String, Error = IndyError>>

Creates a master secret with a given id and stores it in the wallet. The id must be unique.

Arguments

  • wallet_handle: wallet handle (created by Wallet::open_wallet).
  • master_secret_id: (optional, if not present random one will be generated) new master id

Returns

  • out_master_secret_id - Id of generated master secret