Commit 7574c0e
fix: use full contractId as SIP-018 domain name
The Clarity contract derives its domain hash using `current-contract`
which serializes as the full principal ("SP....contract-name"). The
previous `deriveSip018Domain` extracted only the contract-name segment,
producing a domain that would fail on-chain secp256k1 signature
verification in force-close disputes and cooperative closes.
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>1 parent 9ecc60e commit 7574c0e
1 file changed
+7
-5
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
163 | 163 | | |
164 | 164 | | |
165 | 165 | | |
166 | | - | |
167 | | - | |
168 | | - | |
169 | | - | |
| 166 | + | |
| 167 | + | |
| 168 | + | |
| 169 | + | |
| 170 | + | |
| 171 | + | |
170 | 172 | | |
171 | 173 | | |
172 | 174 | | |
173 | 175 | | |
174 | | - | |
| 176 | + | |
175 | 177 | | |
176 | 178 | | |
177 | 179 | | |
| |||
0 commit comments