Skip to content
KitploitKITPLOIT
ToolsExploitsBlog
Log in
Submit
ToolsExploitsBlog
Submit

Hacking, PenTest, and Cybersecurity Tools for Your Security Arsenal!

Kitploit is a directory of hacking, cybersecurity, and pentesting tools. Discover the latest project updates to find vulnerabilities, analyze systems, automate testing, and strengthen your security.

··Feeds·Contact·Privacy·© 2026 Kitploit

Tool Directory

Categories

View all categories
Loading categories
BlockChainConstruction — BlockChain Security Construction | Kitploit
Tools/GitHubGitHub/al1ex/blockchainconstruction
Vulnerability AnalysisCode AnalysisNetwork SecurityCryptographyLearning & EducationCurated Resources
GitHubal1ex/blockchainconstruction

BlockChainConstruction

BlockChain Security Construction

View Repository
3185 years agoNot yet reviewed

Most Popular

View all →

Discover the most used tools by our community.

Explore all tools

Browse our collection of tools

View all tools →
Share

Preface

In this article, we mainly introduce several aspects of public chain audit which are worthy of attention. For security auditors and public chain developers, this is a project worthy of reference and thinking.

Architecture

Before introducing the construction of public chain system, let's take a look at the architecture of blockchain:

Blockchain 1.0 era:

Architecture: as shown in the figure below

Representative products: bitcoin, reborn coin, dogcoin, Leyte coin, MasterCard coin, etc

blockchain

Blockchain 2.0 era:

Architecture: as shown in the figure below

Representative products: Ethereum, lisk, hyperledger, etc

Major changes:

  • Application layer: added smart contract
  • Excitation layer: shorten the block time to 16 seconds
  • Consensus layer: add dpos, POS, pbft
  • Data layer: expanded the block, support sending data and variables, using optimized encryption algorithm and Merkle tree

blockchain

Blockchain 2.0 era

Architecture: as shown in the figure below

Representative products: EOS, VaR, AE, ash, ELA, dfinity

Main changes: the application scenarios of blockchain in all walks of life outside the financial industry can meet more complex business logic

blockchain

Sec Construction

Next, we will give a brief introduction to the problems worthy of consideration in the security construction of the blockchain public chain according to the architecture of the blockchain. About 75% of the problems have caused public chain security problems, which are also some points worthy of attention in the public chain security audit. Here, we give them in the form of questions to arouse our thinking, If you want to have a further discussion, you can do it directly in issue:

Data layer

Data layer is the bottom layer technology, and its main functions are data storage, account and transaction implementation and security. Data storage is mainly based on Merkle tree, which is realized by block and chain structure. Most of them are persistent by kV database, such as bitcoin and leveldb adopted by Ethereum.

The data layer is worth thinking about as follows:

  1. Is the data structure design of public chain block reasonable?
  2. Does the public chain encryption algorithm meet the requirements of cryptography?
  3. Is the design of Merkle tree reasonable?
  4. Is the CRUD design of Merkle tree node reasonable?
  5. Is the design of public chain block timestamp verification logic reasonable?
  6. Public chain database data storage and data CURD security?
  7. Is the public key/mnemonic generation algorithm secure enough?
  8. Is public key/mnemonics encrypted?
  9. Is there any abuse/memory residue in public key/mnemonics?

Network layer

The main purpose of the network layer is to realize the information interaction between the nodes of the blockchain network. The essence of the blockchain is a peer-to-peer (P2P) network. Each node can receive information and also produce information. The nodes maintain communication by maintaining a common blockchain. In the blockchain network, each node can create a new block. After the new block is created, other nodes will be notified by broadcasting. In turn, other nodes will verify the node. When more than 51% of the users in the blockchain network pass the verification, the new block will be added to the main chain.

There are several points worth thinking about the network layer

  1. Is the design of public chain node discovery algorithm reasonable?

  2. Is the design of public chain nodes reasonable?

  3. Is the design of punishment mechanism reasonable?

  4. Is the design of communication protocol reasonable?

  5. Is the request processing design of public chain node reasonable?

  6. Is there a limit on the size of the request processing packet?

  7. Is the design of public chain transaction communication mechanism reasonable?

  8. Is the block data synchronization mechanism reasonable?

  9. Is the logic design of transaction processing reasonable?

Consensus layer

The consensus layer enables highly dispersed nodes to reach a consensus on the effectiveness of block data in a decentralized system. Every running blockchain needs a consensus algorithm to ensure the effectiveness and order of block output. Common consensus algorithms include pow, POS, dpos, Poa, POC, etc.

On the consensus level, we should consider the following points:

  1. Is the design of public chain consensus algorithm safe?

  2. Is the design of public chain consensus verification reasonable?

  3. Is the design of public chain consensus forfeiture reasonable?

  4. Is the design of public chain service fee reasonable?

  5. Is the design of public chain mining reasonable?

  6. Is the block difficulty dynamic adjustment design reasonable?

  7. Is the logic design of block difficulty check reasonable?

  8. Design of chain reorganization, chain reset, chain bifurcation, etc?

Incentive layer

The purpose of the public chain incentive layer is to provide certain incentive measures to encourage nodes to participate in the security verification of the blockchain, and to ensure the balance and healthy development of the blockchain ecology. In the decentralized common chain, it is necessary to set up the corresponding incentive mechanism to encourage the participating accounting nodes who comply with the rules, and establish the punishment mechanism to punish the participating accounting nodes who do not comply with the rules. The incentive layer of blockchain introduces economic factors into the blockchain technology system, which improves the efficiency of organizational cooperation and value exchange within the ecology. The incentive mechanism of public chain is an important mechanism to ensure the virtuous development of blockchain.

There are several points worthy of our consideration about the incentive level

  1. Is the design of public chain issuing mechanism reasonable?

  2. Is the design of public chain punishment mechanism reasonable?

Contract layer

The contract layer encapsulates all kinds of script codes and algorithms of the blockchain system, as well as the more complex smart contracts generated from them. If the three levels of data, network and consensus, as the underlying "virtual machine" of the blockchain, respectively undertake the functions of data representation, data dissemination and data verification, the contract layer is the business logic and algorithm based on the blockchain virtual machine, which is the basis for realizing the flexible programming and data operation of the blockchain system. Most digital cryptocurrencies, including bitcoin, use non Turing complete simple script code to program and control the transaction process, which is also the rudiment of smart contract. With the development of technology, there are Turing complete script languages such as Ethereum that can realize more complex and flexible smart contract, Blockchain can support many applications of macro financial and social systems.

We should consider the following points about the contract layer:

  1. Contract virtual machine security design?

  2. Contract deployment / execution / interface?

  3. Security related to smart contract?

Application layer

Download Tool