Examples

The examples directoryarrow-up-right contains runnable demos.

key-generate

Generate a new Ed25519 keypair:

cargo run --example key-generate
use tashi_vertex::KeySecret;

let secret = KeySecret::generate();
let public = secret.public();

println!("Secret: {secret}");
println!("Public: {public}");

key-parse

Parse Base58-encoded keys:

cargo run --example key-parse

pingback

A full multi-peer consensus network with transaction exchange. Three nodes each send a PING transaction and reach consensus ordering.

Setup

Generate keypairs for three nodes:

Run

Start each node in a separate terminal, passing the other two nodes as peers:

Expected Output

Once all three nodes are running, each will reach consensus and print the ordered events:

Last updated