Karma Sneak-Peak. What's Under The Hood?
By: Karma Project
Tags: Blockchain, Ethereum, Graphene, Development, Technology

Hello dear friends,

Previously, we’ve discussed Graphene TPS measurement test.

100,000 transactions per second (TPS) in reality could not be achieved: the real performance of the Karma Core 1.0 blockchain reaches only 2 000 tps.

This completely was covering our current needs at that stage. However, when we started to develop the platform, we faced a number of Graphene limitations, which led to the idea of developing our own blockchain with a different architecture and different working principles.

Used technologies

Karma Core / Karma Blockchain

Karma Core — is a fork of the Bitshares blockchain, based on the Graphene protocol. The core of the current version is developed in C++. Devnet, testnet and mainnet are launched. Any user or developer can also run their node and use the Karma network to work with blockchain assets directly.

API for working with Karma network is implemented on top of the JSON-RPC

RC protocol and supports high level wrappers for Python, JS and Node.js. The source code of the blockchain and tools for working with it are published on GitHub Karma.

We are currently working on our own Karma blockchain, which will replace the blockchain based on Graphene. Own blockchain will provide the following opportunities:

become node-holders for up to 10,000 nodes (in the current version up to 20); working with wallets of several types: system, notary, scoring agency, investor and borrower (in the current version of the blockchain it is impossible to divide the roles by the type of wallets); to implement the workflow with credit applications as a property of the blockchain, not the smart contract (the principles of operation of the blockchain on the basis of Graphene imply the extension of the functionality of the blockchain, but not the protocol or its properties); delegate and revoke the authority of system wallets such as notary and scoring agency (in the case of Graphene it is not provided the powers over wallets and their management, and it is an ideologically driven property); enable full tracking on credit operations (in Graphene it is impossible to implement status tracking for applications); support the function of collective crediting of the borrower by a group of investors with different investment shares and make individual repayment schedules with the help of blockchain functions (in the current implementation, a single centralized wallet for collecting transfers has been launched);

So, in the current development cycle, we have launched a working prototype platform based on Karma Core blockchain, based on the Graphene Protocol, and will form the basic functionality on the basis of this scheme for the implementation of business needs. In parallel, we are developing a new Karma blockchain (draft name is Karmus), which will allow the removal of restrictions on work with the current version of Karma Core blockchain.

However, it should be understood that working with blockchain is a rather complex technological exercise, not only for a technically competent user, but even for a developer.

Also, technologically, and sometimes legally, the blockchain can not fully cover the entire set of necessary functionality, for example, storage of personal data, legal documents (contracts, guarantees, etc.), large media files, etc.

Therefore, we in Karma are working not just on the development of another blockchain, but on an integration platform that allows, on the one hand, to hide the complexity of the use of the blockchain, as well as to provide transparent interaction of the blockchain with off-chain modules.

Main modules of the platform:

Blockchains (can be multiple): Karma Core, Karma Core 2.0, Ethereum, Bitcoin; Karma Microservices; Karma Multiplexer; Karma Backend; Karma CRM (Backoffice).

The main point of assembly of all services of the platform is the data multiplexer based on Apache Kafka: Karma Multiplexer. All interaction with the platform’s microservices is carried out through a distributed service of several geographically distributed platforms, where blockchain nodes API and microservices are launched, integrating the functionality of different blockchains with off-chain services: internal scoring, settlement service, gateways to various external blockchains, etc.