aboutsummaryrefslogtreecommitdiffstats
path: root/identity/identity_stub.go
diff options
context:
space:
mode:
Diffstat (limited to 'identity/identity_stub.go')
-rw-r--r--identity/identity_stub.go2
1 files changed, 2 insertions, 0 deletions
diff --git a/identity/identity_stub.go b/identity/identity_stub.go
index 1bfc18d0..b6bc0ab0 100644
--- a/identity/identity_stub.go
+++ b/identity/identity_stub.go
@@ -40,10 +40,12 @@ func (i *IdentityStub) UnmarshalJSON(data []byte) error {
return nil
}
+// Id return the Identity identifier
func (i *IdentityStub) Id() string {
return i.id
}
+// HumanId return the Identity identifier truncated for human consumption
func (i *IdentityStub) HumanId() string {
return FormatHumanID(i.Id())
}