STORY
Plans for adding more nostr features to Bolt.Fun
AUTHOR
Joined 2022.06.04
DATE
VOTES
sats
COMMENTS

Plans for adding more nostr features to Bolt.Fun

As the #NostrHack tournament approaches, we want to integrate nostr more into bolt.fun platform.
We see a lot of great opportunities in a lot of places, but at the same time, an immediate full switch won't work well either.

The best approach we think is a gradual approach where we add features one by one, and depending on user feedback, we plan the next one.

We had a discussion last week about all the possible places that we could start with, and for now I think there are a couple of places that should be of highest priority.

Enabling Linking Nostr Identities

This basically mean allowing users to link a few nostr ids to their bolt.fun profile.

We need the user to sign some verification event:

  • This signing something can either happen automatically (by extension)

  • Or the user can copy the message, signs it on another device, copy the signed message back

    This verification event that the user is supposed to sign could be an event with content like: "Connect my "mtg" bolt.fun account to this Nostr ID"

On the Server:

  • We MUST verify the created_at to be close enough

  • We MUST verify that the signature matches the pubkey in the message

So after the User logs in and clicks on a "Connect nostr id to my BF account, the user will be asked to sign a message.

  • So the user sign this message with his prvKey.

  • He sends the signed MSG to our API

  • The server verifies everything.

  • If OK: -> We delete any linking entry that is using this pubkey -> We create a new entry for (pubkey, user_id)

  • We can limit the number of nostr ids you can connect to: 3 ❓❓❓

The effects on the platform:

  • We show your BF profile data in place of your nostr profile wherever your nostr profile appears??

  • We show your npubs on your profile

  • (At some point, we might want to allow people to follow other people npubs❓❓❓)

  • We show a nostr feed for the user notes (somewhere)

  • Q: How can we get the user's bolt.fun stories that are published from BF keys❓❓❓

  • A1: Include the OG npub in a p tag in the story event?? But this means that when we want to query them, we will have to make a very specific query to not get all the notes that this user is mentioned in...

  • A2: Publish 2 events. One from BF, and one from the user account. But this will mean that publishing one from the user's account will need to happen on the client and after showing the user some kind of prompt.

Designs ❓❓❓

Showing a tournament feed

The tournament feed will be NOSTR NOTES which are:

  • created by people who are 1) Registered to the tournament, 2) Connected their Nostr Id to BF profile. AND 3) Are using #NostrHack hashtag.

  • OR: Any NOSTR NOTE using #NostrHack

  • OR if we want to also show people's normal BF stories in the feed, then we could also include: Any Story published by BF pubkey (root-story-event) that are using #NostrHack

**P.S: The "❓❓❓" are places where this point is open for suggestions, ideas, and feedback.