Skip to content
Bitcoin Roots

v29.4-roots.4 · Commit 28: [PATCH 28/37] fix(wallet): secure asynchronous sweep cancellation

src/key_io.h

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

File metadata
index e387273e548a3691f3e9063bdba0b5d69b3f9d86..ac3779a7009364143dd6b72b7aae85002840011c 100644

Download original patch · Release notes

Diff rows 1–15 of 15. 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/key_io.h CHANGED
@@ -6,6 +6,8 @@
6
6
  #ifndef BITCOIN_KEY_IO_H
7
7
  #define BITCOIN_KEY_IO_H
8
8
 
9
+ #include <support/allocators/secure.h>
10
+
9
11
  #include <addresstype.h>
10
12
  #include <chainparams.h>
11
13
  #include <key.h>
@@ -14,6 +16,7 @@
14
16
  #include <string>
15
17
 
16
18
  CKey DecodeSecret(const std::string& str);
19
+ CKey DecodeSecret(const SecureString& str);
17
20
  std::string EncodeSecret(const CKey& key);
18
21
 
19
22
  CExtKey DecodeExtKey(const std::string& str);