From e8e8fcef890e0b2ea867fef735cc75a7bca383b7 Mon Sep 17 00:00:00 2001 From: Dr Maxim Orlovsky Date: Thu, 25 Apr 2024 01:01:16 +0200 Subject: [PATCH] simple instructions for using command-line --- README.md | 16 ++++++++++++++++ src/main.rs | 2 +- 2 files changed, 17 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index a7e4cdf..641d2be 100644 --- a/README.md +++ b/README.md @@ -7,3 +7,19 @@ [![crates.io](https://img.shields.io/crates/v/s2id)](https://crates.io/crates/s2id) [![Docs](https://docs.rs/s2id/badge.svg)](https://docs.rs/s2id) [![Apache-2 licensed](https://img.shields.io/crates/l/s2id)](./LICENSE) + +## Installation + +```console +$ cargo install s2id --all-features +``` + +## Use + +```console +$ ssi help +$ ssi new --no-expiry --uid "My Name " +$ ssi list +$ SIG=`ssi sign my@email.com -t "Test message"` +$ ssi verify $SIG +``` diff --git a/src/main.rs b/src/main.rs index 9065a89..11767b5 100644 --- a/src/main.rs +++ b/src/main.rs @@ -197,7 +197,7 @@ fn main() { let signer = runtime .find_signer(ssi, &passwd) .expect("unknown signing identity"); - eprintln!("Using key {signer})"); + eprintln!("Using key {signer}"); let cert = signer.sign(msg); println!("{cert}"); }