Files
prysm/proto/ssz_query/response.proto
Jun Song 5a897dfa6b SSZ-QL: Add endpoints (BeaconState/BeaconBlock) (#15888)
* Move ssz_query objects into testing folder (ensuring test objects only used in test environment)

* Add containers for response

* Export sszInfo

* Add QueryBeaconState/Block

* Add comments and few refactor

* Fix merge conflict issues

* Return 500 when calculate offset fails

* Add test for QueryBeaconState

* Add test for QueryBeaconBlock

* Changelog :)

* Rename `QuerySSZRequest` to `SSZQueryRequest`

* Fix middleware hooks for RPC to accept JSON from client and return SSZ

* Convert to `SSZObject` directly from proto

* Move marshalling/calculating hash tree root part after `CalculateOffsetAndLength`

* Make nogo happy

* Add informing comment for using proto unsafe conversion

---------

Co-authored-by: Radosław Kapka <rkapka@wp.pl>
2025-10-20 16:24:06 +00:00

28 lines
740 B
Protocol Buffer

syntax = "proto3";
package testing;
import "proto/eth/ext/options.proto";
option go_package = "github.com/OffchainLabs/prysm/v6/proto/ssz_query";
message SSZQueryProof {
bytes leaf = 1 [ (ethereum.eth.ext.ssz_size) = "32" ];
uint64 gindex = 2;
repeated bytes proofs = 3 [
(ethereum.eth.ext.ssz_size) = "?,32",
(ethereum.eth.ext.ssz_max) = "64,?"
];
}
message SSZQueryResponse {
bytes root = 1 [ (ethereum.eth.ext.ssz_size) = "32" ];
bytes result = 2 [ (ethereum.eth.ext.ssz_max) = "1073741824" ];
}
message SSZQueryResponseWithProof {
bytes root = 1 [ (ethereum.eth.ext.ssz_size) = "32" ];
bytes result = 2 [ (ethereum.eth.ext.ssz_max) = "1073741824" ];
SSZQueryProof proof = 3;
}