aboutsummaryrefslogtreecommitdiff
path: root/src/node/blockstorage.cpp
diff options
context:
space:
mode:
authorPieter Wuille <pieter@wuille.net>2023-09-18 12:10:19 -0400
committerPieter Wuille <pieter@wuille.net>2023-09-27 15:05:26 -0400
commit6ef405ddb195bbf1b28a906d8c8bb877f0c17d7b (patch)
tree23752c8b48e61f1ae65a6dd85eb5ac41ee8bf979 /src/node/blockstorage.cpp
parentd9841a7ac634472c1a9105f81f8e7b55e4bd1a4a (diff)
key: don't allocate secure mem for null (invalid) key
Instead of storing the key material as an std::vector (with secure allocator), use a secure_unique_ptr to a 32-byte array, and use nullptr for invalid keys. This means a smaller CKey type, and no secure/dynamic memory usage for invalid keys.
Diffstat (limited to 'src/node/blockstorage.cpp')
0 files changed, 0 insertions, 0 deletions