bitcoin

Pay to public key hash (aka P2PKH), is the most popular type of script, it’s the evolution of pay to public key (aka P2PK), this evolution was necessary to increase the security of transactions, by masking the public key of the receiver with a hash. We explained here the basics about input and output, in this article we’ll go deeper in the subject with P2PKH as an example Ok to make it clear let’s suppose I’m Alice, and I want to send Bitcoins to bob, how do I do it? Do I have to use P2PKH? No! you don’t HAVE TO, you CAN, and maybe you SHOULD, but you don’t HAVE TO Then why SHOULD I? Let’s go a little[…]

bitcoin

The script is the power of bitcoin, it allows the sender to decide who can redeem a transaction, how, and when How? A series of commands are provided by the protocol, together with some of the commands of a generic programming language make this manipulation possible which commands are available? Let’s talk a bit more about the programming language, and what it means for a language to be like Forth or more generally stack-based Unlike a language like C or JavaScript, a stack-based language require the parameters of an operation to be defined before the operand Ehm.. ok, can you give an example? Let’s start with the most basic operation:1 + 1, in a standard programming language this operation is[…]