keep-starknet-strange / shinigami

Bitcoin Script VM in Cairo
https://shinigamibtc.dev
MIT License
57 stars 56 forks source link

feat: add disabled opcodes #110

Closed 0xBEEFCAF3 closed 2 months ago

0xBEEFCAF3 commented 2 months ago

The opcodes disabled include OP_CAT, OP_SUBSTR, OP_LEFT, OP_RIGHT, OP_INVERT, OP_AND, OP_OR, OP_XOR, OP_2MUL, OP_2DIV, OP_MUL, OP_DIV, OP_MOD, OP_LSHIFT, OP_RSHIFT.

In the future if we want to re-enable a certain set of opcodes or add new ones we should replace OP_SUCCESS or OP_NOP opcodes if certain flags passed to the interperter.

I opened an issue for the open TODO https://github.com/keep-starknet-strange/shinigami/issues/56 I left the test as ignored but happy to remove it.

vercel[bot] commented 2 months ago

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
shinigami ✅ Ready (Inspect) Visit Preview 💬 Add feedback Aug 4, 2024 2:27pm