UpgradeAuthorityAnswer
Hierarchy
- { isVerified: Bool; nextUpgradeAuthority: PublicKeyOption }
- UpgradeAuthorityAnswer
Index
Constructors
Properties
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
Indicates whether the upgrade data has been successfully verified.
nextUpgradeAuthority
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
.
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.