Skip to main content

zebra_rpc/methods/
hex_data.rs

1//! Deserializes hex-encoded inputs such as the one required
2//! for the `submitblock` RPC method.
3
4/// Deserialize hex-encoded strings to bytes.
5#[derive(
6    Clone, Debug, PartialEq, Eq, serde::Deserialize, serde::Serialize, schemars::JsonSchema,
7)]
8pub struct HexData(
9    #[serde(with = "hex")]
10    #[schemars(with = "String")]
11    pub Vec<u8>,
12);