Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How can I disassemble Sierra bytecode? #127

Open
mstrong-tech opened this issue Mar 27, 2023 · 1 comment
Open

How can I disassemble Sierra bytecode? #127

mstrong-tech opened this issue Mar 27, 2023 · 1 comment

Comments

@mstrong-tech
Copy link

Hi,
I'm trying to disassemble the Sierra bytecode for Cairo 1 class but can't find the relevant command.
I can see the -d option but it's for decompiling Sierra files. What I want to try is to disassemble the Sierra bytecode with a local JSON file.
example here:
class: 0x4d7d2ddf396736d7cdba26e178e30e3388d488984a94e03bc4af4841e222920
json: https://external.integration.starknet.io/feeder_gateway/get_class_by_hash?classHash=0x4d7d2ddf396736d7cdba26e178e30e3388d488984a94e03bc4af4841e222920
or
https://external.integration.starknet.io/feeder_gateway/get_compiled_class_by_class_hash?classHash=0x4d7d2ddf396736d7cdba26e178e30e3388d488984a94e03bc4af4841e222920

@pventuzelo
Copy link
Member

Hey, for sierra you should use thoth-sierra
take a look here and let me know if you still have the bug: https://github.com/FuzzingLabs/thoth/blob/master/sierra/README.md

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants