pub struct HyperliquidEip712Signer { /* private fields */ }Expand description
EIP-712 signer for Hyperliquid.
Implementations§
Source§impl HyperliquidEip712Signer
impl HyperliquidEip712Signer
Sourcepub fn new(private_key: &EvmPrivateKey) -> Result<Self>
pub fn new(private_key: &EvmPrivateKey) -> Result<Self>
Creates a new HyperliquidEip712Signer.
§Errors
Returns an error if the private key cannot be parsed.
pub fn sign(&self, request: &SignRequest) -> Result<SignatureBundle>
pub fn sign_l1_action( &self, request: &SignRequest, ) -> Result<HyperliquidSignature>
Trait Implementations§
Source§impl Clone for HyperliquidEip712Signer
impl Clone for HyperliquidEip712Signer
Source§fn clone(&self) -> HyperliquidEip712Signer
fn clone(&self) -> HyperliquidEip712Signer
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for HyperliquidEip712Signer
impl RefUnwindSafe for HyperliquidEip712Signer
impl Send for HyperliquidEip712Signer
impl Sync for HyperliquidEip712Signer
impl Unpin for HyperliquidEip712Signer
impl UnsafeUnpin for HyperliquidEip712Signer
impl UnwindSafe for HyperliquidEip712Signer
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more