Skip to main content

UpgradeAuthorityAnswer

Represents the response from the upgrade authority after verifying the upgrade data. It contains the next upgrade authority's public key if a change is required, and a boolean indicating whether the upgrade data has been successfully verified.

Hierarchy

  • { isVerified: Bool; nextUpgradeAuthority: PublicKeyOption }
    • UpgradeAuthorityAnswer

Index

Constructors

externalconstructor

  • Parameters

    • externalvalue: { isVerified: Bool; nextUpgradeAuthority: PublicKeyOption }
      • externalisVerified: Bool = Bool

        Indicates whether the upgrade data has been successfully verified.

      • externalnextUpgradeAuthority: PublicKeyOption = PublicKeyOption

        The public key of the next upgrade authority, if a change is required.

        If we upgrade the verification key, we may not be able to use the same upgrade authority next time because the new o1js version can break the verification key of the upgrade authority too, and since the upgrade authority serves many contracts, it cannot be upgraded. In this case, we need to use another upgrade authority with the public key that will be provided in nextUpgradeAuthority.

    Returns UpgradeAuthorityAnswer

Properties

isVerified

isVerified: Bool = Bool

Indicates whether the upgrade data has been successfully verified.

nextUpgradeAuthority

nextUpgradeAuthority: PublicKeyOption = PublicKeyOption

The public key of the next upgrade authority, if a change is required.

If we upgrade the verification key, we may not be able to use the same upgrade authority next time because the new o1js version can break the verification key of the upgrade authority too, and since the upgrade authority serves many contracts, it cannot be upgraded. In this case, we need to use another upgrade authority with the public key that will be provided in nextUpgradeAuthority.