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 {
|
||||
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;
|
||||
|
|
Loading…
Reference in New Issue