OP_CHECKSIG extracts a non-stack argument from each signature it evaluates, allowing the signer to decide which parts of the transaction to sign. Since the signature protects those parts of the transaction from modification, this lets signers selectively choose to let other people modify their transactions.
But how can I extract the SIGHASH flags from the signature?
Has anyone experience using the Bitcore API for Escrow purposes with node.js?
I assume, you’d need to create a new a address, then somehow create a new transaction using the newly created address, the probe that address for it’s balance until its fulfilled. I’ve had a look over the docs, but couldn’t find anything. Currently you can run bitcoind on a server and connect to this using RPC, but I’d like to try using Bitcore instead but achieve the same result.
I am following this link, trying to perform SHA-256 on a given public key.
However, I cannot get the expected result.
I am using the sha256 library in python hashlib
The input is
Mine output is
The expected output on bitcoin.it is
Do I miss anything?