UNPKG

@radixdlt/hardware-ledger

Version:
37 lines 1.38 kB
/// <reference types="node" /> import { HDPathRadixT, PublicKeyT } from '@radixdlt/crypto'; import { RadixAPDUT } from './_types'; declare type WithPath = Readonly<{ path: HDPathRadixT; }>; declare type APDUGetPublicKeyInput = WithPath & Readonly<{ display?: boolean; verifyAddressOnly?: boolean; }>; declare type APDUDoSignHashInput = WithPath & Readonly<{ hashToSign: Buffer; }>; declare type APDUDoSignTxInitialPackage = WithPath & Readonly<{ txByteCount: number; nonNativeTokenRriHRP?: string; numberOfInstructions: number; }>; declare type APDUDoSignTxSingleInstructionPackage = Readonly<{ instructionBytes: Buffer; isLastInstruction: boolean; displayInstructionContentsOnLedgerDevice: boolean; displayTXSummaryOnLedgerDevice: boolean; }>; export declare const RadixAPDU: { getAppName: () => RadixAPDUT; getVersion: () => RadixAPDUT; getPublicKey: (input: APDUGetPublicKeyInput) => RadixAPDUT; doKeyExchange: (path: HDPathRadixT, publicKeyOfOtherParty: PublicKeyT, display?: "encrypt" | "decrypt" | undefined) => RadixAPDUT; doSignHash: (input: APDUDoSignHashInput) => RadixAPDUT; signTX: { initialSetup: (input: APDUDoSignTxInitialPackage) => RadixAPDUT; singleInstruction: (input: APDUDoSignTxSingleInstructionPackage) => RadixAPDUT; }; }; export {}; //# sourceMappingURL=apdu.d.ts.map