From: Chris Duncan Date: Tue, 12 May 2026 21:08:39 +0000 (-0700) Subject: Expand on Ledger nonce signing documentation. X-Git-Url: https://git.codecow.com/?a=commitdiff_plain;h=3669afaa41c343b5e55cf7bef99bd958cb8129ed;p=libnemo.git Expand on Ledger nonce signing documentation. --- diff --git a/src/lib/wallet/index.ts b/src/lib/wallet/index.ts index 122cf4f..aeb8a43 100644 --- a/src/lib/wallet/index.ts +++ b/src/lib/wallet/index.ts @@ -336,8 +336,11 @@ export class Wallet { * accordingly. The wallet must be unlocked prior to signing. * * Special note: This method can be used to sign a 16-byte nonce with a Ledger - * device. The actual message signed is a string which can be expressed as the - * following template literal: + * device. The nonce must be a string that encodes to 16 bytes using UTF-8. For + * this reason, although any Unicode characters can be used, it is recommended + * to only pass printable ASCII which encodes to one byte per character. The + * actual message signed is a string which can be expressed as the following + * template literal: * * `Nano Signed Nonce:\n${nonceBytes}` *