fix: convert binary string to uint8array

This commit is contained in:
Derrick Hammer 2023-09-01 21:48:17 -04:00
parent 01bf7fe1fa
commit 419c7f85a8
Signed by: pcfreak30
GPG Key ID: C997C339BE476FF2
1 changed files with 2 additions and 1 deletions

View File

@ -15,6 +15,7 @@ import { Buffer } from "buffer";
import { EventEmitter } from "events"; import { EventEmitter } from "events";
import KeyPairEd25519 from "#ed25519.js"; import KeyPairEd25519 from "#ed25519.js";
import { S5Node, stringifyBytes } from "#node.js"; import { S5Node, stringifyBytes } from "#node.js";
import { utf8ToBytes } from "@noble/hashes/utils";
export class RegistryService { export class RegistryService {
private db?: AbstractSublevel< private db?: AbstractSublevel<
@ -200,7 +201,7 @@ export class RegistryService {
} catch {} } catch {}
if (val) { if (val) {
return this.deserializeRegistryEntry(val); return this.deserializeRegistryEntry(utf8ToBytes(val));
} }
return null; return null;