hashsigs-rs

Crates.iohashsigs-rs
lib.rshashsigs-rs
version0.0.2
created_at2025-03-19 23:07:07.798734+00
updated_at2025-08-12 18:09:09.149927+00
descriptionHash based signatures, WOTS+
homepage
repositoryhttps://github.com/quipnetwork/hashsigs-rs
max_upload_size
id1598696
size198,796
Richard Carback (rcarback)

documentation

https://docs.rs/hashsigs-rs

README

hashsigs-rs

A Rust implementation of WOTS+ (Winternitz One-Time Signature) scheme, with Solana program support.

Building

To build the library:

cargo build

For release build:

cargo build --release

To build the Solana program:

cd solana
cargo build-sbf

Testing

Run all tests:

cargo test

Run specific test vectors:

cargo test test_wotsplus_keccak256_vectors

Run Solana program tests:

cd solana
cargo test-sbf

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)
    sh -c "$(curl -sSfL https://release.solana.com/v2.2/install)"
    

Project Structure

.
├── src/           # Core WOTS+ implementation
├── solana/        # Solana program implementation
└── tests/         # Test vectors and unit tests

License

AGPL-3.0, see COPYING

Commit count: 12

cargo fmt