Break out mobile and dummy adapter

This commit is contained in:
Neil Alexander 2019-04-01 18:02:06 +01:00
parent 39baf7365c
commit 047717abf2
No known key found for this signature in database
GPG key ID: A02A2019A2BB0944
7 changed files with 215 additions and 135 deletions

View file

@ -280,6 +280,16 @@ func (c *Core) TreeID() *crypto.TreeID {
return crypto.GetTreeID(&c.sigPub)
}
// SigPubKey gets the node's signing public key.
func (c *Core) SigPubKey() string {
return hex.EncodeToString(c.sigPub[:])
}
// BoxPubKey gets the node's encryption public key.
func (c *Core) BoxPubKey() string {
return hex.EncodeToString(c.boxPub[:])
}
// Address gets the IPv6 address of the Yggdrasil node. This is always a /128
// address.
func (c *Core) Address() *net.IP {