We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
ControllerProofPurpose
1 parent fdaad31 commit 3284c15Copy full SHA for 3284c15
CHANGELOG.md
@@ -1,5 +1,11 @@
1
# jsonld-signatures ChangeLog
2
3
+## 11.3.1 - 2024-10-dd
4
+
5
+### Fixed
6
+- Ensure verification method ID is a string when checking controller
7
+ proof purpose.
8
9
## 11.3.0 - 2024-08-01
10
11
### Changed
lib/purposes/ControllerProofPurpose.js
@@ -70,6 +70,11 @@ module.exports = class ControllerProofPurpose extends ProofPurpose {
70
}
71
72
const {id: verificationId} = verificationMethod;
73
+ if(typeof verificationId !== 'string') {
74
+ throw new Error(
75
+ `Verification method ID "${verificationMethod.id}" ` +
76
+ 'must be a string.');
77
+ }
78
const {term, _termDefinedByDIDContext} = this;
79
80
// if no `controller` specified, use verification method's
0 commit comments