Customize nip 46 perms

This commit is contained in:
Jon Staab
2024-11-19 09:25:02 -08:00
parent 5b7985e5d9
commit ad58af8605
4 changed files with 17 additions and 9 deletions
+8
View File
@@ -20,6 +20,8 @@ import {
import {
getIdFilters,
WRAP,
CLIENT_AUTH,
AUTH_JOIN,
REACTION,
ZAP_RESPONSE,
DIRECT_MESSAGE,
@@ -99,6 +101,12 @@ export const IMGPROXY_URL = "https://imgproxy.coracle.social"
export const REACTION_KINDS = [REACTION, ZAP_RESPONSE]
export const NIP46_PERMS =
"nip04_encrypt,nip04_decrypt,nip44_encrypt,nip44_decrypt" +
[CLIENT_AUTH, AUTH_JOIN, MESSAGE, THREAD, COMMENT, MEMBERSHIPS, WRAP, REACTION]
.map(k => `sign_event:${k}`)
.join(",")
export const colors = [
["amber", twColors.amber[600]],
["blue", twColors.blue[600]],