Skip to content

Commit 67acfa5

Browse files
committed
refactor: relax CIP-8 signing threshold from 100 to 190
This change increases the threshold for when payloads are hashed during CIP-8 signing from 100 to 190 bytes. This allows larger payloads to be signed directly without hashing, which can be useful for certain use cases where the full payload needs to be preserved.
1 parent aca694c commit 67acfa5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/hardware-ledger/src/LedgerKeyAgent.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ const LedgerConnection = (_LedgerConnection as any).default
6767
: _LedgerConnection;
6868
type LedgerConnection = _LedgerConnection;
6969

70-
const CIP08_SIGN_HASH_THRESHOLD = 100;
70+
const CIP08_SIGN_HASH_THRESHOLD = 190;
7171

7272
const isUsbDevice = (device: any): device is USBDevice =>
7373
typeof USBDevice !== 'undefined' && device instanceof USBDevice;

0 commit comments

Comments
 (0)