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

feat: add ZKAuthMsgDecorator anteHandler for zkauth #1246

Merged
merged 21 commits into from
Mar 5, 2024

Conversation

zemyblue
Copy link
Member

@zemyblue zemyblue commented Feb 21, 2024

Description

related: #1229

  • Add ZKAuthMsgDecorator antehandler for zkauth. ZKAuthMsgDecorator verify the zkp proof of zkauth message if included message is zkauth message.
  • Add new AnteHandler set for simapp
  • Change max_block_height type of ZKAuthSignature to int64
  • Modify JWK patch - no save and add RWMutex
  • Add zkauth address converting function - zkauth/types/address.go
  • Add ZKAuthSignature verification

Motivation and context

How has this been tested?

Screenshots (if appropriate):

Checklist:

  • I followed the contributing guidelines and code of conduct.
  • I have added a relevant changelog to CHANGELOG.md
  • I have added tests to cover my changes.
  • I have updated the documentation accordingly.
  • I have updated API documentation client/docs/swagger-ui/swagger.yaml

@zemyblue zemyblue self-assigned this Feb 21, 2024
Copy link

codecov bot commented Feb 21, 2024

Codecov Report

Attention: Patch coverage is 50.80831% with 213 lines in your changes are missing coverage. Please review.

❗ No coverage uploaded for pull request base (feat/zkauth@6929a1d). Click here to learn what that means.

Additional details and impacted files

Impacted file tree graph

@@              Coverage Diff               @@
##             feat/zkauth    #1246   +/-   ##
==============================================
  Coverage               ?   69.63%           
==============================================
  Files                  ?      659           
  Lines                  ?    68192           
  Branches               ?        0           
==============================================
  Hits                   ?    47486           
  Misses                 ?    18469           
  Partials               ?     2237           
Files Coverage Δ
simapp/app.go 82.66% <100.00%> (ø)
x/zkauth/types/config.go 0.00% <ø> (ø)
x/zkauth/keeper/keeper.go 69.01% <75.00%> (ø)
simapp/ante/ante.go 70.00% <70.00%> (ø)
x/zkauth/ante/zkauth.go 70.00% <70.00%> (ø)
x/zkauth/types/address.go 70.96% <70.96%> (ø)
x/zkauth/types/zkauth_verify.go 50.00% <50.00%> (ø)
x/zkauth/types/msgs.go 36.76% <50.00%> (ø)
x/zkauth/types/zkauth_inputs.go 57.76% <30.23%> (ø)
x/zkauth/types/jwks.go 36.84% <36.84%> (ø)
... and 1 more

simapp/ante/ante_test.go Outdated Show resolved Hide resolved
simapp/app.go Show resolved Hide resolved
simapp/app.go Show resolved Hide resolved
simapp/app.go Show resolved Hide resolved
x/zkauth/keeper/keeper.go Show resolved Hide resolved
@zemyblue zemyblue requested a review from Mdaiki0730 March 4, 2024 08:40
@zemyblue zemyblue merged commit ca6ca76 into Finschia:feat/zkauth Mar 5, 2024
32 checks passed
@zemyblue zemyblue deleted the feat/zkauth_antehandler branch March 5, 2024 03:58
@zemyblue zemyblue mentioned this pull request Mar 6, 2024
10 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants