UNPKG

@ledgerhq/domain-service

Version:
16 lines 631 B
/** * Helper designed to parse the APDU crafted by the Ledger backend to clear sign domains. * The APDU is encoded with a TLV scheme: https://en.wikipedia.org/wiki/Type%E2%80%93length%E2%80%93value * This is not used in our implementation per say, use this purely as a debug tool. */ type TLV_TYPES = "STRUCTURE_TYPE" | "VERSION" | "CHALLENGE" | "SIGNER_KEY_ID" | "SIGNER_ALGO" | "TRUSTED_NAME" | "COIN_TYPE" | "ADDRESS" | "SIGNATURE"; /** * Parser logic */ export declare const tlvParser: (apdu: string) => { T: TLV_TYPES; L: string; V: string | number | null; }[]; export {}; //# sourceMappingURL=index.d.ts.map