| Crates.io | gen-bls-key |
| lib.rs | gen-bls-key |
| version | 0.1.0 |
| created_at | 2025-04-11 14:54:43.764979+00 |
| updated_at | 2025-04-11 14:54:43.764979+00 |
| description | A command-line tool for generating BLS12-381 keys and deriving public keys from private keys |
| homepage | |
| repository | https://github.com/alextes/gen-bls-key |
| max_upload_size | |
| id | 1629898 |
| size | 19,407 |
A command-line tool for generating BLS12-381 keys and deriving public keys from private keys.
This package is minimally tested and should be used with caution. While it includes basic unit tests, it has not undergone extensive security audits or testing in production environments. Use at your own risk.
cargo install gen-bls-key
# Clone the repository
git clone https://github.com/alextes/gen-bls-key.git
cd gen-bls-key
# Build the project
cargo build --release
To generate a new BLS12-381 key pair (private and public keys):
gen-bls-key
Example output:
Private key: 0x1234... # 32 bytes
Public key: 0x5678... # 48 bytes
To derive a public key from an existing private key:
gen-bls-key --private-key 0x1234... # Replace with your private key
# or
gen-bls-key -p 0x1234... # Short form
Example output:
Public key: 0x5678... # 48 bytes
A tool for generating BLS12-381 keys
Usage: gen-bls-key [OPTIONS]
Options:
-p, --private-key <PRIVATE_KEY> Private key in hex format (with or without 0x prefix)
-h, --help Print help
-V, --version Print version
cargo test
cargo build --release
The binary will be available at target/release/gen-bls-key.