go-header
go-header copied to clipboard
Go library with all the services needed to request, sync and store blockchain headers.
Go Header
Go Header contains all services related to generating, requesting, syncing and storing Headers.
There are 4 main components in the header package:
- p2p.Subscriber listens for new Headers from the P2P network (via the HeaderSub)
- p2p.Exchange request Headers from other nodes
- Syncer manages syncing of historical and new Headers from the P2P network
- Store manages storing Headers and making them available for access by other dependent services.
Table of Contents
- Go Header
- Table of Contents
- Minimum requirements
- Installation
- Package-specific documentation
- Code of Conduct
Minimum requirements
Requirement | Notes |
---|---|
Go version | 1.20 or higher |
Installation
go get -u https://github.com/celestiaorg/go-header.git
For more information, go visit our docs at https://pkg.go.dev/github.com/celestiaorg/go-header.
Package-specific documentation
- P2P
- Sync
- Store
Code of Conduct
See our Code of Conduct here.