(json: &str)
| 28 | } |
| 29 | |
| 30 | fn parse(json: &str) -> Result<serde_json::Value, JsError> { |
| 31 | serde_json::from_str(json).map_err(|e| JsError::new(&format!("not JSON: {e}"))) |
| 32 | } |
| 33 | |
| 34 | /// A document ready to sign: the document to hand back to [`attach_proof`], |
| 35 | /// and the bytes the signature must cover. |
no outgoing calls
no test coverage detected