Skip to content

Commit 0f0d17f

Browse files
committed
add implicit_hash field to the header
1 parent b2d2e9f commit 0f0d17f

File tree

10 files changed

+3007
-669
lines changed

10 files changed

+3007
-669
lines changed

abci/types/types.pb.go

Lines changed: 2712 additions & 570 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

go.mod

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ require (
4646
github.com/google/uuid v1.6.0
4747
github.com/hashicorp/golang-lru/v2 v2.0.7
4848
github.com/oasisprotocol/curve25519-voi v0.0.0-20220708102147-0a8a51822cae
49-
github.com/scrtlabs/tm-secret-enclave v1.11.8
49+
github.com/scrtlabs/tm-secret-enclave v1.12.3-implicit-hash
5050
golang.org/x/sync v0.10.0
5151
gonum.org/v1/gonum v0.15.1
5252
google.golang.org/protobuf v1.36.4

go.sum

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -329,8 +329,8 @@ github.com/sasha-s/go-deadlock v0.3.5 h1:tNCOEEDG6tBqrNDOX35j/7hL5FcFViG6awUGROb
329329
github.com/sasha-s/go-deadlock v0.3.5/go.mod h1:bugP6EGbdGYObIlx7pUZtWqlvo8k9H6vCBBsiChJQ5U=
330330
github.com/satori/go.uuid v1.2.0 h1:0uYX9dsZ2yD7q2RtLRtPSdGDWzjeM3TbMJP9utgA0ww=
331331
github.com/satori/go.uuid v1.2.0/go.mod h1:dA0hQrYB0VpLJoorglMZABFdXlWrHn1NEOzdhQKdks0=
332-
github.com/scrtlabs/tm-secret-enclave v1.11.8 h1:fctIfJDHGl8D+fcXlZLX6S4yDeePIsuyzdG5HngFNPQ=
333-
github.com/scrtlabs/tm-secret-enclave v1.11.8/go.mod h1:nxZQtzzAqBNBLOEXSv4cKlUnVA4vRmHOn6ujr3kxVME=
332+
github.com/scrtlabs/tm-secret-enclave v1.12.3-implicit-hash h1:vssSAjnieWcH4XsGjpGv5MRk1fJTL4boCWrwbgkCFDQ=
333+
github.com/scrtlabs/tm-secret-enclave v1.12.3-implicit-hash/go.mod h1:nxZQtzzAqBNBLOEXSv4cKlUnVA4vRmHOn6ujr3kxVME=
334334
github.com/sergi/go-diff v1.3.2-0.20230802210424-5b0b94c5c0d3 h1:n661drycOFuPLCN3Uc8sB6B/s6Z4t2xvBgU1htSHuq8=
335335
github.com/sergi/go-diff v1.3.2-0.20230802210424-5b0b94c5c0d3/go.mod h1:A0bzQcvG0E7Rwjx0REVgAGH58e96+X0MeOfepqsbeW4=
336336
github.com/sirupsen/logrus v1.7.0/go.mod h1:yWOB1SBYBC5VeMP7gHvWumXLIWorT60ONWic61uBYv0=

proto/tendermint/abci/types.proto

Lines changed: 61 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ import "tendermint/crypto/keys.proto";
1010
import "tendermint/types/params.proto";
1111
import "tendermint/types/types.proto";
1212
import "tendermint/types/validator.proto";
13+
import "tendermint/version/types.proto";
1314
import "google/protobuf/timestamp.proto";
1415
import "gogoproto/gogo.proto";
1516

@@ -140,6 +141,22 @@ message RequestPrepareProposal {
140141
bytes next_validators_hash = 7;
141142
// address of the public key of the validator proposing the block.
142143
bytes proposer_address = 8;
144+
// scheduled_msgs_hash
145+
tendermint.version.Consensus version = 9 [(gogoproto.nullable) = false];
146+
tendermint.types.BlockID last_block_id = 10 [(gogoproto.nullable) = false];
147+
bytes data_hash = 11;
148+
bytes last_commit_hash = 12; // commit from validators from the last block
149+
bytes validators_hash = 13; // validators for the current block
150+
bytes consensus_hash = 14; // consensus params for current block
151+
bytes last_results_hash = 15; // root hash of all results from the txs from the previous block
152+
153+
// consensus info
154+
bytes evidence_hash = 16; // evidence included in the block
155+
// encrypted random
156+
tendermint.types.EncryptedRandom encrypted_random = 17; // a random number encrypted by the proposer to be used in contracts
157+
158+
// scheduled_msgs_hash
159+
bytes implicit_hash = 18;
143160
}
144161

145162
message RequestProcessProposal {
@@ -153,6 +170,22 @@ message RequestProcessProposal {
153170
bytes next_validators_hash = 7;
154171
// address of the public key of the original proposer of the block.
155172
bytes proposer_address = 8;
173+
// scheduled_msgs_hash
174+
tendermint.version.Consensus version = 9 [(gogoproto.nullable) = false];
175+
tendermint.types.BlockID last_block_id = 10 [(gogoproto.nullable) = false];
176+
bytes data_hash = 11;
177+
bytes last_commit_hash = 12; // commit from validators from the last block
178+
bytes validators_hash = 13; // validators for the current block
179+
bytes consensus_hash = 14; // consensus params for current block
180+
bytes last_results_hash = 15; // root hash of all results from the txs from the previous block
181+
182+
// consensus info
183+
bytes evidence_hash = 16; // evidence included in the block
184+
// encrypted random
185+
tendermint.types.EncryptedRandom encrypted_random = 17; // a random number encrypted by the proposer to be used in contracts
186+
187+
// scheduled_msgs_hash
188+
bytes implicit_hash = 18;
156189
}
157190

158191
// Extends a vote with application-injected data
@@ -169,6 +202,22 @@ message RequestExtendVote {
169202
bytes next_validators_hash = 7;
170203
// address of the public key of the original proposer of the block.
171204
bytes proposer_address = 8;
205+
// scheduled_msgs_hash
206+
tendermint.version.Consensus version = 9 [(gogoproto.nullable) = false];
207+
tendermint.types.BlockID last_block_id = 10 [(gogoproto.nullable) = false];
208+
bytes data_hash = 11;
209+
bytes last_commit_hash = 12; // commit from validators from the last block
210+
bytes validators_hash = 13; // validators for the current block
211+
bytes consensus_hash = 14; // consensus params for current block
212+
bytes last_results_hash = 15; // root hash of all results from the txs from the previous block
213+
214+
// consensus info
215+
bytes evidence_hash = 16; // evidence included in the block
216+
// encrypted random
217+
tendermint.types.EncryptedRandom encrypted_random = 17; // a random number encrypted by the proposer to be used in contracts
218+
219+
// scheduled_msgs_hash
220+
bytes implicit_hash = 18;
172221
}
173222

174223
// Verify the vote extension
@@ -194,6 +243,18 @@ message RequestFinalizeBlock {
194243
bytes proposer_address = 8;
195244
tendermint.types.EncryptedRandom encrypted_random = 9; // a random number encrypted by the proposer to be used in contracts
196245
tendermint.types.Commit commit = 10;
246+
tendermint.version.Consensus version = 11 [(gogoproto.nullable) = false];
247+
tendermint.types.BlockID last_block_id = 12 [(gogoproto.nullable) = false];
248+
bytes data_hash = 13; // commit from validators from the last block
249+
bytes last_commit_hash = 14; // commit from validators from the last block
250+
bytes validators_hash = 15; // validators for the current block
251+
bytes consensus_hash = 16; // consensus params for current block
252+
bytes last_results_hash = 17; // root hash of all results from the txs from the previous block
253+
254+
// consensus info
255+
bytes evidence_hash = 18; // evidence included in the block
256+
// scheduled_msgs_hash
257+
bytes implicit_hash = 19;
197258
}
198259

199260
//----------------------------------------

0 commit comments

Comments
 (0)