Skip to content

Commit 82233cf

Browse files
authored
Merge pull request #1645 from input-output-hk/refactor/align-cip8-hash-threshhold-with-upstream
refactor(hardware-ledger): set CIP8 threshold to align with upstream …
2 parents eef5259 + 105ef9b commit 82233cf

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

packages/hardware-ledger/src/LedgerKeyAgent.ts

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

70-
const CIP08_SIGN_HASH_THRESHOLD = 190;
70+
/* https://github.com/vacuumlabs/ledger-app-cardano-shelley/blob/f01201e0e7a2b3bb4ceace13044dc0c59d21797b/src/signMsg.h#L17 */
71+
const CIP08_SIGN_HASH_THRESHOLD = 198;
7172

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

0 commit comments

Comments
 (0)