SignatureVerifier

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

Variables

confirmationThreshold

  uint8 public confirmationThreshold;

Number of required confirmations per block after the extra check is enabled

submissionsInBlock

  uint40 public submissionsInBlock;

submissions count in current block

currentBlock

  uint40 public currentBlock;

Current block

debridgeAddress

  address public debridgeAddress;

Debridge gate address

Functions

initialize

  function initialize(
            uint8 _minConfirmations,
            uint8 _confirmationThreshold,
            uint8 _excessConfirmations
  ) public

Constructor that initializes the most important configurations.

Parameters:

NameTypeDescription

_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

  function submit(
            bytes32 _submissionId,
            bytes _signatures,
            uint8 _excessConfirmations
  ) external

Check confirmation (validate signatures) for the transfer request.

Parameters:

NameTypeDescription

_submissionId

bytes32

Submission identifier.

_signatures

bytes

Array of signatures by oracles.

_excessConfirmations

uint8

override min confirmations count

setThreshold

  function setThreshold(
            uint8 _confirmationThreshold
  ) external

Sets minimal required confirmations.

Parameters:

NameTypeDescription

_confirmationThreshold

uint8

Confirmation info.

setDebridgeAddress

  function setDebridgeAddress(
            address _debridgeAddress
  ) external

Sets core debridge conrtact address.

Parameters:

NameTypeDescription

_debridgeAddress

address

Debridge address.

isValidSignature

  function isValidSignature(
            bytes32 _submissionId,
            bytes _signature
  ) external returns (bool)

Check is valid signature

Parameters:

NameTypeDescription

_submissionId

bytes32

Submission identifier.

_signature

bytes

signature by oracle.

_countSignatures

  function _countSignatures(
            bytes _signatures
  ) internal returns (uint256)

version

  function version(
  ) external returns (uint256)

Get this contract's version

Last updated