File tree Expand file tree Collapse file tree 2 files changed +10
-10
lines changed
Expand file tree Collapse file tree 2 files changed +10
-10
lines changed Original file line number Diff line number Diff line change @@ -11,16 +11,6 @@ import (
1111 "github.com/offchainlabs/nitro/validator/proofenhancement"
1212)
1313
14- type EvilStrategy int
15-
16- const (
17- NoEvil EvilStrategy = iota // Normal behavior
18- EvilDataGoodCert // Wrong data, correct cert
19- EvilDataEvilCert // Wrong data, matching evil cert
20- UntrustedSignerCert // Valid format cert signed by untrusted key
21- ValidCertClaimedInvalid // Valid cert, but validator claims invalid
22- )
23-
2414// EvilCustomDAProofEnhancer wraps the standard ReadPreimageProofEnhancer to inject evil certificates
2515type EvilCustomDAProofEnhancer struct {
2616 * proofenhancement.ReadPreimageProofEnhancer
Original file line number Diff line number Diff line change @@ -22,6 +22,16 @@ import (
2222 "github.com/offchainlabs/nitro/util/containers"
2323)
2424
25+ type EvilStrategy int
26+
27+ const (
28+ NoEvil EvilStrategy = iota // Normal behavior
29+ EvilDataGoodCert // Wrong data, correct cert
30+ EvilDataEvilCert // Wrong data, matching evil cert
31+ UntrustedSignerCert // Valid format cert signed by untrusted key
32+ ValidCertClaimedInvalid // Valid cert, but validator claims invalid
33+ )
34+
2535const (
2636 // ValidityProofValid is the byte value indicating a valid certificate in evil proofs
2737 ValidityProofValid = 1
You can’t perform that action at this time.
0 commit comments