diff options
author | Zicklag <zicklag@katharostech.com> | 2019-10-08 13:53:41 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-10-08 13:53:41 -0500 |
commit | 5bb92b7b2120b95105e15c70a90188487320cda3 (patch) | |
tree | 2c16527476e15308e470ab2d3b75518195437ab7 | |
parent | ecba102fb7d845a69ebfa72e9204214e135a0010 (diff) | |
download | roughenough-5bb92b7b2120b95105e15c70a90188487320cda3.zip |
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.
-rw-r--r-- | README.md | 14 |
1 files changed, 12 insertions, 2 deletions
@@ -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. |