import { FUNCTION_TREE_HEIGHT, PUBLIC_DATA_TREE_HEIGHT } from '@aztec/constants'; import { Fr } from '@aztec/foundation/curves/bn254'; import { BufferReader } from '@aztec/foundation/serialize'; import { MembershipWitness } from '@aztec/foundation/trees'; import type { FieldsOf } from '@aztec/foundation/types'; import { DelayedPublicMutableValues } from '../delayed_public_mutable/delayed_public_mutable_values.js'; import { PublicKeys } from '../keys/public_keys.js'; import { PublicDataTreeLeafPreimage } from '../trees/index.js'; import { VerificationKeyAsFields } from '../vks/verification_key.js'; import { PrivateCircuitPublicInputs } from './private_circuit_public_inputs.js'; /** * Private call data. */ export declare class PrivateCallData { /** * Public inputs of the private function circuit. */ publicInputs: PrivateCircuitPublicInputs; /** * The verification key for the function being invoked. */ vk: VerificationKeyAsFields; /** * Hints for the validation of the vk */ verificationKeyHints: PrivateVerificationKeyHints; constructor( /** * Public inputs of the private function circuit. */ publicInputs: PrivateCircuitPublicInputs, /** * The verification key for the function being invoked. */ vk: VerificationKeyAsFields, /** * Hints for the validation of the vk */ verificationKeyHints: PrivateVerificationKeyHints); /** * Serialize into a field array. Low-level utility. * @param fields - Object with fields. * @returns The array. */ static getFields(fields: FieldsOf): readonly [PrivateCircuitPublicInputs, VerificationKeyAsFields, PrivateVerificationKeyHints]; static from(fields: FieldsOf): PrivateCallData; /** * Serialize this as a buffer. * @returns The buffer. */ toBuffer(): Buffer; /** * Deserializes from a buffer or reader. * @param buffer - Buffer or reader to read from. * @returns The deserialized instance. */ static fromBuffer(buffer: Buffer | BufferReader): PrivateCallData; } export declare class PrivateVerificationKeyHints { /** * Artifact hash of the contract class for this private call. */ contractClassArtifactHash: Fr; /** * Public bytecode commitment for the contract class for this private call. */ contractClassPublicBytecodeCommitment: Fr; /** * Public keys hash of the contract instance. */ publicKeys: PublicKeys; /** * Salted initialization hash of the contract instance. */ saltedInitializationHash: Fr; /** * The membership witness for the function leaf corresponding to the function being invoked. */ functionLeafMembershipWitness: MembershipWitness; updatedClassIdHints: UpdatedClassIdHints; constructor( /** * Artifact hash of the contract class for this private call. */ contractClassArtifactHash: Fr, /** * Public bytecode commitment for the contract class for this private call. */ contractClassPublicBytecodeCommitment: Fr, /** * Public keys hash of the contract instance. */ publicKeys: PublicKeys, /** * Salted initialization hash of the contract instance. */ saltedInitializationHash: Fr, /** * The membership witness for the function leaf corresponding to the function being invoked. */ functionLeafMembershipWitness: MembershipWitness, updatedClassIdHints: UpdatedClassIdHints); /** * Serialize into a field array. Low-level utility. * @param fields - Object with fields. * @returns The array. */ static getFields(fields: FieldsOf): readonly [Fr, Fr, PublicKeys, Fr, MembershipWitness<7>, UpdatedClassIdHints]; static from(fields: FieldsOf): PrivateVerificationKeyHints; /** * Serialize this as a buffer. * @returns The buffer. */ toBuffer(): Buffer; /** * Deserializes from a buffer or reader. * @param buffer - Buffer or reader to read from. * @returns The deserialized instance. */ static fromBuffer(buffer: Buffer | BufferReader): PrivateVerificationKeyHints; } export declare class UpdatedClassIdHints { updatedClassIdWitness: MembershipWitness; updatedClassIdLeaf: PublicDataTreeLeafPreimage; updatedClassIdValues: DelayedPublicMutableValues; constructor(updatedClassIdWitness: MembershipWitness, updatedClassIdLeaf: PublicDataTreeLeafPreimage, updatedClassIdValues: DelayedPublicMutableValues); static getFields(fields: FieldsOf): readonly [MembershipWitness<40>, PublicDataTreeLeafPreimage, DelayedPublicMutableValues]; static from(fields: FieldsOf): UpdatedClassIdHints; /** * Serialize this as a buffer. * @returns The buffer. */ toBuffer(): Buffer; /** * Deserializes from a buffer or reader. * @param buffer - Buffer or reader to read from. * @returns The deserialized instance. */ static fromBuffer(buffer: Buffer | BufferReader): UpdatedClassIdHints; } //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoicHJpdmF0ZV9jYWxsX2RhdGEuZC50cyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uL3NyYy9rZXJuZWwvcHJpdmF0ZV9jYWxsX2RhdGEudHMiXSwibmFtZXMi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