solidity-btc-parser
solidity-btc-parser copied to clipboard
Solidity library to parse raw Bitcoin transaction bytes
Due to some Hash160 so-called collisions we cant use `checkValueSent` function. For example, we can have two BTC addresses that both have the same Hash 160, for instance: https://blockchain.info/ru/address/17AXqoGmJ71Noc2hZvDnP1wGPZTVykXsPd https://blockchain.info/ru/address/37rYmLmCr1Kktmj8h1tNoeJCY5kDaGHpjp...
- `checkValueSent(tx, address, value)` - `getValueSent(tx, address)` (summing over outputs?) - `checkValueSentFrom(tx, address, value)` - `getValueSentFrom(tx, address)`
pending merge of https://github.com/ethereum/solidity/pull/832
https://bitcoincore.org/en/segwit_wallet_dev/
https://github.com/ethereum/wiki/wiki/Ethereum-Natural-Specification-Format