keep-starknet-strange / shinigami

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

[feat] Implement OP_1NEGATE opcode #3

Closed b-j-roberts closed 2 months ago

b-j-roberts commented 2 months ago

Implement the OP_1NEGATE opcode using the opcode1Negate reference implementation from btcd

References

Guide on how to add an opcode in shinigami

mubarak23 commented 2 months ago

@b-j-roberts kindly assign this issue to me

onlydustapp[bot] commented 2 months ago

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

mubarak23 commented 2 months ago

@b-j-roberts am getting the following error String literals can only include ASCII characters. on this

let expected_stack = array!["\x81"];

\x81 is a hexadecimal representation of a character with the code 129, which is not an ASCII character.