Commit 0d982ae
authored
**Motivation:**
The `ECDSACertificateVerifier` does not do the same timetstamp checks as
the `BN254CertificateVerifier`. It also prevents 0 staleness period and
requires certificates to be against the latest reference timestamp
**Modifications:**
- Update storage of certificate verifiers to have a
`_referenceTimestampsSet` mapping
- Add `isReferenceTimestampSet` introspection
- Allow 0 staleness period for `ECDSACertificateVerifier`
- Update the `BN254CertificateVerifier` and `ECDSACertificateVerifier`
to have checks be in the same order against reference timestamp
**Result:**
Consistent code paths
1 parent 23c29ce commit 0d982ae
File tree
25 files changed
+1499
-296
lines changed- docs/multichain/destination
- pkg/bindings
- BN254CertificateVerifierStorage
- BN254CertificateVerifier
- CrossChainRegistryStorage
- CrossChainRegistry
- ECDSACertificateVerifierStorage
- ECDSACertificateVerifier
- IBN254CertificateVerifier
- IBaseCertificateVerifier
- ICrossChainRegistry
- IECDSACertificateVerifier
- IOperatorTableUpdater
- KeyRegistrar
- OperatorTableUpdaterStorage
- OperatorTableUpdater
- src
- contracts
- interfaces
- multichain
- test
- tree
- unit
25 files changed
+1499
-296
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
81 | 81 | | |
82 | 82 | | |
83 | 83 | | |
| 84 | + | |
84 | 85 | | |
85 | 86 | | |
86 | 87 | | |
| |||
329 | 330 | | |
330 | 331 | | |
331 | 332 | | |
| 333 | + | |
332 | 334 | | |
333 | 335 | | |
334 | 336 | | |
| |||
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
Lines changed: 126 additions & 49 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
0 commit comments