tapLeafHash method

Uint8List? tapLeafHash(
  1. TapLeafScript? tapLeaf
)

Implementation

Uint8List? tapLeafHash(TapLeafScript? tapLeaf) {
  if (tapLeaf == null) return null;

  return Uint8List.fromList(bscript.taggedHash('TapLeaf',
      [tapLeaf.version] + [tapLeaf.script.length] + tapLeaf.script));
}