nwaku/waku/v2/utils/pagination.nim

15 lines
392 B
Nim

## Contains types and utilities for pagination.
##
## Used by both message store and store protocol.
{.push raises: [Defect].}
import nimcrypto/hash
type
Index* = object
## This type contains the description of an Index used in the pagination of WakuMessages
digest*: MDigest[256]
receiverTime*: float64
senderTime*: float64 # the time at which the message is generated