4
0
mirror of https://github.com/cwinfo/yggdrasil-go.git synced 2025-07-11 10:46:28 +00:00

Remove encryption public key options (they are now derived from ed25519 key conversion in IW), also bump link version number

This commit is contained in:
Neil Alexander
2021-05-10 22:06:38 +01:00
parent 6cb958e3dc
commit bb92e61e68
5 changed files with 8 additions and 39 deletions

View File

@ -52,16 +52,10 @@ func (c *Core) _init() error {
}
c.secret = ed25519.PrivateKey(sigPriv)
sigPub := c.secret.Public()
c.public = sigPub.(ed25519.PublicKey)
c.public = c.secret.Public().(ed25519.PublicKey)
pc, err := iw.NewPacketConn(c.secret)
if err != nil {
return err
}
c.PacketConn = pc
return nil
c.PacketConn, err = iw.NewPacketConn(c.secret)
return err
}
// If any static peers were provided in the configuration above then we should

View File

@ -22,7 +22,7 @@ func version_getBaseMetadata() version_metadata {
return version_metadata{
meta: [4]byte{'m', 'e', 't', 'a'},
ver: 0,
minorVer: 0,
minorVer: 1,
}
}