Directories
¶
| Path | Synopsis |
|---|---|
|
Package api declares the Lotus-compatible JSON-RPC interface and its shared result types.
|
Package api declares the Lotus-compatible JSON-RPC interface and its shared result types. |
|
Package build holds network-wide constants and configuration: the genesis CID, DRAND chain configuration, and the F3 network manifest references.
|
Package build holds network-wide constants and configuration: the genesis CID, DRAND chain configuration, and the F3 network manifest references. |
|
chain
|
|
|
anchorverify
Package anchorverify hardens Lantern's boot-time trusted-root selection (security issue #54).
|
Package anchorverify hardens Lantern's boot-time trusted-root selection (security issue #54). |
|
beacon
Package beacon verifies DRAND beacon entries referenced from Filecoin block headers.
|
Package beacon verifies DRAND beacon entries referenced from Filecoin block headers. |
|
bootstrap
Package bootstrap implements Lantern's multi-source trust-bootstrap quorum, as specified in INSTALLER-SPEC.md §3.
|
Package bootstrap implements Lantern's multi-source trust-bootstrap quorum, as specified in INSTALLER-SPEC.md §3. |
|
bootstrap/sources
Package sources provides Source implementations for the chain/bootstrap quorum:
|
Package sources provides Source implementations for the chain/bootstrap quorum: |
|
crosscheck
Package crosscheck implements the VM-bridge auditor (#98).
|
Package crosscheck implements the VM-bridge auditor (#98). |
|
ecfinality
Package ecfinality implements the FRC-0089 EC finality calculator (#96).
|
Package ecfinality implements the FRC-0089 EC finality calculator (#96). |
|
ecfinality/tools/refgen
command
refgen regenerates the reference reorg-probability vectors used by TestCalcValidatorProb_PythonReference against the calculator's current implementation on the CPU it runs on.
|
refgen regenerates the reference reorg-probability vectors used by TestCalcValidatorProb_PythonReference against the calculator's current implementation on the CPU it runs on. |
|
ethtx
EIP-1559 Ethereum transaction codec for the Filecoin FEVM write path (lantern#45 Stage 3).
|
EIP-1559 Ethereum transaction codec for the Filecoin FEVM write path (lantern#45 Stage 3). |
|
f3
Package f3 is a thin wrapper around github.com/filecoin-project/go-f3 that follows the F3 (Filecoin Finality Fast-forward) finality-certificate stream.
|
Package f3 is a thin wrapper around github.com/filecoin-project/go-f3 that follows the F3 (Filecoin Finality Fast-forward) finality-certificate stream. |
|
f3/anchor
Package anchor handles persistent F3 trust anchors.
|
Package anchor handles persistent F3 trust anchors. |
|
f3/certexch
Package certexch implements Lantern's F3 cert-exchange responder.
|
Package certexch implements Lantern's F3 cert-exchange responder. |
|
fullvalidate
Package fullvalidate implements the pure-Go, full-node block-validation pipeline for Lantern's Full node tier (issue #90, part of the #87 full-node epic).
|
Package fullvalidate implements the pure-Go, full-node block-validation pipeline for Lantern's Full node tier (issue #90, part of the #87 full-node epic). |
|
headcheck
Package headcheck is Lantern's running-head divergence monitor.
|
Package headcheck is Lantern's running-head divergence monitor. |
|
header
Package header implements Filecoin block-header chain validation.
|
Package header implements Filecoin block-header chain validation. |
|
header/store
Package store implements Lantern's persistent header store.
|
Package store implements Lantern's persistent header store. |
|
headnotify
Package headnotify implements Lantern's chain-head change distributor.
|
Package headnotify implements Lantern's chain-head change distributor. |
|
retention
Package retention resolves how far below head a Full node MAY prune cached IPLD state (issue #92, part of the #87 epic).
|
Package retention resolves how far below head a Full node MAY prune cached IPLD state (issue #92, part of the #87 epic). |
|
selector
Package selector resolves Lotus /rpc/v2 tipset-selector tags (latest, finalized, safe) against Lantern's chain state (issue #99).
|
Package selector resolves Lotus /rpc/v2 tipset-selector tags (latest, finalized, safe) against Lantern's chain state (issue #99). |
|
trustedroot
Package trustedroot produces and persists Lantern's TrustedRoot: a small in-memory tuple (Epoch, TipSetKey, TipSetCID, StateRoot, ParentMessageReceipts, ParentWeight, F3Instance, F3Cert, AncestorRoots) that the rest of the node treats as ground truth for "what the chain is right now."
|
Package trustedroot produces and persists Lantern's TrustedRoot: a small in-memory tuple (Epoch, TipSetKey, TipSetCID, StateRoot, ParentMessageReceipts, ParentWeight, F3Instance, F3Cert, AncestorRoots) that the rest of the node treats as ground truth for "what the chain is right now." |
|
types
Copied from github.com/filecoin-project/lotus/chain/types/actor.go at commit a0ecb8687f1c60d5e66040b6de364dbc9cc4d253.
|
Copied from github.com/filecoin-project/lotus/chain/types/actor.go at commit a0ecb8687f1c60d5e66040b6de364dbc9cc4d253. |
|
cmd
|
|
|
lantern
command
Auto-stale-reset (#118): bridge-off boot recovery from long outages.
|
Auto-stale-reset (#118): bridge-off boot recovery from long outages. |
|
lantern-f3-anchor
command
lantern-f3-anchor pulls the current F3 power table + a recent certificate from a Forest (or Lotus) node, verifies the cert's BLS aggregate against the prior power table, and writes a canonical Anchor JSON file that the chain/f3 package embeds at build time.
|
lantern-f3-anchor pulls the current F3 power table + a recent certificate from a Forest (or Lotus) node, verifies the cert's BLS aggregate against the prior power table, and writes a canonical Anchor JSON file that the chain/f3 package embeds at build time. |
|
lantern-gateway
command
|
|
|
lantern-lotus-compat-test
command
|
|
|
crypto
|
|
|
sigs
Package sigs dispatches Filecoin signature verification to the appropriate backend by signature type: BLS (BLS12-381), secp256k1, or delegated (Ethereum f4 addresses).
|
Package sigs dispatches Filecoin signature verification to the appropriate backend by signature type: BLS (BLS12-381), secp256k1, or delegated (Ethereum f4 addresses). |
|
sigs/bls
Package bls implements Filecoin BLS12-381 signature verification using github.com/consensys/gnark-crypto/ecc/bls12-381.
|
Package bls implements Filecoin BLS12-381 signature verification using github.com/consensys/gnark-crypto/ecc/bls12-381. |
|
sigs/delegated
Package delegated implements verification for Filecoin "delegated" (f4) signatures: Ethereum-style secp256k1 over Keccak-256 of an RLP-encoded payload.
|
Package delegated implements verification for Filecoin "delegated" (f4) signatures: Ethereum-style secp256k1 over Keccak-256 of an RLP-encoded payload. |
|
sigs/secp
Package secp implements Filecoin secp256k1 signature verification.
|
Package secp implements Filecoin secp256k1 signature verification. |
|
examples
|
|
|
historical/phase1
command
|
|
|
historical/phase2
command
|
|
|
historical/phase5
command
|
|
|
historical/phase6
command
|
|
|
historical/phase7
command
|
|
|
internal
|
|
|
buildinfo
Package buildinfo exposes the Lantern build identity (version + network) so callers (RPC handlers, CLI version subcommand, beacons) don't need to import package main.
|
Package buildinfo exposes the Lantern build identity (version + network) so callers (RPC handlers, CLI version subcommand, beacons) don't need to import package main. |
|
cbor
Package cbor wraps github.com/whyrusleeping/cbor-gen utilities used by generated CBOR codecs across Lantern.
|
Package cbor wraps github.com/whyrusleeping/cbor-gen utilities used by generated CBOR codecs across Lantern. |
|
net
|
|
|
bitswap
Package bitswap is Lantern's Bitswap client.
|
Package bitswap is Lantern's Bitswap client. |
|
blockingest
Package blockingest consumes Filecoin block announcements from gossipsub (/fil/blocks/<network>) and installs them into the header store as new heads, giving Lantern 0-1 epoch head-tracking latency without polling an upstream RPC.
|
Package blockingest consumes Filecoin block announcements from gossipsub (/fil/blocks/<network>) and installs them into the header store as new heads, giving Lantern 0-1 epoch head-tracking latency without polling an upstream RPC. |
|
combined
Package combined wires multiple BlockGetters into a single fall-through chain: cache → bitswap → HTTP gateway.
|
Package combined wires multiple BlockGetters into a single fall-through chain: cache → bitswap → HTTP gateway. |
|
hsync
Package hsync is Lantern's HTTPS gateway client.
|
Package hsync is Lantern's HTTPS gateway client. |
|
pkg
|
|
|
nodeprofile
Package nodeprofile persists the INSTALL-TIME node tier so a Lantern install runs as the class the operator chose - Light, PDP, or Full - without the operator re-passing runtime flags on every start, and crucially WITHOUT forcing the light node to carry the PDP footprint.
|
Package nodeprofile persists the INSTALL-TIME node tier so a Lantern install runs as the class the operator chose - Light, PDP, or Full - without the operator re-passing runtime flags on every start, and crucially WITHOUT forcing the light node to carry the PDP footprint. |
|
Package proofs implements pure-Go Filecoin proof verification.
|
Package proofs implements pure-Go Filecoin proof verification. |
|
winningpost
Package winningpost is the Stage B scaffold for a pure-Go WinningPoSt verifier.
|
Package winningpost is the Stage B scaffold for a pure-Go WinningPoSt verifier. |
|
rpc
|
|
|
handlers
Package handlers contains the implementation of api.FullNode that Lantern's RPC server registers.
|
Package handlers contains the implementation of api.FullNode that Lantern's RPC server registers. |
|
state
|
|
|
accessor
Package accessor is Lantern's query layer over a trusted state root.
|
Package accessor is Lantern's query layer over a trusted state root. |
|
amt
Legacy (v2) AMT support.
|
Legacy (v2) AMT support. |
|
cache
Package cache is Lantern's persistent, bounded, CID-keyed block cache.
|
Package cache is Lantern's persistent, bounded, CID-keyed block cache. |
|
hamt
Package hamt is Lantern's proof-recording HAMT walker.
|
Package hamt is Lantern's proof-recording HAMT walker. |
|
kamt
Package kamt is a read-only reader for the ref-fvm KAMT (Keccak-AMT) as used by the FEVM EVM actor for contract storage (lantern#43 Part B, Stage 2).
|
Package kamt is a read-only reader for the ref-fvm KAMT (Keccak-AMT) as used by the FEVM EVM actor for contract storage (lantern#43 Part B, Stage 2). |
|
prefetch
Built-in FEVM warm-set (lantern#69).
|
Built-in FEVM warm-set (lantern#69). |
|
Package vm implements a minimal, pure-Go execution shell sufficient for Curio's read-only and gas-estimation calls against Lantern.
|
Package vm implements a minimal, pure-Go execution shell sufficient for Curio's read-only and gas-estimation calls against Lantern. |
|
evm
Package evm is a minimal, read-only EVM interpreter for executing view/pure contract calls against locally-verified Filecoin FEVM state (lantern#43 Part B, Stage 3).
|
Package evm is a minimal, read-only EVM interpreter for executing view/pure contract calls against locally-verified Filecoin FEVM state (lantern#43 Part B, Stage 3). |
|
Package wallet provides an encrypted-at-rest local keystore plus a signing facade for the three Filecoin signature types Lantern supports:
|
Package wallet provides an encrypted-at-rest local keystore plus a signing facade for the three Filecoin signature types Lantern supports: |
|
keystore
Package keystore provides a disk-backed, passphrase-encrypted key store.
|
Package keystore provides a disk-backed, passphrase-encrypted key store. |
Click to show internal directories.
Click to hide internal directories.