mirror of
https://github.com/luxfi/consensus.git
synced 2026-09-24 00:26:58 +00:00
- Rename quasar files to simpler names: - quasar_aggregator.go → core.go - quasar_impl.go → engine.go - quasar.go → bls.go - event_horizon.go → horizon.go - hybrid_consensus.go → hybrid.go - verkle_witness.go → witness.go - prism_dag.go → dag.go - Rename types for clarity: - PChain → BLS (BLS signature aggregation) - NewPChain → NewBLS - QuasarHybridConsensus alias added for backward compatibility - Add missing documentation: - protocol/nova/doc.go - linear blockchain consensus - protocol/nebula/doc.go - DAG consensus mode - protocol/chain/doc.go - blockchain primitives All tests pass. Backward-compatible aliases provided.
20 lines
832 B
Go
20 lines
832 B
Go
// Copyright (C) 2025, Lux Industries Inc All rights reserved.
|
|
|
|
// Package chain provides basic blockchain primitives and interfaces.
|
|
//
|
|
// This package defines the fundamental Block interface and common chain
|
|
// operations used across linear consensus implementations. It serves as
|
|
// the foundation for chain-based consensus modes like Nova.
|
|
//
|
|
// Key types:
|
|
// - Block: interface for blockchain blocks
|
|
// - ChainState: state tracking for linear chains
|
|
// - BlockID: unique block identifier type
|
|
//
|
|
// The chain package is intentionally minimal, providing only the essential
|
|
// primitives needed by other consensus packages. Higher-level functionality
|
|
// is provided by packages like nova (linear consensus) and ray (linear driver).
|
|
//
|
|
// See also: nova (linear consensus mode), ray (linear consensus driver).
|
|
package chain
|