-
Notifications
You must be signed in to change notification settings - Fork 22
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* create jsons * compare with jsons * generate jsons for qbft signed message * compare qbft signed message with json state * fix lint error * generate jsons for create msg test * generate jsons for create msg test * use correct test type * use correct test name
- Loading branch information
1 parent
0a559e2
commit 5533f13
Showing
99 changed files
with
8,619 additions
and
3 deletions.
There are no files selected for viewing
44 changes: 44 additions & 0 deletions
44
.../generate/state_comparison/tests_CreateMsgSpecTest/qbft create message create commit.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,44 @@ | ||
{ | ||
"Name": "create commit", | ||
"Value": [ | ||
1, | ||
2, | ||
3, | ||
4, | ||
0, | ||
0, | ||
0, | ||
0, | ||
0, | ||
0, | ||
0, | ||
0, | ||
0, | ||
0, | ||
0, | ||
0, | ||
0, | ||
0, | ||
0, | ||
0, | ||
0, | ||
0, | ||
0, | ||
0, | ||
0, | ||
0, | ||
0, | ||
0, | ||
0, | ||
0, | ||
0, | ||
0 | ||
], | ||
"StateValue": null, | ||
"Round": 10, | ||
"RoundChangeJustifications": null, | ||
"PrepareJustifications": null, | ||
"CreateType": "CreateCommit", | ||
"ExpectedRoot": "0834b51f3c87d4aba362d7e2eeb4172d22e0ef18d4dfadd37e8c9ceb62c7719d", | ||
"ExpectedError": "" | ||
} |
44 changes: 44 additions & 0 deletions
44
...generate/state_comparison/tests_CreateMsgSpecTest/qbft create message create prepare.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,44 @@ | ||
{ | ||
"Name": "create prepare", | ||
"Value": [ | ||
1, | ||
2, | ||
3, | ||
4, | ||
0, | ||
0, | ||
0, | ||
0, | ||
0, | ||
0, | ||
0, | ||
0, | ||
0, | ||
0, | ||
0, | ||
0, | ||
0, | ||
0, | ||
0, | ||
0, | ||
0, | ||
0, | ||
0, | ||
0, | ||
0, | ||
0, | ||
0, | ||
0, | ||
0, | ||
0, | ||
0, | ||
0 | ||
], | ||
"StateValue": null, | ||
"Round": 10, | ||
"RoundChangeJustifications": null, | ||
"PrepareJustifications": null, | ||
"CreateType": "CreatePrepare", | ||
"ExpectedRoot": "2eba5b18818e0ec94f5c02ff7abc8ca932ed5d1f32a115197fbaa14247a39cb2", | ||
"ExpectedError": "" | ||
} |
195 changes: 195 additions & 0 deletions
195
.../tests_CreateMsgSpecTest/qbft create message create proposal not previously prepared.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,195 @@ | ||
{ | ||
"Name": "create proposal not previously prepared", | ||
"Value": [ | ||
1, | ||
2, | ||
3, | ||
4, | ||
0, | ||
0, | ||
0, | ||
0, | ||
0, | ||
0, | ||
0, | ||
0, | ||
0, | ||
0, | ||
0, | ||
0, | ||
0, | ||
0, | ||
0, | ||
0, | ||
0, | ||
0, | ||
0, | ||
0, | ||
0, | ||
0, | ||
0, | ||
0, | ||
0, | ||
0, | ||
0, | ||
0 | ||
], | ||
"StateValue": null, | ||
"Round": 0, | ||
"RoundChangeJustifications": [ | ||
{ | ||
"Signature": "gztz02gJCBBld01h2Pb/7pG5BvLmymJYG+fOGi8fCq81dVcUcoNMZmCvloEyiT+OD5Cl1b+v6OaSbkM80leaeENvDl8G377UXnKTI4wY/74ve7a7iZgSLRf/x7fNM7fB", | ||
"Signers": [ | ||
1 | ||
], | ||
"Message": { | ||
"MsgType": 0, | ||
"Height": 0, | ||
"Round": 2, | ||
"Identifier": "AQIDBA==", | ||
"Root": [ | ||
190, | ||
149, | ||
111, | ||
183, | ||
223, | ||
78, | ||
243, | ||
117, | ||
49, | ||
104, | ||
45, | ||
88, | ||
131, | ||
32, | ||
8, | ||
79, | ||
201, | ||
20, | ||
195, | ||
240, | ||
254, | ||
211, | ||
53, | ||
38, | ||
62, | ||
91, | ||
68, | ||
6, | ||
46, | ||
108, | ||
41, | ||
180 | ||
], | ||
"DataRound": 0, | ||
"RoundChangeJustification": null, | ||
"PrepareJustification": null | ||
}, | ||
"FullData": "AQIDBAUGBwgJAQIDBAUGBwgJAQIDBAUGBwgJ" | ||
}, | ||
{ | ||
"Signature": "jLHzMp8Y+D46RWGLJEOr49k05Q+UkqPjWgknRsFgFHRJgHGOi0u6wt10PLief4fVCUJOEXE1fbENSqUgtf03KVpQ3EaEN94xbfkY5AFfbfF7yk12EpEOP/0C49uBovdQ", | ||
"Signers": [ | ||
2 | ||
], | ||
"Message": { | ||
"MsgType": 0, | ||
"Height": 0, | ||
"Round": 2, | ||
"Identifier": "AQIDBA==", | ||
"Root": [ | ||
190, | ||
149, | ||
111, | ||
183, | ||
223, | ||
78, | ||
243, | ||
117, | ||
49, | ||
104, | ||
45, | ||
88, | ||
131, | ||
32, | ||
8, | ||
79, | ||
201, | ||
20, | ||
195, | ||
240, | ||
254, | ||
211, | ||
53, | ||
38, | ||
62, | ||
91, | ||
68, | ||
6, | ||
46, | ||
108, | ||
41, | ||
180 | ||
], | ||
"DataRound": 0, | ||
"RoundChangeJustification": null, | ||
"PrepareJustification": null | ||
}, | ||
"FullData": "AQIDBAUGBwgJAQIDBAUGBwgJAQIDBAUGBwgJ" | ||
}, | ||
{ | ||
"Signature": "ts0KRie2NM79t+H+9ZajE3y5g3oTw3ak/YMsEEZzWWE2G4EtrJCJevuhAwxFhnwgFbcMf8xHfxryZP5dTcRS2zA30tVz/n6XsPmHJT5dzwtVdY9QpJ8hQsE56sJSEsOz", | ||
"Signers": [ | ||
3 | ||
], | ||
"Message": { | ||
"MsgType": 0, | ||
"Height": 0, | ||
"Round": 2, | ||
"Identifier": "AQIDBA==", | ||
"Root": [ | ||
190, | ||
149, | ||
111, | ||
183, | ||
223, | ||
78, | ||
243, | ||
117, | ||
49, | ||
104, | ||
45, | ||
88, | ||
131, | ||
32, | ||
8, | ||
79, | ||
201, | ||
20, | ||
195, | ||
240, | ||
254, | ||
211, | ||
53, | ||
38, | ||
62, | ||
91, | ||
68, | ||
6, | ||
46, | ||
108, | ||
41, | ||
180 | ||
], | ||
"DataRound": 0, | ||
"RoundChangeJustification": null, | ||
"PrepareJustification": null | ||
}, | ||
"FullData": "AQIDBAUGBwgJAQIDBAUGBwgJAQIDBAUGBwgJ" | ||
} | ||
], | ||
"PrepareJustifications": null, | ||
"CreateType": "createProposal", | ||
"ExpectedRoot": "45f15e2dc3a0c1bd13aa977ead44abfabab094864db4a77dcd0cd9a30e87c3bb", | ||
"ExpectedError": "" | ||
} |
Oops, something went wrong.