Kadena Rust Lib
A comprehensive Rust library for interacting with Pact smart contracts and the Kadena blockchain. This library provides a type-safe, ergonomic interface for creating and signing Pact commands, managing cryptographic operations, and interacting with Kadena nodes.
Features
- 🔑 Cryptographic Operations
- ED25519 key generation and management
- Message signing and verification
- Blake2b hashing
- 📜 Pact Command Creation
- Type-safe command builders
- Capability management
- Transaction metadata handling
- 🔄 Transaction Management
- Command preparation
- Transaction signing
- Local and Send endpoint integration
Installation
Add this to your Cargo.toml:
[]
= "0.1.0"
Quick Start
use ;
async
Documentation
For detailed documentation and examples, visit docs.rs/kadena.
Examples
See the examples directory for more detailed examples.
Performance
This library includes comprehensive benchmarks that you can run with:
View the benchmark results in target/criterion/report/index.html.
Safety and Security
This library uses well-audited cryptographic implementations:
- ED25519 operations via
ed25519-dalek - Blake2b hashing via
blake2 - Secure random number generation via
rand
Contributing
We welcome contributions! See CONTRIBUTING.md for guidelines.
Development Setup
-
Clone the repository:
-
Run tests:
-
Run benchmarks:
License
This project is licensed under the MIT License - see the LICENSE file for details.
Changelog
See CHANGELOG.md for a list of changes.