tendermint-rs icon indicating copy to clipboard operation
tendermint-rs copied to clipboard

Define Protobuf schema for LightBlock type

Open romac opened this issue 4 years ago • 2 comments

The Protobuf schema would be used for:

  • serializing light blocks for storage in the light store
  • across FFI boundaries (eg. Rust<->WASM)

romac avatar Jan 08 '21 23:01 romac

This type is defined in go-tendermint (https://github.com/tendermint/tendermint/blob/master/proto/tendermint/types/types.proto#L140) if it fits your use case.

tac0turtle avatar Jan 11 '21 09:01 tac0turtle

Oh the LightBlock terminology has made it into Go Tendermint, sweet :)

Unfortunately that proto definition does not quite fit the bill since our LightBlock type looks like this:

https://github.com/informalsystems/tendermint-rs/blob/2381dcf8514a84c46532deae85aa3d7a5f586f64/light-client/src/types.rs#L84-L95

romac avatar Jan 11 '21 11:01 romac