Skip to content

Commit

Permalink
Ignore time in did:x509 resolve (#6576)
Browse files Browse the repository at this point in the history
  • Loading branch information
achamayou authored Oct 17, 2024
1 parent 83c7fa2 commit 19561dd
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .snpcc_canary
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,4 @@
/-xXx--//-----x=x--/-xXx--/---x---->>>--/
...
/\/\d(-_-)b/\/\
--
--/\
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.
### Added

- Introduced `ccf::describe_cose_endorsements_v1(receipt)` for COSE-endorsements chain of previous service identities (#6500).
- Ignore time when resolving did:x509 against x5chain, resolution establishes a point-in-time endorsement, not ongoing validity (#6575).

## [6.0.0-dev1]

Expand Down
3 changes: 2 additions & 1 deletion src/node/uvm_endorsements.h
Original file line number Diff line number Diff line change
Expand Up @@ -287,7 +287,8 @@ namespace ccf

const auto& did = phdr.iss;

auto did_document_str = didx509::resolve(pem_chain, did);
auto did_document_str =
didx509::resolve(pem_chain, did, true /* ignore time */);
did::DIDDocument did_document = nlohmann::json::parse(did_document_str);

if (did_document.verification_method.empty())
Expand Down

0 comments on commit 19561dd

Please sign in to comment.