13 Commits
Author SHA1 Message Date
zeekayandHanzo Dev 96922d6af8 Build on Go 1.27
Build, vet and tests are clean on the 1.27.1 toolchain.

Co-authored-by: Hanzo Dev <[email protected]>
2026-09-17 11:54:13 -07:00
zeekay 7c7f671c2f add native CI; refresh go.sum against the declared requirements
go.mod asked for ids v1.3.2 and crypto v1.20.2 while go.sum still carried
v1.2.9 and v1.19.0, so the module did not build. Retidied the root and the
nested bit/ and safe/ modules; bit/ was additionally missing the luxfi/geth
requirement that its compress test imports.

The CI test command covers all four modules — go test ./... stops at a nested
module boundary and would otherwise skip bit/, big/ and safe/ entirely.
2026-08-21 00:11:23 -07:00
zeekay c50f6086c6 chore: sync working tree
Commits 2 outstanding change(s) that were sitting uncommitted.
No build artifacts and no secrets in the changeset (both checked).
2026-07-26 10:14:04 -07:00
zeekay d7e4bee290 go: 1.26.3 → 1.26.4 (security: crypto/x509, mime, net/textproto) 2026-06-06 22:06:12 -07:00
zeekay 947d783122 go.mod: bump go directive to 1.26.3 (security advisory) 2026-05-12 20:55:00 -07:00
zeekay d99b646920 chore: sync local changes 2026-03-26 22:47:13 -07:00
zeekay d5fafe12e3 chore: bump Go 1.26.0 → 1.26.1
Fixes 5 stdlib CVEs (html/template, os, net/url, crypto/x509 x2).
2026-03-12 01:09:17 -07:00
zeekay 11962a0791 chore: update Go module dependencies 2026-03-03 22:39:12 -08:00
zeekay 573df46084 chore: sync dependencies and format code 2026-02-04 15:43:42 -08:00
zeekay 8165bc28b2 chore: remove local replace directives 2026-01-08 23:44:14 -08:00
zeekay 588df268c4 chore: update go.mod/sum 2026-01-04 19:29:50 -08:00
zeekay c1c86cad08 safe: add DEX math functions for DRY consolidation
Added functions from node/vms/dexvm/math:
- Div64: safe division with error on zero
- MulBig: multiply uint64s returning big.Int
- MulDiv64: (a * b) / c without overflow
- MulDivRoundUp64: ceiling division variant
- BigMulDiv: big.Int multiplication+division
- BigMulDivRoundUp: big.Int ceiling variant
- Clamp: generic ordered type clamping

Also added common big.Int values (bigZero, bigOne, maxUint64Big)
for performance in division operations.
2026-01-03 18:53:26 -08:00
zeekay 0060c0251e Reorganize math package into subpackages
- Create math/big for big.Int utilities (HexOrDecimal256, U256, parsing)
- Create math/safe for overflow-safe arithmetic (SafeAdd, SafeMul, etc.)
- Move averager files to root package level
- Add re-exports in root package for backwards compatibility
- Update README with new package structure documentation
- Remove old math/meter directory (consolidated elsewhere)
- Remove redundant math/ subdirectory structure
2026-01-03 18:22:33 -08:00