Skip to content
February 2019 snapshot
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
apps
LICENSE.txt
README.md

README.md

A monthly update snapshot of the dev repository

That is implementation of The Power blockchain node.

Here is a list of main modules with short description:

Transactions pool

Recieves transations from clients and feeds the block generator in time.

  • tx.erl - transaction constructor, packer, unpacker, verifier
  • txpool.erl - pool of transactions
  • txstatus.erl - transaction status tracking (allows client determine status of transaction and, in case of failure, reason)

Synchronizer

Synchronizer is shard's common time tracker

  • synchronizer.erl - shard's time synchronizer
  • beacon.erl - beacons for shard's topology calculation
  • topology.erl - shard's topology calculator

Block generator

  • block.erl - block manipulation functions
  • mkblock.erl - block constructor
  • bsig.erl - block signature packer

Consensus (block vote)

  • blockvote.erl - collector of votes for block

Ledger

  • ledger.erl - shard's accounts keeper
  • ledger_sync.erl - synchronization of ledgers
  • bal.erl - ledger item (individual account), constructor, packer, unpacker

Blockchain

  • blockchain.erl - block chain tracker
  • naddress.erl - Address format, encoder, parser, constructor
  • chainsettings.erl - API for chain's settings manipulating
  • mkpatches.erl - chain configuration tools
  • nodekey.erl - node key manipulation tools

Sharding

Xchain server/xchain client - mechanism for realtime and deferred delivery of outward blocks (cross shard blocks)

  • xchain.erl - cross shard's data manipulation utils
  • xchain_api.erl - sharding api for cross shard block synchronization
  • xchain_client.erl - clients dispatcher
  • xchain_client_handler.erl - client side sharding api
  • xchain_client_worker.erl - client for cross shard api
  • xchain_dispatcher.erl - connections dispatcher (server side)
  • xchain_server.erl - protocol handler (server side)
  • xchain_server_handler.erl - server for cross shard api

Common utils

  • tpecdsa.erl - secp256k1 cryptography primitives
  • hex.erl - utils for working with hex representation of binary data
  • base58.erl - utils for working with base58 representation of binary data
  • hashqueue.erl - queue implementation with access to it's elements by transaction ID
  • bron_kerbosch.erl - Bron Kerbosch algorithm implementation
  • ldb.erl - database manipulating tools
  • rdb_dispatcher.erl - database manipulating tools

"ThePower.io" Copyright (C) 2018 Mikhaylenko Maxim, Belousov Igor This program is not free software; you can not redistribute it and/or modify it in accordance the following terms and conditions,

TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION

  1. This License applies to any program or other work which contains a notice placed by the copyright holder saying it may be distributed under the terms of this License. The "Program", below, refers to any such program or work.Each licensee is addressed as "you".

  2. You can use this Program only in case of personal non-commercial use.

  3. You may not copy and distribute copies of the Program and Program's source code as you receive it.

  4. You may not modify your copy or copies of the Program or any portion of it, thus forming a work based on the Program, and copy and distribute such modifications or work.

  5. You may not copy, modify, sublicense, or distribute the Program in object code or executable form. Any attempt to copy, modify, sublicense or distribute the Program is void, and will automatically terminate your rights under this License.

NO WARRANTY

  1. THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY APPLICABLE LAW. PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM IS WITH YOU. SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF ALL NECESSARY SERVICING, REPAIR OR CORRECTION.

  2. IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MAY MODIFY AND/OR REDISTRIBUTE THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS), EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES.

END OF TERMS AND CONDITIONS

You can’t perform that action at this time.