pub struct ECDSA {}
Expand description
Utility struct for low level ECDSA primitives
Implementations§
Source§impl ECDSA
impl ECDSA
pub fn private_key_from_signature_k( signature: &Signature, public_key: &PublicKey, ephemeral_key: &PrivateKey, preimage: &[u8], hash_algo: SigningHash, ) -> Result<PrivateKey, BSVErrors>
Source§impl ECDSA
impl ECDSA
pub fn sign_with_random_k( private_key: &PrivateKey, preimage: &[u8], hash_algo: SigningHash, reverse_k: bool, ) -> Result<Signature, BSVErrors>
pub fn sign_with_deterministic_k( private_key: &PrivateKey, preimage: &[u8], hash_algo: SigningHash, reverse_k: bool, ) -> Result<Signature, BSVErrors>
pub fn sign_with_k( private_key: &PrivateKey, ephemeral_key: &PrivateKey, preimage: &[u8], hash_algo: SigningHash, ) -> Result<Signature, BSVErrors>
Auto Trait Implementations§
impl Freeze for ECDSA
impl RefUnwindSafe for ECDSA
impl Send for ECDSA
impl Sync for ECDSA
impl Unpin for ECDSA
impl UnwindSafe for ECDSA
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more