github.com/onflow/flow-go@v0.35.7-crescendo-preview.23-atree-inlining/model/verification/resultDataPack.go (about) 1 package verification 2 3 import ( 4 "github.com/onflow/flow-go/model/flow" 5 ) 6 7 // ResultDataPack represents an execution result with some metadata. 8 // This is an internal entity for verification node. 9 type ResultDataPack struct { 10 ExecutorID flow.Identifier 11 ExecutionResult *flow.ExecutionResult 12 } 13 14 // ID returns the unique identifier for the ResultDataPack which is the 15 // id of its execution result. 16 func (r *ResultDataPack) ID() flow.Identifier { 17 return r.ExecutionResult.ID() 18 } 19 20 // Checksum returns the checksum of the ResultDataPack. 21 func (r *ResultDataPack) Checksum() flow.Identifier { 22 return flow.MakeID(r) 23 }