Skip to content

Commit 26df4cc

Browse files
authored
Merge pull request w3f#38 from davxy/improve-disputes-vectors
Improve disputes vectors
2 parents c19e139 + 3356ab0 commit 26df4cc

18 files changed

+57913
-39
lines changed

disputes/README.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -59,6 +59,10 @@ tests that verify the invalidation of assignments following a verdict.
5959
- Bad signature within the verdict judgements
6060
- [progress_with_bad_signatures-2](tiny/progress_with_bad_signatures-2.json) 🔴
6161
- Bad signature within the culprits sequence
62+
- [progress_with_invalid_keys-1](tiny/progress_with_invalid_keys-1.json) 🔴
63+
- Unexpected key found in the culprits sequence
64+
- [progress_with_invalid_keys-2](tiny/progress_with_invalid_keys-2.json) 🔴
65+
- Unexpected key found in the faults sequence
6266
- [progress_with_verdict_signatures_from_previous_set-1](tiny/progress_with_verdict_signatures_from_previous_set-1.json) 🟢
6367
- Use previous epoch validators set for verdict signatures verification
6468
- [progress_with_verdict_signatures_from_previous_set-2](tiny/progress_with_verdict_signatures_from_previous_set-2.json) 🔴

disputes/disputes.asn

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,9 @@ ErrorCode ::= ENUMERATED {
4848
offender-already-reported (10),
4949
bad-judgement-age (11),
5050
bad-validator-index (12),
51-
bad-signature (13)
51+
bad-signature (13),
52+
bad-guarantor-key (14),
53+
bad-auditor-key (15)
5254
}
5355

5456
Output ::= CHOICE {
0 Bytes
Binary file not shown.

disputes/full/progress_with_bad_signatures-1.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@
2424
{
2525
"vote": false,
2626
"index": 3,
27-
"signature": "0xcc3cd8f3cf74bd5582feebcb2198a5fa979e4d3efffb162bf38982b64f6fa02887c4eca13d0ef0269510b4dd7bb29b47ca8d95475bf9b7a4e9e523597f7d9e03"
27+
"signature": "0x32d812ab1689708f9b15102ebaee03c27e12d906d74e4f828407cb5084c7b462b7dbf50ce763ce1a74e448b4a44aafe4d73074f1e7bc46d3c9b65bf5d78ca20d"
2828
},
2929
{
3030
"vote": false,
-192 Bytes
Binary file not shown.

disputes/full/progress_with_bad_signatures-2.json

Lines changed: 8 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -3427,13 +3427,13 @@
34273427
"culprits": [
34283428
{
34293429
"target": "0x0e5751c026e543b2e8ab2eb06099daa1d1e5df47778f7787faab45cdf12fe3a8",
3430-
"key": "0xb3e0e096b02e2ec98a3441410aeddd78c95e27a0da6f411a09c631c0f2bea6e9",
3431-
"signature": "0xc935d19a67d96edd5bff539e11a0340153acb119d4bb83e7f60aba87e6fec4acb236d19a97476924d311390accede172a045978dcb0a65adb528ff0e7f7cf609"
3430+
"key": "0x5c7f34a4bd4f2d04076a8c6f9060a0c8d2c6bdd082ceb3eda7df381cb260faff",
3431+
"signature": "0xd5cb84d8e0ea77941eb2a1e5cba3eb916c1ead28bdd0a05a43ab640ea07fd00e3c055a0a90b3a66953fe6f8efc5dca3b3d4acf849870b1904ff770d00ec6860c"
34323432
},
34333433
{
34343434
"target": "0x0e5751c026e543b2e8ab2eb06099daa1d1e5df47778f7787faab45cdf12fe3a8",
3435-
"key": "0x3b6a27bcceb6a42d62a3a8d02a6f0d73653215771de243a63ac048a18b59da29",
3436-
"signature": "0x7ec23531ebc5aa88883a8b8f1f7b1f05ea18fa12f735de02a167309fe41bb0a87f5ff05d7c00c15fbc19f181badd53e0ec25d9a62e742d239c2058f4964b040f"
3435+
"key": "0xb3e0e096b02e2ec98a3441410aeddd78c95e27a0da6f411a09c631c0f2bea6e9",
3436+
"signature": "0x6cfa774b471ac2df262d2762e77b2c74b6f912c7482b61435c0af6ca7a77b05f4c102b1c96950aa5f073a35908970da8387285b7083d9ea9220a04b93be9f303"
34373437
}
34383438
],
34393439
"faults": []
@@ -3442,14 +3442,9 @@
34423442
"pre_state": {
34433443
"psi": {
34443444
"good": [],
3445-
"bad": [
3446-
"0x0e5751c026e543b2e8ab2eb06099daa1d1e5df47778f7787faab45cdf12fe3a8"
3447-
],
3445+
"bad": [],
34483446
"wonky": [],
3449-
"offenders": [
3450-
"0x22351e22105a19aabb42589162ad7f1ea0df1c25cebf0e4a9fcd261301274862",
3451-
"0x3b6a27bcceb6a42d62a3a8d02a6f0d73653215771de243a63ac048a18b59da29"
3452-
]
3447+
"offenders": []
34533448
},
34543449
"rho": [
34553450
null,
@@ -16082,14 +16077,9 @@
1608216077
"post_state": {
1608316078
"psi": {
1608416079
"good": [],
16085-
"bad": [
16086-
"0x0e5751c026e543b2e8ab2eb06099daa1d1e5df47778f7787faab45cdf12fe3a8"
16087-
],
16080+
"bad": [],
1608816081
"wonky": [],
16089-
"offenders": [
16090-
"0x22351e22105a19aabb42589162ad7f1ea0df1c25cebf0e4a9fcd261301274862",
16091-
"0x3b6a27bcceb6a42d62a3a8d02a6f0d73653215771de243a63ac048a18b59da29"
16092-
]
16082+
"offenders": []
1609316083
},
1609416084
"rho": [
1609516085
null,
1.36 MB
Binary file not shown.

disputes/full/progress_with_invalid_keys-1.json

Lines changed: 28709 additions & 0 deletions
Large diffs are not rendered by default.
1.36 MB
Binary file not shown.

disputes/full/progress_with_invalid_keys-2.json

Lines changed: 28711 additions & 0 deletions
Large diffs are not rendered by default.

0 commit comments

Comments
 (0)