(public_key_bytes: &[u8])
| 91 | /// The `did:atomic` identifier for a public key. |
| 92 | #[wasm_bindgen(js_name = didForPublicKey)] |
| 93 | pub fn did_for_public_key(public_key_bytes: &[u8]) -> Result<String, JsError> { |
| 94 | Ok(did::did_for_public_key(&public_key(public_key_bytes)?)) |
| 95 | } |
| 96 | |
| 97 | /// The key's base32 form — what atomic writes as the `kid` of its tokens. |
| 98 | #[wasm_bindgen(js_name = publicKeyBase32)] |