keep-starknet-strange / shinigami

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

[feat] Implement OP_IFDUP opcode #57

Closed b-j-roberts closed 2 months ago

b-j-roberts commented 2 months ago

Implement the OP_IFDUP opcode using the opcodeIfDup reference implementation from btcd

References

Guide on how to add an opcode in shinigami

EjembiEmmanuel commented 2 months ago

@b-j-roberts I'd love to work on this

onlydustapp[bot] commented 2 months ago

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

varun-doshi commented 2 months ago

I am applying to this issue via OnlyDust platform. Hi @b-j-roberts Can i work on this?

My background and how it can be leveraged

Worked on OP_SWAP and OP_2SWAP for Shinigami Currently lead protocol engineer at Chainrisk Labs

How I plan on tackling this issue

Use peek_bool in dstack to check for valid data at idx=0 if yes, use peek_int to get cloned data and push to top of stack

onlydustapp[bot] commented 2 months ago

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

b-j-roberts commented 2 months ago

@EjembiEmmanuel Awesome, I'll assign this one to you!

@varun-doshi , thanks for the application and interest. I'll try and create another issue for you soon, since you were able to complete OP_SWAP opcodes so quickly! Thank you

varun-doshi commented 2 months ago

@EjembiEmmanuel Awesome, I'll assign this one to you!

@varun-doshi , thanks for the application and interest. I'll try and create another issue for you soon, since you were able to complete OP_SWAP opcodes so quickly! Thank you

Looking forward to the next issue