Function indyrs::crypto::sign

source ·
pub fn sign(
    wallet_handle: IndyHandle,
    signer_vk: &str,
    message: &[u8]
) -> Box<dyn Future<Item = Vec<u8>, Error = ErrorCode>>
Expand description

Signs a message with a key

Arguments

  • wallet_handle - wallet handle (created by Wallet::open)
  • signer_vk - key id or verkey of my key. The key must be created by calling create_key or Did::new
  • message - the data to be signed

Returns

the signature