pub fn to_bytes(self) -> Vec<u8> {
        match self {
            PublicKey::Ed25519(pk) => pk.as_bytes().to_vec(),
            #[cfg(feature = "secp256k1")]
            PublicKey::Secp256k1(pk) => pk.to_bytes().to_vec(),
        }
    }
/// Serialize this key as a byte vector.
Serialize this key as a byte vector.
Serialize this key as a byte vector .
pub fn to_bytes(self) -> Vec<u8> {
        match self {
            PublicKey::Ed25519(pk) => pk.as_bytes().to_vec(),
            #[cfg(feature = "secp256k1")]
            PublicKey::Secp256k1(pk) => pk.to_bytes().to_vec(),
        }
    }
pub fn to_bytes ( self ) -> Vec < u8 > { match self { PublicKey :: Ed25519 ( pk ) => pk . as_bytes ( ) . to_vec ( ) , # [ cfg ( feature " " ) ] PublicKey :: Secp256k1 ( pk ) => pk . to_bytes ( ) . to_vec ( ) , } }
Serialize this key as a byte vector.
Serialize this key as a byte vector .
self