diff options
author | MarcoFalke <falke.marco@gmail.com> | 2021-11-01 13:59:15 +0100 |
---|---|---|
committer | MarcoFalke <falke.marco@gmail.com> | 2021-11-01 14:20:56 +0100 |
commit | fa93ef5a8aeae36304c792697a78af2d07fd9f41 (patch) | |
tree | 15a20252f07a2c95b9fb52be37a0369a6f5c4c80 /src/test/bip32_tests.cpp | |
parent | 5574881ce329f91cc5bbc2b9585860a45fde7c3c (diff) |
refactor: Take Span in SetSeed
This makes calling code less verbose and less fragile. Also, by adding
the CKey::data() member function, it is now possible to call HexStr()
with a CKey object.
Diffstat (limited to 'src/test/bip32_tests.cpp')
-rw-r--r-- | src/test/bip32_tests.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/test/bip32_tests.cpp b/src/test/bip32_tests.cpp index a89868e1ef..0fa6b7784f 100644 --- a/src/test/bip32_tests.cpp +++ b/src/test/bip32_tests.cpp @@ -124,7 +124,7 @@ void RunTest(const TestVector &test) { std::vector<unsigned char> seed = ParseHex(test.strHexMaster); CExtKey key; CExtPubKey pubkey; - key.SetSeed(seed.data(), seed.size()); + key.SetSeed(seed); pubkey = key.Neuter(); for (const TestDerivation &derive : test.vDerive) { unsigned char data[74]; |