| Crates.io | trustime |
| lib.rs | trustime |
| version | 0.1.0 |
| created_at | 2025-07-10 12:09:47.287297+00 |
| updated_at | 2025-07-10 12:09:47.287297+00 |
| description | A client implementation of the Trustime trusted timestamp service protocol |
| homepage | |
| repository | |
| max_upload_size | |
| id | 1746263 |
| size | 53,813 |
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.