Skip to content
Merged
Show file tree
Hide file tree
Changes from 9 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
2 changes: 1 addition & 1 deletion qbft/messages_encoding.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion qbft/spectest/all_tests.go
Original file line number Diff line number Diff line change
Expand Up @@ -132,7 +132,7 @@ var AllTests = []tests.TestF{
proposal.NotPreparedPreviouslyJustification,
proposal.PreparedPreviouslyJustification,
proposal.DifferentJustifications,
proposal.JustificationsNotHeighest,
proposal.JustificationsNotHighest,
proposal.DuplicateMsg,
proposal.DuplicateMsgDifferentRoot,
proposal.FirstRoundJustification,
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
{
"Name": "create commit",
"Type": "Message creation: validation of consensus message construction and encoding",
"Documentation": "Test creating a commit message for QBFT consensus.",
"Value": [
1,
2,
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
{
"Name": "create prepare",
"Type": "Message creation: validation of consensus message construction and encoding",
"Documentation": "Test creating a prepare message for QBFT consensus.",
"Value": [
1,
2,
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
{
"Name": "create proposal not previously prepared",
"Type": "Message creation: validation of consensus message construction and encoding",
"Documentation": "Test creating a proposal message for non-first round when not previously prepared, with round change justifications.",
"Value": [
1,
2,
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
{
"Name": "create proposal previously prepared",
"Type": "Message creation: validation of consensus message construction and encoding",
"Documentation": "Test creating a proposal message when previously prepared with round change and prepare justifications.",
"Value": [
1,
2,
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
{
"Name": "create proposal",
"Type": "Message creation: validation of consensus message construction and encoding",
"Documentation": "Test creating a proposal message when not previously prepared.",
"Value": [
1,
2,
Expand Down
Original file line number Diff line number Diff line change
@@ -1,10 +1,12 @@
{
"Name": "create round change no justification quorum",
"Type": "Message creation: validation of consensus message construction and encoding",
"Documentation": "Test creating a round change message that was previously prepared but failed to extract a justification quorum, resulting in an unjustified round change.",
"Value": [
0,
0,
0,
0,
1,
2,
3,
4,
0,
0,
0,
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
{
"Name": "create round change previously prepared",
"Type": "Message creation: validation of consensus message construction and encoding",
"Documentation": "Test creating a round change message when previously prepared with justifications.",
"Value": [
1,
2,
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
{
"Name": "create round change",
"Type": "Message creation: validation of consensus message construction and encoding",
"Documentation": "Test creating a round change message when not previously prepared.",
"Value": [
1,
2,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -326,126 +326,7 @@
}
},
"PrepareContainer": {
"Msgs": {
"2": [
{
"SignedMessage": {
"Signatures": [
"Y/8iTrzszSrCJ1FCVwsmHgCheHG5pHA0NowMfsT7bf2WXznzCIgHL6Swvl/AohfqQ1/qGXvR97bft+haaR6UfhRk/RlcRZT3AR3ssfyqzFVm1q0MIhS+FJFmNDpO8uFnk87wFzXiGUgdnEZRm36kI+Rlld/xQnURvpswhiKK0RUJrlW0gYvls0LWX/fOIbiifFsI6SmGfH5CD482JjrFPyy5SDaOR62Q+s4vWtIzNVL4WaUZAMyv2fewi/Pz4JSoDYUfXXdTvU8G6NpfQPit4G87EBLHXAuHWDtW8asc7T7EELqYq0TU0m4sqXiXZpJFGXuQX211C2/4xgHqFKaTYQ=="
],
"OperatorIDs": [
1
],
"SSVMessage": {
"MsgType": 0,
"MsgID": [
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
],
"Data": "AQAAAAAAAAAAAAAAAAAAAAIAAAAAAAAATAAAAL6Vb7ffTvN1MWgtWIMgCE/JFMPw/tM1Jj5bRAYubCm0AAAAAAAAAACEAAAAhAAAAAECAwQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"
},
"FullData": null
},
"QBFTMessage": {
"MsgType": 1,
"Height": 0,
"Round": 2,
"Identifier": "AQIDBAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA=",
"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": [],
"PrepareJustification": []
}
}
]
}
"Msgs": {}
},
"CommitContainer": {
"Msgs": {}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -326,126 +326,7 @@
}
},
"PrepareContainer": {
"Msgs": {
"2": [
{
"SignedMessage": {
"Signatures": [
"Y/8iTrzszSrCJ1FCVwsmHgCheHG5pHA0NowMfsT7bf2WXznzCIgHL6Swvl/AohfqQ1/qGXvR97bft+haaR6UfhRk/RlcRZT3AR3ssfyqzFVm1q0MIhS+FJFmNDpO8uFnk87wFzXiGUgdnEZRm36kI+Rlld/xQnURvpswhiKK0RUJrlW0gYvls0LWX/fOIbiifFsI6SmGfH5CD482JjrFPyy5SDaOR62Q+s4vWtIzNVL4WaUZAMyv2fewi/Pz4JSoDYUfXXdTvU8G6NpfQPit4G87EBLHXAuHWDtW8asc7T7EELqYq0TU0m4sqXiXZpJFGXuQX211C2/4xgHqFKaTYQ=="
],
"OperatorIDs": [
1
],
"SSVMessage": {
"MsgType": 0,
"MsgID": [
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,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0
],
"Data": "AQAAAAAAAAAAAAAAAAAAAAIAAAAAAAAATAAAAL6Vb7ffTvN1MWgtWIMgCE/JFMPw/tM1Jj5bRAYubCm0AAAAAAAAAACEAAAAhAAAAAECAwQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"
},
"FullData": null
},
"QBFTMessage": {
"MsgType": 1,
"Height": 0,
"Round": 2,
"Identifier": "AQIDBAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA=",
"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": [],
"PrepareJustification": []
}
}
]
}
"Msgs": {}
},
"CommitContainer": {
"Msgs": {}
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
{
"Name": "SSZ marshalling of signed messaged",
"Type": "QBFT message validation: testing message encoding, decoding, and structural integrity",
"Documentation": "Test valid SSZ marshaling of a signed QBFT message with justifications.",
"Messages": [
{
"Signatures": [
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
{
"Name": "commit data nil or len 0",
"Type": "QBFT message validation: testing message encoding, decoding, and structural integrity",
"Documentation": "Test encoding of commit data for QBFT message validation.",
"Messages": [
{
"Signatures": [
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
{
"Name": "duplicate signers",
"Type": "QBFT message validation: testing message encoding, decoding, and structural integrity",
"Documentation": "Test signed message with duplicate signers, expecting validation error.",
"Messages": [
{
"Signatures": [
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
{
"Name": "get root",
"Type": "QBFT message validation: testing message encoding, decoding, and structural integrity",
"Documentation": "Test GetRoot method on signed QBFT message with justifications.",
"Messages": [
{
"Signatures": [
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
{
"Name": "invalid hash data root",
"Type": "QBFT message validation: testing message encoding, decoding, and structural integrity",
"Documentation": "Test an invalid hash data root for QBFT message validation.",
"Messages": [
{
"Signatures": [
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
{
"Name": "invalid prepare justification unmarshalling",
"Type": "QBFT message validation: testing message encoding, decoding, and structural integrity",
"Documentation": "Test unmarshalling invalid prepare justifications, expecting validation error during message validation.",
"Messages": [
{
"Signatures": [
Expand Down
Loading