- Add support for reading
JsonWebKey
-typed keys.
- Public key byte checks have error codes compatible with the
did:key
spec.
- No longer throw a
TypeError
when passing in a Uint8Array of the wrong length.
- BREAKING: Convert to module (ESM).
- BREAKING: Require Node.js >=14.
- BREAKING: Use
globalThis
to getcrypto
in browsers. - Update dependencies.
- Lint module.
- Replace underlying ed25519 implementation with
@noble/ed25519
. This should be a non-breaking change.
- Add support for
JsonWebKey2020
and JWK import/export, as well as JWK thumbprint function.
- Allow keys to be created purely for verification or purely for signing.
- BREAKING: Fix improperly encoded public and private keys.
- Perform better key validation when creating a key.
- Remove TextEncoder/TextDecoder polyfill (provided in all environments now).
- Do not leak private key details in errors.
- Fix error string consistency.
- Ensure
signer()
andverifier()
objects have anid
property (for jsigs).
- Add
revoked
export tests,SUITE_CONTEXT
class property. (To supportCryptoLD
's newfromKeyId()
method.)
- Update to use
crypto-ld v5.0
. - BREAKING: Removed helper methods
addPublicKey
andaddPrivateKey
.
- Add
Ed25519VerificationKey2020.fromEd25519VerificationKey2018()
method, for backwards compatibility with theEd25519VerificationKey2018
key type. See "Converting from previous Ed25519VerificationKey2018 key type" section of the README for details.
Initial version.