MCPcopy Create free account
hub / github.com/cowprotocol/services / validate

Method validate

crates/model/src/order.rs:542–551  ·  view source on GitHub ↗
(&self, domain_separator: &DomainSeparator)

Source from the content-addressed store, hash-verified

540
541impl SignedOrderCancellations {
542 pub fn validate(&self, domain_separator: &DomainSeparator) -> Result<Address> {
543 Ok(self
544 .signature
545 .recover(
546 self.signing_scheme,
547 domain_separator,
548 &self.data.hash_struct(),
549 )?
550 .signer)
551 }
552}
553
554/// An order cancellation as provided to the orderbook by the frontend.

Callers 2

validate_app_dataMethod · 0.45

Calls 2

recoverMethod · 0.80
hash_structMethod · 0.45

Tested by 1