| 170 | } |
| 171 | template <typename Stream> |
| 172 | void Unserialize(Stream& s) |
| 173 | { |
| 174 | unsigned int len = ::ReadCompactSize(s); |
| 175 | unsigned char code[BIP32_EXTKEY_SIZE]; |
| 176 | if (len != BIP32_EXTKEY_SIZE) |
| 177 | throw std::runtime_error("Invalid extended key size\n"); |
| 178 | s.read((char *)&code[0], len); |
| 179 | Decode(code); |
| 180 | } |
| 181 | }; |
| 182 | |
| 183 | /** Initialize the elliptic curve support. May not be called twice without calling ECC_Stop first. */ |
nothing calls this directly
no test coverage detected