/// Return the binary encoding of this public key
Return the binary encoding of this public key
Return the binary encoding of this public key
pub fn pk_bytes(&self) -> &[u8] {
        match self {
            CspPublicKey::EcdsaSecp256k1(pk_bytes) => &pk_bytes.0,
            CspPublicKey::EcdsaP256(pk_bytes) => &pk_bytes.0,
            CspPublicKey::Ed25519(pk_bytes) => &pk_bytes.0,
            CspPublicKey::MultiBls12_381(pk_bytes) => &pk_bytes.0,
            CspPublicKey::RsaSha256(pk_bytes) => pk_bytes.as_der(),
        }
    }
pub fn pk_bytes ( & self ) -> & [ u8 ] { match self { CspPublicKey :: EcdsaSecp256k1 ( pk_bytes ) => & pk_bytes . 0 , CspPublicKey :: EcdsaP256 ( pk_bytes ) => & pk_bytes . 0 , CspPublicKey :: Ed25519 ( pk_bytes ) => & pk_bytes . 0 , CspPublicKey :: MultiBls12_381 ( pk_bytes ) => & pk_bytes . 0 , CspPublicKey :: RsaSha256 ( pk_bytes ) => pk_bytes . as_der ( ) , } }
Return the binary encoding of this public key
Return the binary encoding of this public key
&self