@aztec/stdlib 6.0.0-nightly.20260810 → 6.0.0-nightly.20260821
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dest/abi/abi.d.ts +4 -3
- package/dest/abi/abi.d.ts.map +1 -1
- package/dest/abi/abi.js +5 -1
- package/dest/abi/contract_artifact.d.ts +7 -2
- package/dest/abi/contract_artifact.d.ts.map +1 -1
- package/dest/abi/contract_artifact.js +18 -19
- package/dest/avm/avm.d.ts +3 -2
- package/dest/avm/avm.d.ts.map +1 -1
- package/dest/avm/avm.js +9 -3
- package/dest/avm/avm_proving_request.d.ts +70 -70
- package/dest/block/l2_block.d.ts +1 -2
- package/dest/block/l2_block.d.ts.map +1 -1
- package/dest/block/l2_block.js +2 -3
- package/dest/block/l2_block_source.d.ts +3 -6
- package/dest/block/l2_block_source.d.ts.map +1 -1
- package/dest/block/l2_block_stream/event_driven_l2_block_stream.d.ts +11 -20
- package/dest/block/l2_block_stream/event_driven_l2_block_stream.d.ts.map +1 -1
- package/dest/block/l2_block_stream/event_driven_l2_block_stream.js +12 -116
- package/dest/checkpoint/checkpoint_data.d.ts +14 -2
- package/dest/checkpoint/checkpoint_data.d.ts.map +1 -1
- package/dest/checkpoint/checkpoint_data.js +2 -1
- package/dest/checkpoint/index.d.ts +2 -1
- package/dest/checkpoint/index.d.ts.map +1 -1
- package/dest/checkpoint/index.js +1 -0
- package/dest/checkpoint/previous_checkpoint_inbox_rolling_hash.d.ts +21 -0
- package/dest/checkpoint/previous_checkpoint_inbox_rolling_hash.d.ts.map +1 -0
- package/dest/checkpoint/previous_checkpoint_inbox_rolling_hash.js +34 -0
- package/dest/checkpoint/simulation_overrides.d.ts +2 -2
- package/dest/checkpoint/simulation_overrides.d.ts.map +1 -1
- package/dest/checkpoint/simulation_overrides.js +11 -8
- package/dest/config/network-consensus-config.d.ts +4 -3
- package/dest/config/network-consensus-config.d.ts.map +1 -1
- package/dest/config/network-consensus-config.js +9 -4
- package/dest/config/node-rpc-config.d.ts +13 -1
- package/dest/config/node-rpc-config.d.ts.map +1 -1
- package/dest/config/node-rpc-config.js +34 -1
- package/dest/deserialization/index.d.ts +17 -17
- package/dest/deserialization/index.d.ts.map +1 -1
- package/dest/deserialization/index.js +18 -18
- package/dest/gas/gas_settings.d.ts +17 -5
- package/dest/gas/gas_settings.d.ts.map +1 -1
- package/dest/gas/gas_settings.js +4 -4
- package/dest/gas/tx_gas_limits.d.ts +3 -4
- package/dest/gas/tx_gas_limits.d.ts.map +1 -1
- package/dest/gas/tx_gas_limits.js +4 -5
- package/dest/interfaces/archiver.d.ts +2 -2
- package/dest/interfaces/archiver.d.ts.map +1 -1
- package/dest/interfaces/archiver.js +32 -5
- package/dest/interfaces/aztec-node-admin.d.ts +2 -1
- package/dest/interfaces/aztec-node-admin.d.ts.map +1 -1
- package/dest/interfaces/aztec-node.d.ts +22 -4
- package/dest/interfaces/aztec-node.d.ts.map +1 -1
- package/dest/interfaces/aztec-node.js +11 -9
- package/dest/interfaces/block-builder.d.ts +11 -2
- package/dest/interfaces/block-builder.d.ts.map +1 -1
- package/dest/interfaces/configs.d.ts +7 -1
- package/dest/interfaces/configs.d.ts.map +1 -1
- package/dest/interfaces/configs.js +2 -1
- package/dest/interfaces/p2p.d.ts +18 -1
- package/dest/interfaces/p2p.d.ts.map +1 -1
- package/dest/interfaces/p2p.js +8 -0
- package/dest/interfaces/proving-job.d.ts +17 -42
- package/dest/interfaces/proving-job.d.ts.map +1 -1
- package/dest/interfaces/proving-job.js +16 -47
- package/dest/interfaces/server_circuit_prover.d.ts +8 -15
- package/dest/interfaces/server_circuit_prover.d.ts.map +1 -1
- package/dest/interfaces/validator.d.ts +7 -7
- package/dest/interfaces/validator.d.ts.map +1 -1
- package/dest/messaging/append_l1_to_l2_messages.d.ts +5 -5
- package/dest/messaging/append_l1_to_l2_messages.d.ts.map +1 -1
- package/dest/messaging/append_l1_to_l2_messages.js +4 -8
- package/dest/messaging/inbox_bucket.d.ts +77 -0
- package/dest/messaging/inbox_bucket.d.ts.map +1 -0
- package/dest/messaging/inbox_bucket.js +73 -0
- package/dest/messaging/inbox_consumption.d.ts +55 -0
- package/dest/messaging/inbox_consumption.d.ts.map +1 -0
- package/dest/messaging/inbox_consumption.js +53 -0
- package/dest/messaging/inbox_rolling_hash.d.ts +16 -0
- package/dest/messaging/inbox_rolling_hash.d.ts.map +1 -0
- package/dest/messaging/inbox_rolling_hash.js +23 -0
- package/dest/messaging/index.d.ts +6 -3
- package/dest/messaging/index.d.ts.map +1 -1
- package/dest/messaging/index.js +5 -2
- package/dest/messaging/l1_to_l2_message_bundle.d.ts +31 -0
- package/dest/messaging/l1_to_l2_message_bundle.d.ts.map +1 -0
- package/dest/messaging/l1_to_l2_message_bundle.js +51 -0
- package/dest/messaging/l1_to_l2_message_source.d.ts +44 -10
- package/dest/messaging/l1_to_l2_message_source.d.ts.map +1 -1
- package/dest/messaging/l1_to_l2_message_sponge.d.ts +40 -0
- package/dest/messaging/l1_to_l2_message_sponge.d.ts.map +1 -0
- package/dest/messaging/l1_to_l2_message_sponge.js +56 -0
- package/dest/noir/index.d.ts +3 -3
- package/dest/noir/index.d.ts.map +1 -1
- package/dest/p2p/block_proposal.d.ts +24 -9
- package/dest/p2p/block_proposal.d.ts.map +1 -1
- package/dest/p2p/block_proposal.js +42 -20
- package/dest/p2p/checkpoint_attestation.d.ts +1 -1
- package/dest/p2p/checkpoint_proposal.d.ts +13 -3
- package/dest/p2p/checkpoint_proposal.d.ts.map +1 -1
- package/dest/p2p/checkpoint_proposal.js +26 -8
- package/dest/p2p/consensus_payload.d.ts +1 -1
- package/dest/p2p/index.d.ts +2 -1
- package/dest/p2p/index.d.ts.map +1 -1
- package/dest/p2p/index.js +1 -0
- package/dest/p2p/validated_proposal.d.ts +35 -0
- package/dest/p2p/validated_proposal.d.ts.map +1 -0
- package/dest/p2p/validated_proposal.js +17 -0
- package/dest/p2p/wire_compat_fixtures.d.ts +7 -0
- package/dest/p2p/wire_compat_fixtures.d.ts.map +1 -0
- package/dest/p2p/wire_compat_fixtures.js +14 -0
- package/dest/parity/inbox_parity_private_inputs.d.ts +61 -0
- package/dest/parity/inbox_parity_private_inputs.d.ts.map +1 -0
- package/dest/parity/inbox_parity_private_inputs.js +79 -0
- package/dest/parity/index.d.ts +2 -3
- package/dest/parity/index.d.ts.map +1 -1
- package/dest/parity/index.js +1 -2
- package/dest/parity/parity_public_inputs.d.ts +15 -14
- package/dest/parity/parity_public_inputs.d.ts.map +1 -1
- package/dest/parity/parity_public_inputs.js +13 -15
- package/dest/proofs/proving_request_type.d.ts +11 -14
- package/dest/proofs/proving_request_type.d.ts.map +1 -1
- package/dest/proofs/proving_request_type.js +10 -13
- package/dest/rollup/block_constant_data.d.ts +8 -8
- package/dest/rollup/block_constant_data.js +4 -4
- package/dest/rollup/block_rollup_public_inputs.d.ts +18 -6
- package/dest/rollup/block_rollup_public_inputs.d.ts.map +1 -1
- package/dest/rollup/block_rollup_public_inputs.js +14 -7
- package/dest/rollup/block_root_rollup_private_inputs.d.ts +109 -113
- package/dest/rollup/block_root_rollup_private_inputs.d.ts.map +1 -1
- package/dest/rollup/block_root_rollup_private_inputs.js +79 -130
- package/dest/rollup/checkpoint_header.d.ts +14 -6
- package/dest/rollup/checkpoint_header.d.ts.map +1 -1
- package/dest/rollup/checkpoint_header.js +18 -14
- package/dest/rollup/checkpoint_rollup_public_inputs.d.ts +22 -2
- package/dest/rollup/checkpoint_rollup_public_inputs.d.ts.map +1 -1
- package/dest/rollup/checkpoint_rollup_public_inputs.js +14 -3
- package/dest/rollup/checkpoint_root_rollup_private_inputs.d.ts +27 -6
- package/dest/rollup/checkpoint_root_rollup_private_inputs.d.ts.map +1 -1
- package/dest/rollup/checkpoint_root_rollup_private_inputs.js +17 -4
- package/dest/rollup/root_rollup_public_inputs.d.ts +10 -2
- package/dest/rollup/root_rollup_public_inputs.d.ts.map +1 -1
- package/dest/rollup/root_rollup_public_inputs.js +9 -3
- package/dest/stats/stats.d.ts +2 -2
- package/dest/stats/stats.d.ts.map +1 -1
- package/dest/tests/factories.d.ts +7 -7
- package/dest/tests/factories.d.ts.map +1 -1
- package/dest/tests/factories.js +26 -22
- package/dest/tests/fixtures.d.ts +1 -1
- package/dest/tests/fixtures.d.ts.map +1 -1
- package/dest/tests/fixtures.js +2 -0
- package/dest/tests/mocks.d.ts +4 -2
- package/dest/tests/mocks.d.ts.map +1 -1
- package/dest/tests/mocks.js +4 -7
- package/dest/tx/state_reference.d.ts +5 -2
- package/dest/tx/state_reference.d.ts.map +1 -1
- package/dest/tx/state_reference.js +5 -5
- package/package.json +8 -8
- package/src/abi/abi.ts +7 -2
- package/src/abi/contract_artifact.ts +20 -23
- package/src/avm/avm.ts +11 -1
- package/src/block/l2_block.ts +2 -3
- package/src/block/l2_block_source.ts +2 -5
- package/src/block/l2_block_stream/event_driven_l2_block_stream.ts +17 -143
- package/src/checkpoint/checkpoint_data.ts +14 -1
- package/src/checkpoint/index.ts +1 -0
- package/src/checkpoint/previous_checkpoint_inbox_rolling_hash.ts +46 -0
- package/src/checkpoint/simulation_overrides.ts +11 -8
- package/src/config/network-consensus-config.ts +17 -4
- package/src/config/node-rpc-config.ts +51 -1
- package/src/deserialization/index.ts +18 -18
- package/src/gas/README.md +4 -3
- package/src/gas/gas_settings.ts +7 -3
- package/src/gas/tx_gas_limits.ts +4 -12
- package/src/interfaces/archiver.ts +19 -2
- package/src/interfaces/aztec-node.ts +33 -12
- package/src/interfaces/block-builder.ts +10 -1
- package/src/interfaces/configs.ts +6 -0
- package/src/interfaces/p2p.ts +21 -0
- package/src/interfaces/proving-job.ts +19 -70
- package/src/interfaces/server_circuit_prover.ts +13 -37
- package/src/interfaces/validator.ts +6 -5
- package/src/kernel/private_kernel_reset_dimensions.ts +1 -1
- package/src/messaging/append_l1_to_l2_messages.ts +5 -13
- package/src/messaging/inbox_bucket.ts +125 -0
- package/src/messaging/inbox_consumption.ts +74 -0
- package/src/messaging/inbox_rolling_hash.ts +24 -0
- package/src/messaging/index.ts +5 -2
- package/src/messaging/l1_to_l2_message_bundle.ts +65 -0
- package/src/messaging/l1_to_l2_message_source.ts +48 -10
- package/src/messaging/l1_to_l2_message_sponge.ts +69 -0
- package/src/noir/index.ts +1 -2
- package/src/p2p/block_proposal.ts +41 -28
- package/src/p2p/checkpoint_proposal.ts +31 -6
- package/src/p2p/index.ts +1 -0
- package/src/p2p/validated_proposal.ts +43 -0
- package/src/p2p/wire_compat_fixtures.ts +23 -0
- package/src/parity/inbox_parity_private_inputs.ts +116 -0
- package/src/parity/index.ts +1 -2
- package/src/parity/parity_public_inputs.ts +12 -14
- package/src/proofs/proving_request_type.ts +2 -5
- package/src/rollup/block_constant_data.ts +4 -4
- package/src/rollup/block_rollup_public_inputs.ts +14 -5
- package/src/rollup/block_root_rollup_private_inputs.ts +117 -153
- package/src/rollup/checkpoint_header.ts +17 -13
- package/src/rollup/checkpoint_rollup_public_inputs.ts +15 -0
- package/src/rollup/checkpoint_root_rollup_private_inputs.ts +16 -3
- package/src/rollup/root_rollup_public_inputs.ts +10 -0
- package/src/stats/stats.ts +4 -5
- package/src/tests/factories.ts +38 -32
- package/src/tests/fixtures.ts +3 -0
- package/src/tests/mocks.ts +6 -7
- package/src/tx/state_reference.ts +5 -12
- package/dest/messaging/in_hash.d.ts +0 -6
- package/dest/messaging/in_hash.d.ts.map +0 -1
- package/dest/messaging/in_hash.js +0 -10
- package/dest/messaging/inbox_leaf.d.ts +0 -25
- package/dest/messaging/inbox_leaf.d.ts.map +0 -1
- package/dest/messaging/inbox_leaf.js +0 -42
- package/dest/parity/parity_base_private_inputs.d.ts +0 -39
- package/dest/parity/parity_base_private_inputs.d.ts.map +0 -1
- package/dest/parity/parity_base_private_inputs.js +0 -51
- package/dest/parity/parity_root_private_inputs.d.ts +0 -39
- package/dest/parity/parity_root_private_inputs.d.ts.map +0 -1
- package/dest/parity/parity_root_private_inputs.js +0 -46
- package/src/messaging/in_hash.ts +0 -12
- package/src/messaging/inbox_leaf.ts +0 -44
- package/src/parity/parity_base_private_inputs.ts +0 -71
- package/src/parity/parity_root_private_inputs.ts +0 -64
|
@@ -2,25 +2,23 @@ import { Fr } from '@aztec/foundation/curves/bn254';
|
|
|
2
2
|
import { bufferSchemaFor } from '@aztec/foundation/schemas';
|
|
3
3
|
import { BufferReader, serializeToBuffer } from '@aztec/foundation/serialize';
|
|
4
4
|
import { bufferToHex, hexToBuffer } from '@aztec/foundation/string';
|
|
5
|
+
import { L1ToL2MessageSponge } from '../messaging/l1_to_l2_message_sponge.js';
|
|
5
6
|
export class ParityPublicInputs {
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
7
|
+
startRollingHash;
|
|
8
|
+
endRollingHash;
|
|
9
|
+
endSponge;
|
|
9
10
|
proverId;
|
|
10
|
-
constructor(/**
|
|
11
|
-
this.
|
|
12
|
-
this.
|
|
13
|
-
this.
|
|
11
|
+
constructor(/** Inbox rolling hash before absorbing this checkpoint's messages. */ startRollingHash, /** Inbox rolling hash after absorbing the checkpoint's real messages. */ endRollingHash, /** Message-bundle sponge after absorbing the same real messages into the empty per-checkpoint sponge. */ endSponge, /** Prover identity committed to by the circuit, for sybil protection. */ proverId){
|
|
12
|
+
this.startRollingHash = startRollingHash;
|
|
13
|
+
this.endRollingHash = endRollingHash;
|
|
14
|
+
this.endSponge = endSponge;
|
|
14
15
|
this.proverId = proverId;
|
|
15
|
-
if (shaRoot.toBuffer()[0] != 0) {
|
|
16
|
-
throw new Error(`shaRoot buffer must be 31 bytes. Got 32 bytes`);
|
|
17
|
-
}
|
|
18
16
|
}
|
|
19
17
|
/**
|
|
20
18
|
* Serializes the inputs to a buffer.
|
|
21
19
|
* @returns The inputs serialized to a buffer.
|
|
22
20
|
*/ toBuffer() {
|
|
23
|
-
return serializeToBuffer(
|
|
21
|
+
return serializeToBuffer(this.startRollingHash, this.endRollingHash, this.endSponge, this.proverId);
|
|
24
22
|
}
|
|
25
23
|
/**
|
|
26
24
|
* Serializes the inputs to a hex string.
|
|
@@ -44,9 +42,9 @@ export class ParityPublicInputs {
|
|
|
44
42
|
* @returns The instance fields.
|
|
45
43
|
*/ static getFields(fields) {
|
|
46
44
|
return [
|
|
47
|
-
fields.
|
|
48
|
-
fields.
|
|
49
|
-
fields.
|
|
45
|
+
fields.startRollingHash,
|
|
46
|
+
fields.endRollingHash,
|
|
47
|
+
fields.endSponge,
|
|
50
48
|
fields.proverId
|
|
51
49
|
];
|
|
52
50
|
}
|
|
@@ -56,7 +54,7 @@ export class ParityPublicInputs {
|
|
|
56
54
|
* @returns A new ParityPublicInputs instance.
|
|
57
55
|
*/ static fromBuffer(buffer) {
|
|
58
56
|
const reader = BufferReader.asReader(buffer);
|
|
59
|
-
return new ParityPublicInputs(reader.readObject(Fr), reader.readObject(Fr),
|
|
57
|
+
return new ParityPublicInputs(reader.readObject(Fr), reader.readObject(Fr), reader.readObject(L1ToL2MessageSponge), Fr.fromBuffer(reader));
|
|
60
58
|
}
|
|
61
59
|
/**
|
|
62
60
|
* Deserializes the inputs from a hex string.
|
|
@@ -4,18 +4,15 @@ export declare enum ProvingRequestType {
|
|
|
4
4
|
PRIVATE_TX_BASE_ROLLUP = 2,
|
|
5
5
|
PUBLIC_TX_BASE_ROLLUP = 3,
|
|
6
6
|
TX_MERGE_ROLLUP = 4,
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
ROOT_ROLLUP = 15,
|
|
18
|
-
PARITY_BASE = 16,
|
|
19
|
-
PARITY_ROOT = 17
|
|
7
|
+
BLOCK_ROOT_ROLLUP = 5,
|
|
8
|
+
BLOCK_ROOT_SINGLE_TX_ROLLUP = 6,
|
|
9
|
+
BLOCK_ROOT_NO_TXS_ROLLUP = 7,
|
|
10
|
+
BLOCK_MERGE_ROLLUP = 8,
|
|
11
|
+
CHECKPOINT_ROOT_ROLLUP = 9,
|
|
12
|
+
CHECKPOINT_ROOT_SINGLE_BLOCK_ROLLUP = 10,
|
|
13
|
+
CHECKPOINT_PADDING_ROLLUP = 11,
|
|
14
|
+
CHECKPOINT_MERGE_ROLLUP = 12,
|
|
15
|
+
ROOT_ROLLUP = 13,
|
|
16
|
+
INBOX_PARITY = 14
|
|
20
17
|
}
|
|
21
|
-
//# sourceMappingURL=data:application/json;base64,
|
|
18
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoicHJvdmluZ19yZXF1ZXN0X3R5cGUuZC50cyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uL3NyYy9wcm9vZnMvcHJvdmluZ19yZXF1ZXN0X3R5cGUudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUEsb0JBQVksa0JBQWtCO0lBQzVCLFNBQVMsSUFBQTtJQUNULHFCQUFxQixJQUFBO0lBRXJCLHNCQUFzQixJQUFBO0lBQ3RCLHFCQUFxQixJQUFBO0lBQ3JCLGVBQWUsSUFBQTtJQUNmLGlCQUFpQixJQUFBO0lBQ2pCLDJCQUEyQixJQUFBO0lBQzNCLHdCQUF3QixJQUFBO0lBQ3hCLGtCQUFrQixJQUFBO0lBQ2xCLHNCQUFzQixJQUFBO0lBQ3RCLG1DQUFtQyxLQUFBO0lBQ25DLHlCQUF5QixLQUFBO0lBQ3pCLHVCQUF1QixLQUFBO0lBQ3ZCLFdBQVcsS0FBQTtJQUVYLFlBQVksS0FBQTtDQUNiIn0=
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"proving_request_type.d.ts","sourceRoot":"","sources":["../../src/proofs/proving_request_type.ts"],"names":[],"mappings":"AAAA,oBAAY,kBAAkB;IAC5B,SAAS,IAAA;IACT,qBAAqB,IAAA;IAErB,sBAAsB,IAAA;IACtB,qBAAqB,IAAA;IACrB,eAAe,IAAA;IACf,
|
|
1
|
+
{"version":3,"file":"proving_request_type.d.ts","sourceRoot":"","sources":["../../src/proofs/proving_request_type.ts"],"names":[],"mappings":"AAAA,oBAAY,kBAAkB;IAC5B,SAAS,IAAA;IACT,qBAAqB,IAAA;IAErB,sBAAsB,IAAA;IACtB,qBAAqB,IAAA;IACrB,eAAe,IAAA;IACf,iBAAiB,IAAA;IACjB,2BAA2B,IAAA;IAC3B,wBAAwB,IAAA;IACxB,kBAAkB,IAAA;IAClB,sBAAsB,IAAA;IACtB,mCAAmC,KAAA;IACnC,yBAAyB,KAAA;IACzB,uBAAuB,KAAA;IACvB,WAAW,KAAA;IAEX,YAAY,KAAA;CACb"}
|
|
@@ -4,18 +4,15 @@ export var ProvingRequestType = /*#__PURE__*/ function(ProvingRequestType) {
|
|
|
4
4
|
ProvingRequestType[ProvingRequestType["PRIVATE_TX_BASE_ROLLUP"] = 2] = "PRIVATE_TX_BASE_ROLLUP";
|
|
5
5
|
ProvingRequestType[ProvingRequestType["PUBLIC_TX_BASE_ROLLUP"] = 3] = "PUBLIC_TX_BASE_ROLLUP";
|
|
6
6
|
ProvingRequestType[ProvingRequestType["TX_MERGE_ROLLUP"] = 4] = "TX_MERGE_ROLLUP";
|
|
7
|
-
ProvingRequestType[ProvingRequestType["
|
|
8
|
-
ProvingRequestType[ProvingRequestType["
|
|
9
|
-
ProvingRequestType[ProvingRequestType["
|
|
10
|
-
ProvingRequestType[ProvingRequestType["
|
|
11
|
-
ProvingRequestType[ProvingRequestType["
|
|
12
|
-
ProvingRequestType[ProvingRequestType["
|
|
13
|
-
ProvingRequestType[ProvingRequestType["
|
|
14
|
-
ProvingRequestType[ProvingRequestType["
|
|
15
|
-
ProvingRequestType[ProvingRequestType["
|
|
16
|
-
ProvingRequestType[ProvingRequestType["
|
|
17
|
-
ProvingRequestType[ProvingRequestType["ROOT_ROLLUP"] = 15] = "ROOT_ROLLUP";
|
|
18
|
-
ProvingRequestType[ProvingRequestType["PARITY_BASE"] = 16] = "PARITY_BASE";
|
|
19
|
-
ProvingRequestType[ProvingRequestType["PARITY_ROOT"] = 17] = "PARITY_ROOT";
|
|
7
|
+
ProvingRequestType[ProvingRequestType["BLOCK_ROOT_ROLLUP"] = 5] = "BLOCK_ROOT_ROLLUP";
|
|
8
|
+
ProvingRequestType[ProvingRequestType["BLOCK_ROOT_SINGLE_TX_ROLLUP"] = 6] = "BLOCK_ROOT_SINGLE_TX_ROLLUP";
|
|
9
|
+
ProvingRequestType[ProvingRequestType["BLOCK_ROOT_NO_TXS_ROLLUP"] = 7] = "BLOCK_ROOT_NO_TXS_ROLLUP";
|
|
10
|
+
ProvingRequestType[ProvingRequestType["BLOCK_MERGE_ROLLUP"] = 8] = "BLOCK_MERGE_ROLLUP";
|
|
11
|
+
ProvingRequestType[ProvingRequestType["CHECKPOINT_ROOT_ROLLUP"] = 9] = "CHECKPOINT_ROOT_ROLLUP";
|
|
12
|
+
ProvingRequestType[ProvingRequestType["CHECKPOINT_ROOT_SINGLE_BLOCK_ROLLUP"] = 10] = "CHECKPOINT_ROOT_SINGLE_BLOCK_ROLLUP";
|
|
13
|
+
ProvingRequestType[ProvingRequestType["CHECKPOINT_PADDING_ROLLUP"] = 11] = "CHECKPOINT_PADDING_ROLLUP";
|
|
14
|
+
ProvingRequestType[ProvingRequestType["CHECKPOINT_MERGE_ROLLUP"] = 12] = "CHECKPOINT_MERGE_ROLLUP";
|
|
15
|
+
ProvingRequestType[ProvingRequestType["ROOT_ROLLUP"] = 13] = "ROOT_ROLLUP";
|
|
16
|
+
ProvingRequestType[ProvingRequestType["INBOX_PARITY"] = 14] = "INBOX_PARITY";
|
|
20
17
|
return ProvingRequestType;
|
|
21
18
|
}({});
|
|
@@ -10,10 +10,10 @@ export declare class BlockConstantData {
|
|
|
10
10
|
/** Archive tree snapshot at the very beginning of the entire rollup. */
|
|
11
11
|
lastArchive: AppendOnlyTreeSnapshot;
|
|
12
12
|
/**
|
|
13
|
-
* L1-to-L2 message tree snapshot after this block
|
|
14
|
-
*
|
|
15
|
-
*
|
|
16
|
-
*
|
|
13
|
+
* L1-to-L2 message tree snapshot after this block's own message bundle has been inserted. The AVM validates this
|
|
14
|
+
* block's l1-to-l2 message read requests against it, so a tx in this block can read the messages this block
|
|
15
|
+
* inserts (same-block consumption). Every block-root variant that carries txs asserts this equals its computed
|
|
16
|
+
* post-bundle root, whether or not the block is the first in its checkpoint.
|
|
17
17
|
*/
|
|
18
18
|
l1ToL2TreeSnapshot: AppendOnlyTreeSnapshot;
|
|
19
19
|
/** Root of the verification key tree. */
|
|
@@ -28,10 +28,10 @@ export declare class BlockConstantData {
|
|
|
28
28
|
/** Archive tree snapshot at the very beginning of the entire rollup. */
|
|
29
29
|
lastArchive: AppendOnlyTreeSnapshot,
|
|
30
30
|
/**
|
|
31
|
-
* L1-to-L2 message tree snapshot after this block
|
|
32
|
-
*
|
|
33
|
-
*
|
|
34
|
-
*
|
|
31
|
+
* L1-to-L2 message tree snapshot after this block's own message bundle has been inserted. The AVM validates this
|
|
32
|
+
* block's l1-to-l2 message read requests against it, so a tx in this block can read the messages this block
|
|
33
|
+
* inserts (same-block consumption). Every block-root variant that carries txs asserts this equals its computed
|
|
34
|
+
* post-bundle root, whether or not the block is the first in its checkpoint.
|
|
35
35
|
*/
|
|
36
36
|
l1ToL2TreeSnapshot: AppendOnlyTreeSnapshot,
|
|
37
37
|
/** Root of the verification key tree. */
|
|
@@ -12,10 +12,10 @@ import { GlobalVariables } from '../tx/global_variables.js';
|
|
|
12
12
|
globalVariables;
|
|
13
13
|
proverId;
|
|
14
14
|
constructor(/** Archive tree snapshot at the very beginning of the entire rollup. */ lastArchive, /**
|
|
15
|
-
* L1-to-L2 message tree snapshot after this block
|
|
16
|
-
*
|
|
17
|
-
*
|
|
18
|
-
*
|
|
15
|
+
* L1-to-L2 message tree snapshot after this block's own message bundle has been inserted. The AVM validates this
|
|
16
|
+
* block's l1-to-l2 message read requests against it, so a tx in this block can read the messages this block
|
|
17
|
+
* inserts (same-block consumption). Every block-root variant that carries txs asserts this equals its computed
|
|
18
|
+
* post-bundle root, whether or not the block is the first in its checkpoint.
|
|
19
19
|
*/ l1ToL2TreeSnapshot, /** Root of the verification key tree. */ vkTreeRoot, /** Hash of the protocol contracts list. */ protocolContractsHash, /** Global variables for the block. */ globalVariables, /** Identifier of the prover. */ proverId){
|
|
20
20
|
this.lastArchive = lastArchive;
|
|
21
21
|
this.l1ToL2TreeSnapshot = l1ToL2TreeSnapshot;
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { SpongeBlob } from '@aztec/blob-lib/types';
|
|
2
2
|
import { Fr } from '@aztec/foundation/curves/bn254';
|
|
3
3
|
import { BufferReader } from '@aztec/foundation/serialize';
|
|
4
|
+
import { L1ToL2MessageSponge } from '../messaging/l1_to_l2_message_sponge.js';
|
|
4
5
|
import { AppendOnlyTreeSnapshot } from '../trees/append_only_tree_snapshot.js';
|
|
5
6
|
import { StateReference } from '../tx/state_reference.js';
|
|
6
7
|
import type { UInt64 } from '../types/shared.js';
|
|
@@ -48,9 +49,14 @@ export declare class BlockRollupPublicInputs {
|
|
|
48
49
|
*/
|
|
49
50
|
blockHeadersHash: Fr;
|
|
50
51
|
/**
|
|
51
|
-
*
|
|
52
|
+
* Message-bundle sponge threaded across the checkpoint's blocks, before this block range absorbs its bundle.
|
|
52
53
|
*/
|
|
53
|
-
|
|
54
|
+
startMsgSponge: L1ToL2MessageSponge;
|
|
55
|
+
/**
|
|
56
|
+
* Message-bundle sponge after this block range absorbs its bundle. The checkpoint root asserts the final value
|
|
57
|
+
* matches the parity root's sponge over the same (padded) message list.
|
|
58
|
+
*/
|
|
59
|
+
endMsgSponge: L1ToL2MessageSponge;
|
|
54
60
|
/**
|
|
55
61
|
* SHA256 hash of L2 to L1 messages created in this block range.
|
|
56
62
|
*/
|
|
@@ -103,9 +109,14 @@ export declare class BlockRollupPublicInputs {
|
|
|
103
109
|
*/
|
|
104
110
|
blockHeadersHash: Fr,
|
|
105
111
|
/**
|
|
106
|
-
*
|
|
112
|
+
* Message-bundle sponge threaded across the checkpoint's blocks, before this block range absorbs its bundle.
|
|
113
|
+
*/
|
|
114
|
+
startMsgSponge: L1ToL2MessageSponge,
|
|
115
|
+
/**
|
|
116
|
+
* Message-bundle sponge after this block range absorbs its bundle. The checkpoint root asserts the final value
|
|
117
|
+
* matches the parity root's sponge over the same (padded) message list.
|
|
107
118
|
*/
|
|
108
|
-
|
|
119
|
+
endMsgSponge: L1ToL2MessageSponge,
|
|
109
120
|
/**
|
|
110
121
|
* SHA256 hash of L2 to L1 messages created in this block range.
|
|
111
122
|
*/
|
|
@@ -127,7 +138,8 @@ export declare class BlockRollupPublicInputs {
|
|
|
127
138
|
previousArchiveRoot: `0x${string}`;
|
|
128
139
|
newArchiveRoot: `0x${string}`;
|
|
129
140
|
blockHeadersHash: `0x${string}`;
|
|
130
|
-
|
|
141
|
+
startMsgSpongeNumAbsorbed: number;
|
|
142
|
+
endMsgSpongeNumAbsorbed: number;
|
|
131
143
|
outHash: `0x${string}`;
|
|
132
144
|
timestamp: string;
|
|
133
145
|
accumulatedFees: `0x${string}`;
|
|
@@ -135,4 +147,4 @@ export declare class BlockRollupPublicInputs {
|
|
|
135
147
|
};
|
|
136
148
|
static get schema(): import("zod").ZodType<BlockRollupPublicInputs, string, import("zod/v4/core").$ZodTypeInternals<BlockRollupPublicInputs, string>>;
|
|
137
149
|
}
|
|
138
|
-
//# sourceMappingURL=data:application/json;base64,
|
|
150
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiYmxvY2tfcm9sbHVwX3B1YmxpY19pbnB1dHMuZC50cyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uL3NyYy9yb2xsdXAvYmxvY2tfcm9sbHVwX3B1YmxpY19pbnB1dHMudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUEsT0FBTyxFQUFFLFVBQVUsRUFBRSxNQUFNLHVCQUF1QixDQUFDO0FBQ25ELE9BQU8s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ollup/block_rollup_public_inputs.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,uBAAuB,CAAC;AACnD,OAAO,EAAE,EAAE,EAAE,MAAM,gCAAgC,CAAC;AAEpD,OAAO,EAAE,YAAY,EAAuC,MAAM,6BAA6B,CAAC;AAGhG,OAAO,EAAE,sBAAsB,EAAE,MAAM,uCAAuC,CAAC;AAC/E,OAAO,EAAE,cAAc,EAAE,MAAM,0BAA0B,CAAC;AAC1D,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,oBAAoB,CAAC;AACjD,OAAO,EAAE,sBAAsB,EAAE,MAAM,+BAA+B,CAAC;AAEvE;;GAEG;AACH,qBAAa,uBAAuB;IAEhC;;OAEG;IACI,SAAS,EAAE,sBAAsB;IACxC;;OAEG;IACI,eAAe,EAAE,sBAAsB;IAC9C;;OAEG;IACI,UAAU,EAAE,sBAAsB;IACzC;;OAEG;IACI,UAAU,EAAE,cAAc;IACjC;;OAEG;IACI,QAAQ,EAAE,cAAc;IAC/B;;OAEG;IACI,eAAe,EAAE,UAAU;IAClC;;OAEG;IACI,aAAa,EAAE,UAAU;IAChC;;OAEG;IACI,SAAS,EAAE,MAAM;IACxB;;;;OAIG;IACI,gBAAgB,EAAE,EAAE;IAC3B;;OAEG;IACI,
|
|
1
|
+
{"version":3,"file":"block_rollup_public_inputs.d.ts","sourceRoot":"","sources":["../../src/rollup/block_rollup_public_inputs.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,uBAAuB,CAAC;AACnD,OAAO,EAAE,EAAE,EAAE,MAAM,gCAAgC,CAAC;AAEpD,OAAO,EAAE,YAAY,EAAuC,MAAM,6BAA6B,CAAC;AAGhG,OAAO,EAAE,mBAAmB,EAAE,MAAM,yCAAyC,CAAC;AAC9E,OAAO,EAAE,sBAAsB,EAAE,MAAM,uCAAuC,CAAC;AAC/E,OAAO,EAAE,cAAc,EAAE,MAAM,0BAA0B,CAAC;AAC1D,OAAO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C,UAAU,CAAC,MAAM,EAAE,MAAM,GAAG,YAAY,GAAG,uBAAuB,CAkBxE;IAED,QAAQ,4BAiBP;IAED,QAAQ,kBAEP;IAED,MAAM,CAAC,UAAU,CAAC,GAAG,EAAE,MAAM,2BAE5B;IAED,MAAM,4BAEL;IAED,SAAS;;;;;;;;;;MAYR;IAED,MAAM,KAAK,MAAM,qIAEhB;CACF"}
|
|
@@ -3,6 +3,7 @@ import { Fr } from '@aztec/foundation/curves/bn254';
|
|
|
3
3
|
import { bufferSchemaFor } from '@aztec/foundation/schemas';
|
|
4
4
|
import { BufferReader, bigintToUInt64BE, serializeToBuffer } from '@aztec/foundation/serialize';
|
|
5
5
|
import { bufferToHex, hexToBuffer } from '@aztec/foundation/string';
|
|
6
|
+
import { L1ToL2MessageSponge } from '../messaging/l1_to_l2_message_sponge.js';
|
|
6
7
|
import { AppendOnlyTreeSnapshot } from '../trees/append_only_tree_snapshot.js';
|
|
7
8
|
import { StateReference } from '../tx/state_reference.js';
|
|
8
9
|
import { CheckpointConstantData } from './checkpoint_constant_data.js';
|
|
@@ -18,7 +19,8 @@ import { CheckpointConstantData } from './checkpoint_constant_data.js';
|
|
|
18
19
|
endSpongeBlob;
|
|
19
20
|
timestamp;
|
|
20
21
|
blockHeadersHash;
|
|
21
|
-
|
|
22
|
+
startMsgSponge;
|
|
23
|
+
endMsgSponge;
|
|
22
24
|
outHash;
|
|
23
25
|
accumulatedFees;
|
|
24
26
|
accumulatedManaUsed;
|
|
@@ -43,8 +45,11 @@ import { CheckpointConstantData } from './checkpoint_constant_data.js';
|
|
|
43
45
|
* other blocks in the same checkpoint to form an unbalanced tree. The root of that tree becomes the final hash
|
|
44
46
|
* stored in the checkpoint header, enabling validation of the blocks included in a checkpoint given their headers.
|
|
45
47
|
*/ blockHeadersHash, /**
|
|
46
|
-
*
|
|
47
|
-
*/
|
|
48
|
+
* Message-bundle sponge threaded across the checkpoint's blocks, before this block range absorbs its bundle.
|
|
49
|
+
*/ startMsgSponge, /**
|
|
50
|
+
* Message-bundle sponge after this block range absorbs its bundle. The checkpoint root asserts the final value
|
|
51
|
+
* matches the parity root's sponge over the same (padded) message list.
|
|
52
|
+
*/ endMsgSponge, /**
|
|
48
53
|
* SHA256 hash of L2 to L1 messages created in this block range.
|
|
49
54
|
*/ outHash, /**
|
|
50
55
|
* The summed transaction fees of all the txs in this block range.
|
|
@@ -60,17 +65,18 @@ import { CheckpointConstantData } from './checkpoint_constant_data.js';
|
|
|
60
65
|
this.endSpongeBlob = endSpongeBlob;
|
|
61
66
|
this.timestamp = timestamp;
|
|
62
67
|
this.blockHeadersHash = blockHeadersHash;
|
|
63
|
-
this.
|
|
68
|
+
this.startMsgSponge = startMsgSponge;
|
|
69
|
+
this.endMsgSponge = endMsgSponge;
|
|
64
70
|
this.outHash = outHash;
|
|
65
71
|
this.accumulatedFees = accumulatedFees;
|
|
66
72
|
this.accumulatedManaUsed = accumulatedManaUsed;
|
|
67
73
|
}
|
|
68
74
|
static fromBuffer(buffer) {
|
|
69
75
|
const reader = BufferReader.asReader(buffer);
|
|
70
|
-
return new BlockRollupPublicInputs(reader.readObject(CheckpointConstantData), reader.readObject(AppendOnlyTreeSnapshot), reader.readObject(AppendOnlyTreeSnapshot), reader.readObject(StateReference), reader.readObject(StateReference), reader.readObject(SpongeBlob), reader.readObject(SpongeBlob), reader.readUInt64(), Fr.fromBuffer(reader),
|
|
76
|
+
return new BlockRollupPublicInputs(reader.readObject(CheckpointConstantData), reader.readObject(AppendOnlyTreeSnapshot), reader.readObject(AppendOnlyTreeSnapshot), reader.readObject(StateReference), reader.readObject(StateReference), reader.readObject(SpongeBlob), reader.readObject(SpongeBlob), reader.readUInt64(), Fr.fromBuffer(reader), reader.readObject(L1ToL2MessageSponge), reader.readObject(L1ToL2MessageSponge), Fr.fromBuffer(reader), Fr.fromBuffer(reader), Fr.fromBuffer(reader));
|
|
71
77
|
}
|
|
72
78
|
toBuffer() {
|
|
73
|
-
return serializeToBuffer(this.constants, this.previousArchive, this.newArchive, this.startState, this.endState, this.startSpongeBlob, this.endSpongeBlob, bigintToUInt64BE(this.timestamp), this.blockHeadersHash, this.
|
|
79
|
+
return serializeToBuffer(this.constants, this.previousArchive, this.newArchive, this.startState, this.endState, this.startSpongeBlob, this.endSpongeBlob, bigintToUInt64BE(this.timestamp), this.blockHeadersHash, this.startMsgSponge, this.endMsgSponge, this.outHash, this.accumulatedFees, this.accumulatedManaUsed);
|
|
74
80
|
}
|
|
75
81
|
toString() {
|
|
76
82
|
return bufferToHex(this.toBuffer());
|
|
@@ -86,7 +92,8 @@ import { CheckpointConstantData } from './checkpoint_constant_data.js';
|
|
|
86
92
|
previousArchiveRoot: this.previousArchive.root.toString(),
|
|
87
93
|
newArchiveRoot: this.newArchive.root.toString(),
|
|
88
94
|
blockHeadersHash: this.blockHeadersHash.toString(),
|
|
89
|
-
|
|
95
|
+
startMsgSpongeNumAbsorbed: this.startMsgSponge.numAbsorbed,
|
|
96
|
+
endMsgSpongeNumAbsorbed: this.endMsgSponge.numAbsorbed,
|
|
90
97
|
outHash: this.outHash.toString(),
|
|
91
98
|
timestamp: this.timestamp.toString(),
|
|
92
99
|
accumulatedFees: this.accumulatedFees.toString(),
|