wallet: Move key.go into separate pkg to avoid import loops
This commit is contained in:
@@ -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")
|
||||
|
||||
Reference in New Issue
Block a user