aboutsummaryrefslogtreecommitdiff
path: root/src/key.h
diff options
context:
space:
mode:
authorMarcoFalke <falke.marco@gmail.com>2021-11-08 14:27:35 +0100
committerMacroFake <falke.marco@gmail.com>2022-04-27 19:53:37 +0200
commitfacd1fb911abfc595a3484ee53397eff515d4c40 (patch)
treecc0ed08bb4e505f6570236ab86ef4ef4e268c3c9 /src/key.h
parentfae1006019188700e0c497a63fc1550fe00ca8bb (diff)
downloadbitcoin-facd1fb911abfc595a3484ee53397eff515d4c40.tar.xz
refactor: Use Span of std::byte in CExtKey::SetSeed
Diffstat (limited to 'src/key.h')
-rw-r--r--src/key.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/key.h b/src/key.h
index b21e658107..12d03778a0 100644
--- a/src/key.h
+++ b/src/key.h
@@ -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. */