Skip to content

Commit

Permalink
remove unused codes
Browse files Browse the repository at this point in the history
  • Loading branch information
beer-1 committed Jun 25, 2024
1 parent 88d26c0 commit f321367
Showing 1 changed file with 0 additions and 20 deletions.
20 changes: 0 additions & 20 deletions crypto/hd/algorithm.go
Original file line number Diff line number Diff line change
Expand Up @@ -16,26 +16,6 @@ const (
EthSecp256k1Type = hd.PubKeyType(ethsecp256k1.KeyType)
)

var (
// SupportedAlgorithms defines the list of signing algorithms used on Evmos:
// - eth_secp256k1 (Ethereum)
// - secp256k1 (Tendermint)
SupportedAlgorithms = keyring.SigningAlgoList{EthSecp256k1, hd.Secp256k1}
// SupportedAlgorithmsLedger defines the list of signing algorithms used on Evmos for the Ledger device:
// - eth_secp256k1 (Ethereum)
// - secp256k1 (Tendermint)
SupportedAlgorithmsLedger = keyring.SigningAlgoList{EthSecp256k1, hd.Secp256k1}
)

// EthSecp256k1Option defines a function keys options for the ethereum Secp256k1 curve.
// It supports eth_secp256k1 and secp256k1 keys for accounts.
func EthSecp256k1Option() keyring.Option {
return func(options *keyring.Options) {
options.SupportedAlgos = SupportedAlgorithms
options.SupportedAlgosLedger = SupportedAlgorithmsLedger
}
}

var (
_ keyring.SignatureAlgo = EthSecp256k1

Expand Down

0 comments on commit f321367

Please sign in to comment.