-
Notifications
You must be signed in to change notification settings - Fork 23
direct identity credentials, integration with web3id #760
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
Conversation
| struct GivenContextInfo { | ||
| // Randomly generated nonce. It is important that the nonce is freshly generated by the backend | ||
| // for each request so that the presentation request anchor on-chain truely looks random. | ||
| nonce: Sha256Challenge, | ||
| // Human readable string giving more context to the request. | ||
| context_string: String, | ||
| // The topic of the wallet connection as defined by `walletConnect`. | ||
| // The wallet or ID app use this value to check that the topic matches the current active connection. | ||
| // TODO: Should we decide on a fix-sized length type `e.g. a type that will represent the walletConntect topic`. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think the properties should be dynamically represented and not as hardcoded fields? The web3id module may not even need to know the different properties.
| requested: RequestedContextInfo, | ||
| } | ||
|
|
||
| // This data is suppose to be provided by the dapp backend (e.g. merchant backend). |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Docs on an item needs three slashes: ///
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Else it is just a comment
|
|
||
| /// A trait that represents a challenge in a proof response request protocol. | ||
| /// Types implementing this trait define how they can be incorporated into a cryptographic transcript (random oracle). | ||
| pub trait IsChallenge: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
If we need a polymorphic behaviour for different types of challenges, I think we should settle on one approach. Either an enum, or a trait that you implement. Having both seems redundant?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
(enum is for variation of a fixed set of behaviours, while the trait is open for extension, not sure which one is best here)
Purpose
Try to integrate identity attributes directly from identity credentials directly into the
web3idmoduleChanges
_Describe the changes that were needed.
Checklist
hard-to-understand areas.