Skip to content

Commit

Permalink
feat: begin hooking up shielded keys import
Browse files Browse the repository at this point in the history
  • Loading branch information
jurevans committed Jan 6, 2025
1 parent aaf4a25 commit 6430110
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion apps/extension/src/Setup/Ledger/LedgerConnect.tsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,10 @@
import { chains } from "@namada/chains";
import { ActionButton, Alert, Image, Stack } from "@namada/components";
import { Ledger as LedgerApp, makeBip44Path } from "@namada/sdk/web";
import {
Ledger as LedgerApp,
makeBip44Path,
makeSaplingPath,
} from "@namada/sdk/web";
import { Bip44Path } from "@namada/types";
import { LedgerError } from "@zondax/ledger-namada";
import { LedgerStep } from "Setup/Common";
Expand Down Expand Up @@ -36,6 +40,10 @@ export const LedgerConnect: React.FC<Props> = ({ path, setPath }) => {
const { address, publicKey } = await ledger.showAddressAndPublicKey(
makeBip44Path(chains.namada.bip44.coinType, path)
);
const { viewingKey, proofGenerationKey } = await ledger.getShieldedKeys(
makeSaplingPath(chains.namada.bip44.coinType, path)
);
console.log("TODO", { viewingKey, proofGenerationKey });
setIsLedgerConnecting(false);
navigate(routes.ledgerImport(), {
state: {
Expand Down

0 comments on commit 6430110

Please sign in to comment.