pub struct Erc191;Expand description
ERC-191 Signed Data Standard
Implementations§
Source§impl Erc191
impl Erc191
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 ERC-191 and produced given signature and recovery id.
Auto Trait Implementations§
impl Freeze for Erc191
impl RefUnwindSafe for Erc191
impl Send for Erc191
impl Sync for Erc191
impl Unpin for Erc191
impl UnsafeUnpin for Erc191
impl UnwindSafe for Erc191
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