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

Method to_base32

atomic-identity/src/identity.rs:66–68  ·  view source on GitHub ↗

Encode the identity ID as base32.

(&self)

Source from the content-addressed store, hash-verified

64
65 /// Encode the identity ID as base32.
66 pub fn to_base32(&self) -> String {
67 data_encoding::BASE32_NOPAD.encode(&self.0)
68 }
69
70 /// Decode an identity ID from base32.
71 pub fn from_base32(s: &str) -> Result<Self, IdentityError> {

Callers 3

shortMethod · 0.45
public_key_base32Method · 0.45

Calls 1

encodeMethod · 0.80

Tested by 1