From facd1fb911abfc595a3484ee53397eff515d4c40 Mon Sep 17 00:00:00 2001 From: MarcoFalke Date: Mon, 8 Nov 2021 14:27:35 +0100 Subject: refactor: Use Span of std::byte in CExtKey::SetSeed --- src/key.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/key.h') 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(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 seed); + void SetSeed(Span seed); }; /** Initialize the elliptic curve support. May not be called twice without calling ECC_Stop first. */ -- cgit v1.2.3