verify method

bool verify(
  1. ByteData data,
  2. Signature sig
)

Implementation

bool verify(ByteData data, Signature sig) {
  final nativeData = ByteSlice.fromBytes(data);
  try {
    return DartApi.native.publicKey
            .verify(_ffi, nativeData.addressOf, sig._ffi) !=
        0;
  } finally {
    nativeData.dispose();
  }
}