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

Method to_base32

atomic-identity/src/signing.rs:73–75  ·  view source on GitHub ↗

Encode the signature as base32.

(&self)

Source from the content-addressed store, hash-verified

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

Callers 2

serializeMethod · 0.45

Calls 1

encodeMethod · 0.80

Tested by 1