Mastering Bitcoin

PDF Publication Title:

Mastering Bitcoin ( mastering-bitcoin )

Previous Page View | Next Page View | Return to Search List

Text from PDF Page: 155

D74DCCA01CDCA79DCC5C395D7EEC6984D83F1F50C900A24DD47F569FD\ 4193AF5DE762C58704A2192968D8655D6A935BEAF2CA23E3FB87A3495\ E7AF308EDF08DAC3C1FCBFC2C75B4B0F4D0B1B70CD2423657738C0C2B\ 1D5CE65C97D78D0E34224858008E8B49047E63248B75DB7379BE9CDA8\ CE5751D16485F431E46117B9D0C1837C9D5737812F393DA7D4420D7E1\ A9162F0279CFC10F1E8E8F3020DECDBC3C0DD389D99779650421D65CB\ D7149B255382ED7F78E946580657EE6FDA162A187543A9D85BAAA93A4\ AB3A8F044DADA618D087227440645ABE8A35DA8C5B73997AD343BE5C2\ AFD94A5043752580AFA1ECED3C68D446BCAB69AC0BA7DF50D56231BE0\ AABF1FDEEC78A6A45E394BA29A1EDF518C022DD618DA774D207D137AA\ B59E0B000EB7ED238F4D800 5 OP_CHECKMULTISIG The entire script above can instead be represented by a 20-byte cryptographic hash, by first applying the SHA256 hashing algorithm and then applying the RIPEMD160 algo‐ rithm on the result. The 20-byte hash of the above script is: 54c557e07dde5bb6cb791c7a540e0a4796f5e97e A P2SH transaction locks the output to this hash instead of the longer script, using the locking script: OP_HASH160 54c557e07dde5bb6cb791c7a540e0a4796f5e97e OP_EQUAL which, as you can see is much shorter. Instead of “pay to this 5-key multi-signature script”, the P2SH equivalent transaction is “pay to a script with this hash”. A customer making a payment to Mohammed’s company need only include this much shorter lock‐ ing script in their payment. When Mohammed wants to spend this UTXO, they must present the original redeem script (the one whose hash locked the UTXO) and the signatures necessary to unlock it, like this: <2 PK1 PK2 PK3 PK4 PK5 5 OP_CHECKMULTISIG> The two scripts are combined in two stages. First, the redeem script is checked against the locking script to make sure the hash matches: <2 PK1 PK2 PK3 PK4 PK5 5 OP_CHECKMULTISIG> OP_HASH160 OP_EQUAL If the redeem script hash matches, then the unlocking script is executed on its own, to unlock the redeem script: 2 PK1 PK2 PK3 PK4 PK5 5 OP_CHECKMULTISIG Pay-to-Script-Hash Addresses Another important part of the P2SH feature is the ability to encode a script hash as an address, as defined in BIP0013. P2SH addresses are Base58Check encodings of the 20- byte hash of a script, just like bitcoin addresses are Base58Check encodings of the 20- byte hash of a public key. P2SH addresses use the version prefix “5”, which results in Base58Check encoded addresses that start with a “3”. For example, Mohammed’s com‐ plex script, hashed and Base58Check encoded as P2SH address becomes 39RF6JqABiH dYHkfChV6USGMe6Nsr66Gzw. Now, Mohammed can give this “address” to his customers 136 | Chapter 5: Transactions

PDF Image | Mastering Bitcoin

PDF Search Title:

Mastering Bitcoin

Original File Name Searched:

05db7df4f31840f0a873d6ea14dcc28d.pdf

DIY PDF Search: Google It | Yahoo | Bing

NFT (Non Fungible Token): Buy our tech, design, development or system NFT and become part of our tech NFT network... More Info

IT XR Project Redstone NFT Available for Sale: NFT for high tech turbine design with one part 3D printed counter-rotating energy turbine. Be part of the future with this NFT. Can be bought and sold but only one design NFT exists. Royalties go to the developer (Infinity) to keep enhancing design and applications... More Info

Infinity Turbine IT XR Project Redstone Design: NFT for sale... NFT for high tech turbine design with one part 3D printed counter-rotating energy turbine. Includes all rights to this turbine design, including license for Fluid Handling Block I and II for the turbine assembly and housing. The NFT includes the blueprints (cad/cam), revenue streams, and all future development of the IT XR Project Redstone... More Info

Infinity Turbine ROT Radial Outflow Turbine 24 Design and Worldwide Rights: NFT for sale... NFT for the ROT 24 energy turbine. Be part of the future with this NFT. This design can be bought and sold but only one design NFT exists. You may manufacture the unit, or get the revenues from its sale from Infinity Turbine. Royalties go to the developer (Infinity) to keep enhancing design and applications... More Info

Infinity Supercritical CO2 10 Liter Extractor Design and Worldwide Rights: The Infinity Supercritical 10L CO2 extractor is for botanical oil extraction, which is rich in terpenes and can produce shelf ready full spectrum oil. With over 5 years of development, this industry leader mature extractor machine has been sold since 2015 and is part of many profitable businesses. The process can also be used for electrowinning, e-waste recycling, and lithium battery recycling, gold mining electronic wastes, precious metals. CO2 can also be used in a reverse fuel cell with nafion to make a gas-to-liquids fuel, such as methanol, ethanol and butanol or ethylene. Supercritical CO2 has also been used for treating nafion to make it more effective catalyst. This NFT is for the purchase of worldwide rights which includes the design. More Info

NFT (Non Fungible Token): Buy our tech, design, development or system NFT and become part of our tech NFT network... More Info

Infinity Turbine Products: Special for this month, any plans are $10,000 for complete Cad/Cam blueprints. License is for one build. Try before you buy a production license. May pay by Bitcoin or other Crypto. Products Page... More Info

CONTACT TEL: 608-238-6001 Email: greg@infinityturbine.com (Standard Web Page)