Commit 31e3b76
fix(sdk-lib-mpc): replace date:null with 24h tolerance window in OpenPGP calls
Replace `date: null as unknown as undefined` with a 24-hour tolerance
window in all OpenPGP encrypt/decrypt/verify calls. The null date was
intentionally added (HSM-706) for OVC cold-signing flows where
air-gapped devices can have significant clock drift, but fully disabling
date checks is unnecessary — the DKLS protocol has its own replay
protection via session-bound commitments and round-specific validation.
A 24-hour window preserves OVC compatibility while re-enabling key
expiry checks as a defense-in-depth measure.
Ticket: WAL-379
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>1 parent 811c442 commit 31e3b76
File tree
2 files changed
+59
-5
lines changed- modules/sdk-lib-mpc
- src/tss/ecdsa-dkls
- test/unit/tss/ecdsa
2 files changed
+59
-5
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | 3 | | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
4 | 24 | | |
5 | 25 | | |
6 | 26 | | |
| |||
49 | 69 | | |
50 | 70 | | |
51 | 71 | | |
52 | | - | |
| 72 | + | |
53 | 73 | | |
54 | 74 | | |
55 | 75 | | |
| |||
90 | 110 | | |
91 | 111 | | |
92 | 112 | | |
93 | | - | |
| 113 | + | |
94 | 114 | | |
95 | 115 | | |
96 | 116 | | |
97 | 117 | | |
98 | 118 | | |
99 | | - | |
| 119 | + | |
100 | 120 | | |
101 | 121 | | |
102 | 122 | | |
| |||
113 | 133 | | |
114 | 134 | | |
115 | 135 | | |
116 | | - | |
| 136 | + | |
117 | 137 | | |
118 | 138 | | |
119 | 139 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | | - | |
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
2 | 6 | | |
3 | 7 | | |
4 | 8 | | |
| |||
94 | 98 | | |
95 | 99 | | |
96 | 100 | | |
| 101 | + | |
| 102 | + | |
| 103 | + | |
| 104 | + | |
| 105 | + | |
| 106 | + | |
| 107 | + | |
| 108 | + | |
| 109 | + | |
| 110 | + | |
| 111 | + | |
| 112 | + | |
| 113 | + | |
| 114 | + | |
| 115 | + | |
| 116 | + | |
| 117 | + | |
| 118 | + | |
| 119 | + | |
| 120 | + | |
| 121 | + | |
| 122 | + | |
| 123 | + | |
| 124 | + | |
| 125 | + | |
| 126 | + | |
| 127 | + | |
| 128 | + | |
| 129 | + | |
| 130 | + | |
97 | 131 | | |
0 commit comments