mirror of
https://github.com/fluencelabs/tendermint
synced 2025-06-12 12:51:22 +00:00
Bare consensus refactor
This commit is contained in:
@ -1,18 +1,18 @@
|
||||
package node
|
||||
|
||||
import (
|
||||
acm "github.com/tendermint/tendermint/account"
|
||||
"github.com/tendermint/go-crypto"
|
||||
"time"
|
||||
)
|
||||
|
||||
type NodeID struct {
|
||||
Name string
|
||||
PubKey acm.PubKey
|
||||
PubKey crypto.PubKey
|
||||
}
|
||||
|
||||
type PrivNodeID struct {
|
||||
NodeID
|
||||
PrivKey acm.PrivKey
|
||||
PrivKey crypto.PrivKey
|
||||
}
|
||||
|
||||
type NodeGreeting struct {
|
||||
@ -25,7 +25,7 @@ type NodeGreeting struct {
|
||||
|
||||
type SignedNodeGreeting struct {
|
||||
NodeGreeting
|
||||
Signature acm.Signature
|
||||
Signature crypto.Signature
|
||||
}
|
||||
|
||||
func (pnid *PrivNodeID) SignGreeting() *SignedNodeGreeting {
|
||||
|
Reference in New Issue
Block a user