Trustime
This is a client implementation of the Trustime trusted timestamp service protocol.
Example Usage
use *;
use ;
License
This project is licensed under the terms of the MIT license.
This is a client implementation of the Trustime trusted timestamp service protocol.
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());
}
This project is licensed under the terms of the MIT license.