Beginning work on UAPI and routing table

This commit is contained in:
Mathias Hall-Andersen
2017-05-30 22:36:49 +02:00
parent 6bd0b2fbe2
commit 1eebdf88a3
8 changed files with 529 additions and 0 deletions

18
src/peer.go Normal file
View File

@@ -0,0 +1,18 @@
package main
import (
"sync"
)
type KeyPair struct {
recieveKey NoiseSymmetricKey
recieveNonce NoiseNonce
sendKey NoiseSymmetricKey
sendNonce NoiseNonce
}
type Peer struct {
mutex sync.RWMutex
publicKey NoisePublicKey
presharedKey NoiseSymmetricKey
}