Function encodeLockingBytecodeP2sh20

  • Given the 20-byte hash160 of a P2SH20 redeem bytecode, encode a P2SH20 locking bytecode: OP_HASH160 OP_PUSHBYTES_20 redeemBytecodeHash OP_EQUAL.

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

    Parameters

    • p2sh20Hash: Uint8Array

      the 20-byte, p2sh20 redeem bytecode hash

    Returns Uint8Array

Generated using TypeDoc