Protocol status: Draft architecture. eCoin is under development. These pages describe the Version 0.1 design direction and illustrative developer models, not a finalized wire protocol, production API, or live mainnet.
Pseudocode
peers = discovery.findCompatiblePeers(configuredNetwork)
for peer in peers:
session = p2p.connect(peer)
assert session.network == configuredNetwork
assert session.protocolVersion is supported
sync.verifyFinalizedState()
loop:
message = p2p.receive()
if message.isStructurallyInvalid(): reject(message)
else if message.isTransaction(): validateAndRelay(message)
else if message.isLedgerData(): verifyAndStore(message)
else if message.isConsensusData() and node.isValidator(): consensus.process(message)
This demonstrates responsibilities, not production method names or message types.
Previous
‹ Payment Processing
Next
Glossary ›