Skip to content

Commit fb1690a

Browse files
authored
Merge pull request #524 from AztecProtocol/cb/merge-public-v5-next-fix
fix: resolve public-v5-next → v5-next merge conflicts [PR 2/2]
2 parents 07cbd0c + 80925c9 commit fb1690a

8 files changed

Lines changed: 22 additions & 126 deletions

File tree

barretenberg/cpp/src/barretenberg/vm2/tracegen/trace_container.cpp

Lines changed: 0 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -4,10 +4,7 @@
44
#include <ranges>
55

66
#include "barretenberg/common/assert.hpp"
7-
<<<<<<< HEAD
8-
=======
97
#include "barretenberg/common/compiler_hints.hpp"
10-
>>>>>>> origin/public-v5-next
118
#include "barretenberg/common/log.hpp"
129
#include "barretenberg/common/ref_vector.hpp"
1310
#include "barretenberg/vm2/common/field.hpp"
@@ -78,11 +75,7 @@ TraceContainer::ColumnInterval& TraceContainer::get_or_create_shard(SparseColumn
7875
return *expected; // CAS failure loaded the winning pointer into `expected` (acquire).
7976
}
8077

81-
<<<<<<< HEAD
82-
void TraceContainer::set(Column col, uint32_t row, const FF& value)
83-
=======
8478
void TraceContainer::set(Column col, uint32_t row, const FF& value, bool use_atomic_limbs)
85-
>>>>>>> origin/public-v5-next
8679
{
8780
auto& column_data = (*trace)[static_cast<size_t>(col)];
8881
const size_t shard_idx = row / INTERVAL_SIZE;
@@ -93,14 +86,6 @@ void TraceContainer::set(Column col, uint32_t row, const FF& value, bool use_ato
9386
// Lock-free: a single atomic load finds the shard (created on first write), then we write our
9487
// own dense cell directly. Different rows are distinct array elements, so concurrent writers of
9588
// this column (or even of the same shard, at a chunk boundary) never race and never serialize.
96-
<<<<<<< HEAD
97-
get_or_create_shard(column_data, shard_idx).rows[offset] = value;
98-
} else {
99-
// Zero value: clear if present. We never create a shard (clearing an absent row is a no-op).
100-
ColumnInterval* shard = column_data.slots[shard_idx].load(std::memory_order_acquire);
101-
if (shard != nullptr) {
102-
shard->rows[offset] = FF::zero();
103-
=======
10489
auto& cell = get_or_create_shard(column_data, shard_idx).rows[offset];
10590
if (BB_UNLIKELY(use_atomic_limbs)) {
10691
store_per_limb(cell, value);
@@ -117,7 +102,6 @@ void TraceContainer::set(Column col, uint32_t row, const FF& value, bool use_ato
117102
} else {
118103
shard->rows[offset] = FF::zero();
119104
}
120-
>>>>>>> origin/public-v5-next
121105
}
122106
}
123107
}

noir-projects/aztec-nr/aztec/src/standard_addresses.nr

Lines changed: 4 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -2,33 +2,17 @@
22
use protocol_types::{address::AztecAddress, traits::FromField};
33

44
pub global STANDARD_AUTH_REGISTRY_ADDRESS: AztecAddress = AztecAddress::from_field(
5-
<<<<<<< HEAD
6-
0x210bb9a735aeafa62550cecd9556a63a86722bdf609c385e3073ddac4f36c5d0,
5+
0x151fc83ed377f7f5eafba69c0dd923a27d3940c887a0c2738de3b3aad8539d37,
76
);
87

98
pub global STANDARD_MULTI_CALL_ENTRYPOINT_ADDRESS: AztecAddress = AztecAddress::from_field(
10-
0x0d7a40e0b5ca489d4511a7ad81ab350b200de1d57f053423c29c0673dc5738aa,
9+
0x24bf02e35ce6f82e3ce17b39c7400eeb16b48c76527207f236e1193f07b2d4f4,
1110
);
1211

1312
pub global STANDARD_PUBLIC_CHECKS_ADDRESS: AztecAddress = AztecAddress::from_field(
14-
0x14574f1307405dfe60f7c142bf5f647d78565a2f7b8f3377d967d42d79b20069,
13+
0x27ead321a0a230af4bed665c30a6d85b3e0eddae03d5f3dc0c5d4687a7ecfb43,
1514
);
1615

1716
pub global STANDARD_HANDSHAKE_REGISTRY_ADDRESS: AztecAddress = AztecAddress::from_field(
18-
0x00e0ba4cebbef0ebe8cef27c0f01fbc8fec405ed665c6455b0b42848ddb9e466,
19-
=======
20-
0x0564d5361fd6d7501baa1706a59bbebd2035d1c2565c9e5daf8f1567da547a23,
21-
);
22-
23-
pub global STANDARD_MULTI_CALL_ENTRYPOINT_ADDRESS: AztecAddress = AztecAddress::from_field(
24-
0x126ab69e8161771b52273d00dbf5d7252ef6a92724d15f1ec2dcc967118a0c7b,
25-
);
26-
27-
pub global STANDARD_PUBLIC_CHECKS_ADDRESS: AztecAddress = AztecAddress::from_field(
28-
0x077341cf79b91db9c440c49786fc4d4508ef3ab623c30fa3be7031ffcad4754c,
29-
);
30-
31-
pub global STANDARD_HANDSHAKE_REGISTRY_ADDRESS: AztecAddress = AztecAddress::from_field(
32-
0x2f8592fb5b1620f33d21d9b67a34002f0e5392d93807a684584af388e0d70741,
33-
>>>>>>> origin/public-v5-next
17+
0x1954c59d82062c1c4733a33284fc81c7d0ed65de93b683f72430047224866484,
3418
);

noir-projects/noir-contracts/contracts/protocol/aztec_sublib/src/standard_addresses.nr

Lines changed: 0 additions & 18 deletions
This file was deleted.

noir-projects/noir-contracts/contracts/standard/handshake_registry_contract/src/test.nr

Lines changed: 0 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -543,19 +543,6 @@ unconstrained fn multiple_senders_discovered_for_same_recipient() {
543543
discovered.items.get(0).eph_pk.x != discovered.items.get(1).eph_pk.x,
544544
"distinct senders should produce distinct ephemeral public keys",
545545
);
546-
<<<<<<< HEAD
547-
// Both handshakes are discovered, but their relative order is not a guaranteed property: each is sent in a
548-
// separate tx, so which one lands in the earlier block (and therefore comes first in the oldest-first discovery
549-
// scan) depends on tx/block ordering, which in turn depends on the senders' addresses. Assert set membership
550-
// rather than a fixed index -> mode mapping.
551-
let mode_0 = discovered.items.get(0).mode;
552-
let mode_1 = discovered.items.get(1).mode;
553-
let constrained_count = (mode_0 == ONCHAIN_CONSTRAINED) as u32 + (mode_1 == ONCHAIN_CONSTRAINED) as u32;
554-
let unconstrained_count = (mode_0 == ONCHAIN_UNCONSTRAINED) as u32 + (mode_1 == ONCHAIN_UNCONSTRAINED) as u32;
555-
assert_eq(constrained_count, 1, "expected exactly one constrained handshake");
556-
assert_eq(unconstrained_count, 1, "expected exactly one unconstrained handshake");
557-
=======
558-
>>>>>>> origin/public-v5-next
559546
}
560547

561548
#[test]
122 KB
Binary file not shown.

yarn-project/bb-prover/src/avm_proving_tests/avm_completeness_bitwise_sha256_collision.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ describe('AVM completeness — bitwise/sha256 error row collision (regression gu
3030
// the collision impossible.
3131
it('proves honest tx with sha256 XOR(U32(0), U32(0)) after inner bitwise error', async () => {
3232
const { innerContract, outerContract } = await deployBitwiseSha256ErrorRowCollisionContracts(tester);
33-
const sender = AztecAddress.fromNumber(42);
33+
const sender = AztecAddress.fromNumberUnsafe(42);
3434

3535
// Inner call reverts (tag mismatch), outer runs SHA256, outer RETURNs OK.
3636
const simRes = await tester.simulateTx(

yarn-project/bb-prover/src/avm_proving_tests/avm_msm_zero_scalar_invalid_point.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ describe('AVM MSM zero-scalar invalid-point regression', () => {
2424
let tester: AvmProvingTester;
2525
let worldStateService: NativeWorldStateService;
2626

27-
const sender = AztecAddress.fromNumber(42);
27+
const sender = AztecAddress.fromNumberUnsafe(42);
2828
let contract: ContractInstanceWithAddress;
2929

3030
beforeEach(async () => {

yarn-project/standard-contracts/src/standard_contract_data.ts

Lines changed: 16 additions & 57 deletions
Original file line numberDiff line numberDiff line change
@@ -20,78 +20,45 @@ export const StandardContractSalt: Record<StandardContractName, Fr> = {
2020
};
2121

2222
export const StandardContractAddress: Record<StandardContractName, AztecAddress> = {
23-
<<<<<<< HEAD
24-
AuthRegistry: AztecAddress.fromString('0x210bb9a735aeafa62550cecd9556a63a86722bdf609c385e3073ddac4f36c5d0'),
25-
MultiCallEntrypoint: AztecAddress.fromString('0x0d7a40e0b5ca489d4511a7ad81ab350b200de1d57f053423c29c0673dc5738aa'),
26-
PublicChecks: AztecAddress.fromString('0x14574f1307405dfe60f7c142bf5f647d78565a2f7b8f3377d967d42d79b20069'),
27-
HandshakeRegistry: AztecAddress.fromString('0x00e0ba4cebbef0ebe8cef27c0f01fbc8fec405ed665c6455b0b42848ddb9e466'),
28-
};
29-
30-
export const StandardContractClassId: Record<StandardContractName, Fr> = {
31-
AuthRegistry: Fr.fromString('0x13991191522a755e7e145f87ca476e30e7e0cbf9f3feba678983b1fc989d44e0'),
32-
MultiCallEntrypoint: Fr.fromString('0x1d6485198a7f0f25054b16577bb0eb1a700543b60c7e19de2119b7214c030a84'),
33-
PublicChecks: Fr.fromString('0x0f177ea657a6ebdfb3e914a91c45d9cac2fc1b126a9d6f8c7c1f5b66f261842e'),
34-
HandshakeRegistry: Fr.fromString('0x0af9d1e794ed6f1725b28ccc791563991f053778411cce97c180d8c35ea5c8c1'),
35-
=======
36-
AuthRegistry: AztecAddress.fromStringUnsafe('0x0564d5361fd6d7501baa1706a59bbebd2035d1c2565c9e5daf8f1567da547a23'),
23+
AuthRegistry: AztecAddress.fromStringUnsafe('0x151fc83ed377f7f5eafba69c0dd923a27d3940c887a0c2738de3b3aad8539d37'),
3724
MultiCallEntrypoint: AztecAddress.fromStringUnsafe(
38-
'0x126ab69e8161771b52273d00dbf5d7252ef6a92724d15f1ec2dcc967118a0c7b',
25+
'0x24bf02e35ce6f82e3ce17b39c7400eeb16b48c76527207f236e1193f07b2d4f4',
3926
),
40-
PublicChecks: AztecAddress.fromStringUnsafe('0x077341cf79b91db9c440c49786fc4d4508ef3ab623c30fa3be7031ffcad4754c'),
27+
PublicChecks: AztecAddress.fromStringUnsafe('0x27ead321a0a230af4bed665c30a6d85b3e0eddae03d5f3dc0c5d4687a7ecfb43'),
4128
HandshakeRegistry: AztecAddress.fromStringUnsafe(
42-
'0x2f8592fb5b1620f33d21d9b67a34002f0e5392d93807a684584af388e0d70741',
29+
'0x1954c59d82062c1c4733a33284fc81c7d0ed65de93b683f72430047224866484',
4330
),
4431
};
4532

4633
export const StandardContractClassId: Record<StandardContractName, Fr> = {
47-
AuthRegistry: Fr.fromString('0x197cba16b38c5408694cec7188b9128e80d247596050e31a0d12249b60b360e1'),
48-
MultiCallEntrypoint: Fr.fromString('0x24e025d7b0d3158d69197dbabf2baf18db0b1dd4ff3c87ec2ed418fecb0f192d'),
49-
PublicChecks: Fr.fromString('0x000a3012fd5d88921976565891e19c0b9a6a753eaf773e9493f47c890089bd08'),
50-
HandshakeRegistry: Fr.fromString('0x20e14f4a6ada38f27144ceedbfbb7417aca6c679ee1ea09b9435886ed7faf3d2'),
51-
>>>>>>> origin/public-v5-next
34+
AuthRegistry: Fr.fromString('0x151d75f71db863281277cea8d9fb901509e735abee16e3c415b2de1cbe35d0a2'),
35+
MultiCallEntrypoint: Fr.fromString('0x0c29e321de18a6d87363a54e927444079675f4b44ccc2baaef93432c003a740d'),
36+
PublicChecks: Fr.fromString('0x119aed3bd453156b28f9455a56283a419bd74ec314ac1e78f603f4f15bfaa424'),
37+
HandshakeRegistry: Fr.fromString('0x1e5b9549f480de778b5a715880d977ffae790239b659168f5e53cda9c2218ae8'),
5238
};
5339

5440
export const StandardContractClassIdPreimage: Record<
5541
StandardContractName,
5642
{ artifactHash: Fr; privateFunctionsRoot: Fr; publicBytecodeCommitment: Fr }
5743
> = {
5844
AuthRegistry: {
59-
<<<<<<< HEAD
60-
artifactHash: Fr.fromString('0x05b391dbd82c29c2e03211dea717cf0f9ab541ee03afaac0c07af6e2776c595a'),
45+
artifactHash: Fr.fromString('0x080d146ee61f80f37e18a2a4c2483744c828e9384e716398f3b9fedb5b4a5cbc'),
6146
privateFunctionsRoot: Fr.fromString('0x1b16157ab0b322bcaf3de5cb197b276c5e29ca3668a0c440668ca56aa7dfff77'),
6247
publicBytecodeCommitment: Fr.fromString('0x0c7984b020afc901da3b5898b8f94d1d9a09ea2b37d6e0043409abc0b0332906'),
6348
},
6449
MultiCallEntrypoint: {
65-
artifactHash: Fr.fromString('0x18e65098537ecaf9d3849883502299db79c74fc7fb2ebe3c7b2a322c607a6fa4'),
50+
artifactHash: Fr.fromString('0x0e2d5d2b2e024ae79d4df7cf4ebceb1b8dc98a049b05a79353feb76c9c2785a5'),
6651
privateFunctionsRoot: Fr.fromString('0x10228bc99b6715f15c866a1df0d9cb63c31920cb8e61a6b79058bf98658d7f39'),
6752
publicBytecodeCommitment: Fr.fromString('0x0ce4c618c3ed7f3a20410e618c06bb701e150af7fe28a3e92f68e7733809f33e'),
6853
},
6954
PublicChecks: {
70-
artifactHash: Fr.fromString('0x188a8567fa8d46fea84f05628da6b1ef6028cb91d2bf1341284bf6dbc5e98ea3'),
71-
=======
72-
artifactHash: Fr.fromString('0x17bd6a48fb22fb700a16d5767f93e08b2b21bf83c280cb61abe763567179601f'),
73-
privateFunctionsRoot: Fr.fromString('0x17b584350f4c3ccafd8f688729afb9feab8976114fb40012e9dee65022c072a4'),
74-
publicBytecodeCommitment: Fr.fromString('0x2545f39893766508ce37bb5cea5e4dcab04c6f7f79f3089b1c076876e9d268b2'),
75-
},
76-
MultiCallEntrypoint: {
77-
artifactHash: Fr.fromString('0x13dfb7aaca5d32bb876650f6afa5531d7c2c946f1cf927bde230755017af91d3'),
78-
privateFunctionsRoot: Fr.fromString('0x0e68dfbb256e80b08b3aef47aca1f2669e97a9c6259787893c1223ac083ad5d5'),
79-
publicBytecodeCommitment: Fr.fromString('0x0ce4c618c3ed7f3a20410e618c06bb701e150af7fe28a3e92f68e7733809f33e'),
80-
},
81-
PublicChecks: {
82-
artifactHash: Fr.fromString('0x212730544c282ed52485a69d91a2d46adb5a5e6cd23e8c26c3abc6de4bcc3714'),
83-
>>>>>>> origin/public-v5-next
55+
artifactHash: Fr.fromString('0x07dc17311a81557c8d63369e7ca1eb2c121e98407b338ef61e406003e2246928'),
8456
privateFunctionsRoot: Fr.fromString('0x202860adb1b8975971eeaf571aaaa88a27f4035290d58532ae7d60b0dfaad54c'),
8557
publicBytecodeCommitment: Fr.fromString('0x013c4f854a5c87c9daf86c5f9bc07a42c2a061f1d924a5b3564ec7edc8e18cb7'),
8658
},
8759
HandshakeRegistry: {
88-
<<<<<<< HEAD
89-
artifactHash: Fr.fromString('0x1b35538b90af6f162473174aa0ca239f8d2dd783e3b6cb500569c2c743a94ffa'),
90-
privateFunctionsRoot: Fr.fromString('0x2443fe2618b0c345bb7629ee0775af69c6695a3eca6ebe1cd5d23617a00a5297'),
91-
=======
92-
artifactHash: Fr.fromString('0x01b39b7d8576cbea4e4eae792c4538a710d0ac2ea0361364c57d0e2b4b1a3474'),
93-
privateFunctionsRoot: Fr.fromString('0x02a4dba36389845b8ef0108562f7536d3284f07ca678558fc3c3bce3b24ee821'),
94-
>>>>>>> origin/public-v5-next
60+
artifactHash: Fr.fromString('0x294711bb2ef12f26c51f754db9111ff4a5ebd7171d42e7ba7c6b638a8b09b650'),
61+
privateFunctionsRoot: Fr.fromString('0x143d27f4e317c85f2838e6ab75a01abc21ebf70ee72383925c4c93fbdf60427b'),
9562
publicBytecodeCommitment: Fr.fromString('0x0ce4c618c3ed7f3a20410e618c06bb701e150af7fe28a3e92f68e7733809f33e'),
9663
},
9764
};
@@ -129,27 +96,19 @@ export const StandardContractPrivateFunctions: Record<
12996
selector: FunctionSelector.fromField(
13097
Fr.fromString('0x0000000000000000000000000000000000000000000000000000000019f8b409'),
13198
),
132-
<<<<<<< HEAD
133-
vkHash: Fr.fromString('0x11d4d7327cb1cb71466ef6abd40aed3154227e730de34ff12527060056dff360'),
134-
=======
135-
vkHash: Fr.fromString('0x25d87da668c7c52b9c521579f191bb02486b3598d1ec0063927d5c0af2608daf'),
136-
>>>>>>> origin/public-v5-next
99+
vkHash: Fr.fromString('0x0158cac20cbeac38d25cd99c907644549abb7e668496f06cb2c6fd5da47b8f32'),
137100
},
138101
{
139102
selector: FunctionSelector.fromField(
140103
Fr.fromString('0x00000000000000000000000000000000000000000000000000000000db548fcf'),
141104
),
142-
<<<<<<< HEAD
143-
vkHash: Fr.fromString('0x27bd4a07ac1e6385c3e35a83dfcf81512a947eceea024c603f62b9d26aba88f4'),
144-
=======
145-
vkHash: Fr.fromString('0x0f59fe525df9ff4a400e33dec33fd1dc07e25d95f860734a35b909085cf07809'),
105+
vkHash: Fr.fromString('0x0dd0ed2bb842c543e34b12c98ed56686dce0bae7e7aa7527dc5d42f36f039947'),
146106
},
147107
{
148108
selector: FunctionSelector.fromField(
149109
Fr.fromString('0x00000000000000000000000000000000000000000000000000000000f1ff839b'),
150110
),
151-
vkHash: Fr.fromString('0x12f43f384aa64661b012b52b1d80eb1d2202b8e459b50f56cfe270b0672c16ff'),
152-
>>>>>>> origin/public-v5-next
111+
vkHash: Fr.fromString('0x25f309ba580e48ec868bb75656274359f8a597a0ead0739c94444b9e609e475f'),
153112
},
154113
],
155114
};

0 commit comments

Comments
 (0)