@aztec/stdlib 0.85.0-nightly.20250421 → 0.85.0-nightly.20250423
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/block/l2_block.js +1 -1
- package/dest/interfaces/aztec-node-admin.d.ts +3 -1
- package/dest/interfaces/aztec-node-admin.d.ts.map +1 -1
- package/dest/p2p/block_attestation.d.ts +4 -3
- package/dest/p2p/block_attestation.d.ts.map +1 -1
- package/dest/p2p/block_attestation.js +4 -4
- package/dest/p2p/block_proposal.d.ts +4 -3
- package/dest/p2p/block_proposal.d.ts.map +1 -1
- package/dest/p2p/block_proposal.js +5 -5
- package/dest/p2p/consensus_payload.d.ts +1 -1
- package/dest/p2p/consensus_payload.d.ts.map +1 -1
- package/dest/p2p/consensus_payload.js +2 -3
- package/dest/p2p/gossipable.d.ts +2 -1
- package/dest/p2p/gossipable.d.ts.map +1 -1
- package/dest/p2p/interface.d.ts +0 -13
- package/dest/p2p/interface.d.ts.map +1 -1
- package/dest/p2p/interface.js +1 -19
- package/dest/p2p/signature_utils.d.ts +3 -3
- package/dest/p2p/signature_utils.d.ts.map +1 -1
- package/dest/p2p/signature_utils.js +4 -4
- package/dest/p2p/topic_type.d.ts +2 -2
- package/dest/p2p/topic_type.d.ts.map +1 -1
- package/dest/p2p/topic_type.js +4 -4
- package/dest/rollup/block_root_or_block_merge_public_inputs.d.ts +0 -16
- package/dest/rollup/block_root_or_block_merge_public_inputs.d.ts.map +1 -1
- package/dest/rollup/block_root_or_block_merge_public_inputs.js +2 -10
- package/dest/rollup/block_root_rollup.d.ts +9 -1
- package/dest/rollup/block_root_rollup.d.ts.map +1 -1
- package/dest/rollup/block_root_rollup.js +6 -1
- package/dest/rollup/root_rollup.d.ts +2 -4
- package/dest/rollup/root_rollup.d.ts.map +1 -1
- package/dest/rollup/root_rollup.js +3 -9
- package/dest/tests/factories.d.ts.map +1 -1
- package/dest/tests/factories.js +3 -3
- package/dest/tests/mocks.d.ts +2 -2
- package/dest/tests/mocks.d.ts.map +1 -1
- package/dest/tests/mocks.js +6 -6
- package/dest/tx/block_header.d.ts +1 -0
- package/dest/tx/block_header.d.ts.map +1 -1
- package/dest/tx/block_header.js +3 -0
- package/dest/tx/tx.d.ts +2 -1
- package/dest/tx/tx.d.ts.map +1 -1
- package/dest/tx/tx.js +2 -6
- package/package.json +7 -7
- package/src/block/l2_block.ts +1 -1
- package/src/interfaces/aztec-node-admin.ts +1 -1
- package/src/p2p/block_attestation.ts +5 -8
- package/src/p2p/block_proposal.ts +5 -8
- package/src/p2p/consensus_payload.ts +3 -9
- package/src/p2p/gossipable.ts +3 -1
- package/src/p2p/interface.ts +0 -24
- package/src/p2p/signature_utils.ts +6 -9
- package/src/p2p/topic_type.ts +4 -4
- package/src/rollup/block_root_or_block_merge_public_inputs.ts +0 -12
- package/src/rollup/block_root_rollup.ts +6 -0
- package/src/rollup/root_rollup.ts +0 -8
- package/src/tests/factories.ts +11 -14
- package/src/tests/mocks.ts +6 -6
- package/src/tx/block_header.ts +4 -0
- package/src/tx/tx.ts +2 -7
package/dest/block/l2_block.js
CHANGED
|
@@ -73,7 +73,7 @@ import { makeAppendOnlyTreeSnapshot, makeHeader } from './l2_block_code_to_purge
|
|
|
73
73
|
return new L2Block(AppendOnlyTreeSnapshot.zero(), BlockHeader.empty(), Body.empty());
|
|
74
74
|
}
|
|
75
75
|
get number() {
|
|
76
|
-
return
|
|
76
|
+
return this.header.getBlockNumber();
|
|
77
77
|
}
|
|
78
78
|
/**
|
|
79
79
|
* Returns the block's hash (hash of block header).
|
|
@@ -11,7 +11,9 @@ export interface AztecNodeAdmin {
|
|
|
11
11
|
* Updates the configuration of this node.
|
|
12
12
|
* @param config - Updated configuration to be merged with the current one.
|
|
13
13
|
*/
|
|
14
|
-
setConfig(config: Partial<SequencerConfig & ProverConfig
|
|
14
|
+
setConfig(config: Partial<SequencerConfig & ProverConfig & {
|
|
15
|
+
maxTxPoolSize: number;
|
|
16
|
+
}>): Promise<void>;
|
|
15
17
|
/**
|
|
16
18
|
* Forces the next block to be built bypassing all time and pending checks.
|
|
17
19
|
* Useful for testing.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"aztec-node-admin.d.ts","sourceRoot":"","sources":["../../src/interfaces/aztec-node-admin.ts"],"names":[],"mappings":"AAAA,OAAO,EAA2B,YAAY,EAAE,MAAM,mCAAmC,CAAC;AAI1F,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,uBAAuB,CAAC;AAC1D,OAAO,EAAE,KAAK,kBAAkB,EAAgC,MAAM,wBAAwB,CAAC;AAC/F,OAAO,EAAE,KAAK,eAAe,EAAyB,MAAM,cAAc,CAAC;AAC3E,OAAO,EAAE,KAAK,YAAY,EAAsB,MAAM,oBAAoB,CAAC;AAE3E;;GAEG;AACH,MAAM,WAAW,cAAc;IAC7B;;;OAGG;IACH,SAAS,CAAC,MAAM,EAAE,OAAO,CAAC,eAAe,GAAG,YAAY,CAAC,GAAG,OAAO,CAAC,IAAI,CAAC,CAAC;
|
|
1
|
+
{"version":3,"file":"aztec-node-admin.d.ts","sourceRoot":"","sources":["../../src/interfaces/aztec-node-admin.ts"],"names":[],"mappings":"AAAA,OAAO,EAA2B,YAAY,EAAE,MAAM,mCAAmC,CAAC;AAI1F,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,uBAAuB,CAAC;AAC1D,OAAO,EAAE,KAAK,kBAAkB,EAAgC,MAAM,wBAAwB,CAAC;AAC/F,OAAO,EAAE,KAAK,eAAe,EAAyB,MAAM,cAAc,CAAC;AAC3E,OAAO,EAAE,KAAK,YAAY,EAAsB,MAAM,oBAAoB,CAAC;AAE3E;;GAEG;AACH,MAAM,WAAW,cAAc;IAC7B;;;OAGG;IACH,SAAS,CAAC,MAAM,EAAE,OAAO,CAAC,eAAe,GAAG,YAAY,GAAG;QAAE,aAAa,EAAE,MAAM,CAAA;KAAE,CAAC,GAAG,OAAO,CAAC,IAAI,CAAC,CAAC;IAEtG;;;OAGG;IACH,QAAQ,IAAI,OAAO,CAAC,IAAI,CAAC,CAAC;IAE1B;;;OAGG;IACH,mBAAmB,CAAC,QAAQ,EAAE,MAAM,GAAG,OAAO,CAAC,IAAI,CAAC,CAAC;CACtD;AAED,eAAO,MAAM,uBAAuB,EAAE,YAAY,CAAC,cAAc,CAIhE,CAAC;AAEF,wBAAgB,0BAA0B,CACxC,GAAG,EAAE,MAAM,EACX,QAAQ,GAAE,OAAO,CAAC,kBAAkB,CAAM,EAC1C,KAAK,sBAAe,GACnB,cAAc,CAMhB"}
|
|
@@ -8,6 +8,7 @@ import { BufferReader } from '@aztec/foundation/serialize';
|
|
|
8
8
|
import type { ZodFor } from '../schemas/index.js';
|
|
9
9
|
import { ConsensusPayload } from './consensus_payload.js';
|
|
10
10
|
import { Gossipable } from './gossipable.js';
|
|
11
|
+
import { TopicType } from './topic_type.js';
|
|
11
12
|
export declare class BlockAttestationHash extends Buffer32 {
|
|
12
13
|
constructor(hash: Buffer);
|
|
13
14
|
}
|
|
@@ -22,7 +23,7 @@ export declare class BlockAttestation extends Gossipable {
|
|
|
22
23
|
readonly payload: ConsensusPayload;
|
|
23
24
|
/** The signature of the block attester */
|
|
24
25
|
readonly signature: Signature;
|
|
25
|
-
static p2pTopic:
|
|
26
|
+
static p2pTopic: TopicType;
|
|
26
27
|
private sender;
|
|
27
28
|
constructor(
|
|
28
29
|
/** The payload of the message, and what the signature is over */
|
|
@@ -39,8 +40,8 @@ export declare class BlockAttestation extends Gossipable {
|
|
|
39
40
|
* Lazily evaluate and cache the sender of the attestation
|
|
40
41
|
* @returns The sender of the attestation
|
|
41
42
|
*/
|
|
42
|
-
getSender():
|
|
43
|
-
getPayload():
|
|
43
|
+
getSender(): EthAddress;
|
|
44
|
+
getPayload(): Buffer;
|
|
44
45
|
toBuffer(): Buffer;
|
|
45
46
|
static fromBuffer(buf: Buffer | BufferReader): BlockAttestation;
|
|
46
47
|
static empty(): BlockAttestation;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"block_attestation.d.ts","sourceRoot":"","sources":["../../src/p2p/block_attestation.ts"],"names":[],"mappings":";;AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,0BAA0B,CAAC;AAEpD,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,+BAA+B,CAAC;AAChE,OAAO,EAAE,SAAS,EAAE,MAAM,iCAAiC,CAAC;AAC5D,OAAO,KAAK,EAAE,EAAE,EAAE,MAAM,0BAA0B,CAAC;AACnD,OAAO,EAAE,YAAY,EAAqB,MAAM,6BAA6B,CAAC;AAI9E,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,qBAAqB,CAAC;AAClD,OAAO,EAAE,gBAAgB,EAAE,MAAM,wBAAwB,CAAC;AAC1D,OAAO,EAAE,UAAU,EAAE,MAAM,iBAAiB,CAAC;
|
|
1
|
+
{"version":3,"file":"block_attestation.d.ts","sourceRoot":"","sources":["../../src/p2p/block_attestation.ts"],"names":[],"mappings":";;AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,0BAA0B,CAAC;AAEpD,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,+BAA+B,CAAC;AAChE,OAAO,EAAE,SAAS,EAAE,MAAM,iCAAiC,CAAC;AAC5D,OAAO,KAAK,EAAE,EAAE,EAAE,MAAM,0BAA0B,CAAC;AACnD,OAAO,EAAE,YAAY,EAAqB,MAAM,6BAA6B,CAAC;AAI9E,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,qBAAqB,CAAC;AAClD,OAAO,EAAE,gBAAgB,EAAE,MAAM,wBAAwB,CAAC;AAC1D,OAAO,EAAE,UAAU,EAAE,MAAM,iBAAiB,CAAC;AAE7C,OAAO,EAAE,SAAS,EAAE,MAAM,iBAAiB,CAAC;AAE5C,qBAAa,oBAAqB,SAAQ,QAAQ;gBACpC,IAAI,EAAE,MAAM;CAGzB;AAED;;;;;GAKG;AACH,qBAAa,gBAAiB,SAAQ,UAAU;IAM5C,iEAAiE;aACjD,OAAO,EAAE,gBAAgB;IAEzC,0CAA0C;aAC1B,SAAS,EAAE,SAAS;IATtC,OAAgB,QAAQ,YAA+B;IAEvD,OAAO,CAAC,MAAM,CAAyB;;IAGrC,iEAAiE;IACjD,OAAO,EAAE,gBAAgB;IAEzC,0CAA0C;IAC1B,SAAS,EAAE,SAAS;IAKtC,MAAM,KAAK,MAAM,IAAI,MAAM,CAAC,gBAAgB,CAAC,CAO5C;IAEQ,oBAAoB,IAAI,OAAO,CAAC,QAAQ,CAAC;IAIlD,IAAI,OAAO,IAAI,EAAE,CAEhB;IAED,IAAI,UAAU,IAAI,EAAE,CAEnB;IAED,IAAI,WAAW,IAAI,EAAE,CAEpB;IAED;;;;OAIG;IACH,SAAS,IAAI,UAAU;IAWvB,UAAU,IAAI,MAAM;IAIpB,QAAQ,IAAI,MAAM;IAIlB,MAAM,CAAC,UAAU,CAAC,GAAG,EAAE,MAAM,GAAG,YAAY,GAAG,gBAAgB;IAK/D,MAAM,CAAC,KAAK,IAAI,gBAAgB;IAIhC,OAAO,IAAI,MAAM;CAGlB"}
|
|
@@ -6,7 +6,7 @@ import { z } from 'zod';
|
|
|
6
6
|
import { ConsensusPayload } from './consensus_payload.js';
|
|
7
7
|
import { Gossipable } from './gossipable.js';
|
|
8
8
|
import { SignatureDomainSeparator, getHashedSignaturePayloadEthSignedMessage } from './signature_utils.js';
|
|
9
|
-
import { TopicType
|
|
9
|
+
import { TopicType } from './topic_type.js';
|
|
10
10
|
export class BlockAttestationHash extends Buffer32 {
|
|
11
11
|
constructor(hash){
|
|
12
12
|
super(hash);
|
|
@@ -20,7 +20,7 @@ export class BlockAttestationHash extends Buffer32 {
|
|
|
20
20
|
*/ export class BlockAttestation extends Gossipable {
|
|
21
21
|
payload;
|
|
22
22
|
signature;
|
|
23
|
-
static p2pTopic =
|
|
23
|
+
static p2pTopic = TopicType.block_attestation;
|
|
24
24
|
sender;
|
|
25
25
|
constructor(/** The payload of the message, and what the signature is over */ payload, /** The signature of the block attester */ signature){
|
|
26
26
|
super(), this.payload = payload, this.signature = signature;
|
|
@@ -47,10 +47,10 @@ export class BlockAttestationHash extends Buffer32 {
|
|
|
47
47
|
*
|
|
48
48
|
* Lazily evaluate and cache the sender of the attestation
|
|
49
49
|
* @returns The sender of the attestation
|
|
50
|
-
*/
|
|
50
|
+
*/ getSender() {
|
|
51
51
|
if (!this.sender) {
|
|
52
52
|
// Recover the sender from the attestation
|
|
53
|
-
const hashed =
|
|
53
|
+
const hashed = getHashedSignaturePayloadEthSignedMessage(this.payload, SignatureDomainSeparator.blockAttestation);
|
|
54
54
|
// Cache the sender for later use
|
|
55
55
|
this.sender = recoverAddress(hashed, this.signature);
|
|
56
56
|
}
|
|
@@ -7,6 +7,7 @@ import type { Fr } from '@aztec/foundation/fields';
|
|
|
7
7
|
import { BufferReader } from '@aztec/foundation/serialize';
|
|
8
8
|
import { ConsensusPayload } from './consensus_payload.js';
|
|
9
9
|
import { Gossipable } from './gossipable.js';
|
|
10
|
+
import { TopicType } from './topic_type.js';
|
|
10
11
|
export declare class BlockProposalHash extends Buffer32 {
|
|
11
12
|
constructor(hash: Buffer);
|
|
12
13
|
}
|
|
@@ -21,7 +22,7 @@ export declare class BlockProposal extends Gossipable {
|
|
|
21
22
|
readonly payload: ConsensusPayload;
|
|
22
23
|
/** The signer of the BlockProposal over the header of the new block*/
|
|
23
24
|
readonly signature: Signature;
|
|
24
|
-
static p2pTopic:
|
|
25
|
+
static p2pTopic: TopicType;
|
|
25
26
|
private sender;
|
|
26
27
|
constructor(
|
|
27
28
|
/** The payload of the message, and what the signature is over */
|
|
@@ -36,8 +37,8 @@ export declare class BlockProposal extends Gossipable {
|
|
|
36
37
|
/**Get Sender
|
|
37
38
|
* Lazily evaluate the sender of the proposal; result is cached
|
|
38
39
|
*/
|
|
39
|
-
getSender():
|
|
40
|
-
getPayload():
|
|
40
|
+
getSender(): EthAddress;
|
|
41
|
+
getPayload(): Buffer;
|
|
41
42
|
toBuffer(): Buffer;
|
|
42
43
|
static fromBuffer(buf: Buffer | BufferReader): BlockProposal;
|
|
43
44
|
getSize(): number;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"block_proposal.d.ts","sourceRoot":"","sources":["../../src/p2p/block_proposal.ts"],"names":[],"mappings":";;AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,0BAA0B,CAAC;AAEpD,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,+BAA+B,CAAC;AAChE,OAAO,EAAE,SAAS,EAAE,MAAM,iCAAiC,CAAC;AAC5D,OAAO,KAAK,EAAE,EAAE,EAAE,MAAM,0BAA0B,CAAC;AACnD,OAAO,EAAE,YAAY,EAAqB,MAAM,6BAA6B,CAAC;AAE9E,OAAO,EAAE,gBAAgB,EAAE,MAAM,wBAAwB,CAAC;AAC1D,OAAO,EAAE,UAAU,EAAE,MAAM,iBAAiB,CAAC;
|
|
1
|
+
{"version":3,"file":"block_proposal.d.ts","sourceRoot":"","sources":["../../src/p2p/block_proposal.ts"],"names":[],"mappings":";;AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,0BAA0B,CAAC;AAEpD,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,+BAA+B,CAAC;AAChE,OAAO,EAAE,SAAS,EAAE,MAAM,iCAAiC,CAAC;AAC5D,OAAO,KAAK,EAAE,EAAE,EAAE,MAAM,0BAA0B,CAAC;AACnD,OAAO,EAAE,YAAY,EAAqB,MAAM,6BAA6B,CAAC;AAE9E,OAAO,EAAE,gBAAgB,EAAE,MAAM,wBAAwB,CAAC;AAC1D,OAAO,EAAE,UAAU,EAAE,MAAM,iBAAiB,CAAC;AAM7C,OAAO,EAAE,SAAS,EAAE,MAAM,iBAAiB,CAAC;AAE5C,qBAAa,iBAAkB,SAAQ,QAAQ;gBACjC,IAAI,EAAE,MAAM;CAGzB;AAED;;;;;GAKG;AACH,qBAAa,aAAc,SAAQ,UAAU;IAMzC,iEAAiE;aACjD,OAAO,EAAE,gBAAgB;IAEzC,sEAAsE;aACtD,SAAS,EAAE,SAAS;IATtC,OAAgB,QAAQ,YAA4B;IAEpD,OAAO,CAAC,MAAM,CAAyB;;IAGrC,iEAAiE;IACjD,OAAO,EAAE,gBAAgB;IAEzC,sEAAsE;IACtD,SAAS,EAAE,SAAS;IAK7B,oBAAoB,IAAI,OAAO,CAAC,QAAQ,CAAC;IAIlD,IAAI,OAAO,IAAI,EAAE,CAEhB;IAED,IAAI,UAAU,IAAI,EAAE,CAEnB;IAED,IAAI,WAAW,IAAI,EAAE,CAEpB;WAEY,wBAAwB,CACnC,OAAO,EAAE,gBAAgB,EACzB,aAAa,EAAE,CAAC,OAAO,EAAE,QAAQ,KAAK,OAAO,CAAC,SAAS,CAAC;IAQ1D;;OAEG;IACH,SAAS;IAUT,UAAU;IAIV,QAAQ,IAAI,MAAM;IAIlB,MAAM,CAAC,UAAU,CAAC,GAAG,EAAE,MAAM,GAAG,YAAY,GAAG,aAAa;IAK5D,OAAO,IAAI,MAAM;CAGlB"}
|
|
@@ -5,7 +5,7 @@ import { BufferReader, serializeToBuffer } from '@aztec/foundation/serialize';
|
|
|
5
5
|
import { ConsensusPayload } from './consensus_payload.js';
|
|
6
6
|
import { Gossipable } from './gossipable.js';
|
|
7
7
|
import { SignatureDomainSeparator, getHashedSignaturePayload, getHashedSignaturePayloadEthSignedMessage } from './signature_utils.js';
|
|
8
|
-
import { TopicType
|
|
8
|
+
import { TopicType } from './topic_type.js';
|
|
9
9
|
export class BlockProposalHash extends Buffer32 {
|
|
10
10
|
constructor(hash){
|
|
11
11
|
super(hash);
|
|
@@ -19,7 +19,7 @@ export class BlockProposalHash extends Buffer32 {
|
|
|
19
19
|
*/ export class BlockProposal extends Gossipable {
|
|
20
20
|
payload;
|
|
21
21
|
signature;
|
|
22
|
-
static p2pTopic =
|
|
22
|
+
static p2pTopic = TopicType.block_proposal;
|
|
23
23
|
sender;
|
|
24
24
|
constructor(/** The payload of the message, and what the signature is over */ payload, /** The signer of the BlockProposal over the header of the new block*/ signature){
|
|
25
25
|
super(), this.payload = payload, this.signature = signature;
|
|
@@ -37,15 +37,15 @@ export class BlockProposalHash extends Buffer32 {
|
|
|
37
37
|
return this.payload.header.globalVariables.blockNumber;
|
|
38
38
|
}
|
|
39
39
|
static async createProposalFromSigner(payload, payloadSigner) {
|
|
40
|
-
const hashed =
|
|
40
|
+
const hashed = getHashedSignaturePayload(payload, SignatureDomainSeparator.blockProposal);
|
|
41
41
|
const sig = await payloadSigner(hashed);
|
|
42
42
|
return new BlockProposal(payload, sig);
|
|
43
43
|
}
|
|
44
44
|
/**Get Sender
|
|
45
45
|
* Lazily evaluate the sender of the proposal; result is cached
|
|
46
|
-
*/
|
|
46
|
+
*/ getSender() {
|
|
47
47
|
if (!this.sender) {
|
|
48
|
-
const hashed =
|
|
48
|
+
const hashed = getHashedSignaturePayloadEthSignedMessage(this.payload, SignatureDomainSeparator.blockProposal);
|
|
49
49
|
// Cache the sender for later use
|
|
50
50
|
this.sender = recoverAddress(hashed, this.signature);
|
|
51
51
|
}
|
|
@@ -38,7 +38,7 @@ export declare class ConsensusPayload implements Signable {
|
|
|
38
38
|
header?: any;
|
|
39
39
|
}>;
|
|
40
40
|
static getFields(fields: FieldsOf<ConsensusPayload>): readonly [BlockHeader, Fr, TxHash[]];
|
|
41
|
-
getPayloadToSign(domainSeparator: SignatureDomainSeparator):
|
|
41
|
+
getPayloadToSign(domainSeparator: SignatureDomainSeparator): Buffer;
|
|
42
42
|
toBuffer(): Buffer;
|
|
43
43
|
static fromBuffer(buf: Buffer | BufferReader): ConsensusPayload;
|
|
44
44
|
static fromFields(fields: FieldsOf<ConsensusPayload>): ConsensusPayload;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"consensus_payload.d.ts","sourceRoot":"","sources":["../../src/p2p/consensus_payload.ts"],"names":[],"mappings":";;AAAA,OAAO,EAAE,EAAE,EAAE,MAAM,0BAA0B,CAAC;AAE9C,OAAO,EAAE,YAAY,EAAq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AC;AAC1C,OAAO,KAAK,EAAE,QAAQ,EAAE,wBAAwB,EAAE,MAAM,sBAAsB,CAAC;AAE/E,qBAAa,gBAAiB,YAAW,QAAQ;IAI7C,oDAAoD;aACpC,MAAM,EAAE,WAAW;aAEnB,OAAO,EAAE,EAAE;IAC3B,gDAAgD;aAChC,QAAQ,EAAE,MAAM,EAAE;IARpC,OAAO,CAAC,IAAI,CAAqB;;IAG/B,oDAAoD;IACpC,MAAM,EAAE,WAAW,EAEnB,OAAO,EAAE,EAAE;IAC3B,gDAAgD;IAChC,QAAQ,EAAE,MAAM,EAAE;IAGpC,MAAM,KAAK,MAAM;;;;;;;;;;;;;;;;OAQhB;IAED,MAAM,CAAC,SAAS,CAAC,MAAM,EAAE,QAAQ,CAAC,gBAAgB,CAAC;IAInD,gBAAgB,CAAC,eAAe,EAAE,wBAAwB,GAAG,MAAM;IAWnE,QAAQ,IAAI,MAAM;IAMlB,MAAM,CAAC,UAAU,CAAC,GAAG,EAAE,MAAM,GAAG,YAAY,GAAG,gBAAgB;IAS/D,MAAM,CAAC,UAAU,CAAC,MAAM,EAAE,QAAQ,CAAC,gBAAgB,CAAC,GAAG,gBAAgB;IAIvE,MAAM,CAAC,SAAS,CAAC,KAAK,EAAE,OAAO,GAAG,gBAAgB;IAQlD,MAAM,CAAC,KAAK,IAAI,gBAAgB;IAIhC;;;OAGG;IACH,OAAO,IAAI,MAAM;CAQlB"}
|
|
@@ -31,14 +31,13 @@ export class ConsensusPayload {
|
|
|
31
31
|
fields.txHashes
|
|
32
32
|
];
|
|
33
33
|
}
|
|
34
|
-
|
|
35
|
-
const abi = parseAbiParameters('uint8, (bytes32,
|
|
34
|
+
getPayloadToSign(domainSeparator) {
|
|
35
|
+
const abi = parseAbiParameters('uint8, (bytes32, (uint256), bytes, bytes32[])');
|
|
36
36
|
const txArray = this.txHashes.map((tx)=>tx.toString());
|
|
37
37
|
const encodedData = encodeAbiParameters(abi, [
|
|
38
38
|
domainSeparator,
|
|
39
39
|
[
|
|
40
40
|
this.archive.toString(),
|
|
41
|
-
(await this.header.hash()).toString(),
|
|
42
41
|
[
|
|
43
42
|
0n
|
|
44
43
|
],
|
package/dest/p2p/gossipable.d.ts
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
/// <reference types="node" resolution-mode="require"/>
|
|
2
2
|
/// <reference types="node" resolution-mode="require"/>
|
|
3
3
|
import type { Buffer32 } from '@aztec/foundation/buffer';
|
|
4
|
+
import type { TopicType } from './topic_type.js';
|
|
4
5
|
/**
|
|
5
6
|
* Gossipable
|
|
6
7
|
*
|
|
@@ -11,7 +12,7 @@ export declare abstract class Gossipable {
|
|
|
11
12
|
*
|
|
12
13
|
* - The p2p topic identifier, this determines how the message is handled
|
|
13
14
|
*/
|
|
14
|
-
static p2pTopic:
|
|
15
|
+
static p2pTopic: TopicType;
|
|
15
16
|
/** p2p Message Identifier
|
|
16
17
|
*
|
|
17
18
|
* - A digest of the message information, this key is used for deduplication
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"gossipable.d.ts","sourceRoot":"","sources":["../../src/p2p/gossipable.ts"],"names":[],"mappings":";;AAAA,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,0BAA0B,CAAC;AAEzD;;;;GAIG;AACH,8BAAsB,UAAU;IAC9B;;;OAGG;IACH,MAAM,CAAC,QAAQ,EAAE,
|
|
1
|
+
{"version":3,"file":"gossipable.d.ts","sourceRoot":"","sources":["../../src/p2p/gossipable.ts"],"names":[],"mappings":";;AAAA,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,0BAA0B,CAAC;AAEzD,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,iBAAiB,CAAC;AAEjD;;;;GAIG;AACH,8BAAsB,UAAU;IAC9B;;;OAGG;IACH,MAAM,CAAC,QAAQ,EAAE,SAAS,CAAC;IAE3B;;;OAGG;IACH,QAAQ,CAAC,oBAAoB,IAAI,OAAO,CAAC,QAAQ,CAAC;IAElD;;;OAGG;IACH,QAAQ,CAAC,QAAQ,IAAI,MAAM;IAE3B;;;;OAIG;IACH,QAAQ,CAAC,OAAO,IAAI,MAAM;CAC3B"}
|
package/dest/p2p/interface.d.ts
CHANGED
|
@@ -1,18 +1,5 @@
|
|
|
1
|
-
import { Tx } from '../tx/tx.js';
|
|
2
|
-
import { BlockAttestation } from './block_attestation.js';
|
|
3
|
-
import { BlockProposal } from './block_proposal.js';
|
|
4
|
-
import type { Gossipable } from './gossipable.js';
|
|
5
1
|
export interface RawGossipMessage {
|
|
6
2
|
topic: string;
|
|
7
3
|
data: Uint8Array;
|
|
8
4
|
}
|
|
9
|
-
export declare const TopicTypeMap: Record<string, typeof Gossipable>;
|
|
10
|
-
/**
|
|
11
|
-
* Map from topic to deserialiser
|
|
12
|
-
*
|
|
13
|
-
* Used in msgIdFn libp2p to get the p2pMessageIdentifier from a message
|
|
14
|
-
*/
|
|
15
|
-
export declare const TopicToDeserializer: {
|
|
16
|
-
[x: string]: typeof BlockAttestation.fromBuffer | typeof BlockProposal.fromBuffer | typeof Tx.fromBuffer;
|
|
17
|
-
};
|
|
18
5
|
//# sourceMappingURL=interface.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"interface.d.ts","sourceRoot":"","sources":["../../src/p2p/interface.ts"],"names":[],"mappings":"AAAA,
|
|
1
|
+
{"version":3,"file":"interface.d.ts","sourceRoot":"","sources":["../../src/p2p/interface.ts"],"names":[],"mappings":"AAAA,MAAM,WAAW,gBAAgB;IAC/B,KAAK,EAAE,MAAM,CAAC;IACd,IAAI,EAAE,UAAU,CAAC;CAClB"}
|
package/dest/p2p/interface.js
CHANGED
|
@@ -1,19 +1 @@
|
|
|
1
|
-
|
|
2
|
-
import { BlockAttestation } from './block_attestation.js';
|
|
3
|
-
import { BlockProposal } from './block_proposal.js';
|
|
4
|
-
import { TopicType } from './topic_type.js';
|
|
5
|
-
// Force casts as we know that each field here extends Gossipable, and we just want types from Gossipable
|
|
6
|
-
export const TopicTypeMap = {
|
|
7
|
-
[TopicType.tx]: Tx,
|
|
8
|
-
[TopicType.block_proposal]: BlockProposal,
|
|
9
|
-
[TopicType.block_attestation]: BlockAttestation
|
|
10
|
-
};
|
|
11
|
-
/**
|
|
12
|
-
* Map from topic to deserialiser
|
|
13
|
-
*
|
|
14
|
-
* Used in msgIdFn libp2p to get the p2pMessageIdentifier from a message
|
|
15
|
-
*/ export const TopicToDeserializer = {
|
|
16
|
-
[Tx.p2pTopic]: Tx.fromBuffer,
|
|
17
|
-
[BlockProposal.p2pTopic]: BlockProposal.fromBuffer,
|
|
18
|
-
[BlockAttestation.p2pTopic]: BlockAttestation.fromBuffer
|
|
19
|
-
};
|
|
1
|
+
export { };
|
|
@@ -6,18 +6,18 @@ export declare enum SignatureDomainSeparator {
|
|
|
6
6
|
blockAttestation = 1
|
|
7
7
|
}
|
|
8
8
|
export interface Signable {
|
|
9
|
-
getPayloadToSign(domainSeparator: SignatureDomainSeparator):
|
|
9
|
+
getPayloadToSign(domainSeparator: SignatureDomainSeparator): Buffer;
|
|
10
10
|
}
|
|
11
11
|
/**
|
|
12
12
|
* Get the hashed payload for the signature of the `Signable`
|
|
13
13
|
* @param s - The `Signable` to sign
|
|
14
14
|
* @returns The hashed payload for the signature of the `Signable`
|
|
15
15
|
*/
|
|
16
|
-
export declare function getHashedSignaturePayload(s: Signable, domainSeparator: SignatureDomainSeparator):
|
|
16
|
+
export declare function getHashedSignaturePayload(s: Signable, domainSeparator: SignatureDomainSeparator): Buffer32;
|
|
17
17
|
/**
|
|
18
18
|
* Get the hashed payload for the signature of the `Signable` as an Ethereum signed message EIP-712
|
|
19
19
|
* @param s - the `Signable` to sign
|
|
20
20
|
* @returns The hashed payload for the signature of the `Signable` as an Ethereum signed message
|
|
21
21
|
*/
|
|
22
|
-
export declare function getHashedSignaturePayloadEthSignedMessage(s: Signable, domainSeparator: SignatureDomainSeparator):
|
|
22
|
+
export declare function getHashedSignaturePayloadEthSignedMessage(s: Signable, domainSeparator: SignatureDomainSeparator): Buffer32;
|
|
23
23
|
//# sourceMappingURL=signature_utils.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"signature_utils.d.ts","sourceRoot":"","sources":["../../src/p2p/signature_utils.ts"],"names":[],"mappings":";;AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,0BAA0B,CAAC;AAGpD,oBAAY,wBAAwB;IAClC,aAAa,IAAI;IACjB,gBAAgB,IAAI;CACrB;AAED,MAAM,WAAW,QAAQ;IACvB,gBAAgB,CAAC,eAAe,EAAE,wBAAwB,GAAG,
|
|
1
|
+
{"version":3,"file":"signature_utils.d.ts","sourceRoot":"","sources":["../../src/p2p/signature_utils.ts"],"names":[],"mappings":";;AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,0BAA0B,CAAC;AAGpD,oBAAY,wBAAwB;IAClC,aAAa,IAAI;IACjB,gBAAgB,IAAI;CACrB;AAED,MAAM,WAAW,QAAQ;IACvB,gBAAgB,CAAC,eAAe,EAAE,wBAAwB,GAAG,MAAM,CAAC;CACrE;AAED;;;;GAIG;AACH,wBAAgB,yBAAyB,CAAC,CAAC,EAAE,QAAQ,EAAE,eAAe,EAAE,wBAAwB,GAAG,QAAQ,CAE1G;AAED;;;;GAIG;AACH,wBAAgB,yCAAyC,CACvD,CAAC,EAAE,QAAQ,EACX,eAAe,EAAE,wBAAwB,GACxC,QAAQ,CAGV"}
|
|
@@ -9,14 +9,14 @@ export var SignatureDomainSeparator = /*#__PURE__*/ function(SignatureDomainSepa
|
|
|
9
9
|
* Get the hashed payload for the signature of the `Signable`
|
|
10
10
|
* @param s - The `Signable` to sign
|
|
11
11
|
* @returns The hashed payload for the signature of the `Signable`
|
|
12
|
-
*/ export
|
|
13
|
-
return Buffer32.fromBuffer(keccak256(
|
|
12
|
+
*/ export function getHashedSignaturePayload(s, domainSeparator) {
|
|
13
|
+
return Buffer32.fromBuffer(keccak256(s.getPayloadToSign(domainSeparator)));
|
|
14
14
|
}
|
|
15
15
|
/**
|
|
16
16
|
* Get the hashed payload for the signature of the `Signable` as an Ethereum signed message EIP-712
|
|
17
17
|
* @param s - the `Signable` to sign
|
|
18
18
|
* @returns The hashed payload for the signature of the `Signable` as an Ethereum signed message
|
|
19
|
-
*/ export
|
|
20
|
-
const payload =
|
|
19
|
+
*/ export function getHashedSignaturePayloadEthSignedMessage(s, domainSeparator) {
|
|
20
|
+
const payload = getHashedSignaturePayload(s, domainSeparator);
|
|
21
21
|
return makeEthSignDigest(payload);
|
|
22
22
|
}
|
package/dest/p2p/topic_type.d.ts
CHANGED
|
@@ -5,7 +5,7 @@ import { P2PClientType } from './client_type.js';
|
|
|
5
5
|
* @param topicType
|
|
6
6
|
* @returns
|
|
7
7
|
*/
|
|
8
|
-
export declare function createTopicString(topicType: TopicType): string;
|
|
8
|
+
export declare function createTopicString(topicType: TopicType, protocolVersion: string): string;
|
|
9
9
|
/**
|
|
10
10
|
*
|
|
11
11
|
*/
|
|
@@ -24,5 +24,5 @@ export declare function getTopicTypeForClientType(clientType: P2PClientType): To
|
|
|
24
24
|
* ...
|
|
25
25
|
* }
|
|
26
26
|
*/
|
|
27
|
-
export declare function metricsTopicStrToLabels(): Map<string, string>;
|
|
27
|
+
export declare function metricsTopicStrToLabels(protocolVersion: string): Map<string, string>;
|
|
28
28
|
//# sourceMappingURL=topic_type.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"topic_type.d.ts","sourceRoot":"","sources":["../../src/p2p/topic_type.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,kBAAkB,CAAC;AAEjD;;;;;GAKG;AACH,wBAAgB,iBAAiB,CAAC,SAAS,EAAE,SAAS,
|
|
1
|
+
{"version":3,"file":"topic_type.d.ts","sourceRoot":"","sources":["../../src/p2p/topic_type.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,kBAAkB,CAAC;AAEjD;;;;;GAKG;AACH,wBAAgB,iBAAiB,CAAC,SAAS,EAAE,SAAS,EAAE,eAAe,EAAE,MAAM,UAE9E;AAED;;GAEG;AACH,oBAAY,SAAS;IACnB,EAAE,OAAO;IACT,cAAc,mBAAmB;IACjC,iBAAiB,sBAAsB;CACxC;AAED,wBAAgB,yBAAyB,CAAC,UAAU,EAAE,aAAa,eAKlE;AAED;;;;;;;;GAQG;AACH,wBAAgB,uBAAuB,CAAC,eAAe,EAAE,MAAM,uBAO9D"}
|
package/dest/p2p/topic_type.js
CHANGED
|
@@ -4,8 +4,8 @@ import { P2PClientType } from './client_type.js';
|
|
|
4
4
|
* The topic channel identifier
|
|
5
5
|
* @param topicType
|
|
6
6
|
* @returns
|
|
7
|
-
*/ export function createTopicString(topicType) {
|
|
8
|
-
return
|
|
7
|
+
*/ export function createTopicString(topicType, protocolVersion) {
|
|
8
|
+
return `/aztec/${TopicType[topicType]}/${protocolVersion}`;
|
|
9
9
|
}
|
|
10
10
|
/**
|
|
11
11
|
*
|
|
@@ -31,10 +31,10 @@ export function getTopicTypeForClientType(clientType) {
|
|
|
31
31
|
* "/aztec/tx/0.1.0": "tx",
|
|
32
32
|
* ...
|
|
33
33
|
* }
|
|
34
|
-
*/ export function metricsTopicStrToLabels() {
|
|
34
|
+
*/ export function metricsTopicStrToLabels(protocolVersion) {
|
|
35
35
|
const topicStrToLabel = new Map();
|
|
36
36
|
for(const topic in TopicType){
|
|
37
|
-
topicStrToLabel.set(createTopicString(TopicType[topic]), topic);
|
|
37
|
+
topicStrToLabel.set(createTopicString(TopicType[topic], protocolVersion), topic);
|
|
38
38
|
}
|
|
39
39
|
return topicStrToLabel;
|
|
40
40
|
}
|
|
@@ -20,14 +20,6 @@ export declare class BlockRootOrBlockMergePublicInputs {
|
|
|
20
20
|
* Archive tree after adding this block range.
|
|
21
21
|
*/
|
|
22
22
|
newArchive: AppendOnlyTreeSnapshot;
|
|
23
|
-
/**
|
|
24
|
-
* Identifier of the previous block before the range.
|
|
25
|
-
*/
|
|
26
|
-
previousBlockHash: Fr;
|
|
27
|
-
/**
|
|
28
|
-
* Identifier of the last block in the range.
|
|
29
|
-
*/
|
|
30
|
-
endBlockHash: Fr;
|
|
31
23
|
/**
|
|
32
24
|
* Global variables for the first block in the range.
|
|
33
25
|
*/
|
|
@@ -70,14 +62,6 @@ export declare class BlockRootOrBlockMergePublicInputs {
|
|
|
70
62
|
* Archive tree after adding this block range.
|
|
71
63
|
*/
|
|
72
64
|
newArchive: AppendOnlyTreeSnapshot,
|
|
73
|
-
/**
|
|
74
|
-
* Identifier of the previous block before the range.
|
|
75
|
-
*/
|
|
76
|
-
previousBlockHash: Fr,
|
|
77
|
-
/**
|
|
78
|
-
* Identifier of the last block in the range.
|
|
79
|
-
*/
|
|
80
|
-
endBlockHash: Fr,
|
|
81
65
|
/**
|
|
82
66
|
* Global variables for the first block in the range.
|
|
83
67
|
*/
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"block_root_or_block_merge_public_inputs.d.ts","sourceRoot":"","sources":["../../src/rollup/block_root_or_block_merge_public_inputs.ts"],"names":[],"mappings":";;AAAA,OAAO,EAAE,qBAAqB,EAAE,MAAM,iBAAiB,CAAC;AACxD,OAAO,EAAE,wBAAwB,EAAE,MAAM,kBAAkB,CAAC;AAC5D,OAAO,EAAE,UAAU,EAAE,MAAM,+BAA+B,CAAC;AAC3D,OAAO,EAAE,EAAE,EAAE,MAAM,0BAA0B,CAAC;AAE9C,OAAO,EAAE,YAAY,EAAE,KAAK,KAAK,EAAwC,MAAM,6BAA6B,CAAC;AAE7G,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,yBAAyB,CAAC;AAExD,OAAO,EAAE,sBAAsB,EAAE,MAAM,uCAAuC,CAAC;AAC/E,OAAO,EAAE,eAAe,EAAE,MAAM,2BAA2B,CAAC;AAE5D;;GAEG;AACH,qBAAa,iCAAiC;IAE1C;;OAEG;IACI,eAAe,EAAE,sBAAsB;IAC9C;;OAEG;IACI,UAAU,EAAE,sBAAsB;IACzC;;OAEG;IACI,
|
|
1
|
+
{"version":3,"file":"block_root_or_block_merge_public_inputs.d.ts","sourceRoot":"","sources":["../../src/rollup/block_root_or_block_merge_public_inputs.ts"],"names":[],"mappings":";;AAAA,OAAO,EAAE,qBAAqB,EAAE,MAAM,iBAAiB,CAAC;AACxD,OAAO,EAAE,wBAAwB,EAAE,MAAM,kBAAkB,CAAC;AAC5D,OAAO,EAAE,UAAU,EAAE,MAAM,+BAA+B,CAAC;AAC3D,OAAO,EAAE,EAAE,EAAE,MAAM,0BAA0B,CAAC;AAE9C,OAAO,EAAE,YAAY,EAAE,KAAK,KAAK,EAAwC,MAAM,6BAA6B,CAAC;AAE7G,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,yBAAyB,CAAC;AAExD,OAAO,EAAE,sBAAsB,EAAE,MAAM,uCAAuC,CAAC;AAC/E,OAAO,EAAE,eAAe,EAAE,MAAM,2BAA2B,CAAC;AAE5D;;GAEG;AACH,qBAAa,iCAAiC;IAE1C;;OAEG;IACI,eAAe,EAAE,sBAAsB;IAC9C;;OAEG;IACI,UAAU,EAAE,sBAAsB;IACzC;;OAEG;IACI,oBAAoB,EAAE,eAAe;IAC5C;;OAEG;IACI,kBAAkB,EAAE,eAAe;IAC1C;;;OAGG;IACI,OAAO,EAAE,EAAE;IAClB;;OAEG;IACI,IAAI,EAAE,KAAK,CAAC,YAAY,EAAE,OAAO,wBAAwB,CAAC;IACjE;;OAEG;IACI,UAAU,EAAE,EAAE;IACrB;;OAEG;IACI,wBAAwB,EAAE,EAAE;IACnC;;OAEG;IACI,QAAQ,EAAE,EAAE;IACnB;;OAEG;IACI,gBAAgB,EAAE,KAAK,CAAC,qBAAqB,EAAE,OAAO,wBAAwB,CAAC;;IAxCtF;;OAEG;IACI,eAAe,EAAE,sBAAsB;IAC9C;;OAEG;IACI,UAAU,EAAE,sBAAsB;IACzC;;OAEG;IACI,oBAAoB,EAAE,eAAe;IAC5C;;OAEG;IACI,kBAAkB,EAAE,eAAe;IAC1C;;;OAGG;IACI,OAAO,EAAE,EAAE;IAClB;;OAEG;IACI,IAAI,EAAE,KAAK,CAAC,YAAY,EAAE,OAAO,wBAAwB,CAAC;IACjE;;OAEG;IACI,UAAU,EAAE,EAAE;IACrB;;OAEG;IACI,wBAAwB,EAAE,EAAE;IACnC;;OAEG;IACI,QAAQ,EAAE,EAAE;IACnB;;OAEG;IACI,gBAAgB,EAAE,KAAK,CAAC,qBAAqB,EAAE,OAAO,wBAAwB,CAAC;IAGxF;;;;OAIG;IACH,MAAM,CAAC,UAAU,CAAC,MAAM,EAAE,MAAM,GAAG,YAAY,GAAG,iCAAiC;IAgBnF;;;OAGG;IACH,QAAQ;IAeR;;;OAGG;IACH,QAAQ;IAIR;;;;OAIG;IACH,MAAM,CAAC,UAAU,CAAC,GAAG,EAAE,MAAM;IAI7B,8DAA8D;IAC9D,MAAM;IAIN,6CAA6C;IAC7C,MAAM,KAAK,MAAM,0EAEhB;CACF;AAED,qBAAa,YAAY;IACJ,SAAS,EAAE,UAAU;IAAS,KAAK,EAAE,EAAE;gBAAvC,SAAS,EAAE,UAAU,EAAS,KAAK,EAAE,EAAE;IAE1D,MAAM,CAAC,UAAU,CAAC,MAAM,EAAE,MAAM,GAAG,YAAY,GAAG,YAAY;IAK9D,QAAQ;IAIR,MAAM,CAAC,SAAS,CAAC,MAAM,EAAE,QAAQ,CAAC,YAAY,CAAC;IAI/C,QAAQ;IAIR,OAAO;IAIP,cAAc;;;;;;;IAOd,MAAM,CAAC,MAAM;CAGd"}
|
|
@@ -12,8 +12,6 @@ import { GlobalVariables } from '../tx/global_variables.js';
|
|
|
12
12
|
*/ export class BlockRootOrBlockMergePublicInputs {
|
|
13
13
|
previousArchive;
|
|
14
14
|
newArchive;
|
|
15
|
-
previousBlockHash;
|
|
16
|
-
endBlockHash;
|
|
17
15
|
startGlobalVariables;
|
|
18
16
|
endGlobalVariables;
|
|
19
17
|
outHash;
|
|
@@ -27,10 +25,6 @@ import { GlobalVariables } from '../tx/global_variables.js';
|
|
|
27
25
|
*/ previousArchive, /**
|
|
28
26
|
* Archive tree after adding this block range.
|
|
29
27
|
*/ newArchive, /**
|
|
30
|
-
* Identifier of the previous block before the range.
|
|
31
|
-
*/ previousBlockHash, /**
|
|
32
|
-
* Identifier of the last block in the range.
|
|
33
|
-
*/ endBlockHash, /**
|
|
34
28
|
* Global variables for the first block in the range.
|
|
35
29
|
*/ startGlobalVariables, /**
|
|
36
30
|
* Global variables for the last block in the range.
|
|
@@ -50,8 +44,6 @@ import { GlobalVariables } from '../tx/global_variables.js';
|
|
|
50
44
|
*/ blobPublicInputs){
|
|
51
45
|
this.previousArchive = previousArchive;
|
|
52
46
|
this.newArchive = newArchive;
|
|
53
|
-
this.previousBlockHash = previousBlockHash;
|
|
54
|
-
this.endBlockHash = endBlockHash;
|
|
55
47
|
this.startGlobalVariables = startGlobalVariables;
|
|
56
48
|
this.endGlobalVariables = endGlobalVariables;
|
|
57
49
|
this.outHash = outHash;
|
|
@@ -67,13 +59,13 @@ import { GlobalVariables } from '../tx/global_variables.js';
|
|
|
67
59
|
* @returns The deserialized public inputs.
|
|
68
60
|
*/ static fromBuffer(buffer) {
|
|
69
61
|
const reader = BufferReader.asReader(buffer);
|
|
70
|
-
return new BlockRootOrBlockMergePublicInputs(reader.readObject(AppendOnlyTreeSnapshot), reader.readObject(AppendOnlyTreeSnapshot),
|
|
62
|
+
return new BlockRootOrBlockMergePublicInputs(reader.readObject(AppendOnlyTreeSnapshot), reader.readObject(AppendOnlyTreeSnapshot), reader.readObject(GlobalVariables), reader.readObject(GlobalVariables), Fr.fromBuffer(reader), reader.readArray(AZTEC_MAX_EPOCH_DURATION, FeeRecipient), Fr.fromBuffer(reader), Fr.fromBuffer(reader), Fr.fromBuffer(reader), reader.readArray(AZTEC_MAX_EPOCH_DURATION, BlockBlobPublicInputs));
|
|
71
63
|
}
|
|
72
64
|
/**
|
|
73
65
|
* Serialize this as a buffer.
|
|
74
66
|
* @returns The buffer.
|
|
75
67
|
*/ toBuffer() {
|
|
76
|
-
return serializeToBuffer(this.previousArchive, this.newArchive, this.
|
|
68
|
+
return serializeToBuffer(this.previousArchive, this.newArchive, this.startGlobalVariables, this.endGlobalVariables, this.outHash, this.fees, this.vkTreeRoot, this.protocolContractTreeRoot, this.proverId, this.blobPublicInputs);
|
|
77
69
|
}
|
|
78
70
|
/**
|
|
79
71
|
* Serialize this as a hex string.
|
|
@@ -16,6 +16,10 @@ export declare class BlockRootRollupData {
|
|
|
16
16
|
* Hint for inserting the new l1 to l2 message subtree.
|
|
17
17
|
*/
|
|
18
18
|
l1ToL2MessageSubtreeSiblingPath: Tuple<Fr, typeof L1_TO_L2_MSG_SUBTREE_SIBLING_PATH_LENGTH>;
|
|
19
|
+
/**
|
|
20
|
+
* Hint for checking the hash of previous_block_header is the last leaf of the previous archive.
|
|
21
|
+
*/
|
|
22
|
+
previousArchiveSiblingPath: Tuple<Fr, typeof ARCHIVE_HEIGHT>;
|
|
19
23
|
/**
|
|
20
24
|
* Hint for inserting the new block hash to the last archive.
|
|
21
25
|
*/
|
|
@@ -37,6 +41,10 @@ export declare class BlockRootRollupData {
|
|
|
37
41
|
* Hint for inserting the new l1 to l2 message subtree.
|
|
38
42
|
*/
|
|
39
43
|
l1ToL2MessageSubtreeSiblingPath: Tuple<Fr, typeof L1_TO_L2_MSG_SUBTREE_SIBLING_PATH_LENGTH>,
|
|
44
|
+
/**
|
|
45
|
+
* Hint for checking the hash of previous_block_header is the last leaf of the previous archive.
|
|
46
|
+
*/
|
|
47
|
+
previousArchiveSiblingPath: Tuple<Fr, typeof ARCHIVE_HEIGHT>,
|
|
40
48
|
/**
|
|
41
49
|
* Hint for inserting the new block hash to the last archive.
|
|
42
50
|
*/
|
|
@@ -70,7 +78,7 @@ export declare class BlockRootRollupData {
|
|
|
70
78
|
* @param fields - Fields to create the instance from.
|
|
71
79
|
* @returns An array of fields.
|
|
72
80
|
*/
|
|
73
|
-
static getFields(fields: FieldsOf<BlockRootRollupData>): readonly [RootParityInput<456>, [Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr], [Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr], BlockHeader, Fr];
|
|
81
|
+
static getFields(fields: FieldsOf<BlockRootRollupData>): readonly [RootParityInput<456>, [Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr], [Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr], [Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr, Fr], BlockHeader, Fr];
|
|
74
82
|
/**
|
|
75
83
|
* Deserializes the inputs from a buffer.
|
|
76
84
|
* @param buffer - A buffer to deserialize from.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"block_root_rollup.d.ts","sourceRoot":"","sources":["../../src/rollup/block_root_rollup.ts"],"names":[],"mappings":";;AAAA,OAAO,EACL,cAAc,EACd,eAAe,EAEf,wCAAwC,EACxC,6BAA6B,EAC9B,MAAM,kBAAkB,CAAC;AAC1B,OAAO,EAAE,EAAE,EAAE,MAAM,0BAA0B,CAAC;AAE9C,OA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M,EAAE,QAAQ,CAAC,qBAAqB,CAAC;IAIxD;;;;OAIG;IACH,MAAM,CAAC,UAAU,CAAC,MAAM,EAAE,MAAM,GAAG,YAAY,GAAG,qBAAqB;IASvE;;;;OAIG;IACH,MAAM,CAAC,UAAU,CAAC,GAAG,EAAE,MAAM;IAI7B,8DAA8D;IAC9D,MAAM;IAIN,6CAA6C;IAC7C,MAAM,KAAK,MAAM,8DAEhB;CACF;AAED,qBAAa,6BAA6B;IAE/B,kBAAkB,EAAE,CAAC,kBAAkB,CAAC;IACxC,IAAI,EAAE,mBAAmB;IACzB,QAAQ,EAAE,uBAAuB;gBAFjC,kBAAkB,EAAE,CAAC,kBAAkB,CAAC,EACxC,IAAI,EAAE,mBAAmB,EACzB,QAAQ,EAAE,uBAAuB;IAG1C;;;OAGG;IACH,QAAQ;IAIR;;;OAGG;IACH,QAAQ;IAIR;;;;OAIG;IACH,MAAM,CAAC,IAAI,CAAC,MAAM,EAAE,QAAQ,CAAC,6BAA6B,CAAC,GAAG,6BAA6B;IAI3F;;;;OAIG;IACH,MAAM,CAAC,SAAS,CAAC,MAAM,EAAE,QAAQ,CAAC,6BAA6B,CAAC;IAIhE;;;;OAIG;IACH,MAAM,CAAC,UAAU,CAAC,MAAM,EAAE,MAAM,GAAG,YAAY,GAAG,6BAA6B;IAS/E;;;;OAIG;IACH,MAAM,CAAC,UAAU,CAAC,GAAG,EAAE,MAAM;IAI7B,8DAA8D;IAC9D,MAAM;IAIN,6CAA6C;IAC7C,MAAM,KAAK,MAAM,sEAEhB;CACF"}
|
|
@@ -9,6 +9,7 @@ import { PreviousRollupData } from './previous_rollup_data.js';
|
|
|
9
9
|
export class BlockRootRollupData {
|
|
10
10
|
l1ToL2Roots;
|
|
11
11
|
l1ToL2MessageSubtreeSiblingPath;
|
|
12
|
+
previousArchiveSiblingPath;
|
|
12
13
|
newArchiveSiblingPath;
|
|
13
14
|
previousBlockHeader;
|
|
14
15
|
proverId;
|
|
@@ -17,6 +18,8 @@ export class BlockRootRollupData {
|
|
|
17
18
|
*/ l1ToL2Roots, /**
|
|
18
19
|
* Hint for inserting the new l1 to l2 message subtree.
|
|
19
20
|
*/ l1ToL2MessageSubtreeSiblingPath, /**
|
|
21
|
+
* Hint for checking the hash of previous_block_header is the last leaf of the previous archive.
|
|
22
|
+
*/ previousArchiveSiblingPath, /**
|
|
20
23
|
* Hint for inserting the new block hash to the last archive.
|
|
21
24
|
*/ newArchiveSiblingPath, /**
|
|
22
25
|
* The header of the previous block.
|
|
@@ -25,6 +28,7 @@ export class BlockRootRollupData {
|
|
|
25
28
|
*/ proverId){
|
|
26
29
|
this.l1ToL2Roots = l1ToL2Roots;
|
|
27
30
|
this.l1ToL2MessageSubtreeSiblingPath = l1ToL2MessageSubtreeSiblingPath;
|
|
31
|
+
this.previousArchiveSiblingPath = previousArchiveSiblingPath;
|
|
28
32
|
this.newArchiveSiblingPath = newArchiveSiblingPath;
|
|
29
33
|
this.previousBlockHeader = previousBlockHeader;
|
|
30
34
|
this.proverId = proverId;
|
|
@@ -56,6 +60,7 @@ export class BlockRootRollupData {
|
|
|
56
60
|
return [
|
|
57
61
|
fields.l1ToL2Roots,
|
|
58
62
|
fields.l1ToL2MessageSubtreeSiblingPath,
|
|
63
|
+
fields.previousArchiveSiblingPath,
|
|
59
64
|
fields.newArchiveSiblingPath,
|
|
60
65
|
fields.previousBlockHeader,
|
|
61
66
|
fields.proverId
|
|
@@ -67,7 +72,7 @@ export class BlockRootRollupData {
|
|
|
67
72
|
* @returns A new RootRollupInputs instance.
|
|
68
73
|
*/ static fromBuffer(buffer) {
|
|
69
74
|
const reader = BufferReader.asReader(buffer);
|
|
70
|
-
return new BlockRootRollupData(RootParityInput.fromBuffer(reader, NESTED_RECURSIVE_PROOF_LENGTH), reader.readArray(L1_TO_L2_MSG_SUBTREE_SIBLING_PATH_LENGTH, Fr), reader.readArray(ARCHIVE_HEIGHT, Fr), BlockHeader.fromBuffer(reader), Fr.fromBuffer(reader));
|
|
75
|
+
return new BlockRootRollupData(RootParityInput.fromBuffer(reader, NESTED_RECURSIVE_PROOF_LENGTH), reader.readArray(L1_TO_L2_MSG_SUBTREE_SIBLING_PATH_LENGTH, Fr), reader.readArray(ARCHIVE_HEIGHT, Fr), reader.readArray(ARCHIVE_HEIGHT, Fr), BlockHeader.fromBuffer(reader), Fr.fromBuffer(reader));
|
|
71
76
|
}
|
|
72
77
|
/**
|
|
73
78
|
* Deserializes the inputs from a hex string.
|
|
@@ -77,8 +77,6 @@ export declare class RootRollupPublicInputs {
|
|
|
77
77
|
/** Snapshot of archive tree before/after this rollup been processed */
|
|
78
78
|
previousArchive: AppendOnlyTreeSnapshot;
|
|
79
79
|
endArchive: AppendOnlyTreeSnapshot;
|
|
80
|
-
previousBlockHash: Fr;
|
|
81
|
-
endBlockHash: Fr;
|
|
82
80
|
endTimestamp: Fr;
|
|
83
81
|
endBlockNumber: Fr;
|
|
84
82
|
outHash: Fr;
|
|
@@ -89,8 +87,8 @@ export declare class RootRollupPublicInputs {
|
|
|
89
87
|
blobPublicInputs: Tuple<BlockBlobPublicInputs, typeof AZTEC_MAX_EPOCH_DURATION>;
|
|
90
88
|
constructor(
|
|
91
89
|
/** Snapshot of archive tree before/after this rollup been processed */
|
|
92
|
-
previousArchive: AppendOnlyTreeSnapshot, endArchive: AppendOnlyTreeSnapshot,
|
|
93
|
-
static getFields(fields: FieldsOf<RootRollupPublicInputs>): readonly [AppendOnlyTreeSnapshot, AppendOnlyTreeSnapshot, Fr, Fr, Fr,
|
|
90
|
+
previousArchive: AppendOnlyTreeSnapshot, endArchive: AppendOnlyTreeSnapshot, endTimestamp: Fr, endBlockNumber: Fr, outHash: Fr, fees: Tuple<FeeRecipient, typeof AZTEC_MAX_EPOCH_DURATION>, vkTreeRoot: Fr, protocolContractTreeRoot: Fr, proverId: Fr, blobPublicInputs: Tuple<BlockBlobPublicInputs, typeof AZTEC_MAX_EPOCH_DURATION>);
|
|
91
|
+
static getFields(fields: FieldsOf<RootRollupPublicInputs>): readonly [AppendOnlyTreeSnapshot, AppendOnlyTreeSnapshot, Fr, Fr, Fr, [FeeRecipient, FeeRecipient, FeeRecipient, FeeRecipient, FeeRecipient, FeeRecipient, FeeRecipient, FeeRecipient, FeeRecipient, FeeRecipient, FeeRecipient, FeeRecipient, FeeRecipient, FeeRecipient, FeeRecipient, FeeRecipient, FeeRecipient, FeeRecipient, FeeRecipient, FeeRecipient, FeeRecipient, FeeRecipient, FeeRecipient, FeeRecipient, FeeRecipient, FeeRecipient, FeeRecipient, FeeRecipient, FeeRecipient, FeeRecipient, FeeRecipient, FeeRecipient, FeeRecipient, FeeRecipient, FeeRecipient, FeeRecipient, FeeRecipient, FeeRecipient, FeeRecipient, FeeRecipient, FeeRecipient, FeeRecipient, FeeRecipient, FeeRecipient, FeeRecipient, FeeRecipient, FeeRecipient, FeeRecipient], Fr, Fr, Fr, [BlockBlobPublicInputs, BlockBlobPublicInputs, BlockBlobPublicInputs, BlockBlobPublicInputs, BlockBlobPublicInputs, BlockBlobPublicInputs, BlockBlobPublicInputs, BlockBlobPublicInputs, BlockBlobPublicInputs, BlockBlobPublicInputs, BlockBlobPublicInputs, BlockBlobPublicInputs, BlockBlobPublicInputs, BlockBlobPublicInputs, BlockBlobPublicInputs, BlockBlobPublicInputs, BlockBlobPublicInputs, BlockBlobPublicInputs, BlockBlobPublicInputs, BlockBlobPublicInputs, BlockBlobPublicInputs, BlockBlobPublicInputs, BlockBlobPublicInputs, BlockBlobPublicInputs, BlockBlobPublicInputs, BlockBlobPublicInputs, BlockBlobPublicInputs, BlockBlobPublicInputs, BlockBlobPublicInputs, BlockBlobPublicInputs, BlockBlobPublicInputs, BlockBlobPublicInputs, BlockBlobPublicInputs, BlockBlobPublicInputs, BlockBlobPublicInputs, BlockBlobPublicInputs, BlockBlobPublicInputs, BlockBlobPublicInputs, BlockBlobPublicInputs, BlockBlobPublicInputs, BlockBlobPublicInputs, BlockBlobPublicInputs, BlockBlobPublicInputs, BlockBlobPublicInputs, BlockBlobPublicInputs, BlockBlobPublicInputs, BlockBlobPublicInputs, BlockBlobPublicInputs]];
|
|
94
92
|
toBuffer(): Buffer;
|
|
95
93
|
toFields(): Fr[];
|
|
96
94
|
static from(fields: FieldsOf<RootRollupPublicInputs>): RootRollupPublicInputs;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"root_rollup.d.ts","sourceRoot":"","sources":["../../src/rollup/root_rollup.ts"],"names":[],"mappings":";;AAAA,OAAO,EAAE,qBAAqB,EAAE,MAAM,iBAAiB,CAAC;AACxD,OAAO,EAAE,wBAAwB,EAAE,MAAM,kBAAkB,CAAC;AAE5D,OAAO,EAAE,EAAE,EAAE,MAAM,0BAA0B,CAAC;AAE9C,OAAO,EAAE,YAAY,EAAE,KAAK,KAAK,EAAwC,MAAM,6BAA6B,CAAC;AAE7G,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,yBAAyB,CAAC;AAExD,OAAO,EAAE,sBAAsB,EAAE,MAAM,uCAAuC,CAAC;AAC/E,OAAO,EAAE,YAAY,EAAE,MAAM,8CAA8C,CAAC;AAC5E,OAAO,EAAE,uBAAuB,EAAE,MAAM,iCAAiC,CAAC;AAE1E;;GAEG;AACH,qBAAa,gBAAgB;IAEzB;;;;OAIG;IACI,kBAAkB,EAAE,CAAC,uBAAuB,EAAE,uBAAuB,CAAC;IAC7E,qDAAqD;IAC9C,QAAQ,EAAE,EAAE;;IAPnB;;;;OAIG;IACI,kBAAkB,EAAE,CAAC,uBAAuB,EAAE,uBAAuB,CAAC;IAC7E,qDAAqD;IAC9C,QAAQ,EAAE,EAAE;IAGrB;;;OAGG;IACH,QAAQ;IAIR;;;OAGG;IACH,QAAQ;IAIR;;;;OAIG;IACH,MAAM,CAAC,IAAI,CAAC,MAAM,EAAE,QAAQ,CAAC,gBAAgB,CAAC,GAAG,gBAAgB;IAIjE;;;;OAIG;IACH,MAAM,CAAC,SAAS,CAAC,MAAM,EAAE,QAAQ,CAAC,gBAAgB,CAAC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