Skip to main content
TAPLE Core is the reference library that implements all the necessary functionality for developing a client compatible with TAPLE’s distributed ledger network.

Requirements

Minimum supported Rust version (MSRV) is 1.67.

Adding TAPLE Core to Your Project

1

Add the dependency to Cargo.toml

Add TAPLE Core to your project’s Cargo.toml file:
[dependencies]
taple-core = { version = "0.4.0", features = ["validation"] }
tokio = { version = "1.20", features = [
    "default",
    "time",
    "rt",
    "rt-multi-thread",
    "sync",
    "macros",
] }
hex = "0.4.3"
TAPLE Core requires the Tokio async runtime for asynchronous operations.
2

Choose optional features

TAPLE Core provides several optional features that can be enabled based on your needs:
  • evaluation - Enables smart contract evaluation capabilities (requires wasmtime)
  • approval - Enables approval/voting functionality for governance
  • validation - Enables event validation features
  • secp256k1 - Enables secp256k1 cryptographic support (enabled by default)
  • all - Enables all available features
Example with multiple features:
[dependencies]
taple-core = { version = "0.4.0", features = ["validation", "approval", "evaluation"] }
3

Import TAPLE Core in your code

Import the necessary modules in your Rust code:
use taple_core::crypto::*;
use taple_core::request::*;
use taple_core::signature::*;
use taple_core::*;

Available Cryptographic Algorithms

TAPLE Core supports multiple cryptographic algorithms for key derivation and digest generation:

Key Derivation

  • Ed25519 - EdDSA signature scheme using Curve25519
  • Secp256k1 - ECDSA using the secp256k1 curve (requires secp256k1 feature)

Digest Algorithms

  • Blake3_256 - BLAKE3 hash function with 256-bit output
  • Blake3_512 - BLAKE3 hash function with 512-bit output
  • SHA2_256 - SHA-2 with 256-bit output
  • SHA2_512 - SHA-2 with 512-bit output
  • SHA3_256 - SHA-3 with 256-bit output
  • SHA3_512 - SHA-3 with 512-bit output

Project Information

Next Steps

Now that you have TAPLE Core installed, proceed to Node Setup to learn how to configure and initialize a TAPLE node.

Build docs developers (and LLMs) love