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.
`JSON.stringify(obj, null, 2)` to increase happiness 😊
Please Login to reply.
sats sent using 1-click experience on astral.ninja with Alby wallet connected to my Bitcoin Jungle wallet. what kind of future am I living in?
That's how hyperbitcoinization will look like. This is just a glimpse of it.. 🍀 ⚡ 💜 🤙