Skip to content

Instantly share code, notes, and snippets.

@0xbunyip
Created February 25, 2020 06:06
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save 0xbunyip/b55a1d5ccefdebe00d3131392301da9d to your computer and use it in GitHub Desktop.
Save 0xbunyip/b55a1d5ccefdebe00d3131392301da9d to your computer and use it in GitHub Desktop.
highway interface
type Highway interface {
BroadcastBlock(blockHeight int, blockData []byte, shardID int) error
ListenToBlock(shardID int) (channel []byte, error)
RequestBlock(blockHeight int, shardID int) ([]byte, error)
PublishState(pubkey []byte, state []byte, shardID int) error
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment