Repository navigation
IBC for rollkit (JTMB IBC) #1424
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
Merged
Merged
Changes from all commits
Commits
Show all changes
34 commits
Select commit
Hold shift + click to select a range
3176b75
add validator hash to rollkit Header
318785d
abci commit compatible
aeca8d7
signing byte for a rollkit header should be CometBFT Vote
2e91b37
validator hash in header
9ca53e8
update app hash in state when commit block
1e04170
validator hash serialization
2a16bdd
fix failed test
86638fb
add test
catShaark d468663
add validator hash to header in GetFirstSignedHeader
8d5c65e
Merge branch 'main' into jtmb-ibc
vuong177 6254cdb
tidy
6d7c9b5
Merge branch 'main' into jtmb-ibc
catShaark d5e9d80
fix: adapt test utils to pass light.Verify
damiannolan 087ee4e
Merge pull request #1 from damiannolan/damian/aditya-rollkit-abci-hea…
vuong177 a4868e5
merge with main
386a7c6
utils : fix incorrect voting power when GetRamdonValset
c69c2ca
linting
d0b959f
Merge branch 'main' into jtmb-ibc
vuong177 8e57aa8
Update node/full_client.go
vuong177 ea736e7
nits: check empty Validators
a956aa3
Merge branch 'main' into jtmb-ibc
vuong177 7768eec
nit
4acf85f
Merge branch 'main' into jtmb-ibc
vuong177 ac4b0da
change two defaults to fix go relayer compatibility
ee19155
attempt fix for ibc
S1nus 84c33a0
set nextvalsethash
S1nus 30147e6
Merge pull request #3 from S1nus/jtmb-ibc
catShaark 8644cec
merge upstream
S1nus 525c062
Merge pull request #4 from S1nus/jtmb-ibc
vuong177 fd1950a
Merge branch 'main' into jtmb-ibc
catShaark 9012449
Update node/full_client.go
vuong177 7e66f50
Merge branch 'main' into jtmb-ibc
vuong177 4bdeee0
remove duplicate update valset
vuong177 b01b6be
Update types/header.go
vuong177 File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or 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
This file contains hidden or 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
This file contains hidden or 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
This file contains hidden or 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
This file contains hidden or 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
This file contains hidden or 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 |
|---|---|---|
| @@ -1,80 +1,85 @@ | ||
| syntax = "proto3"; | ||
| package rollkit; | ||
| option go_package = "github.com/rollkit/rollkit/types/pb/rollkit"; | ||
|
|
||
| import "tendermint/types/validator.proto"; | ||
|
|
||
| option go_package = "github.com/rollkit/rollkit/types/pb/rollkit"; | ||
|
|
||
| // Version captures the consensus rules for processing a block in the blockchain, | ||
| // including all blockchain data structures and the rules of the application's | ||
| // state transition machine. | ||
| // This is equivalent to the tmversion.Consensus type in Tendermint. | ||
| message Version { | ||
| uint64 block = 1; | ||
| uint64 app = 2; | ||
| uint64 block = 1; | ||
| uint64 app = 2; | ||
| } | ||
|
|
||
| message Header { | ||
| // Block and App version | ||
| Version version = 1; | ||
| // Block and App version | ||
| Version version = 1; | ||
|
|
||
| // Block height | ||
| uint64 height = 2; | ||
|
|
||
| // Block height | ||
| uint64 height = 2; | ||
| // Block creation time | ||
| uint64 time = 3; | ||
|
|
||
| // Block creation time | ||
| uint64 time = 3; | ||
| // Previous block info | ||
| bytes last_header_hash = 4; | ||
|
|
||
| // Previous block info | ||
| bytes last_header_hash = 4; | ||
| // Commit from aggregator(s) from the last block | ||
| bytes last_commit_hash = 5; | ||
|
|
||
| // Commit from aggregator(s) from the last block | ||
| bytes last_commit_hash = 5; | ||
| // Block.Data root aka Transactions | ||
| bytes data_hash = 6; | ||
|
|
||
| // Block.Data root aka Transactions | ||
| bytes data_hash = 6; | ||
| // Consensus params for current block | ||
| bytes consensus_hash = 7; | ||
|
|
||
| // Consensus params for current block | ||
| bytes consensus_hash = 7; | ||
| // State after applying txs from the current block | ||
| bytes app_hash = 8; | ||
|
|
||
| // State after applying txs from the current block | ||
| bytes app_hash = 8; | ||
| // Root hash of all results from the txs from the previous block. | ||
| // This is ABCI specific but smart-contract chains require some way of committing | ||
| // to transaction receipts/results. | ||
| bytes last_results_hash = 9; | ||
|
|
||
| // Root hash of all results from the txs from the previous block. | ||
| // This is ABCI specific but smart-contract chains require some way of committing | ||
| // to transaction receipts/results. | ||
| bytes last_results_hash = 9; | ||
| // Original proposer of the block | ||
| // Note that the address can be derived from the pubkey which can be derived | ||
| // from the signature when using secp256k. | ||
| // We keep this in case users choose another signature format where the | ||
| // pubkey can't be recovered by the signature (e.g. ed25519). | ||
| bytes proposer_address = 10; | ||
|
|
||
| // Original proposer of the block | ||
| // Note that the address can be derived from the pubkey which can be derived | ||
| // from the signature when using secp256k. | ||
| // We keep this in case users choose another signature format where the | ||
| // pubkey can't be recovered by the signature (e.g. ed25519). | ||
| bytes proposer_address = 10; | ||
| // validatorhash for compatibility with tendermint light client. | ||
| bytes validator_hash = 11; | ||
|
|
||
| // Chain ID the block belongs to | ||
| string chain_id = 11; | ||
| // Chain ID the block belongs to | ||
| string chain_id = 12; | ||
| } | ||
|
|
||
| message Commit { | ||
| repeated bytes signatures = 1; | ||
| repeated bytes signatures = 1; | ||
| } | ||
|
|
||
| message SignedHeader { | ||
| Header header = 1; | ||
| Commit commit = 2; | ||
| tendermint.types.ValidatorSet validators = 3; | ||
| Header header = 1; | ||
| Commit commit = 2; | ||
| tendermint.types.ValidatorSet validators = 3; | ||
| } | ||
|
|
||
| message Data { | ||
| repeated bytes txs = 1; | ||
| repeated bytes intermediate_state_roots = 2; | ||
| repeated bytes txs = 1; | ||
| repeated bytes intermediate_state_roots = 2; | ||
| } | ||
|
|
||
| message Block { | ||
| SignedHeader signed_header = 1; | ||
| Data data = 2; | ||
| SignedHeader signed_header = 1; | ||
| Data data = 2; | ||
| } | ||
|
|
||
| message TxWithISRs { | ||
| bytes pre_isr = 1; | ||
| bytes tx = 2; | ||
| bytes post_isr = 3; | ||
| bytes pre_isr = 1; | ||
| bytes tx = 2; | ||
| bytes post_isr = 3; | ||
| } |
This file contains hidden or 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
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.