Upgrade Providers lets you remove an existing provider for a user and replace it with a new one. If you've changed functionality for a custom provider for your end users, this is often a useful way to apply that new functionality without disrupting user-flow beyond accepting a new signature from the user.
To upgrade a Provider, call the
upgradeProvidersFor function on the Snowflake smart contract with the arguments defined below. This function updates the Providers by removing old, unwanted provider addresses and adding new ones for an EIN. Resolvers that appropriately permission function calls based on Provider should continue interacting with the user as normal after this function is called for a user.
function addProviders(uint ein, address providers) public;
upgradeProvider function should contain:
Array of new provider
Array of old provider
Signed message as required in the format below.
As this function calls two separate internal functions within Snowflake, two signatures will need to be collected as follows:
keccak256(abi.encodePacked(byte(0x19), byte(0), address(this),"I authorize that these Providers be added to my Identity.",ein, providers, timestamp))
keccak256(abi.encodePacked(byte(0x19), byte(0), address(this),"I authorize that these Providers be removed from my Identity.",ein, providers, timestamp))