logicsrc/packages/ans
AliaksandrNazaruk 8107140228
Some checks failed
CI / build (push) Has been cancelled
test / test (push) Has been cancelled
fix(ans): reject non-hex input in fromHex instead of silently decoding to 0 (#91)
fromHex validated only that the string was even-length, then used
parseInt(pair, 16) per byte. parseInt returns NaN for a non-hex pair, and a
Uint8Array stores NaN as 0 — so fromHex('zzzz') silently returned [0, 0]
instead of failing. Add a hex-charset check (allowing empty input) so bad
input throws. Add bytes.test.ts covering valid decode, round-trip, odd-length
and non-hex cases.
2026-07-02 16:37:39 -07:00
..
src fix(ans): reject non-hex input in fromHex instead of silently decoding to 0 (#91) 2026-07-02 16:37:39 -07:00
package.json feat(ans): implement @logicsrc/ans M1 — resolver + offline verifier 2026-06-24 14:48:24 +00:00
tsconfig.json feat(ans): implement @logicsrc/ans M1 — resolver + offline verifier 2026-06-24 14:48:24 +00:00