pub fn sign(&self, message: &[u8]) -> Option<[u8; ES256K_SIGNATURE_LENGTH]> {
        if let Some(skey) = self.to_signing_key() {
            let sig: Signature = skey.sign(message);
            let sigb: [u8; 64] = sig.as_ref().try_into().unwrap();
            Some(sigb)
        } else {
            None
        }
    }
/// Sign a message with the secret key
Sign a message with the secret key
Sign a message with the secret key
pub fn sign(&self, message: &[u8]) -> Option<[u8; ES256K_SIGNATURE_LENGTH]> {
        if let Some(skey) = self.to_signing_key() {
            let sig: Signature = skey.sign(message);
            let sigb: [u8; 64] = sig.as_ref().try_into().unwrap();
            Some(sigb)
        } else {
            None
        }
    }
pub fn sign ( & self , message : & [ u8 ] ) -> Option < [ u8 ; ES256K_SIGNATURE_LENGTH ] > { if let Some ( skey ) = self . to_signing_key ( ) { let sig : Signature = skey . sign ( message ) ; let sigb : [ u8 ; 64 ] = sig . as_ref ( ) . try_into ( ) . unwrap ( ) ; Some ( sigb ) } else { None } }
Sign a message with the secret key
Sign a message with the secret key
&self
message
&[u8]