OSDN Git Service

Add walletdb recover function from keystore (#340)
[bytom/bytom.git] / node / id.go
1 package node
2
3 import (
4         "github.com/tendermint/go-crypto"
5         "time"
6 )
7
8 type NodeID struct {
9         Name   string
10         PubKey crypto.PubKey
11 }
12
13 type PrivNodeID struct {
14         NodeID
15         PrivKey crypto.PrivKey
16 }
17
18 type NodeGreeting struct {
19         NodeID
20         Version string
21         ChainID string
22         Message string
23         Time    time.Time
24 }
25
26 type SignedNodeGreeting struct {
27         NodeGreeting
28         Signature crypto.Signature
29 }
30
31 func (pnid *PrivNodeID) SignGreeting() *SignedNodeGreeting {
32         return nil
33 }