1.0.0-beta.7 • Published 2 years ago
@vckit/credential-oa v1.0.0-beta.7
Credential OpenAttestation Plugin
- This plugin is used for issuing and verifying verifiable credential that adhere to OpenAttestation framework
uncefact/project-vckit’s goals is to support issuing and verifying verifiable credential in both W3C and OpenAtttestation framework right now , so this plugin is packed insideuncefact/project-vckitcore but it can be plugged into any platform/library that using Veramo architecture.
Usage
- Add this declaration to
agent.ymlconfig file
///... other declarations
# Agent
agent:
$require: '@vckit/core#Agent'
$args:
- schemaValidation: false
plugins:
/// ... other declarations
**- $require: '@vckit/credential-oa#CredentialPlugin'**- Signing
- To streamline the signing process across signing process between w3c, OpenAttestation and other frameworks in mind , the plugin use private key that managed by Veramo’s keyManager to sign and associate with did document.
NOTE: OpenAttestation document currently support 2 types of DID which is did ethereum and did web
- To streamline the signing process across signing process between w3c, OpenAttestation and other frameworks in mind , the plugin use private key that managed by Veramo’s keyManager to sign and associate with did document.
- Using uncefact/project-vckit CLI to create an OpenAttestation verifiable credential
- Prerequisites: create a new did document if you haven’t create one ****
pnpm run vckit did create- Select did:ether or did:web
- If you select did:web, it’s your responsibility to put the verification information to standard endpoint so that verifier can resolve and verify your document
- Note: Every did document created has a key associated with it , to add a new key , run
pnpm run vckit did add-key
? Select identifier provider (Use arrow keys) ❯ did:ethrCreate OpenAttestation VC
- Run:
pnpm run vckit credential create- Select
OpenAttestationMerkleProofSignature2018
? Credential proofFormat jwt lds EthereumEip712Signature2021 ❯ OpenAttestationMerkleProofSignature2018- Select a did document you create earlier to identify issuer and sign document
Issuer DID ❯ did:ethr:0x034bb92d2fffb6ff7ad8fbbefc01a919818017ef3f32c3e1443f44a45ab94f16bb- Select identity proof type
- Note:
DNS-DIDandDNS-TXTrequire you to put the Issuer DID information to the domain specified in Identity Proof Type. Refer to this for more information. For theDID, verification process will skip checking for the issuer information
? Identity Proof Type (Use arrow keys) ❯ DNS-DID DNS-TXT DID - Note:
- Select
Verify OpenAttestation VC
- Simple run
pnpm run vckit verify -f vc-file.jsonwith the result from the create vc to verify the vc
- Prerequisites: create a new did document if you haven’t create one ****
1.0.0-next.99
2 years ago
1.0.0-next.98
2 years ago
1.0.0-next.96
2 years ago
1.0.0-next.164
2 years ago
1.0.0-beta.6
2 years ago
1.0.0-beta.7
2 years ago
1.0.0-next.60
3 years ago
1.0.0-next.59
3 years ago
1.0.0-next.58
3 years ago
1.0.0-next.55
3 years ago
1.0.0-next.54
3 years ago
1.0.0-next.57
3 years ago
1.0.0-next.56
3 years ago
1.0.0-beta.5
3 years ago