|
|
|
|
|
by Theyeard
4325 days ago
|
|
Yes, you're right, numbers treatment is not exactly the same as in Bitcoin Core. The script interpreter supports only basics and it was implemented to show how Bitcoin Script works in general for another article [0]. But it was not clear from this text whether it's a complete implementation or not so it looks like a bug. I've added the annotation [1] and will update the interpreter in the future. Of course if one wanted to use Bitcoin in real projects I'd rather recommend Bitcoin.js [2] but that's another topic. Thanks for comment! [0]: https://curiosity-driven.org/bitcoin-contracts [1]: https://curiosity-driven.org/low-level-bitcoin#operators [2]: http://bitcoinjs.org/ |
|