graphops / graphcast-sdk

Graphcast SDK allows you to build gossip-powered Radios
https://docs.graphops.xyz/graphcast/intro
Apache License 2.0
17 stars 3 forks source link

Make RadioPayloadMessage a trait #294

Open pete-eiger opened 1 year ago

pete-eiger commented 1 year ago

RadioPayloadMessage should be a trait, not a struct

This trait need to require:

  1. Everything on GraphcastMessage currently
  2. Set of required functions
    • decode
    • validity_check
    • build
  3. Set of required fields
    • graph_account
    • nonce