A DID (Decentralized Identifier) method driver for the
did-io
library and for standalone use
See also (related specs):
A did:null
method driver for the did-io
client library and for standalone use.
The did:null
method is used to express a DID Document representing nothing.
Its format is:
did:null:null
That DID would correspond to the following DID Document:
{
"@context": [
"https://www.w3.org/ns/did/v1"
],
"id": "did:null:null"
}
No known issues.
Requires Node.js 14+
To install from npm
:
npm install --save @digitalbazaar/did-method-null
To install locally (for development):
git clone https://github.com/digitalbazaar/did-method-null.git
cd did-method-null
npm install
To generate the did:null:null
DID Document:
import {driver} from '@digitalbazaar/did-method-null';
const didNullDriver = driver();
// generate did:null:null
const {didDocument, keyPairs, methodFor} = await didNullDriver.generate();
// print the DID Document above
console.log(JSON.stringify(didDocument, null, 2));
methodFor
is a convenience function that returns nothing.
To get the DID Document for the did:null:null
DID:
const did = 'did:null:null';
const didDocument = await didNullDriver.get({did});
(Results in the example DID Doc above).
See the contribute file!
PRs accepted.
If editing the Readme, please conform to the standard-readme specification.
Commercial support for this library is available upon request from Digital Bazaar: support@digitalbazaar.com
New BSD License (3-clause) © Digital Bazaar, Inc.