v29.4-roots.4 · Commit 28: [PATCH 28/37] fix(wallet): secure asynchronous sweep cancellation
src/base58.h
Before: src/base58.h · After: src/base58.h
File metadata
index 2f4d0b74b1b325aa8dbbc5608e22c9a007f3748b..e85ed005ca2d860dcbcab6921799e2fd370989d1 100644
Download original patch · Release notes
Diff rows 1–14 of 14. 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
|
@@ -14,6 +14,8 @@
|
|
| 14 |
#ifndef BITCOIN_BASE58_H
|
| 15 |
#define BITCOIN_BASE58_H
|
| 16 |
|
|
|
|
|
|
|
| 17 |
#include <span.h>
|
| 18 |
|
| 19 |
#include <string>
|
|
@@ -40,5 +42,6 @@ std::string EncodeBase58Check(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
|
|
|
|
| 14 |
#ifndef BITCOIN_BASE58_H
|
| 15 |
#define BITCOIN_BASE58_H
|
| 16 |
|
| 17 |
+
#include <support/allocators/secure.h>
|
| 18 |
+
|
| 19 |
#include <span.h>
|
| 20 |
|
| 21 |
#include <string>
|
|
|
|
| 42 |
* vector (vchRet), return true if decoding is successful
|
| 43 |
*/
|
| 44 |
[[nodiscard]] bool DecodeBase58Check(const std::string& str, std::vector<unsigned char>& vchRet, int max_ret_len);
|
| 45 |
+
[[nodiscard]] bool DecodeBase58Check(const SecureString& str, std::vector<unsigned char, secure_allocator<unsigned char>>& vchRet, int max_ret_len);
|
| 46 |
|
| 47 |
#endif // BITCOIN_BASE58_H
|