From 6293eff1de4e3b3b0d76601c776961bf69ef57b9 Mon Sep 17 00:00:00 2001 From: einhornimmond Date: Tue, 14 Oct 2025 15:24:39 +0200 Subject: [PATCH] fix public key logging as hex --- backend/src/federation/authenticateCommunities.ts | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/backend/src/federation/authenticateCommunities.ts b/backend/src/federation/authenticateCommunities.ts index 980fabf6f..9c87da3c0 100644 --- a/backend/src/federation/authenticateCommunities.ts +++ b/backend/src/federation/authenticateCommunities.ts @@ -33,12 +33,13 @@ export async function startCommunityAuthentication( ): Promise { const methodLogger = createLogger('startCommunityAuthentication') const handshakeID = randombytes_random().toString() + const fedComBPublicKey = new Ed25519PublicKey(fedComB.publicKey) methodLogger.addContext('handshakeID', handshakeID) - methodLogger.debug(`start with public key ${fedComB.publicKey}`) + methodLogger.debug(`start with public key ${fedComBPublicKey.asHex()}`) const homeComA = await getHomeCommunityWithFederatedCommunityOrFail(fedComB.apiVersion) // methodLogger.debug('homeComA', new CommunityLoggingView(homeComA)) const homeFedComA = getFederatedCommunityWithApiOrFail(homeComA, fedComB.apiVersion) - const fedComBPublicKey = new Ed25519PublicKey(fedComB.publicKey) + const comB = await getCommunityByPublicKeyOrFail(fedComBPublicKey) // methodLogger.debug('started with comB:', new CommunityLoggingView(comB)) // check if communityUuid is not a valid v4Uuid