-
Notifications
You must be signed in to change notification settings - Fork 11
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Implicit conversion from seeds to xprv keys
The commands hd-pub hd-to-address and hd-to-wif are affected. Internally this benefits from a refactoring.
- Loading branch information
Showing
13 changed files
with
215 additions
and
37 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,42 @@ | ||
#!/bin/bash | ||
|
||
testname=hd-pub-from-seed-test-vector1.t | ||
command=hx | ||
args=( hd-pub ) | ||
exit_code=0 | ||
stdin_file=stdin | ||
stdout_file=stdout | ||
stderr_file=/dev/null | ||
sources=( ) | ||
products=( ) | ||
|
||
# Environment variables: | ||
env_vars=( ) | ||
|
||
setup(){ | ||
: Perform here actions to be run before the tested program | ||
} | ||
|
||
munge(){ | ||
: Munge here the results of the tested program to ease the check | ||
} | ||
|
||
check(){ | ||
check_exit_code && | ||
check_stderr && | ||
check_stdout && | ||
check_products && | ||
: Perform here extra checks on the tested program | ||
} | ||
|
||
explain(){ | ||
explain_exit_code | ||
explain_stdout | ||
explain_stderr | ||
explain_products | ||
: Explain here more potential differences | ||
} | ||
|
||
teardown(){ | ||
: Undo here the actions of setup | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
000102030405060708090a0b0c0d0e0f |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
xpub661MyMwAqRbcFtXgS5sYJABqqG9YLmC4Q1Rdap9gSE8NqtwybGhePY2gZ29ESFjqJoCu1Rupje8YtGqsefD265TMg7usUDFdp6W1EGMcet8 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,42 @@ | ||
#!/bin/bash | ||
|
||
testname=hd-pub-from-seed-test-vector2.t | ||
command=hx | ||
args=( hd-pub ) | ||
exit_code=0 | ||
stdin_file=stdin | ||
stdout_file=stdout | ||
stderr_file=/dev/null | ||
sources=( ) | ||
products=( ) | ||
|
||
# Environment variables: | ||
env_vars=( ) | ||
|
||
setup(){ | ||
: Perform here actions to be run before the tested program | ||
} | ||
|
||
munge(){ | ||
: Munge here the results of the tested program to ease the check | ||
} | ||
|
||
check(){ | ||
check_exit_code && | ||
check_stderr && | ||
check_stdout && | ||
check_products && | ||
: Perform here extra checks on the tested program | ||
} | ||
|
||
explain(){ | ||
explain_exit_code | ||
explain_stdout | ||
explain_stderr | ||
explain_products | ||
: Explain here more potential differences | ||
} | ||
|
||
teardown(){ | ||
: Undo here the actions of setup | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
fffcf9f6f3f0edeae7e4e1dedbd8d5d2cfccc9c6c3c0bdbab7b4b1aeaba8a5a29f9c999693908d8a8784817e7b7875726f6c696663605d5a5754514e4b484542 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
xpub661MyMwAqRbcFW31YEwpkMuc5THy2PSt5bDMsktWQcFF8syAmRUapSCGu8ED9W6oDMSgv6Zz8idoc4a6mr8BDzTJY47LJhkJ8UB7WEGuduB |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,42 @@ | ||
#!/bin/bash | ||
|
||
testname=hd-to-address-from-seed-test-vector1.t | ||
command=hx | ||
args=( hd-to-address ) | ||
exit_code=0 | ||
stdin_file=stdin | ||
stdout_file=stdout | ||
stderr_file=/dev/null | ||
sources=( ) | ||
products=( ) | ||
|
||
# Environment variables: | ||
env_vars=( ) | ||
|
||
setup(){ | ||
: Perform here actions to be run before the tested program | ||
} | ||
|
||
munge(){ | ||
: Munge here the results of the tested program to ease the check | ||
} | ||
|
||
check(){ | ||
check_exit_code && | ||
check_stderr && | ||
check_stdout && | ||
check_products && | ||
: Perform here extra checks on the tested program | ||
} | ||
|
||
explain(){ | ||
explain_exit_code | ||
explain_stdout | ||
explain_stderr | ||
explain_products | ||
: Explain here more potential differences | ||
} | ||
|
||
teardown(){ | ||
: Undo here the actions of setup | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
000102030405060708090a0b0c0d0e0f |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
15mKKb2eos1hWa6tisdPwwDC1a5J1y9nma |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,42 @@ | ||
#!/bin/bash | ||
|
||
testname=hd-to-wif-from-seed-test-vector1.t | ||
command=hx | ||
args=( hd-to-wif ) | ||
exit_code=0 | ||
stdin_file=stdin | ||
stdout_file=stdout | ||
stderr_file=/dev/null | ||
sources=( ) | ||
products=( ) | ||
|
||
# Environment variables: | ||
env_vars=( ) | ||
|
||
setup(){ | ||
: Perform here actions to be run before the tested program | ||
} | ||
|
||
munge(){ | ||
: Munge here the results of the tested program to ease the check | ||
} | ||
|
||
check(){ | ||
check_exit_code && | ||
check_stderr && | ||
check_stdout && | ||
check_products && | ||
: Perform here extra checks on the tested program | ||
} | ||
|
||
explain(){ | ||
explain_exit_code | ||
explain_stdout | ||
explain_stderr | ||
explain_products | ||
: Explain here more potential differences | ||
} | ||
|
||
teardown(){ | ||
: Undo here the actions of setup | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
000102030405060708090a0b0c0d0e0f |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
L52XzL2cMkHxqxBXRyEpnPQZGUs3uKiL3R11XbAdHigRzDozKZeW |