keep-starknet-strange / shinigami

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

[feat] Implement OP_DUP, OP_2DUP, and OP_3DUP opcodes #68

Closed b-j-roberts closed 2 months ago

b-j-roberts commented 2 months ago

Implement the OP_DUP, OP_2DUP, and OP_3DUP opcodes using the opcodeDup, opcode2Dup, and opcode3Dup reference implementation from btcd

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

References

Guide on how to add an opcode in shinigami

Gift-Naomi commented 2 months ago

Can I work on this?

onlydustapp[bot] commented 2 months ago

Hey @Gift-Naomi! Thanks for showing interest. We've created an application for you to contribute to shinigami. Go check it out on OnlyDust!

Xavek commented 2 months ago

@b-j-roberts Looks like @Gift-Naomi has demonstrated interest in issue #66 too. Therefore, can I take this?

b-j-roberts commented 2 months ago

@Xavek yes, I'll assign this to you and the other for @Gift-Naomi. This one is more complex too, so might be better for you since you have contributed already. Thank you!