API Reference
The tashi-vertex crate exposes the following core types. For full documentation including method signatures, see docs.rs.
Types
Engine
Starts and drives the consensus engine -- send transactions and receive ordered messages
Context
Runtime context managing async operations and resources
Socket
Async network socket bound to a local address
Options
Engine configuration (heartbeat, latency, epoch size, threading, etc.)
Message
Received message -- either an Event or a SyncPoint
Event
A finalized event carrying consensus-ordered transactions
Transaction
Allocated buffer for submitting data to the network
KeySecret
Ed25519 secret key for signing (Base58/DER serializable)
KeyPublic
Ed25519 public key for verification (Base58/DER serializable)
Peers
Set of network participants with addresses and capabilities
SyncPoint
Session management decision from the consensus layer
base58
Base58 encoding/decoding utilities
Usage Pattern
A typical application follows this flow:
Generate or parse a keypair using
KeySecret::generate()orKeySecret::parse()Configure peers by creating a
Peersset with addresses and public keysCreate a context with
Context::new()to manage async operationsBind a socket with
Socket::bind()to listen on a local addressStart the engine with
Engine::start(), passing the socket, options, key, and peersSend transactions with
engine.send_transaction()Receive messages with
engine.recv_message(), matching onMessage::EventorMessage::SyncPoint
Last updated

