-
Notifications
You must be signed in to change notification settings - Fork 3.8k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* update solo machine specs * update concepts * self review fixes * Apply suggestions from code review * add note on upgarding solo machines Co-authored-by: Federico Kunze <31522760+fedekunze@users.noreply.github.com>
- Loading branch information
Showing
7 changed files
with
171 additions
and
14 deletions.
There are no files selected for viewing
This file contains 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 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 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 |
---|---|---|
@@ -0,0 +1,12 @@ | ||
<!-- | ||
order: 2 | ||
--> | ||
|
||
# State | ||
|
||
The solo machine light client will only store consensus states for each update by a header | ||
or a governance proposal. The latest client state is also maintained in the store. | ||
|
||
These values can be found under the light client paths defined in the IBC | ||
[core store specs](../../../core/spec/02_state.md). | ||
|
42 changes: 42 additions & 0 deletions
42
x/ibc/light-clients/06-solomachine/spec/03_state_transitions.md
This file contains 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 |
---|---|---|
@@ -0,0 +1,42 @@ | ||
<!-- | ||
order: 3 | ||
--> | ||
|
||
# State Transitions | ||
|
||
## Client State Verification Functions | ||
|
||
Successful state verification by a solo machine light client will result in: | ||
|
||
- the sequence being incremented by 1. | ||
|
||
## Update By Header | ||
|
||
A successful update of a solo machine light client by a header will result in: | ||
|
||
- the public key being updated to the new public key provided by the header. | ||
- the diversifier being updated to the new diviersifier provided by the header. | ||
- the timestamp being updated to the new timestamp provided by the header. | ||
- the sequence being incremented by 1 | ||
- the consensus state being updated (consensus state stores the public key, diversifier, and timestamp) | ||
|
||
## Update By Governance Proposal | ||
|
||
A successful update of a solo machine light client by a governance proposal will result in: | ||
|
||
- the public key being updated to the new public key provided by the header. | ||
- the diversifier being updated to the new diviersifier provided by the header. | ||
- the timestamp being updated to the new timestamp provided by the header. | ||
- the sequence being set to the new sequence provided by the header. | ||
- the consensus state being updated (consensus state stores the public key, diversifier, and timestamp) | ||
- the frozen sequence being set to zero (client is unfrozen if it was previously frozen). | ||
|
||
## Upgrade | ||
|
||
Client udgrades are not supported for the solo machine light client. No state transition occurs. | ||
|
||
## Misbehaviour | ||
|
||
Successful misbehaviour processing of a solo machine light client will result in: | ||
|
||
- the frozen sequence being set to the sequence the misbehaviour occurred at |
This file contains 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 |
---|---|---|
@@ -0,0 +1,8 @@ | ||
<!-- | ||
order: 4 | ||
--> | ||
|
||
# Messages | ||
|
||
The messages used to initialize a solo machine light client are defined in the | ||
core sub-module [02-client](../../../core/spec/04_messages.md). |
This file contains 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 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