Why Nostr? What is Njump?
2023-01-14 21:06:05
in reply to

Martti Malmi on Nostr: It's very simple. Private block: { kind: 16462, content: nip04.encrypt(myPriv, myPub, ...

It's very simple. Private block:
{
kind: 16462,
content: nip04.encrypt(myPriv, myPub, JSON.stringify(privateBlockedUsersArray))
}

Public block:
{
kind: 16463,
content: JSON.stringify(publicBlockedUsersArray)
}

I picked the kind by random from the replaceable events range.

Any improvements are welcome. One thing that comes to mind is recording the reason or expiry date for block. If such additional attributes are needed, object might be better than array.
Author Public Key
npub1g53mukxnjkcmr94fhryzkqutdz2ukq4ks0gvy5af25rgmwsl4ngq43drvk