From ec50ddb6e885a3a6c18a0b5f613f93260b6c44b3 Mon Sep 17 00:00:00 2001 From: Nander Stabel Date: Mon, 25 Nov 2024 14:00:50 +0100 Subject: [PATCH] fix: add comment --- agent_holder/src/presentation/aggregate.rs | 1 + agent_identity/src/service/aggregate.rs | 1 + 2 files changed, 2 insertions(+) diff --git a/agent_holder/src/presentation/aggregate.rs b/agent_holder/src/presentation/aggregate.rs index ffb07230..bcd2a167 100644 --- a/agent_holder/src/presentation/aggregate.rs +++ b/agent_holder/src/presentation/aggregate.rs @@ -78,6 +78,7 @@ impl Aggregate for Presentation { let header = Header { alg: get_preferred_signing_algorithm(), typ: Some("JWT".to_string()), + // TODO: make dynamic kid: Some(format!("{subject_did}#key-0")), ..Default::default() }; diff --git a/agent_identity/src/service/aggregate.rs b/agent_identity/src/service/aggregate.rs index b11b7647..2e35199e 100644 --- a/agent_identity/src/service/aggregate.rs +++ b/agent_identity/src/service/aggregate.rs @@ -79,6 +79,7 @@ impl Aggregate for Service { let (issuance_date, expiration_date) = { let issuance_date = Timestamp::now_utc(); let expiration_date = issuance_date + // TODO: make this configurable .checked_add(Duration::days(365)) .ok_or(InvalidTimestampError)?;