]> git.codecow.com Git - libnemo.git/commitdiff
Expand on documentation of Ledger nonce signing.
authorChris Duncan <chris@zoso.dev>
Fri, 1 May 2026 06:02:14 +0000 (23:02 -0700)
committerChris Duncan <chris@zoso.dev>
Fri, 1 May 2026 06:02:14 +0000 (23:02 -0700)
src/lib/ledger.ts

index e0f50031c1bcdf77678a0502033920ab00c2a679..2e51d7c08e7e3c3223f783bcbc5e7ebd5e20f836 100644 (file)
@@ -231,8 +231,13 @@ export class Ledger {
        }
 
        /**
-       * Sign a 16-byte nonce with the Ledger device. The actual messaage signed is a
-       * string which can be expressed as the following template literal:
+       * Sign a nonce with the Ledger 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}`
        *