mirror of
				https://github.com/yggdrasil-network/yggdrasil-go.git
				synced 2025-11-04 03:05:07 +03:00 
			
		
		
		
	Length not capacity
This commit is contained in:
		
							parent
							
								
									9cdfd59476
								
							
						
					
					
						commit
						5477566fa9
					
				
					 1 changed files with 1 additions and 1 deletions
				
			
		| 
						 | 
				
			
			@ -55,7 +55,7 @@ func New(secret ed25519.PrivateKey, logger util.Logger, opts ...SetupOption) (*C
 | 
			
		|||
	if len(secret) != ed25519.PrivateKeySize {
 | 
			
		||||
		return nil, fmt.Errorf("private key is incorrect length")
 | 
			
		||||
	}
 | 
			
		||||
	c.secret = make(ed25519.PrivateKey, 0, ed25519.PrivateKeySize)
 | 
			
		||||
	c.secret = make(ed25519.PrivateKey, ed25519.PrivateKeySize)
 | 
			
		||||
	copy(c.secret, secret)
 | 
			
		||||
	c.public = secret.Public().(ed25519.PublicKey)
 | 
			
		||||
	var err error
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue