Skip to main content

tree_head_from_json

Function tree_head_from_json 

Source
pub fn tree_head_from_json(json: &str) -> Result<String, JsValue>
Expand description

Parse a tree head from JSON. Returns a JSON string with { size, root_hex } (root as hex string because wasm-bindgen doesn’t natively marshal Vec in return position of free functions easily).