go-eth2-reqresp

module
v0.1.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 13, 2022 License: MIT

README

go-eth2-reqresp

This package implements the Eth2 Req-Resp protocol in Go.

It builds on top of:

It supports streaming of SSZ data: the output size can be determined quickly in advance, and the data can then be encoded as it is transferred. This is done with both requests and responses. A bufio writer is used to avoid encoding overhead: it uses a 1 KiB buffer currently, but will be tuned based on future performance testing.

This package is based on an earlier Req-Resp implementation in Rumor, but was refactored to improve streaming, improve the RPC method definitions, and to use the new LibP2P stream read/write-closer Go API.

Phase0 and Altair Req-resp method definitions can be found in the methods package.

License

MIT. See LICENSE file.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL