#nostr #tool #cli-tool #blossom

app blossom-auth

A CLI tool to generate Blossom authorization events

2 unstable releases

0.2.0 Aug 1, 2024
0.1.0 Jul 24, 2024

#829 in Command line utilities

Download history 106/week @ 2024-07-19 73/week @ 2024-07-26 91/week @ 2024-08-02 2/week @ 2024-08-09

212 downloads per month

Unlicense

19KB
322 lines

Blossom-auth

Blossom-auth is a CLI program to easily generate nostr authorization events for testing/debugging blossom servers. It lets you generate events for uploading and deleting blobs. It also has some options for faking file hashes and using invalid kinds in the authorization event.

Install from crates.io

cargo install blossom-auth

Build from source

git clone https://github.com/0xtrr/blossom-auth.git
cd blossom-auth
cargo build --release
./target/release/blossom-auth -h

Example usage

Get an overview of available options

blossom-auth -h

Generate a new upload authorization event

blossom-auth -a upload -d "{FILE_NAME}" -f "{PATH_TO_FILE}"

Contributing

All contributions are welcome! If you have a good idea for the CLI please either make a PR or reach out in the issues section.

Ensure that you run cargo fmt and cargo clippy before creating the PR.

Dependencies

~18–31MB
~485K SLoC