Struct ophelia_secp256k1::Secp256k1
source · pub struct Secp256k1;
Trait Implementations§
source§impl Crypto for Secp256k1
impl Crypto for Secp256k1
type PrivateKey = Secp256k1PrivateKey
type PublicKey = Secp256k1PublicKey
type Signature = Secp256k1Signature
fn pub_key(priv_key: &[u8]) -> Result<Self::PublicKey, Error>
fn sign_message(msg: &[u8], priv_key: &[u8]) -> Result<Self::Signature, Error>
fn verify_signature(msg: &[u8], sig: &[u8], pub_key: &[u8]) -> Result<(), Error>
Auto Trait Implementations§
impl RefUnwindSafe for Secp256k1
impl Send for Secp256k1
impl Sync for Secp256k1
impl Unpin for Secp256k1
impl UnwindSafe for Secp256k1
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