-
Notifications
You must be signed in to change notification settings - Fork 92
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
Consensus verification failure #61
Closed
5 tasks
Labels
A: bug
Admin: something isn't working
Comments
Some findings ->
$ curl "http://localhost:26657/abci_query?path=\"store/ibc/key\"&data=\"clients/07-tendermint-0/consensusStates/0-10\"&height=976&prove=true" | jq
{
"jsonrpc": "2.0",
"id": -1,
"result": {
"response": {
"code": 0,
"log": "",
"info": "",
"index": "0",
"key": "Y2xpZW50cy8wNy10ZW5kZXJtaW50LTAvY29uc2Vuc3VzU3RhdGVzLzAtMTA=",
"value": "Ci4vaWJjLmxpZ2h0Y2xpZW50cy50ZW5kZXJtaW50LnYxLkNvbnNlbnN1c1N0YXRlElQKDAiR8dWOBhDnz4/BAhIiCiCXJkGhFY+fsTBlzNu5V+eoArxRBfUrGeviZrSX3IdGxxog0VWp+Tma6TLMfEBOBaKp7qIGjKV3JEYmHK7pEyvIaNE=",
"proofOps": {
"ops": [
{
"type": "ics23:iavl",
"key": "Y2xpZW50cy8wNy10ZW5kZXJtaW50LTAvY29uc2Vuc3VzU3RhdGVzLzAtMTA=",
"data": "CvsCCixjbGllbnRzLzA3LXRlbmRlcm1pbnQtMC9jb25zZW5zdXNTdGF0ZXMvMC0xMBKGAQouL2liYy5saWdodGNsaWVudHMudGVuZGVybWludC52MS5Db25zZW5zdXNTdGF0ZRJUCgwIkfHVjgYQ58+PwQISIgoglyZBoRWPn7EwZczbuVfnqAK8UQX1Kxnr4ma0l9yHRscaINFVqfk5mukyzHxATgWiqe6iBoyldyRGJhyu6RMryGjRGgwIARgBIAEqBAACjgQiLAgBEgUCBJYEIBohILfdYaL9qCfwNbCJkaq3uQvaEmNBoNGNmw01WTUrz7tkIioIARImBAiWBCDNAwXOxLlFHHeJqfOdZcKjC76nzRahRSFzzTG3O7O5fiAiLAgBEgUGDpYEIBohICTItZCLYCtVmw7Z6GdmUgwIN7SHSf83BUGP2/59+XrpIiwIARIFCBiWBCAaISDV2CipvgDjQLINM6r8gSNMp5hLfII3zm37YzdFIIW4ZQ=="
},
{
"type": "ics23:simple",
"key": "aWJj",
"data": "CtIBCgNpYmMSIJIXrxNUY3zvvtvzIwyd3vjEF1uZCyzQUTRAHS42TJSWGgkIARgBIAEqAQAiJwgBEgEBGiC7WEXil5YOS01FaKW7trW7P/4keJnqJu1TsUhfKQvdnyIlCAESIQHE9fPjQgNd+1LyG5frMQ5vVjJeKlhk4wlb8lEMwdZLMSIlCAESIQFgYVMHv9X4KGvV315nwjujk3GrxaXh6OAqwIelEcOSBiInCAESAQEaIL/FdNVXiVe58tFaefjvqnHXkrBhBVZSrWDOUDGU8+oC"
}
]
},
"height": "976",
"codespace": ""
}
}
}
$ echo "Ci4vaWJjLmxpZ2h0Y2xpZW50cy50ZW5kZXJtaW50LnYxLkNvbnNlbnN1c1N0YXRlElQKDAiR8dWOBhDnz4/BAhIiCiCXJkGhFY+fsTBlzNu5V+eoArxRBfUrGeviZrSX3IdGxxog0VWp+Tma6TLMfEBOBaKp7qIGjKV3JEYmHK7pEyvIaNE=" | base64 -d | ibc-proto-decode
Tendermint(
ConsensusState {
timestamp: Time(
PrimitiveDateTime {
date: Date {
year: 2022,
ordinal: 5,
},
time: Time {
hour: 10,
minute: 53,
second: 5,
nanosecond: 673441767,
},
},
),
root: CommitmentRoot(
"972641A1158F9FB13065CCDBB957E7A802BC5105F52B19EBE266B497DC8746C7",
),
next_validators_hash: Hash::Sha256(D155A9F9399AE932CC7C404E05A2A9EEA2068CA5772446261CAEE9132BC868D1),
},
) And here's basecoin-0's consensus state for the same height ->
PS: use std::io::{self, Read};
use tendermint_proto::Protobuf;
use ibc::core::ics02_client::client_consensus::AnyConsensusState;
fn main() {
let stdin = io::stdin();
let mut buf = vec![];
stdin.lock().read_to_end(&mut buf).expect("failed to read stdin");
println!("{:#?}", AnyConsensusState::decode_vec(&buf).expect("failed to parse input"));
} |
6 tasks
shuoer86
pushed a commit
to shuoer86/ibc-rs
that referenced
this issue
Nov 4, 2023
Check for placeholder nodes in proof verification
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Crate
ibc
Summary of Bug
Module verification fails to verify correct consensus proofs from gaiad.
Version
master
Steps to Reproduce
To test with basecoin-rs ->
hu55a1n1/module-verification
branchAcceptance Criteria
Consensus proof verification succeeds.
For Admin Use
The text was updated successfully, but these errors were encountered: