Function deserialize_elements

Source
pub fn deserialize_elements<G: Group + GroupEncoding>(
    data: &[u8],
    count: usize,
) -> Option<Vec<G>>
Expand description

Deserialize a byte slice into a vector of group elements.

§Parameters

  • data: A byte slice containing the serialized representations of group elements.
  • count: The number of elements to deserialize.

§Returns

  • Some(Vec<G>): The deserialized group elements if all are valid.
  • None: If the byte slice length is incorrect or any element is invalid.