trustime 0.1.0

A client implementation of the Trustime trusted timestamp service protocol
Documentation

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.