Skip to content

Commit 51f2f01

Browse files
aljones15dlongley
authored andcommitted
Use size to get Map purposeToProofs entries.
1 parent 10871df commit 51f2f01

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed

CHANGELOG.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,10 @@
11
# jsonld-signatures ChangeLog
22

3+
## 9.2.1 - TBD
4+
5+
### Changed
6+
- Use the method size to get the number of entries in the Map purposeToProofs.
7+
38
## 9.2.0 - 2021-07-02
49

510
### Added

lib/ProofSet.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -210,7 +210,7 @@ async function _verify({
210210
})));
211211

212212
// every purpose must have at least one matching proof or verify will fail
213-
if(purposeToProofs.length < purposes.length) {
213+
if(purposeToProofs.size < purposes.length) {
214214
// insufficient proofs to verify, so don't bother verifying any
215215
return [];
216216
}

0 commit comments

Comments
 (0)