Skip to content

Commit

Permalink
Add test vectors from BIP32
Browse files Browse the repository at this point in the history
  • Loading branch information
np committed Jan 15, 2015
1 parent f33306d commit fefb077
Show file tree
Hide file tree
Showing 85 changed files with 1,233 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
#!/bin/bash

testname=hd-path-M-0\'-1-2\'-2-1000000000-from-seed-test-vector1.t
command=hx
args=( hd-path M/0\'/1/2\'/2/1000000000 )
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
}
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
000102030405060708090a0b0c0d0e0f
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
xpub6H1LXWLaKsWFhvm6RVpEL9P4KfRZSW7abD2ttkWP3SSQvnyA8FSVqNTEcYFgJS2UaFcxupHiYkro49S8yGasTvXEYBVPamhGW6cFJodrTHy
42 changes: 42 additions & 0 deletions tests/hd-path-M-0'-1-2'-2-from-seed-test-vector1.t/TESTRECIPE
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
#!/bin/bash

testname=hd-path-M-0\'-1-2\'-2-from-seed-test-vector1.t
command=hx
args=( hd-path M/0\'/1/2\'/2 )
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
}
1 change: 1 addition & 0 deletions tests/hd-path-M-0'-1-2'-2-from-seed-test-vector1.t/stdin
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
000102030405060708090a0b0c0d0e0f
1 change: 1 addition & 0 deletions tests/hd-path-M-0'-1-2'-2-from-seed-test-vector1.t/stdout
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
xpub6FHa3pjLCk84BayeJxFW2SP4XRrFd1JYnxeLeU8EqN3vDfZmbqBqaGJAyiLjTAwm6ZLRQUMv1ZACTj37sR62cfN7fe5JnJ7dh8zL4fiyLHV
42 changes: 42 additions & 0 deletions tests/hd-path-M-0'-1-2'-from-seed-test-vector1.t/TESTRECIPE
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
#!/bin/bash

testname=hd-path-M-0\'-1-2\'-from-seed-test-vector1.t
command=hx
args=( hd-path M/0\'/1/2\' )
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
}
1 change: 1 addition & 0 deletions tests/hd-path-M-0'-1-2'-from-seed-test-vector1.t/stdin
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
000102030405060708090a0b0c0d0e0f
1 change: 1 addition & 0 deletions tests/hd-path-M-0'-1-2'-from-seed-test-vector1.t/stdout
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
xpub6D4BDPcP2GT577Vvch3R8wDkScZWzQzMMUm3PWbmWvVJrZwQY4VUNgqFJPMM3No2dFDFGTsxxpG5uJh7n7epu4trkrX7x7DogT5Uv6fcLW5
42 changes: 42 additions & 0 deletions tests/hd-path-M-0'-1-from-seed-test-vector1.t/TESTRECIPE
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
#!/bin/bash

testname=hd-path-M-0\'-1-from-seed-test-vector1.t
command=hx
args=( hd-path M/0\'/1 )
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
}
1 change: 1 addition & 0 deletions tests/hd-path-M-0'-1-from-seed-test-vector1.t/stdin
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
000102030405060708090a0b0c0d0e0f
1 change: 1 addition & 0 deletions tests/hd-path-M-0'-1-from-seed-test-vector1.t/stdout
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
xpub6ASuArnXKPbfEwhqN6e3mwBcDTgzisQN1wXN9BJcM47sSikHjJf3UFHKkNAWbWMiGj7Wf5uMash7SyYq527Hqck2AxYysAA7xmALppuCkwQ
42 changes: 42 additions & 0 deletions tests/hd-path-M-0'-from-seed-test-vector1.t/TESTRECIPE
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
#!/bin/bash

testname=hd-path-M-0\'-from-seed-test-vector1.t
command=hx
args=( hd-path M/0\' )
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
}
1 change: 1 addition & 0 deletions tests/hd-path-M-0'-from-seed-test-vector1.t/stdin
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
000102030405060708090a0b0c0d0e0f
1 change: 1 addition & 0 deletions tests/hd-path-M-0'-from-seed-test-vector1.t/stdout
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
xpub68Gmy5EdvgibQVfPdqkBBCHxA5htiqg55crXYuXoQRKfDBFA1WEjWgP6LHhwBZeNK1VTsfTFUHCdrfp1bgwQ9xv5ski8PX9rL2dZXvgGDnw
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
#!/bin/bash

testname=hd-path-M-0-2147483647\'-1-2147483646\'-2-from-seed-test-vector.t
command=hx
args=( hd-path M/0/2147483647\'/1/2147483646\'/2 )
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
}
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
fffcf9f6f3f0edeae7e4e1dedbd8d5d2cfccc9c6c3c0bdbab7b4b1aeaba8a5a29f9c999693908d8a8784817e7b7875726f6c696663605d5a5754514e4b484542
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
xpub6FnCn6nSzZAw5Tw7cgR9bi15UV96gLZhjDstkXXxvCLsUXBGXPdSnLFbdpq8p9HmGsApME5hQTZ3emM2rnY5agb9rXpVGyy3bdW6EEgAtqt
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
#!/bin/bash

testname=hd-path-M-0-2147483647\'-1-2147483646\'-from-seed-test-vector.t
command=hx
args=( hd-path M/0/2147483647\'/1/2147483646\' )
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
}
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
fffcf9f6f3f0edeae7e4e1dedbd8d5d2cfccc9c6c3c0bdbab7b4b1aeaba8a5a29f9c999693908d8a8784817e7b7875726f6c696663605d5a5754514e4b484542
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
xpub6ERApfZwUNrhLCkDtcHTcxd75RbzS1ed54G1LkBUHQVHQKqhMkhgbmJbZRkrgZw4koxb5JaHWkY4ALHY2grBGRjaDMzQLcgJvLJuZZvRcEL
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
#!/bin/bash

testname=hd-path-M-0-2147483647\'-1-from-seed-test-vector.t
command=hx
args=( hd-path M/0/2147483647\'/1 )
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
}
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
fffcf9f6f3f0edeae7e4e1dedbd8d5d2cfccc9c6c3c0bdbab7b4b1aeaba8a5a29f9c999693908d8a8784817e7b7875726f6c696663605d5a5754514e4b484542
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
xpub6DF8uhdarytz3FWdA8TvFSvvAh8dP3283MY7p2V4SeE2wyWmG5mg5EwVvmdMVCQcoNJxGoWaU9DCWh89LojfZ537wTfunKau47EL2dhHKon
Loading

0 comments on commit fefb077

Please sign in to comment.