package
0.38.0-preview.0
Repository: https://github.com/onflow/flow-go.git
Documentation: pkg.go.dev

# Functions

AccountKeyToMessage converts a flow.AccountPublicKey to a protobuf message.
AccountToMessage converts a flow.Account to a protobuf message.
Address validates the input address and returns a Flow address if valid and error otherwise.
AggregatedSignaturesToMessages converts a slice of AggregatedSignature structs to a corresponding slice of protobuf messages.
No description provided by the author
No description provided by the author
BlockExecutionDataEventPayloadsToVersion converts all event payloads to version.
BlockExecutionDataToMessage converts a BlockExecutionData to a protobuf message.
BlockHeaderToMessage converts a flow.Header to a protobuf message.
No description provided by the author
No description provided by the author
BlockSealsToMessages converts a slice of flow.Seal to a slice of protobuf BlockSeal messages.
BlockSealToMessage converts a flow.Seal to a protobuf BlockSeal message.
BlockToMessage converts a flow.Block to a protobuf Block message.
BlockToMessageLight converts a flow.Block to the light form of a protobuf Block message.
BytesToInmemSnapshot converts an array of bytes to `inmem.Snapshot`.
CcfEventsToJsonEvents returns a new event with the payload converted from CCF to JSON.
CcfEventToJsonEvent returns a new event with the payload converted from CCF to JSON.
CcfPayloadToJsonPayload converts a CCF-encoded payload to a JSON-encoded payload.
ChunkExecutionDataToMessage converts a ChunkExecutionData to a protobuf message.
ChunkToMessage converts a chunk to a protobuf message.
CollectionGuaranteesToMessages converts a slice of collection guarantees to a slice of protobuf messages.
CollectionGuaranteeToMessage converts a collection guarantee to a protobuf message.
No description provided by the author
CollectionToMessage converts a collection to a protobuf message.
EventsToMessages converts a slice of flow.Events to a slice of protobuf messages Note: this function does not convert the payload encoding.
EventsToMessagesWithEncodingConversion converts a slice of flow.Events to a slice of protobuf messages, converting the payload encoding from CCF to JSON if the input version is CCF.
EventToMessage converts a flow.Event to a protobuf message Note: this function does not convert the payload encoding.
EventToMessageFromVersion converts a flow.Event to a protobuf message, converting the payload encoding from CCF to JSON if the input version is CCF.
No description provided by the author
ExecutionResultMetaListToMessages converts an execution result meta list to a slice of protobuf messages.
ExecutionResultsToMessages converts a slice of execution results to a slice of protobuf messages.
ExecutionResultToMessage converts an execution result to a protobuf message.
No description provided by the author
No description provided by the author
IdentifiersToMessages converts a slice of flow.Identifiers to a slice of byte slices for inclusion in a protobuf message.
IdentifierToMessage converts a flow.Identifier to a byte slice for inclusion in a protobuf message.
LightCollectionToMessage converts a light collection to a protobuf message.
MessagesToAggregatedSignatures converts a slice of protobuf messages to their corresponding AggregatedSignature structs.
MessagesToBlockEvents converts a protobuf EventsResponse_Result messages to a slice of flow.BlockEvents.
MessagesToBlockSeals converts a slice of protobuf BlockSeal messages to a slice of flow.Seal.
MessagesToChunkList converts a slice of protobuf messages to a chunk list.
MessagesToCollectionGuarantees converts a slice of protobuf messages to a slice of collection guarantees.
MessagesToEvents converts a slice of protobuf messages to a slice of flow.Events Note: this function does not convert the payload encoding.
MessagesToEventsWithEncodingConversion converts a slice of protobuf messages to a slice of flow.Events, converting the payload encoding from CCF to JSON if the input version is CCF.
MessagesToExecutionResultMetaList converts a slice of protobuf messages to an execution result meta list.
MessagesToExecutionResults converts a slice of protobuf messages to a slice of execution results.
MessagesToIdentifiers converts a slice of byte slices from a protobuf message to a slice of flow.Identifiers.
MessagesToRegisterIDs converts a protobuf message to RegisterIDs.
MessagesToServiceEventList converts a slice of flow.ServiceEvents to a slice of protobuf messages.
MessagesToSignatures converts a slice of byte slices from a protobuf message to a slice of crypto.Signatures.
MessageToAccount converts a protobuf message to a flow.Account.
MessageToAccountKey converts a protobuf message to a flow.AccountPublicKey.
MessageToBlock converts a protobuf Block message to a flow.Block.
MessageToBlockEvents converts a protobuf EventsResponse_Result message to a flow.BlockEvents.
MessageToBlockExecutionData converts a protobuf message to a BlockExecutionData.
MessageToBlockHeader converts a protobuf message to a flow.Header.
MessageToBlockSeal converts a protobuf BlockSeal message to a flow.Seal.
MessageToBlockStatus converts a protobuf BlockStatus message to a flow.BlockStatus.
MessageToChainId converts the chainID from a protobuf message to a flow.ChainID It returns an error if the value is not a valid chainId.
MessageToChunk converts a protobuf message to a chunk.
MessageToChunkExecutionData converts a protobuf message to a ChunkExecutionData.
MessageToCollectionGuarantee converts a protobuf message to a collection guarantee.
MessageToEvent converts a protobuf message to a flow.Event Note: this function does not convert the payload encoding.
MessageToEventFromVersion converts a protobuf message to a flow.Event, and converts the payload encoding from CCF to JSON if the input version is CCF.
MessageToExecutionResult converts a protobuf message to an execution result.
No description provided by the author
MessageToIdentifier converts a byte slice from a protobuf message to a flow.Identifier.
MessageToLightCollection converts a protobuf message to a light collection.
No description provided by the author
MessageToServiceEvent converts a protobuf message to a flow.ServiceEvent.
MessageToSignature converts a byte slice from a protobuf message to a crypto.Signature.
MessageToStateCommitment converts a byte slice from a protobuf message to a flow.StateCommitment.
MessageToTransaction converts a protobuf message to a flow.TransactionBody.
MessageToTrieUpdate converts a protobuf message to a TrieUpdate.
PayloadFromMessage converts a protobuf Block message to a flow.Payload.
No description provided by the author
ServiceEventListToMessages converts a slice of flow.ServiceEvents to a slice of protobuf messages.
ServiceEventToMessage converts a flow.ServiceEvent to a protobuf message.
SignaturesToMessages converts a slice of crypto.Signatures to a slice of byte slices for inclusion in a protobuf message.
SignatureToMessage converts a crypto.Signature to a byte slice for inclusion in a protobuf message.
SnapshotToBytes converts a `protocol.Snapshot` to bytes, encoded as JSON.
StateCommitmentToMessage converts a flow.StateCommitment to a byte slice for inclusion in a protobuf message.
No description provided by the author
TransactionsToMessages converts a slice of flow.TransactionBody to a slice of protobuf messages.
TransactionToMessage converts a flow.TransactionBody to a protobuf message.
TrieUpdateToMessage converts a TrieUpdate to a protobuf message.

# Variables

No description provided by the author
No description provided by the author