Crates.io | blossom-auth |
lib.rs | blossom-auth |
version | 0.2.0 |
source | src |
created_at | 2024-07-24 20:09:24.822247 |
updated_at | 2024-08-01 22:55:11.397689 |
description | A CLI tool to generate Blossom authorization events |
homepage | https://github.com/0xtrr/blossom-auth |
repository | https://github.com/0xtrr/blossom-auth |
max_upload_size | |
id | 1314308 |
size | 70,833 |
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.
cargo install blossom-auth
git clone https://github.com/0xtrr/blossom-auth.git
cd blossom-auth
cargo build --release
./target/release/blossom-auth -h
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}"
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.