Commit 0a3bd8b
committed
Deploy ReferenceDAProofValidator contract in tests and add ALT DA support
This commit fixes ReferenceDA certificate validation failures by:
1. **Contract Support for ALT DA Certificates (0x01)**:
- Added DAC_CERTIFICATE_MESSAGE_HEADER_FLAG (0x01) to SequencerInbox.sol
- Updated isValidCallDataFlag() to accept 0x01 header byte
- Added flag to ISequencerInbox.sol interface
- Added DACertificateMessageHeaderFlag to KnownHeaderBits in daprovider/util.go
2. **ReferenceDAProofValidator Contract Deployment**:
- Modified setupReferenceDAServer() to deploy ReferenceDAProofValidator contract with trusted signer
- Updated setupReferenceDAServerForFallback() with same deployment logic
- Added l1info parameter to both functions to get transaction options for deployment
- Added import for solgen/go/localgen to access contract deployment bindings
3. **Test Improvements**:
- Both TestReferenceDAIntegration and TestEigenDAV2WithReferenceDAFallback now pass
- Certificate signer is properly registered as a trusted signer in deployed validator contract
- Contract address is used for on-chain validation during certificate verification
Previous errors resolved:
- ❌ "certificate validation failed: no contract code at given address" → ✅ Fixed
- ❌ "InvalidHeaderFlag(0x01)" from SequencerInbox contract → ✅ Fixed
Tests passing locally:
- ✅ TestReferenceDAIntegration (22.12s)
- ✅ TestEigenDAV2WithReferenceDAFallback (22.07s)1 parent da8c9f2 commit 0a3bd8b
File tree
4 files changed
+40
-11
lines changed- daprovider
- system_tests
4 files changed
+40
-11
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
84 | 84 | | |
85 | 85 | | |
86 | 86 | | |
87 | | - | |
| 87 | + | |
88 | 88 | | |
89 | 89 | | |
90 | 90 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
36 | 36 | | |
37 | 37 | | |
38 | 38 | | |
| 39 | + | |
39 | 40 | | |
40 | 41 | | |
41 | 42 | | |
| |||
55 | 56 | | |
56 | 57 | | |
57 | 58 | | |
58 | | - | |
| 59 | + | |
59 | 60 | | |
60 | 61 | | |
61 | 62 | | |
| |||
191 | 192 | | |
192 | 193 | | |
193 | 194 | | |
194 | | - | |
195 | | - | |
| 195 | + | |
| 196 | + | |
196 | 197 | | |
197 | 198 | | |
198 | 199 | | |
199 | 200 | | |
200 | | - | |
| 201 | + | |
| 202 | + | |
| 203 | + | |
| 204 | + | |
| 205 | + | |
| 206 | + | |
| 207 | + | |
| 208 | + | |
| 209 | + | |
| 210 | + | |
| 211 | + | |
| 212 | + | |
| 213 | + | |
| 214 | + | |
| 215 | + | |
| 216 | + | |
201 | 217 | | |
202 | 218 | | |
203 | 219 | | |
| |||
209 | 225 | | |
210 | 226 | | |
211 | 227 | | |
| 228 | + | |
212 | 229 | | |
213 | 230 | | |
214 | 231 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
36 | 36 | | |
37 | 37 | | |
38 | 38 | | |
| 39 | + | |
39 | 40 | | |
40 | 41 | | |
41 | 42 | | |
| |||
49 | 50 | | |
50 | 51 | | |
51 | 52 | | |
52 | | - | |
| 53 | + | |
53 | 54 | | |
54 | 55 | | |
55 | 56 | | |
| |||
162 | 163 | | |
163 | 164 | | |
164 | 165 | | |
165 | | - | |
| 166 | + | |
166 | 167 | | |
167 | 168 | | |
168 | 169 | | |
169 | 170 | | |
170 | 171 | | |
171 | | - | |
172 | | - | |
173 | | - | |
| 172 | + | |
| 173 | + | |
| 174 | + | |
| 175 | + | |
| 176 | + | |
| 177 | + | |
| 178 | + | |
| 179 | + | |
| 180 | + | |
| 181 | + | |
| 182 | + | |
| 183 | + | |
| 184 | + | |
| 185 | + | |
174 | 186 | | |
175 | 187 | | |
176 | 188 | | |
| |||
0 commit comments