| Crates.io | poh-yugen |
| lib.rs | poh-yugen |
| version | 0.1.0 |
| created_at | 2025-03-24 14:34:56.604792+00 |
| updated_at | 2025-03-24 14:34:56.604792+00 |
| description | A modern proof of history implementation in Rust |
| homepage | https://yugensource.github.io |
| repository | https://github.com/YugenSource/PoH-yugen |
| max_upload_size | |
| id | 1603846 |
| size | 32,473 |
Author: @silene0259
Date: 2024-03-23
Proof-of-History offers a realistic way of measuring time using hash functions and ticks (time intervals). PoH-yugen features advanced features like custom configuration including:
digest trait)use poh_yugen::{PoHConfig,PoHUsage,InitialSeed,TickEntryType};
use sha2::Sha256;
fn main() {
let config = PoHConfig::new(Sha256::new(), 32, 100, Some(1000), true, true, TickEntryType::Data);
let seed = InitialSeed([0; 64]);
let mut poh = PoHUsage::new(config, seed, Some(vec![1, 2, 3]), vec![]);
println!("{:?}", poh.state);
println!("Initializing PoH...");
// Initialize the PoH process
poh.init();
}