Function encodeLockingBytecodeP2pkh

  • Given the 20-byte hash160 of a compressed public key, return a P2PKH locking bytecode: OP_DUP OP_HASH160 OP_PUSHBYTES_20 publicKeyHash OP_EQUALVERIFY OP_CHECKSIG.

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



    • publicKeyHash: Uint8Array

      the 20-byte hash of the compressed public key

    Returns Uint8Array

Generated using TypeDoc