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.

31 lines
354 B

  1. package types
  2. import (
  3. "time"
  4. )
  5. type Ballot struct {
  6. Type string
  7. PID string
  8. Nullifier []byte
  9. Vote []byte
  10. Franchise []byte
  11. }
  12. type Envelope struct {
  13. Type string
  14. Nonce uint64
  15. KeyProof []byte
  16. Ballot []byte
  17. Timestamp time.Time
  18. }
  19. type Batch struct {
  20. Type string
  21. Nullifiers []string
  22. URL string
  23. TXID string
  24. Nonce []byte
  25. Signature string
  26. }