fix: utf8ToBytes no longer needed

This commit is contained in:
Derrick Hammer 2023-09-01 23:31:49 -04:00
parent ef63d8d250
commit 8373114d5c
Signed by: pcfreak30
GPG Key ID: C997C339BE476FF2
1 changed files with 2 additions and 3 deletions

View File

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