pub fn serialize<S>(
val: impl CanonicalSerialize,
serializer: S,
) -> Result<S::Ok, S::Error>where
S: Serializer,
Expand description
You can use this to serialize an arkworks type with serde and the “serialize_with” attribute. See https://serde.rs/field-attrs.html