MCPcopy Index your code
hub / github.com/QuipNetwork/hashsigs-rs

github.com/QuipNetwork/hashsigs-rs @v0.0.2

Chat with this repo
repository ↗ · DeepWiki ↗ · release v0.0.2 ↗ · + Follow
49 symbols 157 edges 5 files 15 documented · 31%
What it actually does AI analysis from the code graph — generated when you open this
loading…
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) bash 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

Core symbols most depended-on inside this repo

generate_key_pair
called by 11
src/lib.rs
serialize
called by 10
solana/src/processor.rs
sign
called by 8
src/lib.rs
prf
called by 5
src/lib.rs
generate_randomization_elements
called by 5
src/lib.rs
chain
called by 4
src/lib.rs
to_bytes
called by 3
src/lib.rs
compute_message_hash_chain_indexes
called by 3
src/lib.rs

Shape

Function 26
Method 18
Class 4
Enum 1

Languages

Rust100%

Modules by API surface

src/lib.rs24 symbols
solana/src/processor.rs13 symbols
solana/tests/solana_unit_tests.rs9 symbols
tests/test_vectors.rs3 symbols

For agents

$ claude mcp add hashsigs-rs \
  -- python -m otcore.mcp_server <graph>

⬇ download graph artifact