Documentation
¶
Overview ¶
Package field orchestrates DAG finality via distributed state reduction.
The field represents a superposition of rays (transaction paths) that aggregate multiple stellar processes (flare events) into a coherent finality layer. Where ray handles linear finality, field coordinates the complex, multi-dimensional case: parallel transactions, causal dependencies, and DAG vertex acceptance across the network.
Index ¶
- type BlockView
- type Committer
- type Config
- type Driver
- func (d *Driver[V]) GetCommittedVertices() []V
- func (d *Driver[V]) GetFrontier() []V
- func (d *Driver[V]) IsFinalized(vertex V) bool
- func (d *Driver[V]) OnObserve(ctx context.Context, v V)
- func (d *Driver[V]) Propose(ctx context.Context, parents []V) (V, error)
- func (d *Driver[V]) Start(ctx context.Context) error
- func (d *Driver[V]) Stop(ctx context.Context) error
- func (d *Driver[V]) Tick(ctx context.Context) error
- type Proposer
- type Service
- type Store
- type VID
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Driver ¶
type Driver[V VID] struct { // contains filtered or unexported fields }
func (*Driver[V]) GetCommittedVertices ¶
func (d *Driver[V]) GetCommittedVertices() []V
GetCommittedVertices returns vertices that have been committed in order
func (*Driver[V]) GetFrontier ¶
func (d *Driver[V]) GetFrontier() []V
GetFrontier returns the current DAG frontier (tips)
func (*Driver[V]) IsFinalized ¶
IsFinalized checks if a vertex is finalized
func (*Driver[V]) OnObserve ¶
OnObserve should be called by your networking layer as new vertices arrive. You can also plug DAG fast-path voting (flare) here if you embed it in vertex payloads.
type Service ¶
type Service struct{}
placeholder for epoch/cross-chain features (e.g., checkpoint bundling).
type VID ¶
type VID interface{ comparable } // vertex id