Skip to content

Commit

Permalink
ts-web/signer-ledger: update derivation path reference
Browse files Browse the repository at this point in the history
  • Loading branch information
pro-wh committed Oct 11, 2024
1 parent 5d17e1d commit 637ce46
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion client-sdk/ts-web/signer-ledger/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,8 @@ export class LedgerContextSigner implements oasis.signature.ContextSigner {

static async fromTransport(transport: Transport, keyNumber: number) {
const app = new OasisApp(transport);
// Specification forthcoming. See https://github.com/oasisprotocol/oasis-core/pull/3656.
// Ledger clients use the "legacy" derivation path by default.
// https://github.com/oasisprotocol/cli/blob/v0.1.0/wallet/ledger/common.go#L15
const path = [44, 474, 0, 0, keyNumber];
const publicKeyResponse = successOrThrow(await app.publicKey(path), 'ledger public key');
return new LedgerContextSigner(app, path, u8FromBuf(publicKeyResponse.pk as Buffer));
Expand Down

0 comments on commit 637ce46

Please sign in to comment.