MCPcopy Create free account
hub / github.com/BitVM/BitVM / deserialize

Function deserialize

bridge/src/serialization.rs:9–14  ·  view source on GitHub ↗
(data: &'a str)

Source from the content-addressed store, hash-verified

7}
8
9pub fn deserialize<'a, T>(data: &'a str) -> T
10where
11 T: Deserialize<'a>,
12{
13 serde_json::from_str::<T>(data).unwrap()
14}
15
16pub fn try_deserialize<'a, T>(data: &'a str) -> Result<T, String>
17where

Callers 8

test_final_circuitFunction · 0.85
deserialize_bytes_hexFunction · 0.85
test_merkle_tree_0Function · 0.85
test_merkle_tree_1Function · 0.85
test_spvFunction · 0.85
test_txid_legacyFunction · 0.85
test_txid_segwitFunction · 0.85

Calls

no outgoing calls

Tested by 6

test_final_circuitFunction · 0.68
test_merkle_tree_0Function · 0.68
test_merkle_tree_1Function · 0.68
test_spvFunction · 0.68
test_txid_legacyFunction · 0.68
test_txid_segwitFunction · 0.68