verifySignatureAsync method

Future<bool> verifySignatureAsync({
  1. Object? aptosConfig,
  2. required HexInput message,
  3. required Signature signature,
  4. Object? options,
})

Verify the given message and signature with the public key. It fetches any on-chain state if needed for verification.

Implementation

// TODO: type [aptosConfig] as AptosConfig once the api module is available.
Future<bool> verifySignatureAsync({
  Object? aptosConfig,
  required HexInput message,
  required Signature signature,
  Object? options,
}) async {
  return publicKey.verifySignatureAsync(
    aptosConfig: aptosConfig,
    message: message,
    signature: signature,
    options: options,
  );
}