eip712_encode

Documentation for eth_defi.eip_712.eip712_encode function.

eip712_encode(typed_data)[source]

Given a dict of structured data and types, return a 3-element list of the encoded, signable data.

0: The magic & version (0x1901) 1: The encoded types 2: The encoded data

Parameters

typed_data (Dict[str, Any]) –

Return type

List[bytes]