NIP-58 is for badges, which is pretty cool. I put together a POC for Multiparty Attribute-based Encryption that could be used to send messages decipherable by accounts that meet certain badge criteria.

Such as: "((shit_poster AND influencer) OR (founder AND honor_badge) OR mega_donor))"

I don't know if it is valuable, but maybe, and the crypto works. Thoughts? I can formalize it with a better reference implementation if seems useful.

CC: #[0] #[1] #[2]

https://github.com/3yekn/nostr-abe

Reply to this note

Please Login to reply.

Discussion

That sounds pretty cool. I thought badges were decorative though but with that you could set paywalled content for subscribers!

Very cool, so you're basically turning badges into a groups function too, why not both? I'm pretty sure people will have need for gated communities for things like group chats, DMS, lists

Yes, with ways to combine groups with ORs and ANDs. It's like a venn diagram builder for accounts to post to. I'm sure bots will send DMs, but that is a lot of traffic because each DM is a separate event.

With ABE, there is only one event and all the right people can decrypt it. Much less load on relays.

I also think that some programmatic badges could be useful. Things like 'OG from 2023', 'super zapper', or 'relay surfer`. It could get a little creepy with audience targeting, but that'll happen no matter what. #[2]

ABE will also grant access to badge holders retroactively, for better or worse. They will get to see history. #[2] #[3]

The badge NIP! #[0]

you can embed some. bitcoin in it and have a badge hunting contest

fhen everyone will start using it real fast

That is a super cool idea. Earn badges x, y, and z (badges that are invented and authorized by separate independent parties) to earn the bitcoin.

I think we’d need the badge creators to sign the attribute keys but maybe we can add that to badge onboarding.

aren't they already signed at creation?

The authority needs to generate a key when the badges are assigned IIUC.

Maybe it's possible that it can be derived. I need to research more I think. It also might be simpler than pure ABE because badge holding is boolean vs a specific tier or type of a given badge.

https://github.com/fentec-project/gofe/blob/master/abe/ma-abe.go#L401