mirror of
https://github.com/fluencelabs/tendermint
synced 2025-06-12 12:51:22 +00:00
Generate PrivValidator file when it doesn't exist already
This commit is contained in:
34
node/id.go
Normal file
34
node/id.go
Normal 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
|
||||
}
|
Reference in New Issue
Block a user