fn serialize_ed25519_keypair<S>(keypair: &Ed25519, serializer: S) -> Result<S::Ok, S::Error>
where
    S: ser::Serializer,
{
    let keypair_bytes = Zeroizing::new(keypair.to_bytes());
    Zeroizing::new(String::from_utf8(Base64::default().encode(&keypair_bytes[..])).unwrap())
        .serialize(serializer)
}
/// Serialize an Ed25519 keypair as Base64
Serialize an Ed25519 keypair as Base64
Serialize an Ed25519 keypair as Base64
fn serialize_ed25519_keypair<S>(keypair: &Ed25519, serializer: S) -> Result<S::Ok, S::Error>
where
    S: ser::Serializer,
{
    let keypair_bytes = Zeroizing::new(keypair.to_bytes());
    Zeroizing::new(String::from_utf8(Base64::default().encode(&keypair_bytes[..])).unwrap())
        .serialize(serializer)
}
fn serialize_ed25519_keypair < S > ( keypair : & Ed25519 , serializer : S ) -> Result < S :: Ok , S :: Error > where S : ser :: Serializer , { let keypair_bytes = Zeroizing :: new ( keypair . to_bytes ( ) ) ; Zeroizing :: new ( String :: from_utf8 ( Base64 :: default ( ) . encode ( & keypair_bytes [ .. ] ) ) . unwrap ( ) ) . serialize ( serializer ) }
Serialize an Ed25519 keypair as Base64
Serialize an Ed25519 keypair as Base64
keypair
&Ed25519
serializer
S