From daf357cd639cb69ee5957e6628aad1b62a6bfc34 Mon Sep 17 00:00:00 2001 From: Derrick Hammer Date: Fri, 1 Sep 2023 20:41:32 -0400 Subject: [PATCH] fix: correct argument order on ed25519.verify --- src/service/registry.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/service/registry.ts b/src/service/registry.ts index 5774bad..4137331 100644 --- a/src/service/registry.ts +++ b/src/service/registry.ts @@ -244,7 +244,7 @@ export class RegistryService { ...sre.data, ]); - return ed25519.verify(list, sre.signature, sre.pk.slice(1)); + return ed25519.verify(sre.signature, list, sre.pk.slice(1)); } public serializeRegistryEntry(sre: SignedRegistryEntry): Uint8Array { return Uint8Array.from([