From d48c70ca59710f9ee0696172866737b0f691472c Mon Sep 17 00:00:00 2001 From: "Andreas M. Antonopoulos" Date: Mon, 17 Feb 2014 22:08:48 -0600 Subject: [PATCH] ch3 sx tools part 2 --- ch03.asciidoc | 52 ++++++++------------------------------------------- 1 file changed, 8 insertions(+), 44 deletions(-) diff --git a/ch03.asciidoc b/ch03.asciidoc index cc0730b7..51b4e1c3 100644 --- a/ch03.asciidoc +++ b/ch03.asciidoc @@ -1160,7 +1160,7 @@ $ cat seed eb68ee9f3df6bd4441a9feadec179ff1 ---- -The seed value can also be exported as a word mnemonic that is human readable and easier to store and type than a hexadecimal string, using sx tools +mnemonic+ sub-command: +The seed value can also be exported as a word mnemonic that is human readable and easier to store and type than a hexadecimal string, using the +mnemonic+ command: ---- $ sx mnemonic < seed > words @@ -1168,10 +1168,10 @@ $ cat words adore repeat vision worst especially veil inch woman cast recall dwell appreciate ---- -The mnemonic words can be used to reproduce the seed. Notice that we use the +sx-mnemonic+ command (with a dash), not the sx command with the mnemonic sub-command: +The mnemonic words can be used to reproduce the seed, using the +mnemonic+ command again: ---- -$ sx-mnemonic < words +$ sx mnemonic < words eb68ee9f3df6bd4441a9feadec179ff1 ---- @@ -1189,46 +1189,10 @@ $ sx genpriv 1 < seed | sx addr 1G1oTeXitk76c2fvQWny4pryTdH1RTqSPW ---- -With deterministic keys we can generate and re-generate a large number of keys, all derived from a single seed in a deterministic chain. This technique is used in many wallets to generate keys that can be backed up and restored with a single simple word mnemonic. This makes it easier than requiring that the wallet be backed up with all its randomly generated keys every time a key is added. - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - +With deterministic keys we can generate and re-generate thousands of keys, all derived from a single seed in a deterministic chain. This technique is used in many wallet applications to generate keys that can be backed up and restored with a simple multi-word mnemonic. This is easier than having to backup the wallet with all its randomly generated keys every time a new key is created. +[TIP] +==== +The sx toolkit offers many useful commands for encoding and decoding addresses, converting to and from different formats and representations. Use them to explore the various formaat such as base58, base58check, hex etc. +====