1
0
mirror of https://github.com/waku-org/nwaku.git synced 2025-01-16 18:06:45 +00:00
Sergei Tikhomirov 65530264d5
feat(incentivization): add codec for eligibility proof and status ()
* incentivization: add codec for eligibility proofs

* add codec for eligibility proof and eligibility status

* address minor comments

* make status code mandatory in eligibility status
2024-03-26 18:25:42 +01:00

18 lines
317 B
Nim

import
json_serialization,
std/options
import
../waku_core
# Implementing the RFC:
# https://github.com/vacp2p/rfc/tree/master/content/docs/rfcs/73
type
EligibilityProof* = object
proofOfPayment*: Option[seq[byte]]
EligibilityStatus* = object
statusCode*: uint32
statusDesc*: Option[string]