pub fn serialize<S: Serializer>( pk: &PublicKey, serializer: S, ) -> Result<S::Ok, S::Error>
Serialize a public-key field with the DPP key’s standard representation.