From e4352a058443d2076e2053499973153df7a1d636 Mon Sep 17 00:00:00 2001 From: Chris Duncan Date: Thu, 30 Apr 2026 23:02:14 -0700 Subject: [PATCH] Expand on documentation of Ledger nonce signing. --- src/lib/ledger.ts | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) 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}` * -- 2.47.3