From f6799e08af8555cc14cdcf09de5acd0736428c13 Mon Sep 17 00:00:00 2001 From: Dietmar Maurer Date: Mon, 22 Nov 2021 08:19:09 +0100 Subject: [PATCH] Fingerprint: add new signature method commit 8c1ec5c8021b11d4ef657a55c67b060045e6ebdc introcuded a bug by using fp.to_string(). Replace this with fp.signature() which correctly returns the full fingerprint instead of the short version. Signed-off-by: Dietmar Maurer --- pbs-api-types/src/crypto.rs | 3 +++ 1 file changed, 3 insertions(+) diff --git a/pbs-api-types/src/crypto.rs b/pbs-api-types/src/crypto.rs index eda92e23..6f931f8f 100644 --- a/pbs-api-types/src/crypto.rs +++ b/pbs-api-types/src/crypto.rs @@ -33,6 +33,9 @@ impl Fingerprint { pub fn bytes(&self) -> &[u8; 32] { &self.bytes } + pub fn signature(&self) -> String { + as_fingerprint(&self.bytes) + } } /// Display as short key ID