DiffusalOrderBookAuth
EIP-712 hashing and signer-recovery helper for the order-book flow
DiffusalOrderBookAuth is a deployed contract that provides EIP-712 hashing and signer recovery for DiffusalOptionsOrderBook. It underpins the signature-first placement and cancellation flow used by placeOrderSigned(...), batchPlaceOrders(...), cancelOrderSigned(...), batchCancelOrders(...), replaceOrderSigned(...), and batchReplaceOrders(...).
It handles:
PlaceOrdertyped-data hashingCancelOrdertyped-data hashing- signer recovery for EIP-712 payloads used by the signed-order and batch entry points
Its address is passed into the order-book constructor during deployment.
Key Functions
recoverPlaceOrderSigner(...)
recoverCancelOrderSigner(...)These helpers recover the maker address from the exact typed-data payload that the order-book contract validates before registering or cancelling a stored order.