Ir al contenido principal

Entradas

Mostrando entradas de julio, 2019

What is P2PK, P2PKH, P2SH, P2WPKH - ELI5

What is P2PK, P2PKH, P2SH, P2WPKH - ELI5 This is from this entry from StackExchange, I just copy it for backup. P2PKH: "Pay To Public Key Hash" This is how transactions are made. You are requiring the sender to supply a valid signature (from the private key) and public key. The transaction output script will use the signature and public key and through some cryptographic functions will check if it matches with the public key hash, if it does, then the funds will be spendable. This method conceals your public key in the form of a hash for extra security. P2PK: "Pay To Public Key" This is similar to P2PKH; the difference is that it does not conceal your public key. Anyone using this method to send funds over the P2P network is showing people their public key in the transaction details. P2SH: "Pay To Script Hash" The outputs of a transaction are just scripts that, if are executed with specific parameters, will result in a boolean of true or f