fn serialize_ed25519_base64<S>(pk: &Ed25519, serializer: S) -> Result<S::Ok, S::Error>
where
    S: ser::Serializer,
{
    String::from_utf8(base64::encode(pk.as_bytes()))
        .unwrap()
        .serialize(serializer)
}
/// Serialize the bytes of an Ed25519 public key as Base64. Used for serializing JSON
Serialize the bytes of an Ed25519 public key as Base64. Used for serializing JSON
Serialize the bytes of an Ed25519 public key as Base64 . Used for serializing JSON
fn serialize_ed25519_base64<S>(pk: &Ed25519, serializer: S) -> Result<S::Ok, S::Error>
where
    S: ser::Serializer,
{
    String::from_utf8(base64::encode(pk.as_bytes()))
        .unwrap()
        .serialize(serializer)
}
fn serialize_ed25519_base64 < S > ( pk : & Ed25519 , serializer : S ) -> Result < S :: Ok , S :: Error > where S : ser :: Serializer , { String :: from_utf8 ( base64 :: encode ( pk . as_bytes ( ) ) ) . unwrap ( ) . serialize ( serializer ) }
Serialize the bytes of an Ed25519 public key as Base64.
Serialize the bytes of an Ed25519 public key as Base64 .
pk
&Ed25519
serializer
S