So from R, you can verify you have the correct K value, and if you have the correct K value, then you can get the correct X value, which is the hex of the private key of the address in the transaction input. Note that the redeemed output scripts and the output script of this transaction are all identical in this case. That is not usually so. An input refers to one of the outputs from another transaction, and contains a script which proofs that this transaction is allowed to redeem that output.
An output consists of a BTC value, and a script which will be used to validate the proof presented in the input script at the time this output will be redeemed. When an output is redeemed, the input and output scripts are concatenated, and evaluated by the bitcoin client. In the output script, first it is verified that the addresshash which is the bitcoin address in binary format corresponds to the public key from the input.
We just need to find z1 and z2! These are the hashes of the outputs to be signed. It's the hash of these bytes that is actually signed, which are z1 and z2. Sign up to join this community. The best answers are voted up and rise to the top. Stack Overflow for Teams — Start collaborating and sharing organizational knowledge. Create a free Team Why Teams?
Learn more. Asked 7 years, 10 months ago. Modified 1 year, 3 months ago. Viewed 23k times. Improve this question. Mine Mine 1, 2 2 gold badges 14 14 silver badges 26 26 bronze badges. Add a comment. Sorted by: Reset to default. Highest score default Date modified newest first Date created oldest first. The Z values for the above example can be found on this page.
You can find the R, S, and Z values for all bitcoin transactions on this site. And here is some sample C code. Linq; using Org. Multiply K. Subtract Z. Multiply X. ModInverse N. Mod N ; Console. Concat verifyR. Add X. Multiply R. Concat verifyS. Subtract X. Concat verifyZ.
Concat verifyX. Multiply S. Concat verifyK. ToString "X2" ; Console. Range 0, hex. ToByte hex. Substring x, 2 , Improve this answer. Community Bot 1. Sean Bradley Sean Bradley 4 4 silver badges 5 5 bronze badges. Thank you, but all I seek is making sense of how to get Z, the hash. The rest of the algorithm I get. I just don't understand how to get "Z". That's it. Problem is, most answers are exceedingly complex. It allows wallet owners to reverse a transaction within approximately 24 hours of a regular BTCV transfer.
This key is necessary to perform Fast transactions. It can be used to execute a transfer in about 10 minutes, after one block is generated, allowing BTCV users to make quick transactions with trusted parties. The total supply of Bitcoin Vault is limited by its software and will never exceed 21,, coins. As compensation for spending their computational resources, the miners receive rewards for every block that they successfully add to the blockchain.
Self Reported Circulating Supply. Buy Exchange Gaming Earn Crypto. Algorithm PoW. Others Mineable. RUB Russian Ruble. What Makes Bitcoin Vault Unique? Here are some other articles that you may be interested in: What Is a Crypto Faucet?
What Are Privacy Coins? What Is Tokenomics? What Is Wrapped Bitcoin? What Is Polygon?