Now Decided Architecture of Entire P2P Ledger
Now, I've decided the architecture of decentralized ledger for CodableCash. It takes long term, about 2 months to decide it.
Most difficult point was to realize decentralization. To make system without that is not so difficult, but it has to be decentralized.
Decentralized Ledger for Instant Payment & Smart Contract
CodableCash network consists of full nodes. It does not have
- Master Nodes
- Miner Nodes
- Mining Pool
It only has full nodes, and all nodes have same functionality.
Everyone who manages full node can be both user and miner.By this network design, the P2P nodes can be fully decentralized.
Full Node Architecture
The functionality of full node is below.
There are following parts.
- Front Blockchain
- Transaction Verification Engine
- Main Blockchain
A transaction is stored in the Front Blockchain at first, Transaction Verification Engine verify it, and verified transactions are stored into the Main Blockchain.
Front Blockchain
The Front Blockchain is where the transactions come at first. By this chain, the ledger system deecide the order of transactions to verify. It makes possible to avoid double spending.
The consensus algorithm of this blockchain is Ticket PoS using nonce calculation.
The ticket system decide order to mine the block. Then the full node, whose turn comes can mine a block.
Spare full nodes also can mine a new block, but they have to calculate nonce.
Transaction Verification Engine
After the transactions are in the confirmed block of the Front Blockchain, the Transaction Verification Engine starts to verify transactions.
The CodableCash supports sharding and Smart Contract, so this process takes both calculation and network cost. Therefore full nodes in the CodableCash network helps each other to verify it.
Main Blockchain
After the transactions are verified, correct ones are stored in the Main Blockchain. This blockchain is permanent data, and received balance becomes spendable when it is located here.
Next Topics
This time I've shown the grand design of the ledger. I'll write about consensus of the blockchain and more detail, later.