Skip to content

Commit 637ce46

Browse files
committed
ts-web/signer-ledger: update derivation path reference
1 parent 5d17e1d commit 637ce46

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

  • client-sdk/ts-web/signer-ledger/src

client-sdk/ts-web/signer-ledger/src/index.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,8 @@ export class LedgerContextSigner implements oasis.signature.ContextSigner {
6161

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

0 commit comments

Comments
 (0)