- OpenSSL
- libbase58: C library for Bitcoin’s base58 encoding
- libsodium: A modern, portable, easy to use crypto library.
- secp256k1: Optimized C library for EC operations on curve secp256k1
git submodule init
git submodule update
cd libbase58
./autogen.sh
./configure
make; cd -
cd libsodium
./autogen.sh
./configure
make && make check; cd -
cd secp256k1
./autogen.sh
./configure
make && make check; cd -
make
echo -ne '\x00\x01\x02\x03\x04\x05\x06\x07\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f' | ./hd-wallet "M/1/2'/3/4'"
# or
./hd-wallet "M/0'/1/2'"
Use the script:
./test.sh
The test vectors used are from the BIP32 spec.