swivel.vendors.signer
Classes
Class Signer
Signer
Methods
Method prepare_data
Get the initial EIP712 compliant data dictionary to sign
Method prepare_domain
Update the data dictionary with the 'domain' entry
Method prepare_message
Update the data dictionary with the 'message' entry (Order)
Method sign_order
Sign an order, producing an EIP712 compliant signature
Parameters
o (dict) Swivel Order object
i (int) ChainId
a (string) Address of the deployed verifying contract
k (bytes) Private key as bytes
Returns
The signature hex with 0x prefix normalized