wireguard-go/src/peer.go
2017-06-01 21:31:30 +02:00

21 lines
310 B
Go

package main
import (
"net"
"sync"
)
type KeyPair struct {
recieveKey NoiseSymmetricKey
recieveNonce NoiseNonce
sendKey NoiseSymmetricKey
sendNonce NoiseNonce
}
type Peer struct {
mutex sync.RWMutex
publicKey NoisePublicKey
presharedKey NoiseSymmetricKey
endpoint net.IP
}