ValarDragon f903947ff3 crypto: Remove interface from crypto.Signature
Signatures are now []byte, which saves on the number of bytes after
amino encoding

(squash this) address Ismail's comment
2018-08-05 15:46:57 -04:00

36 lines
477 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 []byte
}
func (pnid *PrivNodeID) SignGreeting() *SignedNodeGreeting {
//greeting := NodeGreeting{}
return nil
}