Aleph Whitepaper
Aleph Whitepaper
Aleph Whitepaper
Abstract
Aleph is a cross-blockchain layer-2 network specifically focused on decentralized applications and their re-
lated infrastructure (storage, computing servers, security). Our aim is to decentralize and revolutionize the web
and the cloud as we know it. Current decentralized applications are generally unreliable and slow or tied to sin-
gle blockchain architecture. Decentralized applications need to not only overcome these issues, but they also
need to be able to communicate with other projects. The large majority of current blockchain-related technolo-
gies cannot scale to the levels needed for large applications (social networks, web apps, IoT providers, etc) we
use on a daily basis. Aleph intends to provide a solution to these issues by offering fast single cross-technologies
and cross-chain solution on a decentralized and reliable ecosystem.
1
Contents
1 Introduction 4
2 Existing solutions 5
2.1 Blockchain . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5
2.2 DHT storages like IPFS . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 6
3 Aleph Architecture 7
3.1 Blockchains used by Aleph . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 8
3.2 Data storage . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 8
3.3 Data type . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 8
3.4 Data exchange . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 9
3.5 State . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 9
3.6 Virtual machines . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 10
3.6.1 Hash links . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 10
3.6.2 VM State content . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 10
3.6.3 Concurrency . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 10
3.7 Cross-application data exchange and data ownership . . . . . . . . . . . . . . . . . . . . . . . 10
3.8 Moderation and requests for removal . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 10
3.8.1 Network and data moderation . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 10
3.8.2 Removal request . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 11
3.9 Nodes . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 11
3.9.1 Clients . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 11
3.9.2 Packing nodes . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 11
3.9.3 Storage nodes . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 11
3.9.4 Full Node . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 11
4 Aleph Token 13
4.1 Rewards . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 13
4.2 Token use . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 13
4.3 Token details . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 13
4.4 Initial token distribution . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 14
4.4.1 NULS staking program (POCM) . . . . . . . . . . . . . . . . . . . . . . . . . . . . 15
4.5 Supply evolution . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 15
5 Roadmap 17
5.1 Genesis (NULS Only), Q1 2019 (done) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 17
5.2 Cross-chain, Q2 2019 (done) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 17
2
Contents 3
The Internet was originally built to connect computers together. It has been used as a marvelous communica-
tion and data storage model. Protocols originally designed for decentralization (TCP, HTTP, SMTP… and even
blockchains) are already showing their limitations.
In a purely economically driven world; simplicity, centralization, and non-standard data models tend to win out.
What is our internet today? Silos loosely connected together, users having data in each of those silos (Facebook,
Google, and many others), with no simple way to port it over. (see Drake 2015)
There are a lot of attempts at breaking those silos, from connection from silo to silo (iftt, rgpd for data request,
opendata programs…), to decentralized networks of silos (mastodon). We are living in a world of data silos.
In itself, that isn’t bad if those silos were easily accessible and decentralized. Users don’t know it, but they need to
reclaim their data.
Database
User Website
Centralized storage
4
2. Existing solutions
2.1 Blockchain
DLT1 allows us to have a single data silo (albeit specialized) that is spread across all users of the network. Smart-
Contracts make use of that ability to allow decentralized computing (among other benefits).
Common naming of dApps2 is using smart contracts on blockchain platforms like Ethereum. A few issues arise
from its model:
• Paid transactions by the user (meaning a dApp user should buy some underlying network asset to use the
Dapp)
• Reliance on inclusion in a block (dependant on the block time of the relevant blockchain, making dApps
slow)
• On-chain storage is very expensive, making it unsuitable for media content or large documents.
There are a lot of existing blockchain platforms currently active (see “Coinmarketcap” n.d.).
5
2.2. DHT storages like IPFS 6
SmartContract
User Frontend
IPFS
(dApp data pinned
by dApp owner)
In current solutions involving smart contracts, the current state of applications is written (or computed from) on a
blockchain, this is immutability. But what if you want instantaneous actions, batching user requests for non critical
items?
You’ll need a second layer of truth, a distributed state that you can influence by signing messages.
Agents will then commit the messages on the blockchain for the users, incentivized by the network token. They will
spend the native chain asset and will receive the token in exchange for their service, provided by the next authorized
agent. Then that agents work will be verified by the previous agent, changing it’s credit score on the fly.
This allows for free and instant interaction with dapps for users, with efficient batched inserts on the blockchain
for immutability.
Moreover, this more easily facilitates agents running API servers that can be used by the dapps as entry points to
the network.
Below are a few focal actions of the Aleph network:
• Instant (low-latency) global status update
• Bulk content write on blockchain to allow fee-less commits
• Pinning IPFS data (data replication)
• API server decentralization
• Virtual machines code execution and verification
Smart VMs
API Servers
DHT-Based
P2P Network
BlockChain
7
3.1. Blockchains used by Aleph 8
User
Ensures content storage
Ethereum
Publishes new content with no fee Aleph Network Adds to a block, pays fee State
NULS
Update
New content on client New IPFS Hash IPFS Hash signed Client supports direct p2p Signature verification Nodes add post to queue
3.5 State
State encompasses both onchain committed data and uncommitted data received by pubsub. State can be recom-
puted by getting all TX from a user or containing messages signed by him, and adding the uncommitted messages.
• For smart contracts/VMs, it should be recomputed from last committed, signed and non revoked (no litiga-
tion) onchain state.
• For aggregates (user hash tables) from the last onchain commit for each key.
• For posts, from the original post plus all the amends. If last amend contains all the fields, original plus last
amend is acceptable.
State stack Compute state with amends and layers Current state
3.6.3 Concurrency
While view-only functions that don’t modify the state can be done concurrently, the write functions can’t happen
concurrently (or will end up in a fork). A node can send a pubsub message to broadcast it is working on/executing
a “write” function on a specific VM. Once that has been completed, it will broadcast the new state to the other
nodes in the same pubsub channel, thus enabling them to execute a write function from this point in history.
For illegal content, the network will also have its own storage that will be synchronised between nodes of black-
listed content and addresses. Linked content hashes will be automatically unpinned from all nodes, leading to its
destruction from the Aleph network.
3.9 Nodes
3.9.1 Clients
Simple clients to the network are either using the API to API node or p2p pubsub connection to the network. If
they are using the p2p system then they can act like a full node and validate messages themselves (and run VM
themselves if it’s available for their platform, WASM working in web browsers).
They should be careful to verify the signatures of the received messages and states if they don’t trust the API server
or if they are connected directly to the network.
• Retrieves IPFS content (from storage nodes or sender) commited onchain or recieved in pubsub to review
and index content (and pins it if needed)
• Executes VMs code (if configured for it, and only relevant ones)
3.9.4.1 Indexing
Depending on the underlying chain volume, a full index will be done, or only an index based on specific events
(triggered by a smart contract for example -on Ethereum-, a tx type -business data on NULS- or op_return & simi-
lar).
For maximum security, the incentivized Aleph nodes in charge of sensitive parts of the network will connect to a
local node of this blockchain (to detect forks for example), simpler nodes can connect to explorers or public api
servers of those chains to act as light wallets. The blocks informations will also be published on IPFS for faster sync
of nodes.
4. Aleph Token
4.1 Rewards
Three main sources of reward and token creation are:
• Reward each signed message written to the underlying blockchain
• Reward storage of application data (pin items) and availability of API, both are mandatory for nodes
• POCM NULS token locking in NULS underlying chain (see token distribution section)
Of those rewards, a part will come from monetary creation, and a part from dApp owner incentive to prioritize
their apps and their user fees.
If a dApp owner wants to get the benefit of the network without having to rely on third parties only, he can run
a node of the network where he prioritizes his dApp data (but he can’t completely ignore others, having a backup
for his users on other nodes, while he gives the same allowance to other dApps).
13
4.4. Initial token distribution 14
NULS (POCM&Others)
150M
Airdrop, Marketing
& Bounties
150M
Contributors
350M
Reserved
350M
1st year 2nd year 3rd year 4th year 5th year 6th year
inflation 4% 3% 2% 1% 1% 1%
tokens minted 40M 31.2M 21.42M 10.92M 11.03M 11.14M
total supply eoy 1040M 1071M 1092M 1103M 1114M 1125M
4.5. Supply evolution 16
2000
Supply 14
1750 Newly minted
Inflation rate
12
1500
Supply (Million tokens)
10
1250
Inflation (%)
8
1000
750 6
500 4
250 2
0 0
0 1 2 3 4 5
Year
17
5.7. Aleph VM dApps SDK, Q2 2020 18
5.11 Future
There are a lot of possibilities for the future (not defined yet):
• Decentralized exchanges and encapsulation of other assets
• Use of Aleph as a monetary 2nd layer (like lightning or plasma)
• …
6. Notes and appendices
19
6.1. Hardware wallet and 2 factor support 20
References
“Coinmarketcap.” n.d. Accessed February 27, 2019. https://coinmarketcap.com/all/views/all/.
Drake, Kyle. 2015. “HTTP Is Obsolete. It’s Time for the Distributed, Permanent Web.” September 8, 2015. https:
//ipfs.io/ipfs/QmNhFJjGcMPqpuYfxL62VVB9528NXqDNMFXiqN5bgFYiZ1/its-time-for-the-permanent-web.
html.