You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

44 lines
598 B

  1. package types
  2. import (
  3. "time"
  4. )
  5. type Message struct {
  6. Topic string
  7. Data []byte
  8. Address string
  9. TimeStamp time.Time
  10. }
  11. type Connection struct {
  12. Topic string
  13. Key string
  14. Kind string
  15. Address string
  16. }
  17. type Ballot struct {
  18. Type string
  19. PID string
  20. Nullifier []byte
  21. Vote []byte
  22. Franchise []byte
  23. }
  24. type Envelope struct {
  25. Type string
  26. Nonce uint64
  27. KeyProof []byte
  28. Ballot []byte
  29. Timestamp time.Time
  30. }
  31. type Batch struct {
  32. Type string
  33. Nullifiers []string
  34. URL string
  35. TXID string
  36. Nonce []byte
  37. Signature string
  38. }