mirror of
https://github.com/bitcoin/bitcoin.git
synced 2025-12-07 11:12:50 +01:00
refactor: Allow std::span construction from CKey
This commit is contained in:
@@ -228,7 +228,7 @@ std::string EncodeSecret(const CKey& key)
|
||||
{
|
||||
assert(key.IsValid());
|
||||
std::vector<unsigned char> data = Params().Base58Prefix(CChainParams::SECRET_KEY);
|
||||
data.insert(data.end(), key.begin(), key.end());
|
||||
data.insert(data.end(), UCharCast(key.begin()), UCharCast(key.end()));
|
||||
if (key.IsCompressed()) {
|
||||
data.push_back(1);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user