Changeset View
Changeset View
Standalone View
Standalone View
src/key.h
Show First 20 Lines • Show All 182 Lines • ▼ Show 20 Lines | template <typename Stream> void Unserialize(Stream &s) { | ||||
if (len != BIP32_EXTKEY_SIZE) { | if (len != BIP32_EXTKEY_SIZE) { | ||||
throw std::runtime_error("Invalid extended key size\n"); | throw std::runtime_error("Invalid extended key size\n"); | ||||
} | } | ||||
uint8_t code[BIP32_EXTKEY_SIZE]; | uint8_t code[BIP32_EXTKEY_SIZE]; | ||||
s.read((char *)&code[0], len); | s.read((char *)&code[0], len); | ||||
Decode(code); | Decode(code); | ||||
} | } | ||||
CExtKey() = default; | |||||
}; | }; | ||||
/** | /** | ||||
* Initialize the elliptic curve support. May not be called twice without | * Initialize the elliptic curve support. May not be called twice without | ||||
* calling ECC_Stop first. | * calling ECC_Stop first. | ||||
*/ | */ | ||||
void ECC_Start(); | void ECC_Start(); | ||||
Show All 10 Lines |