Skip to content
This repository has been archived by the owner on Apr 29, 2024. It is now read-only.

Implement Ethereum Controller Credential using DIDKit #7

Merged
merged 4 commits into from
Feb 24, 2021
Merged

Conversation

clehner
Copy link
Contributor

@clehner clehner commented Feb 24, 2021

Depends on: spruceid/ssi#99, spruceid/didkit#82

This implements credential issuance using DIDKit and MetaMask for the Ethereum Controller Credential. The credential is implemented using sameAs, as shown in https://gist.github.com/tplooker/ca8c147906764afb26d95170900c560c. The issuer is the user's MetaMask identity, using the prototype Eip712Method2021 added in spruceid/ssi#99.

DIDKit and ssi are added to the readme dependencies to be cloned alongside this repo. The package.json is updated to point to DIDKit's WASM package, and a symlink is added in public/ to point to the WASM file.

Not yet implemented:

Screenshots

ethcontrol-pick.png

metamask-eip712method2021.png

Obsolete screenshot

This screenshot is superceded by the one in #7 (comment) as implemented in b730d3f.
ethcontrol-issued.png

@clehner
Copy link
Contributor Author

clehner commented Feb 24, 2021

Updated to save the issued credential to a CHAPI wallet using credential-handler-polyfill rather than putting the JSON in the page. Also added the option to download it as a file.

ethcontrol-saved.png

@wyc
Copy link

wyc commented Feb 24, 2021

@clehner is this good to review?

@clehner
Copy link
Contributor Author

clehner commented Feb 24, 2021

@wyc yes. It just doesn't yet identify the user's DID for the credential subject - but that can be added separately.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants