Add support for multiple users

Created on 26 February 2023, almost 2 years ago
Updated 28 October 2023, about 1 year ago

This is currently limited to one user only.

Move the configuration of the keys, fields and relay to user/x/nostr
Ideally, we would generate the keys, but that's not the goal (yet) for this module. The question is whether it's safe enough to just write the values of the public and private key ourselves, or should we start depending on the key module?

📌 Task
Status

Active

Version

1.0

Component

Code

Created by

🇧🇪Belgium swentel

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

  • Issue created by @swentel
  • 🇳🇱Netherlands sebastian hagens Breda, Netherlands

    Is there a contrib generic key module for storing this type of data? Or should it be a more Nostr specific module for managing your keys?

  • 🇧🇪Belgium swentel

    There's https://www.drupal.org/project/key which allows to do key management, and is very pluggable.

    FWIW: In the activitypub module, I manage the keys myself (generate and store) in a private directory which works fine, but I might move to the key module at some point.

    Note: my nostr-php package allows to convert from hex -> bech32 and vice versa, so that can be used to convert easily and allow people to submit any version of their Nostr key.

  • 🇺🇸United States Shawn DeArmond

    There seems to be forming a small ecosystem of Nostr modules thanks to yourself as well as @Sebastian Hagens.

    I’m thinking there’s a need for a central “Nostr” module that handles all the common stuff, like relay management, npub management and ideally nsecBunker support.

    It can provide the settings screens and config for npubs that are global, maybe with role-based permissions, as well as npubs that are user-specific.

    Each of the modules you two (and future others) are creating shouldn’t have to re-invent NIP-1 each time.

Production build 0.71.5 2024