From 67acfa5d20ae1d7a351166e0c89777405690dbac Mon Sep 17 00:00:00 2001 From: Work Date: Tue, 5 Aug 2025 15:24:35 -0700 Subject: [PATCH 1/2] 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. --- packages/hardware-ledger/src/LedgerKeyAgent.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/hardware-ledger/src/LedgerKeyAgent.ts b/packages/hardware-ledger/src/LedgerKeyAgent.ts index 125b6c2bf51..3678ab781aa 100644 --- a/packages/hardware-ledger/src/LedgerKeyAgent.ts +++ b/packages/hardware-ledger/src/LedgerKeyAgent.ts @@ -67,7 +67,7 @@ const LedgerConnection = (_LedgerConnection as any).default : _LedgerConnection; type LedgerConnection = _LedgerConnection; -const CIP08_SIGN_HASH_THRESHOLD = 100; +const CIP08_SIGN_HASH_THRESHOLD = 190; const isUsbDevice = (device: any): device is USBDevice => typeof USBDevice !== 'undefined' && device instanceof USBDevice; From be562116349ddc57541bfa12082289e166e6b0e7 Mon Sep 17 00:00:00 2001 From: Work Date: Tue, 5 Aug 2025 15:46:02 -0700 Subject: [PATCH 2/2] chore: upgrade Ubuntu base image from 20.04 to 22.04 This updates the Docker base image to use Ubuntu 22.04 LTS instead of 20.04, providing newer system packages and extended support. --- Dockerfile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Dockerfile b/Dockerfile index 581597ba7ac..a417006072e 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,4 +1,4 @@ -ARG UBUNTU_VERSION=20.04 +ARG UBUNTU_VERSION=22.04 FROM ubuntu:${UBUNTU_VERSION} AS ubuntu-nodejs ARG NODEJS_MAJOR_VERSION=18