Commit 997aade
fix: p2pkh_lock accepts 20-byte hash regardless of string encoding (#389)
Callers passing `"\x00" * 20` (UTF-8 encoding) were routed to the
Base58Check decode path, which failed on null bytes. A 20-byte string
can never be a valid Base58Check address (minimum ~34 chars), so
bytesize alone is sufficient to disambiguate.
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>1 parent 74c3d11 commit 997aade
1 file changed
+5
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
171 | 171 | | |
172 | 172 | | |
173 | 173 | | |
174 | | - | |
175 | | - | |
| 174 | + | |
| 175 | + | |
| 176 | + | |
| 177 | + | |
| 178 | + | |
176 | 179 | | |
177 | 180 | | |
178 | 181 | | |
| |||
0 commit comments