@digitalbazaar/did-method-key
Advanced tools
Changelog
5.2.0 - 2024-01-17
fromKeyPair
to be called with only a key agreement key pair.Changelog
5.1.0 - 2023-04-27
get()
and publicKeyToDidDoc()
to support keyAgreement-only
DIDs.Changelog
5.0.0 - 2023-04-11
use()
method that allows multibase-multikey headers and a
multibase-multikey deserializer (which replaces verificationSuite
previously) to handle data using that header.fromKeyPair()
that generates the DID Document along with the
corresponding key pairs from a verificationKeyPair
. fromKeyPair()
also
optionally takes a keyAgreementKeypair
param.createVerificationSuite()
to createFromMultibase()
which now no longer takes a generate
param and is adapted to convert the
legacy verification suites to provide proper .fromMultibase()
method.DidKeyDriver
no longer takes a verificationSuite
param in
the constructor.generate()
method has now been replaced by a new method
fromKeyPair()
. This approach externalizes key pair generation to allow
whatever parameters are necessary / possible (such as random bytes / seeds)
to be provided in the key-pair-specific implementation. This also greatly
reduces the complexity of this library and the need to import key pair
libraries generally.Changelog
4.0.0 - 2023-04-03
createVerificationSuite()
utility
function that can be used to create a verificationSuite
from a multikey
library such as @digitalbazaar/ecdsa-multikey
when creating a
DidKeyDriver
instance.Changelog
3.0.0 - 2022-06-02
Changelog
2.0.0 - 2021-06-19
Changelog
1.2.0 - 2021-05-26
did:key
document using
the Ed25519VerificationKey2018
and X25519KeyAgreementKey2019
suites.Changelog
1.1.0 - 2021-05-04
didKeyDriver.publicKeyToDidDoc({keyPair})
method. (This used to be
the keyToDidDoc()
method, in <= v0.7.0
, removed in v1.0 and brought back
by popular demand.)Changelog
1.0.0 - 2021-04-09
did-method-key
to
@digitalbazaar/did-method-key
.{didDocument, keyPairs, methodFor}
from generate()
.crypto-ld
v5.0 based key suites, update to use
Ed25519VerificationKey2020
and X25519KeyAgreementKey2020
crypto suites.'https://w3id.org/did/v0.11'
to the DID WG-published https://www.w3.org/ns/did/v1
, plus the contexts
for the Ed25519VerificationKey2020
and X25519KeyAgreementKey2020
crypto
suites. See the "Example DID Document" section of the README.computeKeyId()
-> computeId()
.methodFor
and publicMethodFor
convenience functions.did-io
's CachedResolver
class.keyToDidDoc
driver method removed. (See Upgrading notes
for alternatives.)publicKey
property of the DID Document has been deprecated
by the DID Data Model, and is now renamed to verificationMethod
.