From 637ce46f35e992d795b2ae473a246f70fc560591 Mon Sep 17 00:00:00 2001 From: Warren He Date: Thu, 10 Oct 2024 17:29:15 -0700 Subject: [PATCH] ts-web/signer-ledger: update derivation path reference --- client-sdk/ts-web/signer-ledger/src/index.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/client-sdk/ts-web/signer-ledger/src/index.ts b/client-sdk/ts-web/signer-ledger/src/index.ts index 5a8cc84d31..5c5cce9718 100644 --- a/client-sdk/ts-web/signer-ledger/src/index.ts +++ b/client-sdk/ts-web/signer-ledger/src/index.ts @@ -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));