Commit 412afb7
fix: trim leading zeros from inner sig r/s before hashing outer envelope
The server strips leading zeros from signature r/s components before
recomputing the multiSig action hash to verify the outer signer.
Submitting raw (untrimmed) signatures causes a hash mismatch, making
the outer sig recover to the wrong address → "Invalid multi-sig outer signer".
Fix mirrors nktkas/hyperliquid SDK's trimSignature() behavior.
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>1 parent 3938683 commit 412afb7
2 files changed
Lines changed: 22 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
256 | 256 | | |
257 | 257 | | |
258 | 258 | | |
| 259 | + | |
| 260 | + | |
259 | 261 | | |
260 | 262 | | |
261 | 263 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
16 | 16 | | |
17 | 17 | | |
18 | 18 | | |
| 19 | + | |
| 20 | + | |
19 | 21 | | |
20 | 22 | | |
21 | 23 | | |
| |||
24 | 26 | | |
25 | 27 | | |
26 | 28 | | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
27 | 42 | | |
28 | 43 | | |
29 | 44 | | |
| |||
167 | 182 | | |
168 | 183 | | |
169 | 184 | | |
| 185 | + | |
| 186 | + | |
| 187 | + | |
| 188 | + | |
170 | 189 | | |
171 | 190 | | |
172 | 191 | | |
173 | | - | |
| 192 | + | |
174 | 193 | | |
175 | 194 | | |
176 | 195 | | |
| |||
0 commit comments