Data sovereignty and interoperability
Linked Data Proofs Compatibility Package
This package helps integrating KILT credentials with the popular @digitalbazaar/vc
library (formerly known as vc-js
) for issuing and verifying Verifiable Credentials and related tool chain (jsonld-signatures
, crypto-ld
& jsonld
).
It provides you with Linked Data Proof suites and documentLoader implementations that act as plugins to these libraries, enhancing them with support for the proof types and DIDs used in KILT credentials.
Installation
NPM:
npm install @kiltprotocol/jsonld-suites
YARN:
yarn add @kiltprotocol/jsonld-suites
Contents
-
KiltAttestationProofV1
- When used as a
suite
in@digitalbazaar/vc
orjsonld-signatures
, you can:- verify VCs with a proof type
KiltAttestationProofV1
. - issue a
KiltAttestationProofV1
type proof for aKiltCredentialV1
type VC. - check the revocation status of a
KiltCredentialV1
.
- verify VCs with a proof type
- When used as a
-
NoProofPurpose
-
ProofPurpose
class to be used in combination with the attestation proof suite above.
-
-
Sr25519Signature2020
- A
suite
implementation for creating and verifying sr25519 linked data signatures.
- A
-
Sr25519VerificationKey2020
- A key class for use with the above signature suite.
-
contexts
- JSON-LD context defintions for all types and fields used by our suites and credentials.
-
defaultDocumentLoader
- a
documentLoader
implementation that loads all KILT-specific contexts and credential schemas as well as KILT DID documents and their verification methods.
- a
Examples
See unit test files for usage examples.