bitcoin-cash 1.0.0-beta.0

A library for creating and parsing Bitcoin Cash trasactions
Documentation
use crate::{error::Result, ByteArray, Pubkey};

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>>;
}