mirror of
https://github.com/waku-org/nwaku.git
synced 2025-01-16 01:45:40 +00:00
65530264d5
* incentivization: add codec for eligibility proofs * add codec for eligibility proof and eligibility status * address minor comments * make status code mandatory in eligibility status
18 lines
317 B
Nim
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]
|