v29.4-roots.3 · Commit 28: [PATCH 28/30] 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. The two line-number columns refer to before and after.
src/base58.h
CHANGED
|
@@ -14,6 +14,8 @@
|
|
|
14
14
|
#ifndef BITCOIN_BASE58_H
|
|
15
15
|
#define BITCOIN_BASE58_H
|
|
16
16
|
|
|
17
|
+
#include <support/allocators/secure.h>
|
|
18
|
+
|
|
17
19
|
#include <span.h>
|
|
18
20
|
|
|
19
21
|
#include <string>
|
|
@@ -40,5 +42,6 @@ std::string EncodeBase58Check(Span<const unsigned char> input);
|
|
|
40
42
|
* vector (vchRet), return true if decoding is successful
|
|
41
43
|
*/
|
|
42
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);
|
|
43
46
|
|
|
44
47
|
#endif // BITCOIN_BASE58_H
|