[−][src]Function json_digest::mask_json_subtree
pub fn mask_json_subtree<'a, 'b>(
data: &'a Value,
keep_paths: impl AsRef<[&'b str]>
) -> Result<Value>
Replace JSON (sub)tree(s) with their multibase-encoded Merkle-root hash strings.
Argument keep_paths
can be created using function split_alternatives
as needed.