# Functions
NewReceiptService creates a new ReceiptService.
NewValidator creates a new Validator.
# Variables
ErrEmptyBundle is returned when a bundle contains no transaction.
ErrInvalidReceiptServiceState is returned when the state of the ReceiptService is invalid.
# Structs
ReceiptService is in charge of persisting and validating a batch of receipts.
Validator takes care of fetching and validating white-flag confirmation data from legacy nodes and wrapping them into receipts.
# Interfaces
LegacyAPI defines the calls of the legacy API that are used.
# Type aliases
ReceiptPersistFunc is a function which persists a receipt.
ReceiptValidateFunc is a function which validates a receipt.