From 58330a25768b02d7d8a8b07381dc9df2696c57a2 Mon Sep 17 00:00:00 2001 From: Derrick Hammer Date: Sat, 31 Dec 2022 14:55:30 -0500 Subject: [PATCH] *We need to slice off the pubkey key identifier byte --- src/utils.ts | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/utils.ts b/src/utils.ts index 9d49d76..bec6eb1 100644 --- a/src/utils.ts +++ b/src/utils.ts @@ -6,7 +6,11 @@ import { sha512 } from "@noble/hashes/sha512"; ed.utils.sha512Sync = (...m) => sha512(ed.utils.concatBytes(...m)); export function verifyEntry(entry: SignedRegistryEntry) { - return ed.sync.verify(entry.signature, createSignatureData(entry), entry.pk); + return ed.sync.verify( + entry.signature, + createSignatureData(entry), + entry.pk.slice(1) + ); } export function signEntry(