Skip to content
Bitcoin Roots

v30.3-roots.1 · Commit 28: [PATCH 28/68] fix(wallet): secure asynchronous sweep cancellation

src/base58.h

Before: src/base58.h · After: src/base58.h

File metadata
index f258163bc3dac56e56d6fb7efa227707697eb549..8fb4b3ab2dfb91d7b3e051de902dc9f44b99cd0f 100644

Download original patch · Release notes

Diff rows 1–13 of 13. Line numbers refer to the original before/after files.

+ Added− RemovedUnmarked lines are context.

Scroll the code area horizontally to read long lines. Before is on the left; after is on the right. Unified view fits narrow screens more easily.

src/base58.h CHANGED
@@ -15,6 +15,7 @@
15
  #define BITCOIN_BASE58_H
16
 
17
  #include <span.h>
 
18
 
19
  #include <string>
20
  #include <vector>
@@ -40,5 +41,6 @@ std::string EncodeBase58Check(std::span<const unsigned char> input);
40
  * vector (vchRet), return true if decoding is successful
41
  */
42
  [[nodiscard]] bool DecodeBase58Check(const std::string& str, std::vector<unsigned char>& vchRet, int max_ret_len);
 
43
 
44
  #endif // BITCOIN_BASE58_H
 
15
  #define BITCOIN_BASE58_H
16
 
17
  #include <span.h>
18
+ #include <support/allocators/secure.h>
19
 
20
  #include <string>
21
  #include <vector>
 
41
  * vector (vchRet), return true if decoding is successful
42
  */
43
  [[nodiscard]] bool DecodeBase58Check(const std::string& str, std::vector<unsigned char>& vchRet, int max_ret_len);
44
+ [[nodiscard]] bool DecodeBase58Check(const SecureString& str, std::vector<unsigned char, secure_allocator<unsigned char>>& vchRet, int max_ret_len);
45
 
46
  #endif // BITCOIN_BASE58_H