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

Method to_base32

atomic-identity/src/identity.rs:72–74  ·  view source on GitHub ↗

Encode the identity ID as base32.

(&self)

Source from the content-addressed store, hash-verified

70
71 /// Encode the identity ID as base32.
72 pub fn to_base32(&self) -> String {
73 data_encoding::BASE32_NOPAD.encode(&self.0)
74 }
75
76 /// Decode an identity ID from base32.
77 pub fn from_base32(s: &str) -> Result<Self, IdentityError> {

Callers 3

shortMethod · 0.45
public_key_base32Method · 0.45

Calls 1

encodeMethod · 0.45

Tested by 1