trustime

Crates.iotrustime
lib.rstrustime
version0.1.0
created_at2025-07-10 12:09:47.287297+00
updated_at2025-07-10 12:09:47.287297+00
descriptionA client implementation of the Trustime trusted timestamp service protocol
homepage
repository
max_upload_size
id1746263
size53,813
(zhangheqi)

documentation

README

Trustime

This is a client implementation of the Trustime trusted timestamp service protocol.

Example Usage

use base64::prelude::*;
use trustime::{blocking::Trustime, VerifyingKey};

fn main() {
    let time = Trustime::new(
        "http://127.0.0.1:8000",
        VerifyingKey::from_sec1_bytes(
            &BASE64_STANDARD.decode("A47eU3MHwz/IAe+U0n5WG0JOr8D51i1R0M93ENLVbSCt").unwrap()
        ).unwrap(),
    );
    println!("Current timestamp: {}", time.now().unwrap().as_secs());
}

License

This project is licensed under the terms of the MIT license.

Commit count: 0

cargo fmt