Skip to content

Commit

Permalink
ledger: Fix ed25519-adr8 switch
Browse files Browse the repository at this point in the history
  • Loading branch information
matevz committed Sep 12, 2023
1 parent 8ad9572 commit f16f285
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions wallet/ledger/signer.go
Original file line number Diff line number Diff line change
Expand Up @@ -53,8 +53,7 @@ func (ls *ledgerSigner) Public() (pk signature.PublicKey) {

func (ls *ledgerSigner) ContextSign(metadata signature.Context, message []byte) ([]byte, error) {
switch ls.algorithm {
case wallet.AlgorithmEd25519Adr8:
case wallet.AlgorithmEd25519Legacy:
case wallet.AlgorithmEd25519Adr8, wallet.AlgorithmEd25519Legacy:
return ls.dev.SignRtEd25519(ls.path, metadata, message)
case wallet.AlgorithmSecp256k1Bip44:
return ls.dev.SignRtSecp256k1(ls.path, metadata, message)
Expand Down

0 comments on commit f16f285

Please sign in to comment.