[][src]Trait bitcoin_cash::ECC

pub trait ECC: Default {
    fn sign(
        &self,
        secret_key: &[u8],
        msg_array: impl Into<ByteArray>
    ) -> Result<ByteArray>;
fn verify(
        &self,
        pubkey: &[u8],
        msg_array: &[u8],
        sig: &[u8]
    ) -> Result<bool>;
fn derive_pubkey(&self, secret_key: &[u8]) -> Result<Pubkey>;
fn normalize_sig(&self, sig: &[u8]) -> Result<Vec<u8>>; }

Required methods

fn sign(
    &self,
    secret_key: &[u8],
    msg_array: impl Into<ByteArray>
) -> Result<ByteArray>

fn verify(&self, pubkey: &[u8], msg_array: &[u8], sig: &[u8]) -> Result<bool>

fn derive_pubkey(&self, secret_key: &[u8]) -> Result<Pubkey>

fn normalize_sig(&self, sig: &[u8]) -> Result<Vec<u8>>

Loading content...

Implementors

Loading content...