Generate PrivValidator file when it doesn't exist already

This commit is contained in:
Jae Kwon
2015-04-18 14:46:44 -07:00
parent 6890593a7e
commit 5e45a849ab
4 changed files with 74 additions and 23 deletions

34
node/id.go Normal file
View File

@ -0,0 +1,34 @@
package node
import (
acm "github.com/tendermint/tendermint/account"
"time"
)
type NodeID struct {
Name string
PubKey acm.PubKey
}
type PrivNodeID struct {
NodeID
PrivKey acm.PrivKey
}
type NodeGreeting struct {
NodeID
Version string
Network string
Message string
Time time.Time
}
type SignedNodeGreeting struct {
NodeGreeting
Signature acm.Signature
}
func (pnid *PrivNodeID) SignGreeting() *SignedNodeGreeting {
//greeting := NodeGreeting{}
return nil
}