fix: ed25519.sign arguments are wrong order

This commit is contained in:
Derrick Hammer 2023-08-31 06:49:59 -04:00
parent 6ebc477449
commit 5585907591
Signed by: pcfreak30
GPG Key ID: C997C339BE476FF2
1 changed files with 1 additions and 1 deletions

View File

@ -234,7 +234,7 @@ export class P2PService {
async signMessageSimple(message: Uint8Array): Promise<Uint8Array> {
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));