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 24 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.01%                  79.03%   +0.02%     
+ Files         305                     309       +4     
+ Lines       88447                   88593     +146     
=========================================================
+ Hits        69878                   70017     +139     
+ Misses      18569                   18576       +7     
Files Changed Coverage

Coverage generated Mon Nov 4 20:13:19 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: 2604 KB (no changes) 🚨

Moonbeam runtime: 2236 KB (no changes) ✅

Moonriver runtime: 2232 KB (no changes) ✅

Compared to latest release (runtime-3300)

Moonbase runtime: 2604 KB (+576 KB compared to latest release) 🚨

Moonbeam runtime: 2236 KB (+240 KB compared to latest release) ⚠️

Moonriver runtime: 2232 KB (+240 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