mirror of
https://github.com/fluencelabs/tendermint
synced 2025-04-25 06:42:16 +00:00
36 lines
487 B
Go
36 lines
487 B
Go
|
package node
|
||
|
|
||
|
import (
|
||
|
"time"
|
||
|
|
||
|
"github.com/tendermint/tendermint/crypto"
|
||
|
)
|
||
|
|
||
|
type NodeID struct {
|
||
|
Name string
|
||
|
PubKey crypto.PubKey
|
||
|
}
|
||
|
|
||
|
type PrivNodeID struct {
|
||
|
NodeID
|
||
|
PrivKey crypto.PrivKey
|
||
|
}
|
||
|
|
||
|
type NodeGreeting struct {
|
||
|
NodeID
|
||
|
Version string
|
||
|
ChainID string
|
||
|
Message string
|
||
|
Time time.Time
|
||
|
}
|
||
|
|
||
|
type SignedNodeGreeting struct {
|
||
|
NodeGreeting
|
||
|
Signature crypto.Signature
|
||
|
}
|
||
|
|
||
|
func (pnid *PrivNodeID) SignGreeting() *SignedNodeGreeting {
|
||
|
//greeting := NodeGreeting{}
|
||
|
return nil
|
||
|
}
|