diff options
author | MarcoFalke <falke.marco@gmail.com> | 2021-11-08 14:27:35 +0100 |
---|---|---|
committer | MacroFake <falke.marco@gmail.com> | 2022-04-27 19:53:37 +0200 |
commit | facd1fb911abfc595a3484ee53397eff515d4c40 (patch) | |
tree | cc0ed08bb4e505f6570236ab86ef4ef4e268c3c9 /src/key.h | |
parent | fae1006019188700e0c497a63fc1550fe00ca8bb (diff) | |
download | bitcoin-facd1fb911abfc595a3484ee53397eff515d4c40.tar.xz |
refactor: Use Span of std::byte in CExtKey::SetSeed
Diffstat (limited to 'src/key.h')
-rw-r--r-- | src/key.h | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -85,7 +85,7 @@ public: //! Simple read-only vector-like interface. unsigned int size() const { return (fValid ? keydata.size() : 0); } - const unsigned char* data() const { return keydata.data(); } + const std::byte* data() const { return reinterpret_cast<const std::byte*>(keydata.data()); } const unsigned char* begin() const { return keydata.data(); } const unsigned char* end() const { return keydata.data() + size(); } @@ -178,7 +178,7 @@ struct CExtKey { void Decode(const unsigned char code[BIP32_EXTKEY_SIZE]); bool Derive(CExtKey& out, unsigned int nChild) const; CExtPubKey Neuter() const; - void SetSeed(Span<const uint8_t> seed); + void SetSeed(Span<const std::byte> seed); }; /** Initialize the elliptic curve support. May not be called twice without calling ECC_Stop first. */ |