PowService¶
- class PowService[source]¶
Methods
Get a proof-of-work challenge.
- get()[source]¶
Get a proof-of-work challenge.
Returns a challenge that must be solved before submitting requests to email-sending endpoints. The client must find an integer solution such that: SHA-256(nonce + “:” + str(solution)) has at least difficulty leading zero bits.
- Returns:
A challenge with nonce and difficulty.
- Return type: