github.com/fibonacci-chain/fbc@v0.0.0-20231124064014-c7636198c1e9/libs/cosmos-sdk/crypto/ledger_notavail.go (about)

     1  //go:build !cgo || !ledger
     2  // +build !cgo !ledger
     3  
     4  // test_ledger_mock
     5  
     6  package crypto
     7  
     8  import (
     9  	"github.com/pkg/errors"
    10  )
    11  
    12  // If ledger support (build tag) has been enabled, which implies a CGO dependency,
    13  // set the discoverLedger function which is responsible for loading the Ledger
    14  // device at runtime or returning an error.
    15  func init() {
    16  	discoverLedger = func() (LedgerSECP256K1, error) {
    17  		return nil, errors.New("support for ledger devices is not available in this executable")
    18  	}
    19  }