Skip to content

Commit

Permalink
fix(wallet): fix ledger tx signing with acc index greater than #0
Browse files Browse the repository at this point in the history
  • Loading branch information
tomislavhoracek committed May 24, 2022
1 parent 3961d0c commit c7286e5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/wallet/src/KeyManagement/LedgerKeyAgent.ts
Expand Up @@ -12,7 +12,7 @@ import {
import { KeyAgentBase } from './KeyAgentBase';
import { TxInternals } from '../Transaction';
import { txToLedger } from './util';
import LedgerConnection, { GetVersionResponse, HARDENED, utils } from '@cardano-foundation/ledgerjs-hw-app-cardano';
import LedgerConnection, { GetVersionResponse, utils } from '@cardano-foundation/ledgerjs-hw-app-cardano';
import TransportNodeHid from '@ledgerhq/hw-transport-node-hid-noevents';
import TransportWebHID from '@ledgerhq/hw-transport-webhid';
import type LedgerTransport from '@ledgerhq/hw-transport';
Expand Down Expand Up @@ -243,7 +243,7 @@ export class LedgerKeyAgent extends KeyAgentBase {
await Promise.all(
result.witnesses.map(async (witness) => {
const publicKey = await this.derivePublicKey({
index: HARDENED - witness.path[2],
index: witness.path[4],
role: witness.path[3]
});
const signature = Cardano.Ed25519Signature(witness.witnessSignatureHex);
Expand Down

0 comments on commit c7286e5

Please sign in to comment.