diff --git a/src/main/java/com/sparrowwallet/drongo/pgp/PGPUtils.java b/src/main/java/com/sparrowwallet/drongo/pgp/PGPUtils.java index 0c8321d..4e0087a 100644 --- a/src/main/java/com/sparrowwallet/drongo/pgp/PGPUtils.java +++ b/src/main/java/com/sparrowwallet/drongo/pgp/PGPUtils.java @@ -98,7 +98,8 @@ public class PGPUtils { log.debug("Could not find public key for primary key id " + primaryKeyId); } - String userId = subkeyIdentifier.getPrimaryKeyFingerprint().prettyPrint(); + String fingerprint = subkeyIdentifier.getPrimaryKeyFingerprint().prettyPrint(); + String userId = fingerprint; boolean expired = false; if(signedByKey != null) { Iterator userIds = signedByKey.getUserIDs(); @@ -108,7 +109,7 @@ public class PGPUtils { expired = isExpired(signedByKey); } - return new PGPVerificationResult(primaryKeyId, userId, signatureVerification.getSignature().getCreationTime(), expired, keySource); + return new PGPVerificationResult(primaryKeyId, userId, fingerprint, signatureVerification.getSignature().getCreationTime(), expired, keySource); } } } diff --git a/src/main/java/com/sparrowwallet/drongo/pgp/PGPVerificationResult.java b/src/main/java/com/sparrowwallet/drongo/pgp/PGPVerificationResult.java index 7e9c914..a7ef172 100644 --- a/src/main/java/com/sparrowwallet/drongo/pgp/PGPVerificationResult.java +++ b/src/main/java/com/sparrowwallet/drongo/pgp/PGPVerificationResult.java @@ -2,4 +2,4 @@ package com.sparrowwallet.drongo.pgp; import java.util.Date; -public record PGPVerificationResult(long keyId, String userId, Date signatureTimestamp, boolean expired, PGPKeySource keySource) { } +public record PGPVerificationResult(long keyId, String userId, String fingerprint, Date signatureTimestamp, boolean expired, PGPKeySource keySource) { }