From 5bb92b7b2120b95105e15c70a90188487320cda3 Mon Sep 17 00:00:00 2001 From: Zicklag Date: Tue, 8 Oct 2019 13:53:41 -0500 Subject: Update Client Instructions - Update the client instructions with the new `-v` flag needed to show all output. - Added instructions for setting the system time on Linux using the client. --- README.md | 14 ++++++++++++-- 1 file changed, 12 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 8f35e83..7a9bbed 100644 --- a/README.md +++ b/README.md @@ -45,9 +45,18 @@ $ cp target/release/roughenough-client /usr/local/bin ### Using the Client to Query a Roughtime Server ```bash -$ target/release/roughenough-client roughtime.int08h.com 2002 +$ target/release/roughenough-client -v roughtime.int08h.com 2002 Requesting time from: "roughtime.int08h.com":2002 Received time from server: midpoint="Oct 26 2018 23:20:44", radius=1000000, verified=No (merkle_index=0) +Oct 26 2018 23:20:44 +``` + +### Setting The System Time on Linux + +You can use the `date` utility on Linux machines to set the system time to the time determined by the Roughenough client: + +```bash +sudo date --utc --set "$(roughenough-client roughtime.int08h.com 2002)" ``` ### Validating Server Responses @@ -60,9 +69,10 @@ $ host -t TXT roughtime.int08h.com roughtime.int08h.com descriptive text "016e6e0284d24c37c6e4d7d8d5b4e1d3c1949ceaa545bf875616c9dce0c9bec1" # Validate the server response using its public key -$ target/release/roughenough-client roughtime.int08h.com 2002 -p 016e6e0284d24c37c6e4d7d8d5b4e1d3c1949ceaa545bf875616c9dce0c9bec1 +$ target/release/roughenough-client -v roughtime.int08h.com 2002 -p 016e6e0284d24c37c6e4d7d8d5b4e1d3c1949ceaa545bf875616c9dce0c9bec1 Requesting time from: "roughtime.int08h.com":2002 Received time from server: midpoint="Oct 26 2018 23:22:20", radius=1000000, verified=Yes (merkle_index=0) +Oct 26 2018 23:22:20 ``` The **`verified=Yes`** in the output confirms that the server's response had a valid signature. -- cgit v1.2.3