Polymarket_common.Order_signingSourceEIP-712 order signing for CTF Exchange.
This module provides the cryptographic primitives for signing orders compatible with Polymarket's CTF Exchange contract. Used by both CLOB and RFQ APIs.
Generate a random salt as a decimal string. Uses 63 bits of randomness.
EIP-712 type hash for CTF Exchange Order struct.
EIP-712 domain separator for CTF Exchange (Polygon mainnet).
val sign_order :
private_key:Crypto.private_key ->
salt:string ->
maker:string ->
signer:string ->
taker:string ->
token_id:string ->
maker_amount:string ->
taker_amount:string ->
expiration:string ->
nonce:string ->
fee_rate_bps:string ->
side:int ->
signature_type:int ->
stringSign an order using EIP-712.