isValid static method

bool isValid(
  1. Uint8List secret,
  2. Uint8List address, [
  3. RandomGenerator random = randomBytes
])

Validates a WOTS address using a Random generator

Implementation

static bool isValid(Uint8List secret, Uint8List address,
    [RandomGenerator random = randomBytes]) {
  final pk = Uint8List(WOTSSIGBYTES);
  final pubSeed = Uint8List(PARAMSN);
  final rnd2 = Uint8List(PARAMSN);

  splitAddress(address, pk, pubSeed, rnd2, null);
  return isValidWithComponents(secret, pk, pubSeed, rnd2, random);
}