SignatureVerifier
It's used to verify that a transfer is signed by oracles.

Variables

confirmationThreshold

1
uint8 public confirmationThreshold;
Copied!
Number of required confirmations per block after the extra check is enabled

submissionsInBlock

1
uint40 public submissionsInBlock;
Copied!
submissions count in current block

currentBlock

1
uint40 public currentBlock;
Copied!
Current block

debridgeAddress

1
address public debridgeAddress;
Copied!
Debridge gate address

Functions

initialize

1
function initialize(
2
uint8 _minConfirmations,
3
uint8 _confirmationThreshold,
4
uint8 _excessConfirmations
5
) public
Copied!
Constructor that initializes the most important configurations.

Parameters:

Name
Type
Description
_minConfirmations
uint8
Common confirmations count.
_confirmationThreshold
uint8
Confirmations per block after the extra check is enabled.
_excessConfirmations
uint8
Confirmations count in case of excess activity.

submit

1
function submit(
2
bytes32 _submissionId,
3
bytes _signatures,
4
uint8 _excessConfirmations
5
) external
Copied!
Check confirmation (validate signatures) for the transfer request.

Parameters:

Name
Type
Description
_submissionId
bytes32
Submission identifier.
_signatures
bytes
Array of signatures by oracles.
_excessConfirmations
uint8
override min confirmations count

setThreshold

1
function setThreshold(
2
uint8 _confirmationThreshold
3
) external
Copied!
Sets minimal required confirmations.

Parameters:

Name
Type
Description
_confirmationThreshold
uint8
Confirmation info.

setDebridgeAddress

1
function setDebridgeAddress(
2
address _debridgeAddress
3
) external
Copied!
Sets core debridge conrtact address.

Parameters:

Name
Type
Description
_debridgeAddress
address
Debridge address.

isValidSignature

1
function isValidSignature(
2
bytes32 _submissionId,
3
bytes _signature
4
) external returns (bool)
Copied!
Check is valid signature

Parameters:

Name
Type
Description
_submissionId
bytes32
Submission identifier.
_signature
bytes
signature by oracle.

_countSignatures

1
function _countSignatures(
2
bytes _signatures
3
) internal returns (uint256)
Copied!

version

1
function version(
2
) external returns (uint256)
Copied!
Get this contract's version