isValidETHSignature method

bool isValidETHSignature(
  1. Uint8List payload,
  2. Uint8List publicKey
)

Implementation

bool isValidETHSignature(
  Uint8List payload,
  Uint8List publicKey,
) {
  payload = keccak256(payload);
  final recoverdPublicKey = recoverPublicKey(payload, this);

  return recoverdPublicKey.toHex == publicKey.toHex;
}