New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Support Script interpreter #53
Comments
In the works :) Will be a separate package but will leverage all of bsv-wasm |
ceo of testnet approved |
@xhliu You're gonna love this ;) |
Can't wait, CEO/CTO. |
Gents, any update on this? Would love to switch to WASM to speed up. |
Hey @xhliu I'm aiming to have something usable for you in about 2 weeks time. I'll keep you posted |
hello, how to use
but got a error when call
|
I think there is a bug with OP_PICK, I will look into it |
Thanks for the issue, here's a new build for you to try out. |
an other error when call Error when deserialising Script: OP_IF statement requires an OP_ELSE code |
I was under the impression that any OP_IF must have an OP_ELSE followed by an OP_ENDIF, according to the BSV Wiki https://wiki.bitcoinsv.io/index.php/Opcodes_used_in_Bitcoin_Script If this is untrue, I can change this |
i can run this with js bsv. i think |
I'm not 100% certain, but it's worth checking against the Bitcoin SV node interpreter so get it 100% correct |
Alright I've found further documentation about OP_IF, etc. https://wiki.bitcoinsv.io/index.php/Scripts_with_Flow_Control_(Conditional_Clauses) I will fix up the library when I get a chance, thanks for raising this |
@Firaenix any. update |
@Firaenix we would like to use bsv-wasm for powchess.com but we encounter the OP_IF OP_ELSE bug. |
Sorry for the delay all, been very busy with Bitping work. I will have a look at getting it fixed this week |
Hi all, I've pushed a change to the split-modules branch, you can find the build for that branch below. Please let me know how you get on. I still have to do some significant changes before I can get a release out onto npm, but this zip should get you by for now https://github.com/Firaenix/bsv-wasm/raw/split-modules/packages/bsv-wasm/pkg/node.zip |
@Firaenix the types for the new version (from the above linked zip file) have changed. Before I completely change all the function calls in our code I wanted to check if these new function names will persist in the new version. |
Yes they've changed significantly, I expect the new function signatures to be stable for the next release, which is 2.0.0 |
Hey @Firaenix, |
@Firaenix we have tested the new version with our scripts and we don't reproduce the OP_IF OP_ELSE errors anymore. |
I have released this Feature to npm, deno.land and crates.io on Version 2.0.0. https://crates.io/crates/bsv I'm going to close this issue |
to speed up Bitcoin VM.
The text was updated successfully, but these errors were encountered: