wireguard-go/src/peer.go

21 lines
310 B
Go
Raw Normal View History

package main
import (
2017-06-01 19:31:30 +00:00
"net"
"sync"
)
type KeyPair struct {
recieveKey NoiseSymmetricKey
recieveNonce NoiseNonce
sendKey NoiseSymmetricKey
sendNonce NoiseNonce
}
type Peer struct {
mutex sync.RWMutex
publicKey NoisePublicKey
presharedKey NoiseSymmetricKey
2017-06-01 19:31:30 +00:00
endpoint net.IP
}