|
Cherry-picked component skeleton from feature/tollgate-core-component arch branch,
extended with mining payment and stratum proxy modules.
Component structure:
components/tollgate_core/
include/tollgate_core.h — public API (core + mining)
include/tollgate_platform.h — platform interface (config + mining callbacks)
src/tollgate_core.c — orchestrator (init, payment, tick, owner)
src/tollgate_core_cashu.c/h — Cashu V3 token decode/verify
src/tollgate_core_dns.c/h — per-client DNS hijack/forward
src/tollgate_core_firewall.c/h — per-client NAT filter
src/tollgate_core_session.c/h — session lifecycle
src/tollgate_core_mining.c/h — hashprice, share validation, client stats
src/tollgate_core_stratum_proxy.c/h — local SV1 TCP server
idf_component.yml — IDF Component Manager metadata
Also fixes nucula_src save_proofs visibility (public).
idf.py build: PASS
make test-unit: PASS (19 suites, 344+ assertions)
|