Documentation ¶
Index ¶
- func BuildHeader(creator []byte, channelHeader *common.ChannelHeader, nonce []byte) (*common.Header, error)
- func ComputeTxID(nonce []byte, creator []byte) (string, error)
- func CreateSeekGenesisBlockRequest(channelName string, creator []byte) []byte
- func GenerateRandomNonce() ([]byte, error)
- func GetLastConfigFromBlock(block *common.Block) (*common.LastConfig, error)
- func MarshalOrPanic(pb proto.Message) []byte
- func NewNewestSeekPosition() *ab.SeekPosition
- func NewSpecificSeekPosition(index uint64) *ab.SeekPosition
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func BuildHeader ¶
func BuildHeader(creator []byte, channelHeader *common.ChannelHeader, nonce []byte) (*common.Header, error)
BuildHeader ...
func ComputeTxID ¶
ComputeTxID computes a transaction ID from a given nonce and creator ID
func CreateSeekGenesisBlockRequest ¶
CreateSeekGenesisBlockRequest creates a seek request for block 0 on the specified channel. This request is sent to the ordering service to request blocks
func GenerateRandomNonce ¶
GenerateRandomNonce generates a random nonce
func GetLastConfigFromBlock ¶
func GetLastConfigFromBlock(block *common.Block) (*common.LastConfig, error)
GetLastConfigFromBlock returns the LastConfig data from the given block
func MarshalOrPanic ¶
MarshalOrPanic serializes a protobuf message and panics if this operation fails.
func NewNewestSeekPosition ¶
func NewNewestSeekPosition() *ab.SeekPosition
NewNewestSeekPosition returns a SeekPosition that requests the newest block
func NewSpecificSeekPosition ¶
func NewSpecificSeekPosition(index uint64) *ab.SeekPosition
NewSpecificSeekPosition returns a SeekPosition that requests the block at the given index
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.