Skip to content

dtonon/nostr-ruby-playground

Repository files navigation

Nostr Ruby playground

A series of simple progressive Ruby scripts to learn how to interact with the Nostr Protocol following the NIPs.

Basic learning

  1. How to generate a key pair

  2. Convert keys to/from npub/nsec Damus Bench32 format

  3. Generate pub key from a private one and check it against a reference

  4. Create an event and check it against a reference

  5. Post an event to Nostr

  6. Post a direct message to a Nostr user

Interactive scripts

  1. Let's chat with another user!

  1. Be alerted for new content or private messages

The scripts contain a test key pair, feel free to update it to test. To experimenting with events creation is suggested to use a local relay, you can find many implementations at awensome-nostr.

About

A ruby playground to learn the Nostr protocol

Topics

Resources

Stars

Watchers

Forks

Languages