slice privateKey to the first 6 characters on logging

This commit is contained in:
clauspeterhuebner 2025-07-31 16:09:30 +02:00
parent dc7ca5a5a6
commit b0c91b68e4

View File

@ -48,7 +48,7 @@ export const startDHT = async (topic: string): Promise<void> => {
) as KeyPair
const pubKeyString = keyPair.publicKey.toString('hex')
logger.info(`keyPairDHT: publicKey=${pubKeyString}`)
logger.debug(`keyPairDHT: secretKey=${keyPair.secretKey.toString('hex')}`)
logger.debug(`keyPairDHT: secretKey=${keyPair.secretKey.toString('hex').slice(0, 6)}`)
await writeHomeCommunityEntry(keyPair)
const ownApiVersions = await writeFederatedHomeCommunityEntries(pubKeyString)