From d77151cff62f3e5f460ec98dd3b917ddfe31534a Mon Sep 17 00:00:00 2001 From: Guillaume Ballet Date: Fri, 29 Nov 2019 11:42:53 +0100 Subject: [PATCH] accounts/scwallet: fix staticcheck warnings (#20370) --- accounts/scwallet/wallet.go | 3 +++ 1 file changed, 3 insertions(+) diff --git a/accounts/scwallet/wallet.go b/accounts/scwallet/wallet.go index 8c1c4b832..78697aed4 100644 --- a/accounts/scwallet/wallet.go +++ b/accounts/scwallet/wallet.go @@ -880,6 +880,7 @@ func (s *Session) walletStatus() (*walletStatus, error) { } // derivationPath fetches the wallet's current derivation path from the card. +//lint:ignore U1000 needs to be added to the console interface func (s *Session) derivationPath() (accounts.DerivationPath, error) { response, err := s.Channel.transmitEncrypted(claSCWallet, insStatus, statusP1Path, 0, nil) if err != nil { @@ -996,12 +997,14 @@ func (s *Session) derive(path accounts.DerivationPath) (accounts.Account, error) } // keyExport contains information on an exported keypair. +//lint:ignore U1000 needs to be added to the console interface type keyExport struct { PublicKey []byte `asn1:"tag:0"` PrivateKey []byte `asn1:"tag:1,optional"` } // publicKey returns the public key for the current derivation path. +//lint:ignore U1000 needs to be added to the console interface func (s *Session) publicKey() ([]byte, error) { response, err := s.Channel.transmitEncrypted(claSCWallet, insExportKey, exportP1Any, exportP2Pubkey, nil) if err != nil {