-
Notifications
You must be signed in to change notification settings - Fork 66
Problem: light client doesn't verify the fetched staking state #1313
Comments
…d staking state Solution: - Support query merkle inclusion proof - Also support query historical staking state - Query json encoded staking from abci_query directly crypto-com#1464
…d staking state Solution: - Support query merkle inclusion proof - Also support query historical staking state - Query json encoded staking from abci_query directly crypto-com#1464
…d staking state Solution: - Support query merkle inclusion proof - Also support query historical staking state - Query json encoded staking from abci_query directly crypto-com#1464
…d staking state Solution: - Support query merkle inclusion proof - Also support query historical staking state - Query json encoded staking from abci_query directly crypto-com#1464
…d staking state Solution: - Support query merkle inclusion proof - Also support query historical staking state - Query json encoded staking from abci_query directly crypto-com#1464
…d staking state Solution: - Support query merkle inclusion proof - Also support query historical staking state - Query json encoded staking from abci_query directly crypto-com#1464
…d staking state Solution: - Support query merkle inclusion proof - Also support query historical staking state - Query json encoded staking from abci_query directly crypto-com#1464
1458: Problem (Fix #1457): No mock mode for developing on non-sgx platform r=tomtau a=yihuang Solution: - Add mock mode The basic idea is described in #1457. 1466: Problem (WIP #1313): light client doesn't verify the fetched staking state r=tomtau a=yihuang Solution: - Support query merkle inclusion proof - Also support query historical staking state - Query json encoded staking from abci_query directly #1464 This feature(query historical staked state) is also needed to make the reward integration tests more stable. Added a new abci_query path "staking" which is like "account", but it returns JSON directly, also support the new features (historical query, proof), the next step will be update the "staking_state" API in client-rpc and client-cli to use the new one. Co-authored-by: yihuang <[email protected]>
Proposal:
|
but verification needs whole trie, |
It verifies the Merkel proof against the root hash in chain state. |
it doesn't need it -- that's the point of a "light client"... It only needs to know the validator set + "root" (embedded in app hash) and be given the merkle proof from the leaf to the root |
…d staking state Solution: - Add staking_root in sync state - Verify staking and proof against the trusted staking_root in sync state
…d staking state Solution: - Add staking_root in sync state - Verify staking and proof against the trusted staking_root in sync state
…d staking state Solution: - Add staking_root in sync state - Verify staking and proof against the trusted staking_root in sync state
…d staking state Solution: - Add staking_root in sync state - Remove the "account" path in favor of the new "staking" path - Client staking state command add wallet name parameter, and verify staking state and proof against the trusted staking_root in sync state - Need to sync wallet before fetching the new staking state now.
…d staking state Solution: - Add staking_root in sync state - Remove the "account" path in favor of the new "staking" path - Client staking state command add wallet name parameter, and verify staking state and proof against the trusted staking_root in sync state - Need to sync wallet before fetching the new staking state now.
…d staking state Solution: - Add staking_root in sync state - Remove the "account" path in favor of the new "staking" path - Client staking state command add wallet name parameter, and verify staking state and proof against the trusted staking_root in sync state - Need to sync wallet before fetching the new staking state now.
…d staking state Solution: - Add staking_root in sync state - Remove the "account" path in favor of the new "staking" path - Client staking state command add wallet name parameter, and verify staking state and proof against the trusted staking_root in sync state - Need to sync wallet before fetching the new staking state now.
…d staking state Solution: - Add staking_root in sync state - Remove the "account" path in favor of the new "staking" path - Client staking state command add wallet name parameter, and verify staking state and proof against the trusted staking_root in sync state - Need to sync wallet before fetching the new staking state now.
1511: Problem (Fix #1313): light client doesn't verify the fetched staking state r=tomtau a=yihuang Solution: - Add staking_root in sync state - Remove the "account" path in favor of the new "staking" path - Client staking state command add wallet name parameter, and verify staking state and proof against the trusted staking_root in sync state - Need to sync wallet before fetching the new staking state now. (you can still get any staking state without verification by request abci_query API directly) 1516: Problem (Fix #1515): unbond tx don't subtract fee from bonded r=tomtau a=yihuang Solution: - Fix the bug and add unit test Co-authored-by: yihuang <[email protected]>
1511: Problem (Fix #1313): light client doesn't verify the fetched staking state r=tomtau a=yihuang Solution: - Add staking_root in sync state - Remove the "account" path in favor of the new "staking" path - Client staking state command add wallet name parameter, and verify staking state and proof against the trusted staking_root in sync state - Need to sync wallet before fetching the new staking state now. (you can still get any staking state without verification by request abci_query API directly) Co-authored-by: yihuang <[email protected]>
…d staking state Solution: - Add staking_root in sync state - Remove the "account" path in favor of the new "staking" path - Client staking state command add wallet name parameter, and verify staking state and proof against the trusted staking_root in sync state - Need to sync wallet before fetching the new staking state now.
…d staking state Solution: - Add staking_root in sync state - Remove the "account" path in favor of the new "staking" path - Client staking state command add wallet name parameter, and verify staking state and proof against the trusted staking_root in sync state - Need to sync wallet before fetching the new staking state now.
…d staking state Solution: - Add staking_root in sync state - Remove the "account" path in favor of the new "staking" path - Client staking state command add wallet name parameter, and verify staking state and proof against the trusted staking_root in sync state - Need to sync wallet before fetching the new staking state now.
1511: Problem (Fix #1313): light client doesn't verify the fetched staking state r=tomtau a=yihuang Solution: - Add staking_root in sync state - Remove the "account" path in favor of the new "staking" path - Client staking state command add wallet name parameter, and verify staking state and proof against the trusted staking_root in sync state - Need to sync wallet before fetching the new staking state now. (you can still get any staking state without verification by request abci_query API directly) Co-authored-by: yihuang <[email protected]>
Problem (Fix #1621): Can't deposit into other's new staking address Solution: - Remove the restriction from client network ops code - Add check and double confirmation in client-cli Problem (#1483): client-rpc library and server dependencies are mixed Solution: - Seperate them, less dependencies in client-rpc library Problem (Fix #1313): light client doesn't verify the fetched staking … …state Solution: - Add staking_root in sync state - Remove the "account" path in favor of the new "staking" path - Client staking state command add wallet name parameter, and verify staking state and proof against the trusted staking_root in sync state - Need to sync wallet before fetching the new staking state now.
…d staking state Solution: - Support query merkle inclusion proof - Also support query historical staking state - Query json encoded staking from abci_query directly crypto-com#1464
The text was updated successfully, but these errors were encountered: