From 949da3fd6d2143d23fe1b84cf83f80418fd05840 Mon Sep 17 00:00:00 2001 From: Yigit Sever Date: Sat, 23 Apr 2022 21:31:57 +0300 Subject: Add timestamp to transaction fingerprint hash This should include some randomness and prevent someone just simulating the whole chain on their own --- src/handlers.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/handlers.rs b/src/handlers.rs index 6e30ae3..997867c 100644 --- a/src/handlers.rs +++ b/src/handlers.rs @@ -914,7 +914,7 @@ fn authorize_proposer(jwt_token: &str, user_pem: &str) -> Result String { - let long_fingerprint = format!("{}{}", source, target); + let long_fingerprint = format!("{}{}{}", source, target, Utc::now()); let id = format!("{:x}", Sha256::digest(long_fingerprint.as_bytes())); id } -- cgit v1.2.3-70-g09d2