Skip to content

draft: cron module, added implicit hash to header #131

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: secret-0.38.x
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3,282 changes: 2,712 additions & 570 deletions abci/types/types.pb.go

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ require (
github.com/google/uuid v1.6.0
github.com/hashicorp/golang-lru/v2 v2.0.7
github.com/oasisprotocol/curve25519-voi v0.0.0-20220708102147-0a8a51822cae
github.com/scrtlabs/tm-secret-enclave v1.11.8
github.com/scrtlabs/tm-secret-enclave v1.12.3-implicit-hash
golang.org/x/sync v0.10.0
gonum.org/v1/gonum v0.15.1
google.golang.org/protobuf v1.36.4
Expand Down
4 changes: 2 additions & 2 deletions go.sum
Original file line number Diff line number Diff line change
Expand Up @@ -329,8 +329,8 @@ github.com/sasha-s/go-deadlock v0.3.5 h1:tNCOEEDG6tBqrNDOX35j/7hL5FcFViG6awUGROb
github.com/sasha-s/go-deadlock v0.3.5/go.mod h1:bugP6EGbdGYObIlx7pUZtWqlvo8k9H6vCBBsiChJQ5U=
github.com/satori/go.uuid v1.2.0 h1:0uYX9dsZ2yD7q2RtLRtPSdGDWzjeM3TbMJP9utgA0ww=
github.com/satori/go.uuid v1.2.0/go.mod h1:dA0hQrYB0VpLJoorglMZABFdXlWrHn1NEOzdhQKdks0=
github.com/scrtlabs/tm-secret-enclave v1.11.8 h1:fctIfJDHGl8D+fcXlZLX6S4yDeePIsuyzdG5HngFNPQ=
github.com/scrtlabs/tm-secret-enclave v1.11.8/go.mod h1:nxZQtzzAqBNBLOEXSv4cKlUnVA4vRmHOn6ujr3kxVME=
github.com/scrtlabs/tm-secret-enclave v1.12.3-implicit-hash h1:vssSAjnieWcH4XsGjpGv5MRk1fJTL4boCWrwbgkCFDQ=
github.com/scrtlabs/tm-secret-enclave v1.12.3-implicit-hash/go.mod h1:nxZQtzzAqBNBLOEXSv4cKlUnVA4vRmHOn6ujr3kxVME=
github.com/sergi/go-diff v1.3.2-0.20230802210424-5b0b94c5c0d3 h1:n661drycOFuPLCN3Uc8sB6B/s6Z4t2xvBgU1htSHuq8=
github.com/sergi/go-diff v1.3.2-0.20230802210424-5b0b94c5c0d3/go.mod h1:A0bzQcvG0E7Rwjx0REVgAGH58e96+X0MeOfepqsbeW4=
github.com/sirupsen/logrus v1.7.0/go.mod h1:yWOB1SBYBC5VeMP7gHvWumXLIWorT60ONWic61uBYv0=
Expand Down
61 changes: 61 additions & 0 deletions proto/tendermint/abci/types.proto
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ import "tendermint/crypto/keys.proto";
import "tendermint/types/params.proto";
import "tendermint/types/types.proto";
import "tendermint/types/validator.proto";
import "tendermint/version/types.proto";
import "google/protobuf/timestamp.proto";
import "gogoproto/gogo.proto";

Expand Down Expand Up @@ -140,6 +141,22 @@ message RequestPrepareProposal {
bytes next_validators_hash = 7;
// address of the public key of the validator proposing the block.
bytes proposer_address = 8;
// scheduled_msgs_hash
tendermint.version.Consensus version = 9 [(gogoproto.nullable) = false];
tendermint.types.BlockID last_block_id = 10 [(gogoproto.nullable) = false];
bytes data_hash = 11;
bytes last_commit_hash = 12; // commit from validators from the last block
bytes validators_hash = 13; // validators for the current block
bytes consensus_hash = 14; // consensus params for current block
bytes last_results_hash = 15; // root hash of all results from the txs from the previous block

// consensus info
bytes evidence_hash = 16; // evidence included in the block
// encrypted random
tendermint.types.EncryptedRandom encrypted_random = 17; // a random number encrypted by the proposer to be used in contracts

// scheduled_msgs_hash
bytes implicit_hash = 18;
}

message RequestProcessProposal {
Expand All @@ -153,6 +170,22 @@ message RequestProcessProposal {
bytes next_validators_hash = 7;
// address of the public key of the original proposer of the block.
bytes proposer_address = 8;
// scheduled_msgs_hash
tendermint.version.Consensus version = 9 [(gogoproto.nullable) = false];
tendermint.types.BlockID last_block_id = 10 [(gogoproto.nullable) = false];
bytes data_hash = 11;
bytes last_commit_hash = 12; // commit from validators from the last block
bytes validators_hash = 13; // validators for the current block
bytes consensus_hash = 14; // consensus params for current block
bytes last_results_hash = 15; // root hash of all results from the txs from the previous block

// consensus info
bytes evidence_hash = 16; // evidence included in the block
// encrypted random
tendermint.types.EncryptedRandom encrypted_random = 17; // a random number encrypted by the proposer to be used in contracts

// scheduled_msgs_hash
bytes implicit_hash = 18;
}

// Extends a vote with application-injected data
Expand All @@ -169,6 +202,22 @@ message RequestExtendVote {
bytes next_validators_hash = 7;
// address of the public key of the original proposer of the block.
bytes proposer_address = 8;
// scheduled_msgs_hash
tendermint.version.Consensus version = 9 [(gogoproto.nullable) = false];
tendermint.types.BlockID last_block_id = 10 [(gogoproto.nullable) = false];
bytes data_hash = 11;
bytes last_commit_hash = 12; // commit from validators from the last block
bytes validators_hash = 13; // validators for the current block
bytes consensus_hash = 14; // consensus params for current block
bytes last_results_hash = 15; // root hash of all results from the txs from the previous block

// consensus info
bytes evidence_hash = 16; // evidence included in the block
// encrypted random
tendermint.types.EncryptedRandom encrypted_random = 17; // a random number encrypted by the proposer to be used in contracts

// scheduled_msgs_hash
bytes implicit_hash = 18;
}

// Verify the vote extension
Expand All @@ -194,6 +243,18 @@ message RequestFinalizeBlock {
bytes proposer_address = 8;
tendermint.types.EncryptedRandom encrypted_random = 9; // a random number encrypted by the proposer to be used in contracts
tendermint.types.Commit commit = 10;
tendermint.version.Consensus version = 11 [(gogoproto.nullable) = false];
tendermint.types.BlockID last_block_id = 12 [(gogoproto.nullable) = false];
bytes data_hash = 13; // commit from validators from the last block
bytes last_commit_hash = 14; // commit from validators from the last block
bytes validators_hash = 15; // validators for the current block
bytes consensus_hash = 16; // consensus params for current block
bytes last_results_hash = 17; // root hash of all results from the txs from the previous block

// consensus info
bytes evidence_hash = 18; // evidence included in the block
// scheduled_msgs_hash
bytes implicit_hash = 19;
}

//----------------------------------------
Expand Down
Loading