A series of simple progressive Ruby scripts to learn how to interact with the Nostr Protocol following the NIPs.
-
How to generate a key pair
-
Convert keys to/from npub/nsec Damus Bench32 format
-
Generate pub key from a private one and check it against a reference
-
Create an event and check it against a reference
-
Post an event to Nostr
-
Post a direct message to a Nostr user
- Let's chat with another user!
- 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.