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

Method to_base32

atomic-identity/src/keypair.rs:46–48  ·  view source on GitHub ↗

Encode the public key as base32

(&self)

Source from the content-addressed store, hash-verified

44
45 /// Encode the public key as base32
46 pub fn to_base32(&self) -> String {
47 data_encoding::BASE32_NOPAD.encode(self.as_bytes())
48 }
49
50 /// Decode a public key from base32
51 pub fn from_base32(s: &str) -> Result<Self, IdentityError> {

Callers 15

atomic_revisionFunction · 0.45
save_turn_provenanceMethod · 0.45
serializeMethod · 0.45
set_defaultMethod · 0.45
set_default_for_usageMethod · 0.45
from_identityMethod · 0.45
load_with_optionsMethod · 0.45
deleteMethod · 0.45
find_identity_dirMethod · 0.45
check_can_unrecordFunction · 0.45

Calls 2

encodeMethod · 0.80
as_bytesMethod · 0.45

Tested by 5

attest_pathMethod · 0.36
load_attestationMethod · 0.36
test_change_path_formatFunction · 0.36