From f38b630da1a373ff7c5020e082f1dd83d4341f44 Mon Sep 17 00:00:00 2001 From: vyzo Date: Fri, 11 Nov 2022 05:07:34 +0200 Subject: [PATCH] sigs: revert cosmetic change --- lib/sigs/secp/init.go | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/lib/sigs/secp/init.go b/lib/sigs/secp/init.go index 395e3a28f..05238fdcd 100644 --- a/lib/sigs/secp/init.go +++ b/lib/sigs/secp/init.go @@ -6,7 +6,7 @@ import ( "github.com/minio/blake2b-simd" "github.com/filecoin-project/go-address" - gocrypto "github.com/filecoin-project/go-crypto" + "github.com/filecoin-project/go-crypto" crypto2 "github.com/filecoin-project/go-state-types/crypto" "github.com/filecoin-project/lotus/lib/sigs" @@ -15,7 +15,7 @@ import ( type secpSigner struct{} func (secpSigner) GenPrivate() ([]byte, error) { - priv, err := gocrypto.GenerateKey() + priv, err := crypto.GenerateKey() if err != nil { return nil, err } @@ -23,12 +23,12 @@ func (secpSigner) GenPrivate() ([]byte, error) { } func (secpSigner) ToPublic(pk []byte) ([]byte, error) { - return gocrypto.PublicKey(pk), nil + return crypto.PublicKey(pk), nil } func (secpSigner) Sign(pk []byte, msg []byte) ([]byte, error) { b2sum := blake2b.Sum256(msg) - sig, err := gocrypto.Sign(pk, b2sum[:]) + sig, err := crypto.Sign(pk, b2sum[:]) if err != nil { return nil, err } @@ -38,7 +38,7 @@ func (secpSigner) Sign(pk []byte, msg []byte) ([]byte, error) { func (secpSigner) Verify(sig []byte, a address.Address, msg []byte) error { b2sum := blake2b.Sum256(msg) - pubk, err := gocrypto.EcRecover(b2sum[:], sig) + pubk, err := crypto.EcRecover(b2sum[:], sig) if err != nil { return err }