mirror of
				https://github.com/ton-blockchain/ton
				synced 2025-03-09 15:40:10 +00:00 
			
		
		
		
	Generate random privkey in AdnlExtClient (#1398)
This commit is contained in:
		
							parent
							
								
									061c82f89c
								
							
						
					
					
						commit
						8a41ee8ffb
					
				
					 1 changed files with 4 additions and 1 deletions
				
			
		| 
						 | 
				
			
			@ -43,7 +43,10 @@ class AdnlOutboundConnection : public AdnlExtConnection {
 | 
			
		|||
 public:
 | 
			
		||||
  AdnlOutboundConnection(td::SocketFd fd, std::unique_ptr<AdnlExtConnection::Callback> callback, AdnlNodeIdFull dst,
 | 
			
		||||
                         td::actor::ActorId<AdnlExtClientImpl> ext_client)
 | 
			
		||||
      : AdnlExtConnection(std::move(fd), std::move(callback), true), dst_(std::move(dst)), ext_client_(ext_client) {
 | 
			
		||||
      : AdnlExtConnection(std::move(fd), std::move(callback), true)
 | 
			
		||||
      , dst_(std::move(dst))
 | 
			
		||||
      , local_id_(privkeys::Ed25519::random())
 | 
			
		||||
      , ext_client_(ext_client) {
 | 
			
		||||
  }
 | 
			
		||||
  AdnlOutboundConnection(td::SocketFd fd, std::unique_ptr<AdnlExtConnection::Callback> callback, AdnlNodeIdFull dst,
 | 
			
		||||
                         PrivateKey local_id, td::actor::ActorId<AdnlExtClientImpl> ext_client)
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue