/// Format a `PublicKey` as a vec of bytes in ASN.1 format.
Format a `PublicKey` as a vec of bytes in ASN.1 format.
Format a ` PublicKey ` as a vec of bytes in ASN . 1 format .
pub fn to_encoded_bytes(&self) -> Vec<u8> {
        der_encode(&SubjectPublicKeyInfo {
            algorithm: AlgorithmIdentifier {
                algorithm: OID_ED25519.clone(),
            },
            subject_public_key: self.as_bytes_vec(),
        })
        // NOTE: Not possible to fail. Only fail case the library has is if OIDs are
        //       given incorrectly.
        .unwrap()
    }
pub fn to_encoded_bytes ( & self ) -> Vec < u8 > { der_encode ( & SubjectPublicKeyInfo { algorithm : AlgorithmIdentifier { algorithm : OID_ED25519 . clone ( ) , } , subject_public_key : self . as_bytes_vec ( ) , } ) // NOTE: Not possible to fail. Only fail case the library has is if OIDs are //       given incorrectly. . unwrap ( ) }
Format a `PublicKey` as a vec of bytes in ASN.1 format.
Format a ` PublicKey ` as a vec of bytes in ASN . 1 format .
&self