From ec805be4ab978b4e81a8286f8ad832c5c1689767 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C3=8D=C3=B1igo=20Ar=C3=A9jula=20A=C3=ADsa?= Date: Wed, 30 Nov 2022 23:41:10 +0100 Subject: [PATCH] expose nip 4 functions to TS (#39) --- index.d.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/index.d.ts b/index.d.ts index ac26130..adbc6a7 100644 --- a/index.d.ts +++ b/index.d.ts @@ -104,7 +104,8 @@ declare type RelayPool = { declare function relayPool(): RelayPool; // nip04.js - +declare function decrypt(privkey: string, pubkey: string, ciphertext: string): string; +declare function encrypt(privkey: string, pubkey: string, text: string): string; // nip05.js // nip06.js