control/noise: use key.Machine{Public,Private} as appropriate.

Signed-off-by: David Anderson <danderson@tailscale.com>
This commit is contained in:
David Anderson
2021-10-25 16:41:30 -07:00
committed by Dave Anderson
parent edb33d65c3
commit 293431aaea
8 changed files with 126 additions and 119 deletions

View File

@ -42,7 +42,7 @@ const (
type Conn struct {
conn net.Conn
version uint16
peer key.Public
peer key.MachinePublic
handshakeHash [blake2s.Size]byte
rx rxState
tx txState
@ -83,7 +83,7 @@ func (c *Conn) HandshakeHash() [blake2s.Size]byte {
}
// Peer returns the peer's long-term public key.
func (c *Conn) Peer() key.Public {
func (c *Conn) Peer() key.MachinePublic {
return c.peer
}