(document: &str, public_key_bytes: &[u8])
| 84 | /// Check an attested document (JSON) against a public key. |
| 85 | #[wasm_bindgen(js_name = verifyAttestation)] |
| 86 | pub fn verify_attestation(document: &str, public_key_bytes: &[u8]) -> Result<(), JsError> { |
| 87 | let pk = public_key(public_key_bytes)?; |
| 88 | proof::verify_value(&parse(document)?, &pk).map_err(|e| JsError::new(&e.to_string())) |
| 89 | } |
| 90 | |
| 91 | /// The `did:atomic` identifier for a public key. |
| 92 | #[wasm_bindgen(js_name = didForPublicKey)] |
nothing calls this directly
no test coverage detected