Module auth

Module auth 

Source
Expand description

Authentication and cryptographic utilities for Polymarket API

This module provides EIP-712 signing, HMAC authentication, and header generation for secure communication with the Polymarket CLOB API.

Structs§

ClobAuth
Order

Functions§

build_hmac_signature
Build HMAC signature for L2 authentication
create_l1_headers
Create L1 headers for authentication (using private key signature)
create_l2_headers
Create L2 headers for API calls (using API key and HMAC)
get_current_unix_time_secs
Get current Unix timestamp in seconds
sign_clob_auth_message
Sign CLOB authentication message using EIP-712
sign_order_message
Sign order message using EIP-712