*We need to slice off the pubkey key identifier byte

This commit is contained in:
Derrick Hammer 2022-12-31 14:55:30 -05:00
parent 787baef9a0
commit 58330a2576
Signed by: pcfreak30
GPG Key ID: C997C339BE476FF2
1 changed files with 5 additions and 1 deletions

View File

@ -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(