Changeset View
Changeset View
Standalone View
Standalone View
src/test/bip32_tests.cpp
Show All 18 Lines | struct TestDerivation { | ||||
std::string prv; | std::string prv; | ||||
unsigned int nChild; | unsigned int nChild; | ||||
}; | }; | ||||
struct TestVector { | struct TestVector { | ||||
std::string strHexMaster; | std::string strHexMaster; | ||||
std::vector<TestDerivation> vDerive; | std::vector<TestDerivation> vDerive; | ||||
TestVector(std::string strHexMasterIn) : strHexMaster(strHexMasterIn) {} | explicit TestVector(std::string strHexMasterIn) | ||||
: strHexMaster(strHexMasterIn) {} | |||||
TestVector &operator()(std::string pub, std::string prv, | TestVector &operator()(std::string pub, std::string prv, | ||||
unsigned int nChild) { | unsigned int nChild) { | ||||
vDerive.push_back(TestDerivation()); | vDerive.push_back(TestDerivation()); | ||||
TestDerivation &der = vDerive.back(); | TestDerivation &der = vDerive.back(); | ||||
der.pub = pub; | der.pub = pub; | ||||
der.prv = prv; | der.prv = prv; | ||||
der.nChild = nChild; | der.nChild = nChild; | ||||
▲ Show 20 Lines • Show All 135 Lines • Show Last 20 Lines |