pub struct Tip191;Expand description
TIP-191 Signed Data Standard
Implementations§
Source§impl Tip191
impl Tip191
Sourcepub fn recover(
msg: impl AsRef<[u8]>,
signature: &<Secp256k1 as Curve>::Signature,
recovery_id: <Secp256k1 as RecoverableCurve>::RecoveryId,
) -> Option<<Secp256k1 as Curve>::PublicKey>
pub fn recover( msg: impl AsRef<[u8]>, signature: &<Secp256k1 as Curve>::Signature, recovery_id: <Secp256k1 as RecoverableCurve>::RecoveryId, ) -> Option<<Secp256k1 as Curve>::PublicKey>
Try to recover public key which signed given message according to TIP-191 and produced given signature and recovery id.
Auto Trait Implementations§
impl Freeze for Tip191
impl RefUnwindSafe for Tip191
impl Send for Tip191
impl Sync for Tip191
impl Unpin for Tip191
impl UnsafeUnpin for Tip191
impl UnwindSafe for Tip191
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