package
0.7.1
Repository: https://github.com/siafoundation/core.git
Documentation: pkg.go.dev

# Functions

Accept reciprocates the gateway handshake with a peer.
Dial initiates the gateway handshake with a peer.
GenerateUniqueID returns a random UniqueID.
ObjectForID returns the object type corresponding to the given RPC ID.
OutlineBlock returns a block outline for b that omits the specified transactions.

# Structs

A Header contains various peer metadata which is exchanged during the gateway handshake.
An OutlineTransaction identifies a transaction by its full hash.
RPCDiscoverIP requests the caller's externally-visible IP address.
RPCRelayHeader relays a header.
RPCRelayTransactionSet relays a transaction set.
RPCRelayV2BlockOutline relays a v2 block outline.
RPCRelayV2Header relays a v2 block header.
RPCRelayV2TransactionSet relays a v2 transaction set.
RPCSendBlk requests a single block.
RPCSendBlocks requests a set of blocks.
RPCSendBlocksMoreAvailable indicates whether more blocks are available.
RPCSendCheckpoint requests a checkpoint.
RPCSendTransactions requests a subset of a block's transactions.
RPCSendV2Blocks requests a set of blocks.
RPCShareNodes requests a list of potential peers.
A Stream provides a multiplexed stream for the Sia gateway protocol.
A Transport provides a multiplexing transport for the Sia gateway protocol.
A V2BlockOutline represents a Block with one or more transactions omitted.

# Interfaces

An Object can be sent or received via RPC.

# Type aliases

A UniqueID is a randomly-generated nonce that helps prevent self-connections and double-connections.