Links
Comment on page
🔮

Variables

This secton explains the variables on the Algoz smart contract

token_verifier

❇️ Type: address
token_verifier was received by you when you completed the Registering your app section.
When Algoz authenticates a request for example Google ReCAPTCHA, Algoz signs a message. This message is signed using the token_verifier.
On your smart contract, we will use this token_verifier to validate signatures. (implementation details can be found under the Functions section)

proof_ttl

❇️ Type: uint
proof_ttl the number of blocks during which the signature proof is valid on your smart contract.
Chain
proof_ttl
Time in Minutes (estimate)
eth
100 blocks
25 min (safer estimate due to high gas fees)
rinkeby
75 blocks
15 min
goerli
75 blocks
15 min
polygon
200 blocks
15 min
mumbai
200 blocks
15 min
Note: Feel free to set proof_ttl based on your requirements.

verify_enabled

❇️ Type: bool
verify_enabled is used to toggle on/off the Algoz token validation.
Ideally, you would want to set this to true if you are using Algoz.
verify_enabled
Algoz Validation
true
Bot validation turned on
false
Bot validation turned off

consumed_token

❇️ Type: mapping(bytes32 => bool)
consumed_token is used to invalided tokens that have been used in the past.