mirror of
https://github.com/ton-blockchain/ton
synced 2025-03-09 15:40:10 +00:00
Export all keys command in validator-engine-console (#1412)
* Export all keys command in validator-engine-console * Use OPENSSL_cleanse in Bits256::fill_zero_s
This commit is contained in:
parent
4aa6412f9c
commit
9ae88d87e3
11 changed files with 173 additions and 6 deletions
|
@ -33,6 +33,7 @@ class KeyringImpl : public Keyring {
|
|||
td::actor::ActorOwn<DecryptorAsync> decryptor_sign;
|
||||
td::actor::ActorOwn<DecryptorAsync> decryptor_decrypt;
|
||||
PublicKey public_key;
|
||||
PrivateKey private_key;
|
||||
bool is_temp;
|
||||
PrivateKeyDescr(PrivateKey private_key, bool is_temp);
|
||||
};
|
||||
|
@ -56,6 +57,8 @@ class KeyringImpl : public Keyring {
|
|||
|
||||
void decrypt_message(PublicKeyHash key_hash, td::BufferSlice data, td::Promise<td::BufferSlice> promise) override;
|
||||
|
||||
void export_all_private_keys(td::Promise<std::vector<PrivateKey>> promise) override;
|
||||
|
||||
KeyringImpl(std::string db_root) : db_root_(db_root) {
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue