Assessment reports>Pyth Lazer>Threat Model>update

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/modified

  • expires_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 migration

    • Anchor flags: signer

    • Checks: must match the top_authority field of the storage account

  • storage: storage account to be migrated; taken as a raw AccountInfo

    • 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

Zellic © 2025Back to top ↑