mirror of
https://github.com/ZeroTier/ZeroTierOne
synced 2025-08-21 13:54:15 -07:00
.
This commit is contained in:
parent
63e6693255
commit
1711cced3e
3 changed files with 50 additions and 2 deletions
|
@ -118,6 +118,9 @@ func NewIdentityFromString(s string) (*Identity, error) {
|
|||
return &id, nil
|
||||
}
|
||||
|
||||
// Address returns this identity's address
|
||||
func (id *Identity) Address() Address { return id.address }
|
||||
|
||||
// HasPrivate returns true if this identity has its own private portion.
|
||||
func (id *Identity) HasPrivate() bool { return len(id.privateKey) > 0 }
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue