btcrelay icon indicating copy to clipboard operation
btcrelay copied to clipboard

Solidity library that parses a Bitcoin transaction

Open ethers opened this issue 9 years ago • 1 comments
trafficstars

For those that are interested, a Solidity library that parses a Bitcoin transaction would be a great compliment to BTC Relay. The first version could parse a "standard" Bitcoin transaction that just has 1 input and 1 output, like the following in Serpent: https://github.com/ethereum/btcrelay/blob/master/example-btc-eth/btcSpecialTx.se

A more general, but outdated (since it accepts input as hex string instead of bytes) example is: https://github.com/ethereum/btcrelay/blob/master/example-btc-eth/btcTx.se

ethers avatar May 03 '16 12:05 ethers

Thanks to @rainbeam https://github.com/rainbeam/solidity-btc-parser

ethers avatar May 10 '16 23:05 ethers