terms_of_service.acceptance_message

Documentation for eth_defi.terms_of_service.acceptance_message Python module.

The default terms of service message that is signed.

  • The terms of service itself is not signed as it is too big to fit to small input boxes of the wallet. Instead, we sign a message that refers to the terms of service.

  • Uses EIP-151

  • See EthAccout.sign_message implementation.

Functions

generate_acceptance_message(version, date, ...)

get_signing_hash(message)

sign_terms_of_service(user, signable_message)

Sign terms of service for a local dev test account.

sign_terms_of_service(user, signable_message)

Sign terms of service for a local dev test account.

Returns

Tuple (message hash, signed message)

Parameters
Return type

tuple[bytes, bytes]