fix: utf8ToBytes no longer needed
This commit is contained in:
parent
ef63d8d250
commit
8373114d5c
|
@ -1,4 +1,4 @@
|
||||||
import { Logger, Peer, S5Config, SignedRegistryEntry } from "#types.js";
|
import { Logger, Peer, SignedRegistryEntry } from "#types.js";
|
||||||
import { AbstractLevel, AbstractSublevel } from "abstract-level";
|
import { AbstractLevel, AbstractSublevel } from "abstract-level";
|
||||||
import {
|
import {
|
||||||
mkeyEd25519,
|
mkeyEd25519,
|
||||||
|
@ -15,7 +15,6 @@ 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<
|
||||||
|
@ -203,7 +202,7 @@ export class RegistryService {
|
||||||
} catch {}
|
} catch {}
|
||||||
|
|
||||||
if (val) {
|
if (val) {
|
||||||
return this.deserializeRegistryEntry(utf8ToBytes(val));
|
return this.deserializeRegistryEntry(val);
|
||||||
}
|
}
|
||||||
|
|
||||||
return null;
|
return null;
|
||||||
|
|
Loading…
Reference in New Issue