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

Enforce use of the bootloader in verified program #65

Open
tdelabro opened this issue Jan 7, 2025 · 3 comments
Open

Enforce use of the bootloader in verified program #65

tdelabro opened this issue Jan 7, 2025 · 3 comments

Comments

@tdelabro
Copy link
Contributor

tdelabro commented Jan 7, 2025

Swiftness is built under the assumption it is verifying programs run on the bootloader.
If you don't (generate the proof of your own program) things start breaking left and right and you lose soundness.
Yet it is not mentioned anywhere and not enforced during proof verification.
I believe it should.

Most likely you can compute the program hash and check that it is indeed the bootloader, but I'm not sure.

@tdelabro tdelabro changed the title Enforce use of the bootloader Enforce use of the bootloader in verified program Jan 7, 2025
@tdelabro
Copy link
Contributor Author

tdelabro commented Jan 7, 2025

Or, you could take the entrypoint into account while computing the program hash and aim for a more generalistic verifier.
I don't know what is the scope you want for swiftness

@Okm165
Copy link
Contributor

Okm165 commented Jan 7, 2025

I want swiftness to be a generic verifier for both Cairo0 and Cairo1
I mentioned the issue with verifying Cairo1 pub_mem further waiting for response
When I have procedures for Cairo1, verifier will support both pub_mem kinds so we will have no such issues

@Okm165
Copy link
Contributor

Okm165 commented Jan 21, 2025

#58 (comment)

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

When branches are created from issues, their pull requests are automatically linked.

2 participants