Revert "delete everything" (includes everything non-go-crypto)

This reverts commit 96a3502
This commit is contained in:
Liamsi
2018-06-20 17:35:30 -07:00
parent 587505d4d2
commit d2c05bc5b9
533 changed files with 69873 additions and 162 deletions

35
node/id.go Normal file
View File

@ -0,0 +1,35 @@
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
}