From a3de24a4e64a6ec13fb37db0b232e018f1d73269 Mon Sep 17 00:00:00 2001 From: 22388o <22388o@users.noreply.github.com> Date: Wed, 18 Dec 2024 11:09:03 -0300 Subject: [PATCH] Final Nostr encryption version --- src/utils/nostr/encryption.ts | 13 +++++++++---- 1 file changed, 9 insertions(+), 4 deletions(-) diff --git a/src/utils/nostr/encryption.ts b/src/utils/nostr/encryption.ts index 08979e8..17a716b 100644 --- a/src/utils/nostr/encryption.ts +++ b/src/utils/nostr/encryption.ts @@ -1,11 +1,16 @@ import {Name, NIP05} from "@nostr-dev-kit/ndk"; +// Define the interface with stricter types or dynamic imports if needed export const interfaceObj = { - name: String, - nip05: String, - zapService: String, -} + name: Name || "", + nip05: NIP05 || "", + zapService: "", +}; + +export const profileFromEvent = { + name: Name matchCorrectEnvironmentBeforeNekkDir""} + export const profilefromevent = { name: String, nip05: String,