Published 31 March 2019

MainNet

The anonymous, decentralized blockchain platform Credits MainNet is a peer-to-peer  network which serves as an add-on to the Internet. Nodes use an advanced UDP protocol to transfer data among adjacent nodes. Each node of the network sets up a connection with a limited number of adjacent nodes, thereby forming a network topology.

Each node has a replica of a chain of blocks stored in a high-performance NoSQL database in key / value format. The basic mathematical algorithm for the interaction between network participants is a consensus based on BFT / DPoS algorithms. The purpose of the consensus is to provide the only valid final decision, for all participants of the network.

Data transfer to the network is carried out via  API interface of the platform based on the Apache Thrift technology with use of the http / https data transfer protocol, both locally or remotely.

Tools

Download

Credits Network for Windows x64

Credits Network for Linux x64

 

Actual DB

https://yadi.sk/d/WiBGzz1w3EOzlA

https://drive.google.com/file/d/1l4cDVepYcS-d259j7s3CHpw84m0RuBwT/view

Replace the file  __integr.seq__ in the test_db folder before starting the node 

Tools

Credits Web Wallet

Credits Web Wallet is a client interface for secure and easy interaction with the MainNet peer-to-peer network, simple, flexible, easy to configure.

Credits Web Wallet allows to transfer  currency from one user to another and perform operations with a deployed smart contract without installation of the full version of the node, if there is no need to compile it. Synchronization with the network is performed automatically in real time. Connection to the peer-to-peer network is performed with use of the platform API.

The functionality of Web Wallet duplicates the one of Desktop Wallet, apart from the abilities to create and download new smart contracts.

Functional capacity:

  • Overview of the balance;
  • Overview of the transaction history;
  • Overview of the operations with smart contracts;
  • Generation of transactions;
  • Creation of a new token with use of a smart contract;
  • Operations with deployed smart contracts.

Credits Monitor

Credits Monitor is a web version of the application that provides the ability to view the registry of transactions. Monitor is implemented on Java + Angular JS and connects to a peer-to-peer network via the platform API. Statistics is being updated every second.

The following information is presented on the Credits Monitor page:

  • total amount of nodes in the network;
  • transaction statistics;
  • balance;
  • details of transactions for the selected wallet;
  • general information about the smart contract;
  • review of an open smart contract.

The monitor is based on the node architecture. To provide an actual information, the Monitor receives information about all changes in the blocks, but does not participate in the rounds.

Useful information

Useful information

How to use Web Wallet

Description of Credits monitor

Where to start developing in Credits blockchain platform

For developers

For developers

To generate the source code it is required to download the following files:

api.thrift

general.thrift

or run the command from the command line (Git must be installed: https://git-scm.com/):

git clone

The developer’s computer must have a downloaded thrift compiler

Thrift is an interface description language used to create various services compatible with different programming languages. Thus, it is possible to connect different operating systems and applications developed in different languages into one working ecosystem. Thrift is a remote procedure call (RPC) framework and binary communication protocol.

It is used as a scalable cross-language service designed for development needs. It combines a software pipeline with a code generation engine for developing services, which efficiently and easily operate among programming languages such as C #, C ++, Delphi, Java, Perl, PHP, Python and JavaScript, etc.

How to use

Let’s  suppose that the thrift.exe compiler is located  in the current folder with the api.thrift file or it is added to the operating system environment variables.

Source code generation example for js

thrift.exe --gen py api.thrift

thrift.exe --gen py variant.thrift

Result of code generation:

API.py

constants.py

ttypes.py

Source code generation example for js

thrift.exe --gen js api.thrift

thrift.exe --gen js variant.thrift

Result of code generation:

API.js

api_types.js

Votes 0, average rating 0

Contents