Skip to main content
Hardware wallets such as Ledger and Trezor usually sign Solana transactions but not arbitrary messages. That one gap decides how they fit.

With createCloak: open the account another way

Pass the hardware wallet together with a way to open the account. The wallet is then used for shields only.
You can also pass the hardware wallet together with a second wallet that signs messages (wallets: [phantom, ledger]): the second one opens the account. Passing only a hardware wallet throws account.no_signer. A Ledger behind a legacy wallet adapter receives a web3.js VersionedTransaction. In a bundled app pass the class in: createCloak({ ..., web3: { VersionedTransaction } }).

With the low-level API

Pass signer and leave signMessage out. Every submitted request is then authenticated by asking the wallet to sign a deterministic legacy transaction: a 0-lamport transfer to itself whose blockhash field carries the request digest. It can never land on chain and is never sent.
Tell the user what they are approving. The device shows a 0 SOL transfer to the user’s own address. Explain before the prompt that it is an authentication, not a payment, or users will reject it.
Give a hardware wallet signer or signMessage, never both: when both are present the SDK uses signMessage, which a Ledger cannot do. A request stays valid for 300 seconds and its clock starts before the device prompt, so a slow confirmation on the device can expire it. See Request authentication.

Wallets that change what they sign

Some wallets add compute-budget or guard instructions to the authentication transaction before the device signs it. The SDK accepts those additions only for the ComputeBudget and Lighthouse programs, and verifies the signature over the changed message before sending it on.