func (n *nauth) GetNewKeyPairFromPool() ([]byte, []byte, error) {
	select {
	case key := <-n.generatedKeysC:
		return key.privPem, key.pubBytes, nil
	default:
		return n.GenerateKeyPair("")
	}
}
// GetNewKeyPairFromPool returns pre-generated keypair from a channel, which
// gets replenished by `precalculateKeys` goroutine
GetNewKeyPairFromPool returns pre-generated keypair from a channel, which
gets replenished by `precalculateKeys` goroutine
// GetNewKeyPairFromPool returns pre - generated keypair from a channel which // gets replenished by ` precalculateKeys ` goroutine
func (n *nauth) GetNewKeyPairFromPool() ([]byte, []byte, error) {
	select {
	case key := <-n.generatedKeysC:
		return key.privPem, key.pubBytes, nil
	default:
		return n.GenerateKeyPair("")
	}
}
func ( n * nauth ) GetNewKeyPairFromPool ( ) ( [ ] byte , [ ] byte , error ) { select { case key := <- n . generatedKeysC : return key . privPem , key . pubBytes , nil default : return n . GenerateKeyPair ( " " ) } }
GetNewKeyPairFromPool returns pre-generated keypair from a channel, which
gets replenished by `precalculateKeys` goroutine
GetNewKeyPairFromPool returns pre - generated keypair from a channel which gets replenished by ` precalculateKeys ` goroutine