MCPcopy Create free account
hub / github.com/atomicdotdev/atomic / short

Method short

atomic-identity/src/identity.rs:95–97  ·  view source on GitHub ↗

Get a short form of the ID for display (first 8 characters).

(&self)

Source from the content-addressed store, hash-verified

93
94 /// Get a short form of the ID for display (first 8 characters).
95 pub fn short(&self) -> String {
96 self.to_base32()[..8].to_string()
97 }
98
99 /// The `did:atomic` identifier for this identity.
100 ///

Callers 3

test_identity_id_shortFunction · 0.45
find_identity_dirMethod · 0.45
mainFunction · 0.45

Calls 1

to_base32Method · 0.45

Tested by 2

test_identity_id_shortFunction · 0.36
mainFunction · 0.36