isValidOutput function

bool isValidOutput(
  1. Uint8List data
)

Implementation

bool isValidOutput(Uint8List data) {
  return data.length == 25 && data[0] == OPS['OP_DUP'] && data[1] == OPS['OP_HASH160'] && data[2] == 0x14 && data[23] == OPS['OP_EQUALVERIFY'] && data[24] == OPS['OP_CHECKSIG'];
}