diff --git a/src/service/p2p.ts b/src/service/p2p.ts index cf69567..419eebe 100644 --- a/src/service/p2p.ts +++ b/src/service/p2p.ts @@ -234,7 +234,7 @@ export class P2PService { async signMessageSimple(message: Uint8Array): Promise { const packer = new Packer(); - const signature = ed25519.sign(this.nodeKeyPair.extractBytes(), message); + const signature = ed25519.sign(message, this.nodeKeyPair.extractBytes()); packer.packInt(protocolMethodSignedMessage); packer.packBinary(Buffer.from(this.localNodeId!.bytes));