Hierarchy

Implemented by

Methods

  • isOwner is used to check whether the sender is the owner of the contract.

    Parameters

    • sender: Uint8Array

      the sender of the transaction, hex string format with 0x prefix.

    Returns bool

    true if the sender is the owner of the contract, otherwise false.

  • verifyTx is used to verify the transaction. If the transaction is valid, an ethereum address will be returned. Otherwise, you can either call revert or return empty data to end the transaction.

    Parameters

    Returns Uint8Array