12 Commits
Author SHA1 Message Date
zeekayandHanzo Dev 748ea99f91 go 1.26.8
One toolchain across the estate. The tree carried 1.26.0, .1, .3, .4 and .5
at once, so which compiler built a binary depended on which repo it came
from.

Co-authored-by: Hanzo Dev <[email protected]>
2026-09-09 00:00:05 -07:00
zeekay 9ae0bb824e Pin past the versions the proxy can no longer serve
The bulk retag moved published tags. go.sum and sum.golang.org hold the
original bytes, proxy.golang.org answers not-found, and the direct fetch
disagrees, so builds stopped at a checksum before reaching a compiler.
Pin forward to versions the proxy still serves.
2026-09-01 11:10:20 -07:00
zeekay 7f15be16d9 e2e: point the suite at this repo, and make its three broken scenarios real
e2e/go.mod required github.com/luxfi/precompile v0.5.27 with no replace, so the
suite compiled against a published artifact 33 patch releases behind the tree it
lives in. e2e/clob already had `replace => ../..`; the parent module never did.
The consequence was not that the tests were weak, it was that they could not
observe this repo at all — seven of them had been failing against real code and
nothing could report it. Adding the replace also removes the checksum failure
they hit on the way in: the v0.5.27 tag was force-moved after publication, so
github now serves bytes that do not match what sum.golang.org attests, and the
suite could not resolve its own parent.

With the replace in place, the seven pre-existing failures are visible, and all
seven were the tests being wrong:

  StableSwap x4 — the calldata was written by hand at each of four call sites
  with a one-byte token count and the amplification factor last. getD and getDy
  read a four-byte count and take the amplification before the balances. The
  layout now lives in encodeGetD/encodeGetDy and nowhere else, which is what
  stops it drifting again.

  CGGMP21 — threshold ECDSA on secp256k1, handed a P-256 key. The precompile
  refused it correctly. Now generates a real secp256k1 key and signature.

  FROST — verifies secp256k1 x-only Schnorr via curve.Secp256k1{}.LiftX; the
  test built an edwards25519 key, on the strength of a comment claiming FROST
  keys are Ed25519-compatible, which is not true of this implementation.

  Ed25519 — took 32 bytes from rand.Read and required them to be a canonical
  scalar, which holds about one time in sixteen, then hand-rolled a SHA-256
  Schnorr with s = k - e*x. RFC 8032 uses SHA-512 and s = r + e*a, and the
  precompile calls ed25519.Verify, so it could not have verified even with a
  valid scalar. Now signs with crypto/ed25519.

Keys come from a seeded source so a failure reproduces. Added the negative
cases these lacked entirely: signature bound to its message, every bit-flip
refused, all-zero key refused, truncated and over-long frames refused, and
gas charged on refusal. FROST keeps only its refusal cases here — the positive
path needs the threshold library's domain-separated challenge, which belongs in
frost/real_sig_test.go rather than in a second copy.

Also removes cmd/safekatdump and cmd/safekatverify. safekatdump's doc comment
claimed it "generates real known-answer test (KAT) vectors"; it generates a
fresh key and a fresh signature from rand.Reader on every run and safekatverify
then checks that our verifier accepts what our signer just produced. That
passes unchanged if the implementation is uniformly wrong on both sides, which
is the failure a KAT exists to catch. Nothing consumed the output: no Makefile
target, no CI step, no checked-in fixture, and no reference to either program
anywhere outside their own doc comments. Genuine frozen vectors now live in the
packages, under go test, where they run.

e2e/clob is left alone: it replaces github.com/luxfi/dex with a sibling working
checkout, so it currently fails on an undefined symbol from that tree's
in-progress state rather than anything here.
2026-08-28 09:18:12 -07:00
zeekayandHanzo Dev 5dd6ecc90d deps: drop poisoned luxfi/threshold v1.9.4 pin → v1.12.0
The v1.9.4 tag was re-cut upstream; its content no longer matches the
recorded go.sum hash (checksum mismatch). Bump the indirect pin to the
clean v1.12.0 tag so the poisoned version leaves the module graph.

Co-authored-by: Hanzo Dev <[email protected]>
2026-07-03 15:58:59 -07:00
zeekay e5ce587b45 precompile: V4=CLOB facade adapter (0x9010) + real starkfri verifier + restore inference precompile
dex/: 0x9010 inert-default CLOB facade -> ZAP D-Chain (no embedded AMM; RED H1/H3/H4 fixed).
starkfri/: bind the REAL p3q STARK/FRI verifier (cSHAKE256/Goldilocks) via cgo (//go:build
starkfri_p3q) + RegisterDefaultVerifier CAS fix; KAT accept-real/reject-tampered; 986 verify/s.
inference/: RESTORE the 6 files commit 6f97f5d accidentally deleted (real int8 transformer
precompile 0x0300..0003, byte-equal to aivm GPU; cmd/blue builds+runs deterministically).
Zero go.mod replace. precompile repo builds clean; go vet clean.
2026-06-17 17:26:06 -07:00
zeekay 1f7b80f7da go: 1.26.3 → 1.26.4 (security: crypto/x509, mime, net/textproto) 2026-06-06 22:06:44 -07:00
zeekay f4728d20b4 deps: bump luxfi/vm v1.2.0, sampler v1.1.0, staking v1.5.0 (relicense)
Picks up the 2026-06-06 relicensing:
- luxfi/vm v1.2.0 → Lux Ecosystem License v1.2 (was Lux Research v1.0).
  License-only retag of the extracted runtime; patent reservation
  preserved for runtime optimization surfaces, royalty-free for
  Descending Chains.
- luxfi/sampler v1.1.0 → BSD-3-Clause (was Lux Research v1.0).
  License restored to match the luxfi/node provenance (originally
  extracted from node/utils/sampler).
- luxfi/staking v1.5.0 → BSD-3-Clause (was Lux Research v1.0).
  License restored to match the luxfi/node provenance.

No code changes in this commit — go.mod/go.sum only.
2026-06-06 19:00:35 -07:00
zeekay a6217b8057 deps(e2e): bump p2p v1.21.1, vm v1.1.11 (Wave 2G-Cascade) 2026-06-06 06:33:41 -07:00
zeekay ca69a884d9 fix(e2e): drop ../ relative replace, bump precompile v0.4.7→v0.5.24 + indirects 2026-05-21 16:38:18 -07:00
zeekay cffbf960ae decomplect: rip IsDurango from precompileconfig.ChainConfig interface (activate-all-implicitly — no upgrade gates left) 2026-05-19 08:27:28 -07:00
zeekay 90eef16960 go.mod: bump go directive to 1.26.3 (security advisory) 2026-05-12 20:55:01 -07:00
zeekay 3d48a72d2e feat: precompiles — anchor, babyjubjub EIP-2494, coverage, slug validation 2026-03-02 02:00:00 +00:00