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

Feature/Verify Token V2 #78

Open
wants to merge 6 commits into
base: main
Choose a base branch
from

Conversation

x1m3
Copy link
Contributor

@x1m3 x1m3 commented Oct 17, 2024

First implementation was #76 .

There is some test failing. Need some help here to generate a proper token or to mock eth.Resolver.

This PR needs this iden3/iden3comm#60 merged. Right now it compiles because direct commit is fixed in backend.

I will write some comments by myself in points I need help or I'm not totally happy with it.

Copy link
Contributor Author

@x1m3 x1m3 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I left some comments .

go.mod Outdated
github.com/iden3/go-schema-processor/v2 v2.4.0
github.com/iden3/iden3comm/v2 v2.5.1
github.com/iden3/go-schema-processor/v2 v2.5.0
github.com/iden3/iden3comm/v2 v2.7.1-0.20241015160531-d8ea65210731
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It needs code in iden3/iden3comm#60 that should be accepted, merged and released before accepting this one.

},
},
{
name: "Verify JWZ token, with proof generation delay",
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This test is failing because network inside token is 80001 and there is no resolver for it.

I guess I need a valid token, or to mock eth.Resolvers. To mock eth.Resolvers, we should create a new interface in iden3comm lib for map[int]eth.Resolvers

@x1m3 x1m3 mentioned this pull request Oct 18, 2024
@x1m3 x1m3 added the help wanted Extra attention is needed label Oct 18, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
help wanted Extra attention is needed
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant