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

[PoC] Add ZkAuth precompile to Moonbase #2903

Draft
wants to merge 19 commits into
base: master
Choose a base branch
from

Conversation

Agusrodri
Copy link
Contributor

@Agusrodri Agusrodri commented Aug 13, 2024

What does it do?

Adds a PoC for the ZkAuth verification precompile.

This precompile, allows to verify a Risc0 zk-proof receipt by calling the verifyProof function, passing an encoded (ideally a Groth16-like) receipt as a parameter. If the verification succeeds, the receipt is then returned with the same format as it was originally received in the function parameter.

@Agusrodri Agusrodri added B7-runtimenoteworthy Changes should be noted in any runtime-upgrade release notes D5-nicetohaveaudit⚠️ PR contains trivial changes to logic that should be properly reviewed. not-breaking Does not need to be mentioned in breaking changes labels Aug 13, 2024
@Agusrodri Agusrodri marked this pull request as ready for review August 14, 2024 04:27
Copy link
Contributor

github-actions bot commented Aug 14, 2024

Coverage Report

@@                    Coverage Diff                    @@
##           master   zkAuth-precompile-poc      +/-   ##
=========================================================
+ Coverage   80.96%                  81.01%   +0.05%     
+ Files         282                     286       +4     
+ Lines       81614                   81783     +169     
=========================================================
+ Hits        66071                   66251     +180     
- Misses      15543                   15532      -11     
Files Changed Coverage
/client/rpc/manual-xcm/src/lib.rs 88.00% (-0.46%) 🔽
/pallets/moonbeam-foreign-assets/src/lib.rs 69.67% (+1.49%) 🔼
/runtime/moonbeam/src/lib.rs 47.14% (+0.22%) 🔼
/runtime/moonbeam/src/xcm_config.rs 54.35% (+1.72%) 🔼
/runtime/moonriver/src/lib.rs 47.37% (+0.23%) 🔼
/runtime/moonriver/src/xcm_config.rs 52.17% (+1.64%) 🔼

Coverage generated Mon Aug 19 22:34:49 UTC 2024

@Agusrodri Agusrodri marked this pull request as draft August 19, 2024 21:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
B7-runtimenoteworthy Changes should be noted in any runtime-upgrade release notes D5-nicetohaveaudit⚠️ PR contains trivial changes to logic that should be properly reviewed. not-breaking Does not need to be mentioned in breaking changes
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants