bulk-keychain
A simple high perf signing lib for BULK txns.
This crate provides the core functionality for signing transactions on BULK. Designed for low-latency, high-throughput trading systems.
Features
- Fast signing: Ed25519 signatures with SIMD optimizations
- Batch signing: Sign multiple transactions in parallel using Rayon
- Zero-copy serialization: Minimal allocations in hot paths
- Type-safe: Rust's type system prevents malformed transactions
Quick Start
use ;
// Generate a new keypair
let keypair = generate;
// Create an order
let order = limit;
// Sign the transaction
let mut signer = new;
let signed_tx = signer.sign.unwrap;
Batch Signing
For high-frequency trading, use batch signing to maximize throughput:
use ;
let keypair = generate;
let mut signer = new;
// Create many independent orders
let orders: =
.map
.collect;
// Sign all at once - automatically uses parallel signing for large batches
let signed_txs = signer.sign_all.unwrap;