wallet: Move key.go into separate pkg to avoid import loops

This commit is contained in:
Łukasz Magiera
2022-06-14 19:21:40 +02:00
parent d48b629b46
commit 6afb43afbb
19 changed files with 61 additions and 59 deletions
+2 -2
View File
@@ -11,7 +11,7 @@ import (
"github.com/filecoin-project/go-state-types/crypto"
"github.com/filecoin-project/lotus/chain/types"
"github.com/filecoin-project/lotus/chain/wallet"
"github.com/filecoin-project/lotus/chain/wallet/key"
"github.com/filecoin-project/lotus/lib/sigs"
_ "github.com/filecoin-project/lotus/lib/sigs/bls"
)
@@ -24,7 +24,7 @@ func TestRoundtrip(t *testing.T) {
Type: types.KTBLS,
PrivateKey: pk,
}
k, err := wallet.NewKey(ki)
k, err := key.NewKey(ki)
require.NoError(t, err)
p := []byte("potato")