Skip to content

Commit

Permalink
Updated to latest version of bc-ur, which fixes the ByteWords wordlis…
Browse files Browse the repository at this point in the history
…t alphabetization error.

* Updated to latest version of bc-ur, which fixes the [ByteWords wordlist alphabetization error](BlockchainCommons/Research#45). This was a breaking change, so all documentation and examples were updated.
  • Loading branch information
wolfmcnally committed Oct 5, 2020
1 parent 473c583 commit d74c88a
Show file tree
Hide file tree
Showing 7 changed files with 210 additions and 203 deletions.
240 changes: 122 additions & 118 deletions Docs/MANUAL.md

Large diffs are not rendered by default.

51 changes: 26 additions & 25 deletions Docs/Usage.md
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ $ seedtool --in bip39 "matrix pull accuse apart horn chat next rifle resemble ar
### Decode Bytewords to hex

```
$ seedtool --in btw "deli need cats taxi dice door webs vows free zest legs wall half waxy trip oval memo sets rock hill"
$ seedtool --in btw "deli need cats taxi dice door webs vows free zero legs wall half waxy trip oval memo sets rock hill"
279b18d0282aefe845fb83e956eed8a6
```

Expand All @@ -62,19 +62,19 @@ $ seedtool --in btw "deli need cats taxi dice door webs vows free zest legs wall

```
$ seedtool --out sskr --group 2-of-3
tuna acid epic gyro edge twin able acid able yoga nail wand keno paid ruin jazz keys acid time film pool skew flew luck ruby song owls soap obey
tuna acid epic gyro edge twin able acid acid yell omit mild webs warm epic flew liar view fuel deli fund glow skew dull knob claw gray surf wand
tuna acid epic gyro edge twin able acid also visa wave bulb hope drum quad duty need tied vast barn kick task gray tent crux owls easy jolt toil
tuna acid epic gyro many meow able acid able mild fern pool door purr calm trip cyan flew zest cats tuna omit figs bias acid aunt keys play frog
tuna acid epic gyro many meow able acid acid keep undo peck poem kiwi jazz cola luck hope rock into film jolt lava flux rust gala sets ruin toil
tuna acid epic gyro many meow able acid also girl void oval fish exam veto gala inky keys jump visa barn cusp high miss monk jazz numb dice foxy
```

### Recover a SSKR-encoded seed using 2 of the 3 shares

```
$ seedtool --in sskr
tuna acid epic gyro edge twin able acid able yoga nail wand keno paid ruin jazz keys acid time film pool skew flew luck ruby song owls soap obey
tuna acid epic gyro edge twin able acid also visa wave bulb hope drum quad duty need tied vast barn kick task gray tent crux owls easy jolt toil
tuna acid epic gyro many meow able acid able mild fern pool door purr calm trip cyan flew zest cats tuna omit figs bias acid aunt keys play frog
tuna acid epic gyro many meow able acid also girl void oval fish exam veto gala inky keys jump visa barn cusp high miss monk jazz numb dice foxy
^D
8a7e9c3c0d783371d80e1192e5f6217d
9d347f841a4e2ce6bc886e1aee74d824
```

## UR
Expand All @@ -83,7 +83,7 @@ tuna acid epic gyro edge twin able acid also visa wave bulb hope drum quad duty

```
$ seedtool --ur | tr [:lower:] [:upper:] | tee /dev/tty | qrencode -o seedqrcode.png -l L
UR:CRYPTO-SEED/OEADGDHHGTPKFXLGHHLBPYMHLFRYHLPLSSRKPKAOTPIECFFDENTNJNWNPF
UR:CRYPTO-SEED/OEADGDJOCNNEESSPDECECMVLFMLUOSBTDWQZFEAOTPIECFFDJZPYTAIEKK
```

![](../manual-images/seedqrcode.png)
Expand All @@ -92,35 +92,36 @@ UR:CRYPTO-SEED/OEADGDHHGTPKFXLGHHLBPYMHLFRYHLPLSSRKPKAOTPIECFFDENTNJNWNPF

```
$ seedtool --deterministic=TEST --count 64 --ur=20
ur:crypto-seed/1-4/ltadaacsgecyuywdrnesguoeadhdfznteelblrcygldwvarflojtcywyjytpfsmdidpk
ur:crypto-seed/2-4/ltaoaacsgecyuywdrnesgudkfwprylienshnjnpluypmamtkmybsjkspvseeehwnpdbb
ur:crypto-seed/3-4/ltaxaacsgecyuywdrnesgusawmrltdlplgkplfbkqzztglfeoyaegsnedtronnfgpsas
ur:crypto-seed/4-4/ltaaaacsgecyuywdrnesguwsdpgtimmwzspfqdjkhshyaotpiecffdemaeaedmnsoxhf
ur:crypto-seed/1-4/lpadaacsgecydiguenfeguoeadhdfznteelblrcygldwvarflojtcywyjytpcmvdgwgm
ur:crypto-seed/2-4/lpaoaacsgecydiguenfegudkfwprylienshnjnpluypmamtkmybsjkspvseecylslpwp
ur:crypto-seed/3-4/lpaxaacsgecydiguenfegusawmrltdlnlgkplfbkqzzoglfeoyaegsnedtroreeelywn
ur:crypto-seed/4-4/lpaaaacsgecydiguenfeguwsdpgtimmwzspfqdjkhshyaotpiecffdjzaeaeihatfdzm
```

### Same as above, but generate 5 additional parts using fountain codes

```
$ seedtool --deterministic=TEST --count 64 --ur=20 --parts 5
ur:crypto-seed/1-4/ltadaacsgecyuywdrnesguoeadhdfznteelblrcygldwvarflojtcywyjytpfsmdidpk
ur:crypto-seed/2-4/ltaoaacsgecyuywdrnesgudkfwprylienshnjnpluypmamtkmybsjkspvseeehwnpdbb
ur:crypto-seed/3-4/ltaxaacsgecyuywdrnesgusawmrltdlplgkplfbkqzztglfeoyaegsnedtronnfgpsas
ur:crypto-seed/4-4/ltaaaacsgecyuywdrnesguwsdpgtimmwzspfqdjkhshyaotpiecffdemaeaedmnsoxhf
ur:crypto-seed/5-4/ltahaacsgecyuywdrnesguwsdpgtimmwzspfqdjkhshyaotpiecffdemaeaegtndkijp
ur:crypto-seed/6-4/ltamaacsgecyuywdrnesguoeadhdfznteelblrcygldwvarflojtcywyjytptkwfjech
ur:crypto-seed/7-4/ltataacsgecyuywdrnesgusbjlzontwtiytiueutrdwfaachwmcmfrzovseerfsefmdp
ur:crypto-seed/8-4/ltayaacsgecyuywdrnesguhnwdwsmocwrhbkambezstspdytdtjthfjshlhnbdpygmao
ur:crypto-seed/9-4/ltasaacsgecyuywdrnesgusawmrltdlplgkplfbkqzztglfeoyaegsnedtroynmduyvl
ur:crypto-seed/1-4/lpadaacsgecydiguenfeguoeadhdfznteelblrcygldwvarflojtcywyjytpcmvdgwgm
ur:crypto-seed/2-4/lpaoaacsgecydiguenfegudkfwprylienshnjnpluypmamtkmybsjkspvseecylslpwp
ur:crypto-seed/3-4/lpaxaacsgecydiguenfegusawmrltdlnlgkplfbkqzzoglfeoyaegsnedtroreeelywn
ur:crypto-seed/4-4/lpaaaacsgecydiguenfeguwsdpgtimmwzspfqdjkhshyaotpiecffdjzaeaeihatfdzm
ur:crypto-seed/5-4/lpahaacsgecydiguenfegudkfwprylienshnjnpluypmamtkmybsjkspvseevsvwlkgy
ur:crypto-seed/6-4/lpamaacsgecydiguenfegupylpbebswmurtntpsnfzdkpswysaksjntlreghwnlyktgr
ur:crypto-seed/7-4/lpataacsgecydiguenfeguoeadhdfznteelblrcygldwvarflojtcywyjytpltlnnesb
ur:crypto-seed/8-4/lpayaacsgecydiguenfeguwsdpgtimmwzspfqdjkhshyaotpiecffdjzaeaensrewslk
ur:crypto-seed/9-4/lpasaacsgecydiguenfeguwsdpgtimmwzspfqdjkhshyaotpiecffdjzaeaezmprenpd
```

### Recover the seed from UR using a subset of the generated parts

```
$ seedtool --in ur
ur:crypto-seed/2-4/ltaoaacsgecyuywdrnesgudkfwprylienshnjnpluypmamtkmybsjkspvseeehwnpdbb
ur:crypto-seed/4-4/ltaaaacsgecyuywdrnesguwsdpgtimmwzspfqdjkhshyaotpiecffdemaeaedmnsoxhf
ur:crypto-seed/6-4/ltamaacsgecyuywdrnesguoeadhdfznteelblrcygldwvarflojtcywyjytptkwfjech
ur:crypto-seed/8-4/ltayaacsgecyuywdrnesguhnwdwsmocwrhbkambezstspdytdtjthfjshlhnbdpygmao
ur:crypto-seed/1-4/lpadaacsgecydiguenfeguoeadhdfznteelblrcygldwvarflojtcywyjytpcmvdgwgm
ur:crypto-seed/2-4/lpaoaacsgecydiguenfegudkfwprylienshnjnpluypmamtkmybsjkspvseecylslpwp
ur:crypto-seed/4-4/lpaaaacsgecydiguenfeguwsdpgtimmwzspfqdjkhshyaotpiecffdjzaeaeihatfdzm
ur:crypto-seed/6-4/lpamaacsgecydiguenfegupylpbebswmurtntpsnfzdkpswysaksjntlreghwnlyktgr
ur:crypto-seed/8-4/lpayaacsgecydiguenfeguwsdpgtimmwzspfqdjkhshyaotpiecffdjzaeaensrewslk
^D
9d347f841a4e2ce6bc886e1aee74d82442b2f7649c606daedbad06cf8f0f73c8e834c2ebb7d2868d75820ab4fb4e45a1004c9f29b8ef2d4d6a94fab0b373615e
```
Expand Down
18 changes: 9 additions & 9 deletions configure
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#! /bin/sh
# Guess values for system-dependent variables and create Makefiles.
# Generated by GNU Autoconf 2.69 for bc-seedtool-cli 0.8.1.
# Generated by GNU Autoconf 2.69 for bc-seedtool-cli 0.9.0.
#
#
# Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
Expand Down Expand Up @@ -577,8 +577,8 @@ MAKEFLAGS=
# Identity of this package.
PACKAGE_NAME='bc-seedtool-cli'
PACKAGE_TARNAME='bc-seedtool-cli'
PACKAGE_VERSION='0.8.1'
PACKAGE_STRING='bc-seedtool-cli 0.8.1'
PACKAGE_VERSION='0.9.0'
PACKAGE_STRING='bc-seedtool-cli 0.9.0'
PACKAGE_BUGREPORT=''
PACKAGE_URL=''

Expand Down Expand Up @@ -1232,7 +1232,7 @@ if test "$ac_init_help" = "long"; then
# Omit some internal or obsolete options to make the list less imposing.
# This message is too long to be a string in the A/UX 3.1 sh.
cat <<_ACEOF
\`configure' configures bc-seedtool-cli 0.8.1 to adapt to many kinds of systems.
\`configure' configures bc-seedtool-cli 0.9.0 to adapt to many kinds of systems.
Usage: $0 [OPTION]... [VAR=VALUE]...
Expand Down Expand Up @@ -1293,7 +1293,7 @@ fi

if test -n "$ac_init_help"; then
case $ac_init_help in
short | recursive ) echo "Configuration of bc-seedtool-cli 0.8.1:";;
short | recursive ) echo "Configuration of bc-seedtool-cli 0.9.0:";;
esac
cat <<\_ACEOF
Expand Down Expand Up @@ -1375,7 +1375,7 @@ fi
test -n "$ac_init_help" && exit $ac_status
if $ac_init_version; then
cat <<\_ACEOF
bc-seedtool-cli configure 0.8.1
bc-seedtool-cli configure 0.9.0
generated by GNU Autoconf 2.69
Copyright (C) 2012 Free Software Foundation, Inc.
Expand Down Expand Up @@ -1962,7 +1962,7 @@ cat >config.log <<_ACEOF
This file contains any messages produced by compilers while
running configure, to aid debugging if configure makes a mistake.
It was created by bc-seedtool-cli $as_me 0.8.1, which was
It was created by bc-seedtool-cli $as_me 0.9.0, which was
generated by GNU Autoconf 2.69. Invocation command line was
$ $0 $@
Expand Down Expand Up @@ -5048,7 +5048,7 @@ cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
# report actual input values of CONFIG_FILES etc. instead of their
# values after options handling.
ac_log="
This file was extended by bc-seedtool-cli $as_me 0.8.1, which was
This file was extended by bc-seedtool-cli $as_me 0.9.0, which was
generated by GNU Autoconf 2.69. Invocation command line was
CONFIG_FILES = $CONFIG_FILES
Expand Down Expand Up @@ -5110,7 +5110,7 @@ _ACEOF
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
ac_cs_version="\\
bc-seedtool-cli config.status 0.8.1
bc-seedtool-cli config.status 0.9.0
configured by $0, generated by GNU Autoconf 2.69,
with options \\"\$ac_cs_config\\"
Expand Down
2 changes: 1 addition & 1 deletion configure.ac
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
# Process this file with autoconf to produce a configure script.

AC_PREREQ([2.69])
AC_INIT([bc-seedtool-cli], [0.8.1])
AC_INIT([bc-seedtool-cli], [0.9.0])
AC_CONFIG_SRCDIR([src/seedtool.cpp])
AC_CONFIG_HEADERS([src/config.h])

Expand Down
2 changes: 1 addition & 1 deletion deps/bc-ur
Submodule bc-ur updated 5 files
+4 −0 README.md
+9 −9 configure
+1 −1 configure.ac
+1 −1 src/bytewords.cpp
+35 −35 test/test.cpp
Binary file modified manual-images/seedqrcode.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading

0 comments on commit d74c88a

Please sign in to comment.