github.com/onflow/flow-go@v0.35.7-crescendo-preview.23-atree-inlining/model/verification/receiptDataPack.go (about) 1 package verification 2 3 import ( 4 "context" 5 6 "github.com/onflow/flow-go/model/flow" 7 ) 8 9 // ReceiptDataPack represents an execution receipt with some metadata. 10 // This is an internal entity for verification node. 11 type ReceiptDataPack struct { 12 Receipt *flow.ExecutionReceipt 13 OriginID flow.Identifier 14 Ctx context.Context // used for span tracing 15 } 16 17 // ID returns the unique identifier for the ReceiptDataPack which is the 18 // id of its execution receipt. 19 func (r *ReceiptDataPack) ID() flow.Identifier { 20 return r.Receipt.ID() 21 } 22 23 // Checksum returns the checksum of the ReceiptDataPack. 24 func (r *ReceiptDataPack) Checksum() flow.Identifier { 25 return flow.MakeID(r) 26 }