Function encodeLockingBytecodeP2pk

  • Given a 33-byte compressed or 65-byte uncompressed public key, encode a P2PK locking bytecode: OP_PUSHBYTES_33 publicKey OP_CHECKSIG or OP_PUSHBYTES_65 publicKey OP_CHECKSIG.

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

    Parameters

    • publicKey: Uint8Array

      the 33-byte or 65-byte public key

    Returns Uint8Array

Generated using TypeDoc