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.

34 lines
482 B

  1. package node
  2. import (
  3. acm "github.com/tendermint/tendermint/account"
  4. "time"
  5. )
  6. type NodeID struct {
  7. Name string
  8. PubKey acm.PubKey
  9. }
  10. type PrivNodeID struct {
  11. NodeID
  12. PrivKey acm.PrivKey
  13. }
  14. type NodeGreeting struct {
  15. NodeID
  16. Version string
  17. ChainID string
  18. Message string
  19. Time time.Time
  20. }
  21. type SignedNodeGreeting struct {
  22. NodeGreeting
  23. Signature acm.Signature
  24. }
  25. func (pnid *PrivNodeID) SignGreeting() *SignedNodeGreeting {
  26. //greeting := NodeGreeting{}
  27. return nil
  28. }