ExchPub *[32]byte
SignPub ed25519.PublicKey
NoisePub *[32]byte
- Sendmail []string
+ Exec map[string][]string
Incoming *string
Freq *string
FreqChunked int64
if err != nil {
return nil, err
}
- noiseKey := noise.DH25519.GenerateKeypair(rand.Reader)
+ noiseKey, err := noise.DH25519.GenerateKeypair(rand.Reader)
+ if err != nil {
+ return nil, err
+ }
noisePub := new([32]byte)
noisePrv := new([32]byte)
copy(noisePrv[:], noiseKey.Private)