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
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