verify method

bool verify({
  1. required List<int> digest,
  2. required List<int> signature,
})

Verifies the given signature against the digest using this public key.

Returns true if the verification succeeds, false otherwise.

Implementation

bool verify({required List<int> digest, required List<int> signature}) {
  final verifier = CardanoVerifier.fromKeyBytes(toBytes());
  return verifier.verify(digest, signature);
}