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.
Given a 33-byte compressed or 65-byte uncompressed public key, encode a P2PK locking bytecode:
OP_PUSHBYTES_33 publicKey OP_CHECKSIGorOP_PUSHBYTES_65 publicKey OP_CHECKSIG.This method does not validate
publicKeyin any way; inputs of incorrect lengths will produce incorrect results.