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

Method to_base32

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

Encode the public key as base32

(&self)

Source from the content-addressed store, hash-verified

50
51 /// Encode the public key as base32
52 pub fn to_base32(&self) -> String {
53 data_encoding::BASE32_NOPAD.encode(self.as_bytes())
54 }
55
56 /// The standard `did:key` identifier for this Ed25519 key.
57 ///

Calls 2

encodeMethod · 0.45
as_bytesMethod · 0.45