About
This project is a TypeScript/JavaScript Ledger signer for Cosmos chains, built on top of Ledger’s Device Management Kit (DMK) instead of the older hw-app-cosmos API. It implements the low-level APDU flows defined in the Cosmos app spec (GET_ADDR / GET_PUBLIC_KEY / SIGN) and exposes them as clean, high-level commands and device actions that wallets or dApps can plug into.
Concretely, it handles derivation paths (e.g. m/44'/118'/0'/0/0), HRP/bech32 prefixes (like cosmos, noble, etc.), and builds the exact binary payloads the Ledger app expects: HRP length + HRP + 5-element BIP44 path in little-endian. It then parses responses into usable structures (compressed secp256k1 pubkey, bech32 address), without relying on legacy Ledger Live helpers.
For signing, the project targets Amino JSON (StdSignDoc) rather than protobuf SignDoc, matching the Ledger Cosmos TX spec. It takes a StdSignDoc, serializes it into canonical JSON (sorted keys, no spaces), splits it into APDU-sized chunks, and drives the multi-step signing flow using INS_SIGN with the correct P1 phases (init / add / last). The resulting signature is received as a DER-encoded ECDSA signature from the device, ready to be embedded into Amino or protobuf transactions. Overall, it’s a modern, DMK-based Cosmos Ledger signer that mirrors the robustness of the Ethereum/Solana integrations but tailored to the Cosmos app’s simpler, JSON-driven model.
PART 2
The second part of this project is about integrating Ledger’s Device Management Kit (DMK) directly into the Ethereum tooling ecosystem via viem and wagmi, so a Ledger device can be used as a first-class signer in modern dapps. Concretely, it introduces a small functional “connector layer” that takes DMK’s device-action pattern (observables, sessions, context modules) and exposes it as a clean toAccount / WalletClient compatible signer. Under the hood, it handles: discovering and connecting to a Ledger device, opening a DMK session, building a DefaultSignerEth, and then wrapping DMK’s signTransaction, signMessage, and signTypedData flows into Promise-based methods that return the exact formats viem expects (65-byte signatures for messages/typed data, { r, s, yParity } for transactions). The goal is to let apps plug a Ledger signer into viem/wagmi with minimal boilerplate, while still benefiting from DMK’s richer device state machine and context features, without automatically broadcasting anything to the chain.
Prizes
- Ledger · [L] HARDWARE INTEGRATIONS · 2nd place
From the public ETHGlobal showcase page. Votes, swipes and the judge score are hackfeed's own.






