Skip to main content
Version: 1.x

Architecture at a Glance

Yellow Network v1 combines application code, SDK clients, off-chain state validation, and ChannelHub enforcement so most updates happen off-chain while the latest mutually signed state remains enforceable on-chain.


The Four Surfaces

SurfacePurposeTypical speedCost
ApplicationBusiness logic, user interface, app-session rulesUser interaction speedApp-defined
Client SDK + v1 RPCBuilds signed envelopes and calls Nitronode methodsNetwork round tripNo gas
NitronodeValidates transitions, signs channel states, coordinates off-chain updatesSub-second in normal operationNo gas
Blockchain layerChannelHub state enforcement, locked funds, challenge and close pathsBlock timeGas fees

ChannelHub

ChannelHub is the v1 on-chain enforcement layer. It works with ChannelEngine, EscrowDepositEngine, EscrowWithdrawalEngine, and signature validators. Builders interact with ChannelHub as the contract that creates channels, processes deposits and withdrawals, enforces signed states, accepts challenges, and closes channels.

ChannelHub validates:

  • channel definitions and channel identifiers
  • approved signature validation modes
  • state versions and intents
  • home-ledger and non-home-ledger invariants
  • locked-funds accounting
  • challenge and close status transitions

Routine transfers and app-session updates are signed off-chain. The blockchain is used for create, deposit, withdraw, state enforcement, challenge, close, escrow, and migration operations.


Off-chain layer

The off-chain layer handles frequent state advancement without blockchain transactions.

Nitronode

Nitronode is operated by an independent node operator using open-source software developed and maintained by Layer3 Fintech Ltd. It:

  • validates v1 channel transitions
  • signs mutually agreed channel states
  • issues pending receive and release states for user acknowledgement
  • coordinates app-session flows and, where supported, cross-chain escrow flows
  • serves v1 RPC methods over WebSocket

v1 RPC

v1 RPC is the wire surface used by SDKs and low-level clients. Builders should prefer the SDK unless they are implementing an SDK, proxy, debugger, or language integration.


How Funds Flow

Funds are represented by channel states with a home ledger and, when needed, a non-home ledger.

ConceptWhat it means
Home channelThe user and Node channel for a unified asset.
Home ledgerThe authoritative single-token ledger for the enforcement chain.
Non-home ledgerA temporary single-token ledger for cross-chain escrow, withdrawal, or migration.
App sessionAn extension state funded by commit transitions and settled by release transitions.

Channel Lifecycle

The v1 RPC exposes channel status as void, open, challenged, closing, and closed. closing appears when the Node has issued the finalization state and the channel is in the close path. After a challenge expires, a separate close call can move the channel to closed.

CHALLENGED means a participant has submitted a candidate state on-chain and the challenge duration is running. During that window, another participant may respond with a higher-version mutually signed state. If no higher-version response is accepted before expiry, a separate close call is still required before funds are released according to that enforced state. See Channel Lifecycle and Enforcement and Settlement for the formal rules.

Typical Flow

  1. Create or deposit: The user and Node sign an initial channel state; a deposit state may be submitted to ChannelHub to lock funds.
  2. Operate: The user and Node exchange signed states off-chain for transfers, acknowledgements, commits, releases, and other valid transitions.
  3. Enforce or challenge: Any party may enforce the latest mutually signed state if needed.
  4. Close: A final signed state or expired challenge releases funds according to the enforced allocation.

Key Takeaways

ConceptWhat to Remember
ChannelHubThe v1 contract entrypoint for enforcement and locked funds.
NitronodeThe off-chain coordinator for state advancement and v1 RPC.
Channel stateThe signed record of allocations, version, transition, and ledgers.
Home ledgerThe enforceable ledger for the channel's current home chain.
App sessionAn extension funded by commit transitions and settled through release transitions.

:::success Security Guarantee For the home chain, assets can be recovered through ChannelHub with the latest mutually signed state even if Nitronode becomes unresponsive. :::


Next Steps

Ready to start building? Continue to: