A barebones implementation of nostr in scala