keep-starknet-strange / shinigami

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

[feat] Implement OP_SWAP & OP_2SWAP opcodes #54

Closed varun-doshi closed 2 months ago

varun-doshi commented 2 months ago

Would like to work on OP_SWAP opcode. Apologies for not waiting for an official issue to be raised for it.

b-j-roberts commented 2 months ago

No worries, sure. I can assign you to this. I'll add info soon

b-j-roberts commented 2 months ago

@varun-doshi

Implement the OP_SWAP & OP_2SWAP opcodess using the opcodeSwap and opcode2Swap reference implementation from btcd

This will include implementing a version of SwapN from btcd on the Shinigami stack object.

References

Guide on how to add an opcode in shinigami

varun-doshi commented 2 months ago

Got it Thank you