@twin.org/standards-w3c-did 0.0.1-next.37 → 0.0.1-next.39
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cjs/index.cjs +1 -1
- package/dist/esm/index.mjs +1 -1
- package/docs/changelog.md +14 -0
- package/package.json +1 -1
package/dist/cjs/index.cjs
CHANGED
|
@@ -255,7 +255,7 @@ class JsonWebSignature2020SignerVerifier {
|
|
|
255
255
|
unsecuredDocumentClone["@context"] = dataJsonLd.JsonLdProcessor.combineContexts(unsecuredDocumentClone["@context"], DidContexts.ContextSecurityJws2020);
|
|
256
256
|
const hash = await this.createHash(unsecuredDocument, unsignedProof);
|
|
257
257
|
const cryptoKey = await web.Jwk.toCryptoKey(signKey);
|
|
258
|
-
const signature = await web.Jws.create(cryptoKey, hash);
|
|
258
|
+
const signature = await web.Jws.create(cryptoKey, hash, signKey.alg);
|
|
259
259
|
const signedProof = core.ObjectHelper.clone(unsignedProof);
|
|
260
260
|
signedProof["@context"] = unsecuredDocumentClone["@context"];
|
|
261
261
|
signedProof.jws = signature;
|
package/dist/esm/index.mjs
CHANGED
|
@@ -253,7 +253,7 @@ class JsonWebSignature2020SignerVerifier {
|
|
|
253
253
|
unsecuredDocumentClone["@context"] = JsonLdProcessor.combineContexts(unsecuredDocumentClone["@context"], DidContexts.ContextSecurityJws2020);
|
|
254
254
|
const hash = await this.createHash(unsecuredDocument, unsignedProof);
|
|
255
255
|
const cryptoKey = await Jwk.toCryptoKey(signKey);
|
|
256
|
-
const signature = await Jws.create(cryptoKey, hash);
|
|
256
|
+
const signature = await Jws.create(cryptoKey, hash, signKey.alg);
|
|
257
257
|
const signedProof = ObjectHelper.clone(unsignedProof);
|
|
258
258
|
signedProof["@context"] = unsecuredDocumentClone["@context"];
|
|
259
259
|
signedProof.jws = signature;
|
package/docs/changelog.md
CHANGED
|
@@ -1,5 +1,19 @@
|
|
|
1
1
|
# @twin.org/standards-w3c-did - Changelog
|
|
2
2
|
|
|
3
|
+
## [0.0.1-next.39](https://github.com/twinfoundation/standards/compare/standards-w3c-did-v0.0.1-next.38...standards-w3c-did-v0.0.1-next.39) (2025-05-07)
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
### Features
|
|
7
|
+
|
|
8
|
+
* alg usage ([#19](https://github.com/twinfoundation/standards/issues/19)) ([3946fb2](https://github.com/twinfoundation/standards/commit/3946fb2e8bd9a486ad186765d1d09361fa75786b))
|
|
9
|
+
|
|
10
|
+
## [0.0.1-next.38](https://github.com/twinfoundation/standards/compare/standards-w3c-did-v0.0.1-next.37...standards-w3c-did-v0.0.1-next.38) (2025-05-07)
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
### Miscellaneous Chores
|
|
14
|
+
|
|
15
|
+
* **standards-w3c-did:** Synchronize repo versions
|
|
16
|
+
|
|
3
17
|
## [0.0.1-next.37](https://github.com/twinfoundation/standards/compare/standards-w3c-did-v0.0.1-next.36...standards-w3c-did-v0.0.1-next.37) (2025-05-06)
|
|
4
18
|
|
|
5
19
|
|