update
This instruction allows to manage the set of trusted signers. It can only be invoked with a signature from the top_authority
account.
Arguments
trusted_signer
: Public key value of the trusted signer to be added/removed/modifiedexpires_at
: Expiration date to be associated to the trusted signer; if zero, signifies the trusted signer should be removed from the signer set
Accounts
top_authority
: Signer account giving authorizing the migrationAnchor flags: signer
Checks: must match the
top_authority
field of thestorage
account
storage
: storage account to be migrated; taken as a rawAccountInfo
Anchor flags: mut
Seed:
STORAGE_SEED
(fixed constant)Notes: the storage account must have been migrated, deserialization would fail for a legacy-layout account due to mismatching size
Tests
Positive cases
Note: this is implicitly tested by the test setup procedures
Negative cases