overlay-engine

module
v0.1.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 22, 2026 License: Apache-2.0

README

overlay-engine

The Go overlay host: go-overlay-services v1.3.8 on its MongoDB storage (overlay-admission-v1), with overlay-bridge pkg/spv as the only verifier and the bridge's header store as the chain tracker. It replaces the TypeScript host (overlay-blueprints) path for path: BRC-22 POST /submit and BRC-24 POST /lookup at the root, the same wire shapes, /healthz, /readyz, /metrics.

Status: P2 skeleton of the Go engine migration (1bsv-ops docs/integration/overlay/go-engine-migration.md). One reference module (anytx); application modules arrive from P3 (bstore first).

make build            # ./overlay-engine
make verify           # gofmt, vet, unit tests under -race, license file current
make integration      # MongoDB 9 replica set in docker on this machine, removed after

License: Apache-2.0 (LICENSE). Third-party licenses: NOTICE, LICENSE-THIRD-PARTY.

Directories

Path Synopsis
cmd
overlay-engine command
Command overlay-engine is the Go overlay host: go-overlay-services' engine (pinned, one-patch fork) on its MongoDB storage, with overlay-bridge's pkg/spv as the only verifier and the bridge's header store as the chain tracker.
Command overlay-engine is the Go overlay host: go-overlay-services' engine (pinned, one-patch fork) on its MongoDB storage, with overlay-bridge's pkg/spv as the only verifier and the bridge's header store as the chain tracker.
internal
config
Package config reads the host's configuration from the environment.
Package config reads the host's configuration from the environment.
host
Package host wires the whole Go overlay host: storage, chain tracker, modules, the engine, the pipeline, readiness, root reconciliation and the HTTP surface.
Package host wires the whole Go overlay host: storage, chain tracker, modules, the engine, the pipeline, readiness, root reconciliation and the HTTP surface.
httpapi
Package httpapi is the host's HTTP surface, path for path and shape for shape with the TypeScript host it replaces (overlay-blueprints src/http.ts):
Package httpapi is the host's HTTP surface, path for path and shape for shape with the TypeScript host it replaces (overlay-blueprints src/http.ts):
metrics
Package metrics is the host's Prometheus registry: the admission stage histogram (R1), the per-object work histograms (R2), CPU attribution (R3) and the submit/lookup counters, all under the overlay_go_ prefix.
Package metrics is the host's Prometheus registry: the admission stage histogram (R1), the per-object work histograms (R2), CPU attribution (R3) and the submit/lookup counters, all under the overlay_go_ prefix.
pipeline
Package pipeline is one BRC-22 submission through the host: parse, SPV with overlay-bridge pkg/spv, the fee floor, then the engine's admission (topic managers, payloads, the overlay-admission-v1 commit), each stage timed for R1 and each object's work counted for R2.
Package pipeline is one BRC-22 submission through the host: parse, SPV with overlay-bridge pkg/spv, the fee floor, then the engine's admission (topic managers, payloads, the overlay-admission-v1 commit), each stage timed for R1 and each object's work counted for R2.
reconcile
Package reconcile drives engine.Storage.ReconcileMerkleRoot per topic from the BRC-135 header lane (ruling #55): every time the bridge's header store reports a new tip, the roots of the last Depth heights are re-read and handed to storage for every carried topic, so an output proven in a block that left the best chain becomes Invalidated and one whose root matches becomes Validated.
Package reconcile drives engine.Storage.ReconcileMerkleRoot per topic from the BRC-135 header lane (ruling #55): every time the bridge's header store reports a new tip, the roots of the last Depth heights are re-read and handed to storage for every carried topic, so an output proven in a block that left the best chain becomes Invalidated and one whose root matches becomes Validated.
store
Package store opens the engine's MongoDB storage (upstream pkg/storage/mongodb, unmodified) and times the two storage stages of an admission: payload publication, which runs outside the commit transaction, and the overlay-admission-v1 commit itself.
Package store opens the engine's MongoDB storage (upstream pkg/storage/mongodb, unmodified) and times the two storage stages of an admission: payload publication, which runs outside the commit transaction, and the overlay-admission-v1 commit itself.
testutil
Package testutil builds BEEF objects and a stand-in for overlay-bridge's header read API, for the host's tests.
Package testutil builds BEEF objects and a stand-in for overlay-bridge's header read API, for the host's tests.
tracker
Package tracker is the host's chain tracker: overlay-bridge's header store, read over the bridge's header API (default :9178) through the bridge's own Go client, with the two questions every admission asks answered from memory for a moment.
Package tracker is the host's chain tracker: overlay-bridge's header store, read over the bridge's header API (default :9178) through the bridge's own Go client, with the two questions every admission asks answered from memory for a moment.
modules
anytx
Package anytx is the reference module: tm_anytx admits every output of every object, and ls_anytx answers by outpoint from the engine's storage.
Package anytx is the reference module: tm_anytx admits every output of every object, and ls_anytx answers by outpoint from the engine's storage.
pkg
module
Package module is how an application mounts its topic managers and lookup services in the Go overlay engine.
Package module is how an application mounts its topic managers and lookup services in the Go overlay engine.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL