From 356137439f2cd0bcca2d11d8ab616d97b6eae064 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C5=81ukasz=20Magiera?= Date: Fri, 9 Oct 2020 03:00:30 +0200 Subject: [PATCH] apistruct: Drop unused WalletSignMessage --- api/apistruct/struct.go | 19 +++++++------------ cmd/lotus-wallet/logged.go | 1 + 2 files changed, 8 insertions(+), 12 deletions(-) diff --git a/api/apistruct/struct.go b/api/apistruct/struct.go index d8c2c8094..0265701d6 100644 --- a/api/apistruct/struct.go +++ b/api/apistruct/struct.go @@ -363,14 +363,13 @@ type WorkerStruct struct { type WalletStruct struct { Internal struct { - WalletNew func(context.Context, crypto.SigType) (address.Address, error) `perm:"write"` - WalletHas func(context.Context, address.Address) (bool, error) `perm:"write"` - WalletList func(context.Context) ([]address.Address, error) `perm:"write"` - WalletSign func(context.Context, address.Address, []byte, api.MsgMeta) (*crypto.Signature, error) `perm:"sign"` - WalletSignMessage func(context.Context, address.Address, *types.Message) (*types.SignedMessage, error) `perm:"sign"` - WalletExport func(context.Context, address.Address) (*types.KeyInfo, error) `perm:"admin"` - WalletImport func(context.Context, *types.KeyInfo) (address.Address, error) `perm:"admin"` - WalletDelete func(context.Context, address.Address) error `perm:"write"` + WalletNew func(context.Context, crypto.SigType) (address.Address, error) `perm:"write"` + WalletHas func(context.Context, address.Address) (bool, error) `perm:"write"` + WalletList func(context.Context) ([]address.Address, error) `perm:"write"` + WalletSign func(context.Context, address.Address, []byte, api.MsgMeta) (*crypto.Signature, error) `perm:"sign"` + WalletExport func(context.Context, address.Address) (*types.KeyInfo, error) `perm:"admin"` + WalletImport func(context.Context, *types.KeyInfo) (address.Address, error) `perm:"admin"` + WalletDelete func(context.Context, address.Address) error `perm:"write"` } } @@ -1401,10 +1400,6 @@ func (c *WalletStruct) WalletSign(ctx context.Context, k address.Address, msg [] return c.Internal.WalletSign(ctx, k, msg, meta) } -func (c *WalletStruct) WalletSignMessage(ctx context.Context, k address.Address, msg *types.Message) (*types.SignedMessage, error) { - return c.Internal.WalletSignMessage(ctx, k, msg) -} - func (c *WalletStruct) WalletExport(ctx context.Context, a address.Address) (*types.KeyInfo, error) { return c.Internal.WalletExport(ctx, a) } diff --git a/cmd/lotus-wallet/logged.go b/cmd/lotus-wallet/logged.go index d3630c241..3bcb3f867 100644 --- a/cmd/lotus-wallet/logged.go +++ b/cmd/lotus-wallet/logged.go @@ -4,6 +4,7 @@ import ( "bytes" "context" "encoding/hex" + "github.com/ipfs/go-cid" "golang.org/x/xerrors"