codius-deprecated / example-bitcoin

Example contract showing how to use bitcoinjs in Codius.
ISC License
6 stars 5 forks source link

Invalid Bitcoin Transaction. Error: Trying to read beyond buffer length #3

Open yuzhangiot opened 10 years ago

yuzhangiot commented 10 years ago

Hi, I have tried many transaction IDs and the result is like this "Invalid Bitcoin Transaction. Error: Trying to read beyond buffer length", what did I miss? Thank you for your help.

Ossip commented 10 years ago

I got same error, and found out that in my tests no data is being read in the contract - 'data' in input.getAsync() is always empty...

Plus after hard coding a transaction I got a next error "Error signing bitcoin transaction: Error: Digest method not supported: rmd160"

(I was testing on OS X)

emschwartz commented 10 years ago

Hi all,

I am very sorry for the delay in responding. We've been working on replacing the sandbox used by these examples with the production sandbox that utilizes Native Client. I'll take a look to see if I can fix this error you've run into but most likely this will be solved when we switch to the real sandbox.

In the meantime, if there are any C++ developers interested in helping us get Node.js working inside Native Client, please get in touch! You can follow our progress on the https://github.com/codius/codius-lang-js repo.

Evan