This commit is contained in:
Adam Ierymenko 2019-09-30 20:31:48 -07:00
commit 1711cced3e
No known key found for this signature in database
GPG key ID: C8877CF2D7A5D7F3
3 changed files with 50 additions and 2 deletions

View file

@ -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 }