{"modulePath":"github.com/ethersphere/bee","version":"v1.17.3","isLatest":false,"isStandardLibrary":false,"goos":"all","goarch":"all","docs":"# package chainsync\n\nPackage chainsync provides the implementation of the chainsync protocol that verifies peer chain synchronization.\n\n## Types\n\n```go\ntype ChainSync struct {\n\t// contains filtered or unexported fields\n}\n```\n\n```go\nfunc New(s p2p.Streamer, backend transaction.Backend) (*ChainSync, error)\n```\n\n```go\nfunc (s *ChainSync) Protocol() p2p.ProtocolSpec\n```\n\n```go\nfunc (s *ChainSync) Prove(ctx context.Context, peer swarm.Address, blockheight uint64) ([]byte, error)\n```\nProve asks a peer to prove they know a certain block height on the current used eth backend.\n\n","path":"github.com/ethersphere/bee/pkg/chainsync","name":"chainsync","synopsis":"Package chainsync provides the implementation of the chainsync protocol that verifies peer chain synchronization.","isRedistributable":true}
