Function encodeLockingBytecodeP2sh32

  • Given the 32-byte hash256 of a P2SH32 redeem bytecode, encode a P2SH32 locking bytecode: OP_HASH256 OP_PUSHBYTES_32 redeemBytecodeHash OP_EQUAL.

    This method does not validate p2sh32Hash in any way; inputs of incorrect lengths will produce incorrect results.

    Parameters

    • p2sh32Hash: Uint8Array

      the 32-byte, p2sh32 redeem bytecode hash

    Returns Uint8Array

Generated using TypeDoc