mirror of
https://github.com/ElementsProject/elements.git
synced 2026-08-18 13:17:55 +02:00
refactor: Use Span of std::byte in CExtKey::SetSeed
This commit is contained in:
parent
fae1006019
commit
facd1fb911
4 changed files with 8 additions and 7 deletions
|
|
@ -120,8 +120,9 @@ const std::vector<std::string> TEST5 = {
|
|||
"xprv9s21ZrQH143K3QTDL4LXw2F7HEK3wJUD2nW2nRk4stbPy6cq3jPPqjiChkVvvNKmPGJxWUtg6LnF5kejMRNNU3TGtRBeJgk33yuGBxrMPHL"
|
||||
};
|
||||
|
||||
void RunTest(const TestVector &test) {
|
||||
std::vector<unsigned char> seed = ParseHex(test.strHexMaster);
|
||||
void RunTest(const TestVector& test)
|
||||
{
|
||||
std::vector<std::byte> seed{ParseHex<std::byte>(test.strHexMaster)};
|
||||
CExtKey key;
|
||||
CExtPubKey pubkey;
|
||||
key.SetSeed(seed);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue