SignatureVerifier
It's used to verify that a transfer is signed by oracles.
Variables
confirmationThreshold
Number of required confirmations per block after the extra check is enabled
submissionsInBlock
submissions count in current block
currentBlock
Current block
debridgeAddress
Debridge gate address
Functions
initialize
Constructor that initializes the most important configurations.
Parameters:
Name | Type | Description |
---|---|---|
| uint8 | Common confirmations count. |
| uint8 | Confirmations per block after the extra check is enabled. |
| uint8 | Confirmations count in case of excess activity. |
submit
Check confirmation (validate signatures) for the transfer request.
Parameters:
Name | Type | Description |
---|---|---|
| bytes32 | Submission identifier. |
| bytes | Array of signatures by oracles. |
| uint8 | override min confirmations count |
setThreshold
Sets minimal required confirmations.
Parameters:
Name | Type | Description |
---|---|---|
| uint8 | Confirmation info. |
setDebridgeAddress
Sets core debridge conrtact address.
Parameters:
Name | Type | Description |
---|---|---|
| address | Debridge address. |
isValidSignature
Check is valid signature
Parameters:
Name | Type | Description |
---|---|---|
| bytes32 | Submission identifier. |
| bytes | signature by oracle. |
_countSignatures
version
Get this contract's version
Last updated