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 23 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   79.23%                  79.25%   +0.02%     
+ Files         299                     303       +4     
+ Lines       87602                   87748     +146     
=========================================================
+ Hits        69405                   69544     +139     
+ Misses      18197                   18204       +7     
Files Changed Coverage

Coverage generated Tue Oct 1 13:57:39 UTC 2024

@Agusrodri Agusrodri marked this pull request as draft August 19, 2024 21:35
Copy link
Contributor

github-actions bot commented Sep 30, 2024

WASM runtime size check:

Compared to target branch

Moonbase runtime: 2532 KB (no changes) 🚨

Moonbeam runtime: 2148 KB (no changes) ✅

Moonriver runtime: 2144 KB (no changes) ✅

Compared to latest release (runtime-3200)

Moonbase runtime: 2532 KB (+572 KB compared to latest release) 🚨

Moonbeam runtime: 2148 KB (+224 KB compared to latest release) ⚠️

Moonriver runtime: 2144 KB (+220 KB compared to latest release) ⚠️

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