github.com/onflow/flow-go@v0.35.7-crescendo-preview.23-atree-inlining/model/verification/verifiableChunkData.go (about)

     1  package verification
     2  
     3  import (
     4  	"github.com/onflow/flow-go/model/flow"
     5  	"github.com/onflow/flow-go/state/protocol"
     6  )
     7  
     8  // VerifiableChunkData represents a ready-to-verify chunk
     9  // It contains the execution result as well as all resources needed to verify it
    10  type VerifiableChunkData struct {
    11  	IsSystemChunk     bool                  // indicates whether this is a system chunk
    12  	Chunk             *flow.Chunk           // the chunk to be verified
    13  	Header            *flow.Header          // BlockHeader that contains this chunk
    14  	Snapshot          protocol.Snapshot     // state snapshot at the chunk's block
    15  	Result            *flow.ExecutionResult // execution result of this block
    16  	ChunkDataPack     *flow.ChunkDataPack   // chunk data package needed to verify this chunk
    17  	EndState          flow.StateCommitment  // state commitment at the end of this chunk
    18  	TransactionOffset uint32                // index of the first transaction in a chunk within a block
    19  }