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

Function deserialize_bytes_hex

bitvm/src/signatures/public.rs:612–618  ·  view source on GitHub ↗
(deserializer: D)

Source from the content-addressed store, hash-verified

610 }
611
612 fn deserialize_bytes_hex<'de, D>(deserializer: D) -> Result<Vec<u8>, D::Error>
613 where
614 D: Deserializer<'de>,
615 {
616 let s = String::deserialize(deserializer)?;
617 Vec::<u8>::from_hex(&s).map_err(serde::de::Error::custom)
618 }
619
620 fn serialize_byte_matrix_hex<S>(
621 byte_matrix: &[Vec<u8>],

Callers

nothing calls this directly

Calls 1

deserializeFunction · 0.85

Tested by

no test coverage detected