From 3669afaa41c343b5e55cf7bef99bd958cb8129ed Mon Sep 17 00:00:00 2001 From: Chris Duncan Date: Tue, 12 May 2026 14:08:39 -0700 Subject: [PATCH] Expand on Ledger nonce signing documentation. --- src/lib/wallet/index.ts | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) 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}` * -- 2.47.3