![]() ![]() De facto, Bitcoin script is defined by the code run by the network to check the validity of blocks. This document is for information purposes only. The party wanting to spend them must provide the input(s) to the previously recorded script that results in the combined script completing execution with a true value on the top of the stack. The party that originally sent the Bitcoins now being spent dictates the script operations that will occur last in order to release them for use in another transaction. For example, the scripting system could be used to require two private keys, or a combination of several keys, or even no keys at all.Ī transaction is valid if nothing in the combined script triggers failure and the top stack item is True (non-zero) when the script exits. Scripting provides the flexibility to change the parameters of what's needed to spend transferred Bitcoins. a signature to prove ownership of the private key corresponding to the public key just provided.a public key that, when hashed, yields destination address D embedded in the script, and.The script for a typical Bitcoin transfer to destination Bitcoin address D simply encumbers future spending of the bitcoins with two things: the spender must provide ![]() It is intentionally not Turing-complete, with no loops.Ī script is essentially a list of instructions recorded with each transaction that describe how the next person wanting to spend the Bitcoins being transferred can gain access to them. Forth-like, Script is simple, stack-based, and processed from left to right. Bitcoin uses a scripting system for transactions.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |