From: Chris Duncan Date: Fri, 1 May 2026 06:02:14 +0000 (-0700) Subject: Expand on documentation of Ledger nonce signing. X-Git-Url: https://git.codecow.com/?a=commitdiff_plain;h=e4352a058443d2076e2053499973153df7a1d636;p=libnemo.git Expand on documentation of Ledger nonce signing. --- diff --git a/src/lib/ledger.ts b/src/lib/ledger.ts index e0f5003..2e51d7c 100644 --- a/src/lib/ledger.ts +++ b/src/lib/ledger.ts @@ -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}` *