From f2e86f0fbe2ef6f1abcd11a3cdabebe85f86afa0 Mon Sep 17 00:00:00 2001 From: Charles Shuller Date: Fri, 20 Oct 2023 11:02:09 -0500 Subject: [PATCH] Update now_ms to now_ns because of SSI update --- http/src/credentials.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/http/src/credentials.rs b/http/src/credentials.rs index b163e6ef..f05009c3 100644 --- a/http/src/credentials.rs +++ b/http/src/credentials.rs @@ -1,7 +1,7 @@ use anyhow::Context; use axum::{http::StatusCode, Extension, Json}; use didkit::{ - ssi::ldp::{now_ms, Error as LdpError}, + ssi::ldp::{now_ns, Error as LdpError}, ContextLoader, CredentialOrJWT, JWTOrLDPOptions, ProofFormat, VerifiableCredential, VerificationResult, DID_METHODS, }; @@ -42,7 +42,7 @@ pub async fn issue( None => return Err((StatusCode::NOT_FOUND, "Missing key".to_string()).into()), }; if credential.issuance_date.is_none() { - credential.issuance_date = Some(now_ms().into()); + credential.issuance_date = Some(now_ns().into()); } if let Err(e) = credential.validate_unsigned() { return Err((StatusCode::BAD_REQUEST, e.to_string()).into());