*We need to slice off the pubkey key identifier byte
This commit is contained in:
parent
787baef9a0
commit
58330a2576
|
@ -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(
|
||||
|
|
Reference in New Issue