fix: convert binary string to uint8array
This commit is contained in:
parent
01bf7fe1fa
commit
419c7f85a8
|
@ -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;
|
||||||
|
|
Loading…
Reference in New Issue