did-webvh 0.1.2

Implementation of the did:webvh method in Rust, uses the ssi crate
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
use std::env;

use did_webvh::log_entry::LogEntry;

#[tokio::main]
async fn main() {
    let args: Vec<String> = env::args().collect();

    // First argument is the command executed, second is the file to parse
    if args.len() != 2 {
        eprintln!("Usage: {} file", args[0]);
        std::process::exit(1);
    }

    let _ = LogEntry::get_log_entry_from_file(&args[1], None, None, None)
        .expect("Couldn't read from file");
}