refactor: only prefix ED25519 if its not the 1st byte
This commit is contained in:
parent
beb42152b8
commit
bd04087a97
|
@ -115,7 +115,9 @@ async function handleGetRegistryEntry(aq: ActiveQuery) {
|
|||
|
||||
pubkey = ensureBytes("registry entry ", pubkey, 32);
|
||||
|
||||
if (pubkey[0] !== CID_HASH_TYPES.ED25519) {
|
||||
pubkey = concatBytes(Uint8Array.from([CID_HASH_TYPES.ED25519]), pubkey);
|
||||
}
|
||||
|
||||
const ret = await node.services.registry.get(pubkey);
|
||||
|
||||
|
|
Loading…
Reference in New Issue