jsonld-signatures
Advanced tools
Changelog
9.3.0 - 2021-07-10
Changelog
9.2.1 - 2021-07-08
size
method to get the number of entries in the purposeToProofs
Map.Changelog
9.2.0 - 2021-07-02
NotFoundError
name to error thrown when there are not enough proofs
to match the passed supported suites and purposes during verification.
LD suite implementations should not be relying the error message but can
rely on the name
property of the error instead.LinkedDataSignature
no longer calls purpose.validate
; this function
is instead called after verifyProof()
. This removes the responsibility
of calling this function from LD suite implementations and places it in
the main verify call from within jsigs instead. LD suites will still be
passed a dummy purpose
in this version for backwards compatibility
purposes that will successfully return a promise that resolves to
true
from purpose.validate()
. Decoupling this from the suites both
establishes a better separation of concerns and simplifies LD suites by
reducing their responsibilities. LD suites are responsible for returing
the verificationMethod
used in their results so it can be passed to
purpose.validate()
.Changelog
9.1.1 - 2021-06-29
Map
to internally represent contexts instead of an object. This
optimizes better w/ v8.Changelog
9.1.0 - 2021-06-29
tag: 'static'
feature in extendContextLoader
. This flag will inform
the JSON-LD processor that the statically loaded contexts are, in fact,
static and only need to be processed once.Changelog
9.0.2 - 2021-04-12
Changelog
9.0.1 - 2021-04-09
These changes were intended to be released in v9.0.0, so, releasing them as a patch.
document
argument in sign()
or
verify()
is a URL (instead of an object), since this is an unused feature,
and a mixing of layers.Changelog
9.0.0 - 2021-04-06
verificationMethod
param from suite constructor. It
is now strictly initialized from key.id
or signer.id
.
Increase validation on either key or signer/verifier parameters.signer
and verifier
parameters to the LinkedDataSignature
constructor. This issue caused this.signer
in subclasses to be undefined
.Changelog
8.0.2 - 2021-03-19