The Incubed client is a
- Crypto-Economic
- Non-syncronizing and stateless, but fully verifying
- Minimal resource consuming
blockchain client (Crypto-Economic Client, Minimal Verification Client, Ultra Light Client).
Most blockchains, such as Ethereum, require a client to connect to their blockchain network. Often, these clients require a lot of storage, a very high bandwidth or constant computation. While this is possible to perform on laptops or desktop systems, mobile devices, mobile app, and even web applications struggle to meet these requirements. Currently the solution of choice is to use a light client or remote client on mobile devices. While this may work for mobile phones, most IoT devices are unable to run light clients. Connecting an IoT device to a remote node enables even low-performance IoT devices to be connected to blockchain. However, by using distinct remote nodes, the advantages of a decentralized network are undermined introducing a single point of failure. Also, it is unsecure because the client is not able to verify the results by itself. The same applies for mobile apps or web pages. The Trustless Incentivized Remote Node Network, in short Incubed, makes it possible to establish a decentralized and secure network of remote nodes and clients which are able to verify and validate the results, enabling trustworthy and fast access to blockchain for a large number of low-performance IoT, mobile devices, and web applications.
A more detailed explanation of in3 can be found in the concept on readthedocs.
Incubed can be used in different ways
Stack | Size | Code Base | Use Case |
---|---|---|---|
TS/ JavaScript | 2.7MB | https://github.com/slockit/in3 | WebApplication (decentralized RPC-Client in the Browser) or Mobile Applications |
TS/ JS with WASM | 330kB | https://github.com/slockit/in3-c | WebApplication (decentralized RPC-Client in the Browser) or Mobile Applications |
C/C++ | 200kB | https://github.com/slockit/in3-c | IoT-Devices, can be integrated nicely on many micro controllers (like [zephyr-supported boards] (https://docs.zephyrproject.org/latest/boards/index.html) ) or anny other C/C++ -Application |
Java | 705kB | https://github.com/slockit/in3-c | Java-Implementation of a native-wrapper |
Docker | 2.6MB | https://github.com/slockit/in3 | For replacing existing clients with this docker and connect to incubed via localhost:8545 without the need to change the architecture |
bash | 400kB | https://github.com/slockit/in3-c | the in3-commandline utils can be used directly as executable within bash-script or on the shell |
other Languages (like C#, Python, Go, Rust) will be supported soon (until then you can simply use the shared library directly).
For information on the in3-node, sources on github or readthedocs will help you.
For information on the in3 client implementation in C, please go in3-c or API Documentation.
Installing the in3-client is as easy as installing other modules:
npm install --save in3
Import incubed with:
import In3Client from "in3"
// import in3-Module
import In3Client from 'in3'
async function demo() {
// use the In3Client as Http-Provider
const in3 = new In3Client({
proof : 'standard',
signatureCount: 1,
requestCount : 2,
chainId : 'mainnet',
replaceLatestBlock: 10
})
// use the web3
const block = await in3.eth.getBlock('latest')
console.log(`Incubed signed block hash ${block.hash}`)
}
...
}
// import in3-Module
import In3Client from 'in3'
import Web3 from 'web3'
async function demo() {
// use the In3Client as Http-Provider
const web3 = new Web3(new In3Client({
proof : 'standard',
signatureCount: 1,
requestCount : 2,
chainId : 'mainnet',
replaceLatestBlock: 10
}).createWeb3Provider())
// use the web3
const block = await web3.eth.getBlock('latest')
console.log(`Incubed signed block hash ${block.hash}`)
}
...
}
Detailed examples with usage of in3 in typescript programs can be found here.
in3 | Remote Client | Light Client | |
---|---|---|---|
Failsafe connection | ✔️ | ❌ | ✔️ |
Automatic Nodelist updates | ✔️ | ❌ | ✔️ |
Partial nodelist | ✔️ | ❌ | ✔️ |
Multi-chain support | ✔️ | ✔️ | ❌ |
Full verification of JSON-RPC methods | ✔️ | ❌ | ❌ |
IPFS support | ✔️ | ✔️ | ❌ |
Caching support | ✔️ | ❌ | ❌ |
Proof-Levels | ✔️ | ❌ | ❌ |
POA Support | ✔️ | ✔️ | ✔️ |
Database setup size-minutes | 0-instant️ | 0-instant | ~50Mb-minutes️ |
Uses | IoT devices,Mobile,browser️ | Mobile,browser️️ | PC,Laptop️ |
- TypeScript API reference
- TypeScript examples
- in3-node
- in3 C client
- Website
- ReadTheDocs
- Blog
- Incubed concept video by Christoph Jentzsch
- Ethereum verification explained by Simon Jentzsch
We at Slock.it believe in the power of the open source community. Feel free to open any issues you may come across, fork the repository and integrate in your own projects. You can reach us on various social media platforms for questions.
Contact us on or send us an email at team-in3@slock.it