hashsigs-rs
A Rust implementation of WOTS+ (Winternitz One-Time Signature) scheme, with Solana program support.
Building
To build the library:
For release build:
To build the Solana program:
Testing
Run all tests:
Run specific test vectors:
Run Solana program tests:
For test output and backtrace:
RUST_BACKTRACE=1 cargo test-sbf -- --nocapture 2>&1
Show compute units only:
RUST_BACKTRACE=1 cargo test-sbf -- --nocapture 2>&1 | grep "compute units:"
Development Requirements
- Rust 1.70 or later
- Solana CLI tools (for Solana program development)
Project Structure
.
├── src/ # Core WOTS+ implementation
├── solana/ # Solana program implementation
└── tests/ # Test vectors and unit tests
License
AGPL-3.0, see COPYING