[][src]Function indyrs::crypto::verify

pub fn verify(
    signer_vk: &str,
    message: &[u8],
    signature: &[u8]
) -> Box<dyn Future<Item = bool, Error = IndyError>>

Verify a signature with a verkey

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 that was signed
  • signature - the signature to verify

Returns

true if signature is valid, false otherwise