]> git.codecow.com Git - libnemo.git/commitdiff
Expand on Ledger nonce signing documentation.
authorChris Duncan <chris@codecow.com>
Tue, 12 May 2026 21:08:39 +0000 (14:08 -0700)
committerChris Duncan <chris@codecow.com>
Tue, 12 May 2026 21:08:39 +0000 (14:08 -0700)
src/lib/wallet/index.ts

index 122cf4f718ed967d2a7af3c99c60704e606e62a9..aeb8a43355c9e00bdb7d010e605263a5bd3cec6c 100644 (file)
@@ -336,8 +336,11 @@ export class Wallet {
        * accordingly. The wallet must be unlocked prior to signing.\r
        *\r
        * Special note: This method can be used to sign a 16-byte nonce with a Ledger\r
-       * device. The actual message signed is a string which can be expressed as the\r
-       * following template literal:\r
+       * device. The nonce must be a string that encodes to 16 bytes using UTF-8. For\r
+       * this reason, although any Unicode characters can be used, it is recommended\r
+       * to only pass printable ASCII which encodes to one byte per character. The\r
+       * actual message signed is a string which can be expressed as the following\r
+       * template literal:\r
        *\r
        * `Nano Signed Nonce:\n${nonceBytes}`\r
        *\r