0.1.1-unstable.15 • Published 4 years ago
@did-core/did-cbor v0.1.1-unstable.15
@did-core/did-cbor
npm i @did-core/did-cbor --save
Usage
import { factory, DidDocument } from '@did-core/data-model';
import { representation } from '@did-core/did-cbor';
const didDocument: DidDocument = factory.build({
entries: {
// @context is required for use with jsonld verifiable credentials
// but technically optional here
'@context': 'https://www.w3.org/ns/did/v1',
id: 'did:example:123',
},
});
const representation: Buffer = await didDocument
.addRepresentation({ 'application/did+cbor': representation })
.produce('application/did+cbor');
0.1.1-unstable.14
4 years ago
0.1.1-unstable.15
4 years ago
0.1.1-unstable.12
4 years ago
0.1.1-unstable.13
4 years ago
0.1.1-unstable.10
4 years ago
0.1.1-unstable.11
4 years ago
0.1.1-unstable.9
4 years ago
0.1.1-unstable.7
4 years ago
0.1.1-unstable.8
4 years ago
0.1.1-unstable.5
4 years ago
0.1.1-unstable.6
4 years ago
0.1.1-unstable.3
4 years ago
0.1.1-unstable.4
4 years ago
0.1.1-unstable.2
4 years ago
0.1.1-unstable.1
4 years ago
0.1.1-unstable.0
4 years ago
0.1.0
4 years ago