VerificationKeyUpgradeData
Hierarchy
- { address: PublicKey; newVerificationKeyHash: Field; previousVerificationKeyHash: Field; tokenId: Field }
- VerificationKeyUpgradeData
Index
Constructors
Properties
Methods
Constructors
externalconstructor
Parameters
externalvalue: { address: PublicKey; newVerificationKeyHash: Field; previousVerificationKeyHash: Field; tokenId: Field }
externaladdress: PublicKey = PublicKey
The address of the contract to be upgraded.
externalnewVerificationKeyHash: Field = Field
The hash of the new verification key.
externalpreviousVerificationKeyHash: Field = Field
The hash of the previous verification key.
externaltokenId: Field = Field
The token ID associated with the contract.
Returns VerificationKeyUpgradeData
Properties
address
The address of the contract to be upgraded.
newVerificationKeyHash
The hash of the new verification key.
previousVerificationKeyHash
The hash of the previous verification key.
tokenId
The token ID associated with the contract.
Methods
hash
Generates a unique hash for the upgrade data using the Poseidon hash function.
Returns Field
The hash representing the upgrade data.
Represents the data required to upgrade a contract's verification key. It includes the contract's address, token ID, previous verification key hash, and the new verification key hash. This class also provides a
hash()
method to generate a unique identifier for the upgrade data.