Skip to content
This repository has been archived by the owner on Aug 2, 2021. It is now read-only.

Commit

Permalink
pss: cryptoBackend -> crypto
Browse files Browse the repository at this point in the history
  • Loading branch information
kortatu committed Aug 29, 2019
1 parent 49a3b06 commit 8fcc65a
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions pss/notify/notify_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -22,10 +22,10 @@ import (
)

var (
loglevel = flag.Int("loglevel", 3, "logging verbosity")
psses map[string]*pss.Pss
cryptoUtils pss.CryptoUtils
cryptoBackend pss.CryptoBackend
loglevel = flag.Int("loglevel", 3, "logging verbosity")
psses map[string]*pss.Pss
cryptoUtils pss.CryptoUtils
crypto pss.CryptoBackend
)

func init() {
Expand All @@ -36,7 +36,7 @@ func init() {
log.Root().SetHandler(h)

cryptoUtils = pss.NewCryptoUtils()
cryptoBackend = pss.NewCryptoBackend()
crypto = pss.NewCryptoBackend()
psses = make(map[string]*pss.Pss)
}

Expand Down Expand Up @@ -137,7 +137,7 @@ func TestStart(t *testing.T) {
if err != nil {
t.Fatal(err)
}
pubkey, err := cryptoBackend.UnmarshalPubkey(pubkeybytes)
pubkey, err := crypto.UnmarshalPubkey(pubkeybytes)
if err != nil {
t.Fatal(err)
}
Expand Down Expand Up @@ -246,7 +246,7 @@ func newServices(allowRaw bool) adapters.Services {
return nil, err
}
//psses[common.ToHex(cryptoUtils.FromECDSAPub(&privkey.PublicKey))] = ps
psses[hexutil.Encode(cryptoBackend.FromECDSAPub(&privkey.PublicKey))] = ps
psses[hexutil.Encode(crypto.FromECDSAPub(&privkey.PublicKey))] = ps
return ps, nil
},
"bzz": func(ctx *adapters.ServiceContext) (node.Service, error) {
Expand Down

0 comments on commit 8fcc65a

Please sign in to comment.