I'm using @solana/web3.js to send a message of the Transaction object to my Nano ledger X to sign. The Ledger then displays a message hash and asks me to approve or reject the transaction.
How do I use web3.js to generate the same message that is displayed on the Ledger?
Transaction.serializeMessage returns a Buffer object, but decoding .toString() using any of the encoding methods does not result in the message displayed on my Ledger.