API Reference NostrBasics v0.1.4

modules

Modules

Basic structures both useful for nostr relays and clients

A message from a client to a relay

Converts Jason encoded structures into NostrBasics elixir structures

When a subscription's got to be closed... meant to be sent to a relay from a client.

Crypto algorithms needed to communicate on the nostr network

Algorithm that encrypts and decrypts direct messages

Represents the basic structure of anything that's being sent to/from relays

Event id conversion functions

Turns raw events from JSON websocket messages into elixir structs

Signs events, making sure they're going to be accepted on the nostr network as the user's own

Makes sure a signature is valid

Details of a client subscription request to a relay

Converts a string request to a structured subscription filter and back

Transaforms a %Filter{} into a NIP-01 JSON string

A way to represent binaries in a human readable format that fits what's found on the web related to keys and addresses

Private keys management functions

Public keys management functions

Represents a nostr contact that's being followed by someone

Represents a nostr user's contact list... and relays...

Convert a contact list model to a nostr event

Convert a nostr event into a contact list

Delete event struct and manipulation functions

Convert a delete model to a nostr event

Encrypted direct message struct and manipulation functions

Convert a encrypted direct message model to a nostr event

Note struct and manipulation functions

Convert a note model to a nostr event

Represents a user's profile

Convert a profile model to a nostr event

Reaction struct and manipulation functions

Convert a reaction model to a nostr event

Repost event struct and manipulation functions

Convert a repost model to a nostr event

A message from a relay to a client

Converts Jason encoded structures into NostrBasics elixir structures