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

Function public_key_base32

atomic-wasm/src/lib.rs:99–101  ·  view source on GitHub ↗
(public_key_bytes: &[u8])

Source from the content-addressed store, hash-verified

97/// The key's base32 form — what atomic writes as the `kid` of its tokens.
98#[wasm_bindgen(js_name = publicKeyBase32)]
99pub fn public_key_base32(public_key_bytes: &[u8]) -> Result<String, JsError> {
100 Ok(public_key(public_key_bytes)?.to_base32())
101}
102
103/// RFC 8785 canonical JSON of `document` — the bytes atomic hashes and signs.
104#[wasm_bindgen]

Callers

nothing calls this directly

Calls 2

public_keyFunction · 0.85
to_base32Method · 0.45

Tested by

no test coverage detected