Skip to content

Commit

Permalink
remove unused
Browse files Browse the repository at this point in the history
  • Loading branch information
NeverHappened committed Dec 18, 2024
1 parent e1da73f commit a6d799c
Showing 1 changed file with 0 additions and 18 deletions.
18 changes: 0 additions & 18 deletions x/crypto/keyring/options.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,14 +3,9 @@ package keyring
import (
cosmoshd "github.com/cosmos/cosmos-sdk/crypto/hd"
"github.com/cosmos/cosmos-sdk/crypto/keyring"
"github.com/cosmos/cosmos-sdk/crypto/types"
"github.com/neutron-org/neutron/v5/x/crypto/ethsecp256k1"
"github.com/neutron-org/neutron/v5/x/crypto/hd"
)

// AppName defines the Ledger app used for signing. Evmos uses the Ethereum app
const AppName = "Ethereum"

var (
// SupportedAlgorithms defines the list of signing algorithms used: // TODO: check this
// - eth_secp256k1 (Ethereum)
Expand All @@ -30,16 +25,3 @@ func Option() keyring.Option {
options.SupportedAlgosLedger = SupportedAlgorithmsLedger
}
}

// TODO: why unused?
// EthSecp256k1Option defines a function keys options for the ethereum Secp256k1 curve.
// It supports eth_secp256k1 keys for accounts.
func EthSecp256k1Option() keyring.Option {
return func(options *keyring.Options) {
options.SupportedAlgos = SupportedAlgorithms
options.SupportedAlgosLedger = SupportedAlgorithmsLedger
options.LedgerCreateKey = func(key []byte) types.PubKey { return &ethsecp256k1.PubKey{Key: key} }
options.LedgerAppName = "Ethereum"
options.LedgerSigSkipDERConv = true
}
}

0 comments on commit a6d799c

Please sign in to comment.