mirror of
https://github.com/ton-blockchain/ton
synced 2025-03-09 15:40:10 +00:00
Improve creating channels in adnl (#1108)
* Improve creating channels in adnl * Improve handling of cryptographic keys
This commit is contained in:
parent
0cff1c88f7
commit
77a816e461
9 changed files with 109 additions and 80 deletions
|
@ -30,12 +30,11 @@ namespace keyring {
|
|||
class KeyringImpl : public Keyring {
|
||||
private:
|
||||
struct PrivateKeyDescr {
|
||||
td::actor::ActorOwn<DecryptorAsync> decryptor;
|
||||
td::actor::ActorOwn<DecryptorAsync> decryptor_sign;
|
||||
td::actor::ActorOwn<DecryptorAsync> decryptor_decrypt;
|
||||
PublicKey public_key;
|
||||
bool is_temp;
|
||||
PrivateKeyDescr(td::actor::ActorOwn<DecryptorAsync> decryptor, PublicKey public_key, bool is_temp)
|
||||
: decryptor(std::move(decryptor)), public_key(public_key), is_temp(is_temp) {
|
||||
}
|
||||
PrivateKeyDescr(PrivateKey private_key, bool is_temp);
|
||||
};
|
||||
|
||||
public:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue