(&self, domain_separator: &DomainSeparator)
| 540 | |
| 541 | impl 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. |