Skip to content

Commit

Permalink
Revert "Merge pull request #591 from w3f/storage-proof-hash-value"
Browse files Browse the repository at this point in the history
This reverts commit c22a4a8, reversing
changes made to 5bfb75f.
  • Loading branch information
lamafab committed Nov 25, 2022
1 parent c22a4a8 commit f951b8b
Showing 1 changed file with 5 additions and 77 deletions.
82 changes: 5 additions & 77 deletions 01_host/04_networking/10_light-client.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -38,17 +38,9 @@ Where the `request` can be one of the following fields:
|2
|A remote read request (<<sect-light-remote-read-request>>)

|`RemoteReadRequestV2`
|6
|A version 2 remote read request (<<sect-light-remote-read-request-v2>>)

|`RemoteReadChildRequest`
|4
|A remote read child request (<<sect-light-remote-read-child-request>>)

|`RemoteReadChildRequestV2`
|7
|A remote read child request (<<sect-light-remote-read-child-request-v2>>)
|===

==== Response
Expand Down Expand Up @@ -129,7 +121,7 @@ Read a storage value at the given block.
[#sect-light-remote-read-request]
.<<sect-light-remote-read-request,Remote Read Request>>
====
Remote read request message.
Remote read request.
[cols="1,1,5"]
|===
Expand All @@ -145,50 +137,10 @@ Remote read request message.
|===
====

[#sect-light-remote-read-request-v2]
.<<sect-light-remote-read-request-v2,Remote Read Request Version 2>>
====
Version 2 of a remote read request message. If the Id `2` of type `Key` is set
to true, the responder creates a Merkle proof using the hashes of the storage
values instead of the values themselves, as described in
<<defn-hashed-subvalue>>. This is useful if the light client wants to verify
whether a specific value is present in the state storage.
[cols="1,1,5"]
|===
|Type |Id |Description
|`bytes`
|2
|Block at which to perform call
|`repeated Key`
|3
|Storage keys
|===
Where `Key` is:
[cols="1,1,5"]
|===
|Type |Id |Description
|`bytes`
|1
|Storage key
|`bool`
|2
|(Optional) Whether the value should be skipped, false by default.
|===
====

[#sect-light-remote-read-response]
.<<sect-light-remote-read-response,Remote Read Response>>
====
Remote read response message to a read request message
(<<sect-light-remote-read-request>>) and read request message version 2
(<<sect-light-remote-read-request-v2>>).
Remote read response.
[cols="1,1,5"]
|===
Expand All @@ -207,7 +159,7 @@ Read a child storage value at the given block.
[#sect-light-remote-read-child-request]
.<<sect-light-remote-read-child-request,Remote Read Child Request>>
====
Remote read child request message.
Remote read child request.
[cols="1,1,5"]
|===
Expand All @@ -221,35 +173,11 @@ Remote read child request message.
|3
|Child storage key, this is relative to the child type storage location
|`repeated bytes`
|6
|Storage keys
|===
====

[#sect-light-remote-read-child-request-v2]
.<<sect-light-remote-read-child-request-v2,Remote Read Child Request Version 2>>
====
Version 2 of the remote read child request message. The behavior of the `Key`
type is the same as the `Key` type described in
<<sect-light-remote-read-request-v2>>.
[cols="1,1,5"]
|===
|Type |Id |Description
|`bytes`
|2
|Block at which to perform call
|`bytes`
|3
|Child storage key, this is relative to the child type storage location
|`repeated Key`
|6
|Storage keys
|===
====

The response is the same as for the _Remote Read Request_ message, respectively <<sect-light-remote-read-response>>.
The response is the same as for the _Remote Read Request_ message, respectively
<<sect-light-remote-read-response>>.

0 comments on commit f951b8b

Please sign in to comment.