Replies: 2 comments 2 replies
-
Here is a brief live video demo of how the credentials library would appear to an application user: https://www.youtube.com/watch?v=ADBlwLQospg Screenshots: |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
web3-credentials library
I'd like to propose a simple UI library for assisting users of dApps with credential verification requirements, and specifically with assisting users with setting up credentials and verifying they are ready to proceed with a transaction that requires a credential.
A helper library of this type would make credential integration easier for app developers and provide app users with a more standardized experience.
A more formal proposal will be forthcoming, but for any initial feedback here is a quick overview of what this library would initially include:
Javascript API
The API will likely look somewhat like this:
Web3Credentials
The following can be modified in the Web3Credentials constructor by passing in a
config
parameter or by directly modifying theconfig
property of a Web3Credentials instance:requestCredential
This method is used in the application business logic to gate a transaction requiring a credential.
Required Parameters:
Optional Parameters:
It is suggested that registries specify their own provided metadata to explain more regarding the credential and supported issuers, providing the Web3 credentials library a convenient method of looking up this information.
Web3 Credential Request Dialog
This is the dialog interface that appears when the
requestCredential
method is called via the Javascript API. It utilizes the options passed as parameters to customize its content, behavior and appearance.The Credential Request Dialog will include the following:
The full proposal for this project will include detailed mockups of the Credential Request Dialog.
Beta Was this translation helpful? Give feedback.
All reactions