diff --git a/bun.lockb b/bun.lockb index 3f5811bc..48a61ffd 100755 Binary files a/bun.lockb and b/bun.lockb differ diff --git a/database/entities/Federation.ts b/database/entities/Federation.ts index fc1ac71f..9da3c78a 100644 --- a/database/entities/Federation.ts +++ b/database/entities/Federation.ts @@ -44,7 +44,7 @@ export const objectToInboxRequest = async ( body: JSON.stringify(object), }); - const signed = await ctor.sign(request); + const { request: signed, signedString } = await ctor.sign(request); if (config.debug.federation) { // Debug request @@ -56,6 +56,13 @@ export const objectToInboxRequest = async ( "Inbox.Signature", `Sender public key: ${author.getUser().publicKey}`, ); + + // Log signed string + new LogManager(Bun.stdout).log( + LogLevel.DEBUG, + "Inbox.Signature", + `Signed string:\n${signedString}`, + ); } return signed;