INNER CODE UNIT · Rust

deserialize

renegade-fi/renegade · crates/circuits/circuit-types/src/lib.rs:276

    pub fn deserialize<'de, D>(deserializer: D) -> Result<EmbeddedScalarField, D::Error>
    where
        D: Deserializer<'de>,
    {
        let bytes = Vec::<u8>::deserialize(deserializer)?;
        let value = EmbeddedScalarField::deserialize_uncompressed(bytes.as_slice())
            .map_err(DeError::custom)?;

        Ok(value)
    }
}

/// A set of helpers for working with native types
///
/// A native type is the out-of-circuit representation of a circuit type
#[cfg(feature = "proof-system-types")]
pub mod native_helpers {
    use ark_ff::UniformRand;

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…