import (
"encoding/binary"
+ "encoding/hex"
"encoding/json"
"fmt"
"net"
"time"
log "github.com/sirupsen/logrus"
- "github.com/tendermint/go-crypto"
+ crypto "github.com/tendermint/go-crypto"
cmn "github.com/tendermint/tmlibs/common"
cfg "github.com/vapor/config"
blacklistDB := dbm.NewDB("trusthistory", config.DBBackend, config.DBDir())
- bytes := config.PrivateKey()[:]
+ _, yyy, _ := ed25519.GenerateKey(nil)
+ zzz := yyy.String()
+
+ bytes, err := hex.DecodeString(zzz)
+ if err != nil {
+ return nil, err
+ }
var newKey [64]byte
copy(newKey[:], bytes)
privKey := crypto.PrivKeyEd25519(newKey)