Management
Trusted forwarders are ownable smart contracts with the initial owner being the account address specified during their deployment. Ownership transfer and renounce follows standard Ownable contract methods.
There are two functions on a trusted forwarder that are restricted to the contract owner - updateSigner and deactivateSigner.
Update Signer
updateSigner is used for one of two purposes:
- To change the signer address from
address(0)to a non-zero address to convert an open forwarder to a permissioned forwarder. - To update the signer address from a non-zero address to a different non-zero address if the dApp needs to sign with a different address for any reason.
To make any of the above changes call updateSigner directly on the trusted forwarder contract from the account that is the forwarder owner with the appropriate signer_ parameter value.
Deactivate Signer
deactivateSigner is used to change the signer address from a non-zero address to address(0) to convert a permissioned forwarder into an open forwarder.
To deactivate the signer and convert the trusted forwarder into an open forwarder call deactivateSigner directly on the trusted forwarder contract from the account that is the forwarder owner.
Functions
function updateSigner(address signer_) external;
function deactivateSigner() external
