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
478 B

  1. package node
  2. import (
  3. "github.com/tendermint/go-crypto"
  4. "time"
  5. )
  6. type NodeID struct {
  7. Name string
  8. PubKey crypto.PubKey
  9. }
  10. type PrivNodeID struct {
  11. NodeID
  12. PrivKey crypto.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 crypto.Signature
  24. }
  25. func (pnid *PrivNodeID) SignGreeting() *SignedNodeGreeting {
  26. //greeting := NodeGreeting{}
  27. return nil
  28. }