Sitemap

Proposal on the Application of Cryptography on the Blockchain

24 min readJun 9, 2022

--

Deeptech category: Blockchain

Topic: Proposal on the Application of Cryptography on the Blockchain

Outline

Blockchain has emerged as one of the most innovative application models with capabilities for integrating consensus mechanisms, distributed data storage, digital encryption technology, peer-to-peer transmission, and other computing technologies. It has provided an effective platform for secure and decentralized information exchange. As a matter of fact, digital encryption technologies are the core elements of blockchain technology, thereby drawing attention towards blockchain cryptography.

The assurance of security for user information and transaction data is a mandatory condition for encouraging the popularity of blockchain. So, what is the importance of cryptography in blockchain? The following discussion attempts to reflect on the basics of cryptography and blockchain alongside different types of cryptography implemented in blockchain networks.

The Significance of Security for Blockchain

Before we dive right into understanding the role of cryptography in blockchain, let us reflect briefly on the blockchain itself. It basically refers to a distributed database that offers the features of decentralization, security, traceability, reliability, and immutability. Blockchain takes away the need for traditional approaches for maintaining central nodes and introduces the new approach for mutual maintenance of nodes by multiple users.

As a result, it can entrust information supervision to multiple parties and ensure desired levels of credibility and data integrity. Another important aspect pertaining to blockchain refers to the three distinct types of blockchain platforms. The types of blockchain platforms include public chain, private chain, and alliance chain. All the nodes in a public chain could easily participate or withdraw from the blockchain according to their preferences.

On the other hand, private blockchains impose specific conditions to determine the eligibility of the participating nodes. The alliance chain operates under the joint management of different participating organizations. Over the years, blockchain has been largely associated with the financial industry. However, it has showcased the promising potential for adding value to different sectors alongside reshaping the fundamental tenets of our society.

So, what is the relationship between blockchain and cryptography? The blockchain serves as a representative of distributed databases by storing all the transaction information of users on the blockchain. Therefore, it is reasonable to identify a profoundly higher demand for security performance in the blockchain.

Since blockchain operates with a decentralized, peer-to-peer network model, there is no single node, and nodes don’t have to trust one another. So, blockchain must also ensure appropriate safeguards for transaction information on unsecured channels while maintaining transaction integrity. Therefore, cryptography becomes an essential requirement for blockchain to safeguard user transaction information and privacy alongside ensuring data consistency.

What Does Cryptography Bring for Blockchain?

Now it is important to get a detailed impression of cryptography before taking an overview of blockchain cryptography explained properly. What is cryptography? Crypto basically refers to secrets in the literal sense. Therefore, cryptography technologies are aimed at ensuring complete or pseudo-anonymity.

The primary applications of cryptography primarily focus on ensuring the security of participants and transactions, safeguards against double-spending, and lack of influence of central authorities on operations. Cryptography finds applications across a wide range of purposes. In some cases, it helps in securing different transactions happening on a network. On the other hand, it also finds applications in verifying the transfer of digital tokens and assets.

Blockchain applications leverage the concept of real-world signatures by leveraging cryptography techniques along with encryption keys. Cryptography methods utilize advanced mathematical codes for the storage and transmission of data values in secure formats. As a result, it ensures that only the individuals for whom the transaction or data is intended can obtain, read and process the transaction or data and verify the authenticity of participants and the transaction.

Understanding Blockchain Cryptography with Examples

Press enter or click to view image in full size

Blockchain cryptography is definitely a complicated topic. However, you can achieve a better and simpler understanding of cryptography by reflecting on the fundamentals of its working. Take the example of radio signals that help you listen to broadcasts on your vehicle’s radio. The broadcast is publicly available to everyone, and other people could also listen to the broadcast.

On the other hand, take the example of radio communications between two soldiers on a military mission. Such type of defense-level communications will be highly secure and encrypted, and only the intended participants can receive and know the information. You can find the applications of cryptography in blockchain in the exact same manner.

Basically, cryptography serves as a technique for the transmission of secure messages among two or more participants. The sender leverages a specific type of key and algorithm for encryption of a message before sending it to the receiver. Then, the receiver employs decryption for obtaining the original message. So, what is the important aspect in the operations of cryptography? The answer directly points out encryption keys.

Encryption keys ensure that unauthorized recipients or readers cannot read a message, data value, or transaction. They are the right tools for making sure that the intended recipients only are capable of reading and processing a specific message, data value, or transaction. Therefore, keys are able to bring ‘crypto’ traits to information.

The majority of blockchain applications don’t involve explicit use of sending secret, encrypted messages, especially in the public blockchain. On the other hand, a new generation of blockchain applications utilizes different variants of cryptography encryption for ensuring security and complete anonymity of transaction details. Many new tools related to applications of cryptography in blockchain have emerged over the years with diverse functionalities. Some notable examples of the tools include hashing and digital signatures .

With a basic outline of details in blockchain cryptography explained properly, it is evident that cryptography refers to the practice of creating protocols for preventing third parties from accessing and viewing data. The modern applications of cryptography bring a combination of different disciplines such as physics, math, computer science, engineering, and others.

However, the focus of applications of blockchain cryptography primarily emphasizes terms such as encryption, decryption, cipher, and keys. Readers must have already come to terms with the applications of encryption and decryption in cryptography. Cipher is the algorithm that helps in performing the processes of encryption and decryption, generally by following a series of well-defined steps.

Keys refer to the trivial amount of information required to obtain output from the cryptography algorithm. Now, let us take a look at digital signatures and hashing, the two components that establish the significant role of cryptography in the blockchain.

Implications of Blockchain and Cryptography with Digital Signatures

Digital signature basically refers to a mathematical approach for creating digital codes that are utilized for verifying whether digital messages and documents are legible or not. Public-key encryption is suitable for producing and substantiating the codes. In addition, attaching digital signatures to an electronically disseminated document ensures verification of specifications of the content and the sender.

Before diving further into the implications of blockchain and cryptography with digital signatures, let us reflect back on security fundamentals. It is important to address the requirements of four significant traits in the online transmission of valuable data. The four important traits include confidentiality, non-repudiation, authentication, and integrity.

Generally, encryption algorithms such as AES can address the need for confidentiality. However, digital signatures are preferable alternatives for addressing the requirement of the other three traits of non-repudiation, integrity, and authentication. The effectiveness of blockchain cryptography with digital signatures depends a lot on two prominent methods of encryption.

Symmetric-Key Encryption

The first type of encryption refers to symmetric-key encryption. Symmetric-key encryption focuses on using similar keys for encryption as well as decryption of data. Most important of all, the symmetric-key encryption method is applicable in various information security use cases such as encryption of your hard drive or security of the connection to an HTTPS website. The use of a similar key for encryption and decryption creates issues in the safe transfer of the key between the receiver and the sender. Symmetric-key encryption is also referred to as secret-key cryptography.

Asymmetric-Key Encryption

The second encryption method that has a profound role in the applications of cryptography in the blockchain is asymmetric-key encryption. Asymmetric-key encryption is also known as public-key cryptography and involves the use of different keys for encryption and decryption processes.

The public key and private key can serve the roles of the encryption key and decryption key, respectively. Asymmetric-key cryptography algorithms generate the key-pair, and the public key is shared openly while the private key is maintained in secret. Public-key cryptography, as it is also called, can help two completely unknown parties for exchanging information securely.

Digital signatures leverage public-key cryptography and help individuals to prove ownership of their private keys. Interestingly, users don’t have to reveal their private keys to the other parties as they can prove it by decrypting messages. So, the applications of cryptography in blockchain with digital signatures focus on the transaction process for ownership verification.

Use of Cryptographic Hashing in Blockchain Cryptography

The use of cryptographic hashing is also one of the notable highlights in blockchain cryptography explained properly. As a matter of fact, cryptographic hashing presents a basic component of blockchain technology. Hashing enables immutability in blockchain, the most significant feature in the blockchain. The encryption through cryptographic hashing does not involve the use of keys.

On the contrary, hashing in cryptographic leverages a cipher or an algorithm for obtaining a hash value of a particular length from the input. Hashing involves taking a string of any length as input and producing an output with a fixed length. The most common applications of hashing in blockchain are evident in the use of the SHA-256 cryptographic hash function.

Cryptographic hash functions offer various unique traits which establish their productivity for blockchain cryptography. Here is an outline of the characteristics that make cryptographic hash functions suitable for blockchain use cases.

1. Cryptographic hash functions are deterministic. Therefore, no matter how many times you enter a specific input, the hash function delivers the output of the same length. So, whether you enter a string with 3 characters or 200 characters, you would receive the output of the same length, i.e., 32 characters in a fixed string with a combination of numbers and letters.

2. The second important trait that is evident in the case of cryptographic hash functions refers to the uniqueness of output. You don’t have to worry about two different inputs having the same output with cryptographic hash functions. Therefore, they can also offer unique functionalities for avoiding any collisions.

3. Cryptographic hash functions are also associated profoundly with the trait of irreversibility. It is basically impossible to derive the original input from the output by using existing technology and techniques.

4. Another profound characteristic that establishes the significance of hash functions in blockchain and cryptography is the faster computation of hashes. Hash functions can generate outputs faster, thereby ensuring better prospects for faster transaction completion.

5. The avalanche effect is also a prominent highlight in the traits of cryptographic hash algorithms. The avalanche effect basically implies that a small change in the input results could lead to a completely different output.

Get Crypto Fance’s stories in your inbox

Join Medium for free to get updates from this writer.

SHA or Secure Hash Algorithm is the most widely used cryptographic hash function with many variants such as SHA1, SHA256, MD5, and SHA512 being used commonly. Every cryptographic hash function has its unique function as follows,

1. MD5 or the Message-Digest algorithm helps in generating a 128-bit hash value

2. SHA1 is the upgraded version of SHA tailored by NIST and published in accordance with FIPS or Federal Information Processing Standard

3. SHA256 function involves hash value computing with 32-bit words and message digest amounts to 256 bits

4. SHA512 function involves hash value computing with 64-bit words and message digest amounts to 512 bits

Therefore, it is clearly evident that cryptographic hash functions offer unique benefits of mathematics with various appealing properties. So, how are the properties of cryptographic hash algorithms relevant for the role of cryptography in blockchain? Basically, the characteristics of hash functions ensure the following benefits,

1. Access to proof of ownership of specific information without revealing the information

2. Prevention of unauthorized modifications in transactions

3. Verification of transaction confirmation without complete knowledge of the block

4. Reduction of transaction bandwidth

5. Development of cryptographic puzzles for transactions

More explore

  1. Blockchain

Is a distributed database with features of decentralized, traceable, non-tamperable, secure and reliable features. It integrates P2P (Peer-to-Peer) protocol, digital encryption technology, consensus mechanism, smart contract and other technologies together. Abandoning the maintenance mode of the traditional central node and adopting the method of mutual maintenance by multiple users to realize the information supervision among multiple parties, thereby ensuring the credibility and integrity of the data. The blockchain platform can be divided into public chain, private chain and alliance chain. All nodes in the public chain can join or withdraw freely; the private chain strictly limits the qualification of participating nodes; the alliance chain is jointly managed by several participating institutions. Bitcoin was proposed by Nakamoto in 2008, which is the most successful case of digital currency, and is also the most typical application of blockchain. In addition, the blockchain has expanded its unique application value in many aspects and has shown its potential to reshape society. As a representative of distributed database, blockchain stores all user transaction information on the blockchain, which has high requirements for the security performance of blockchain. Blockchain is a decentralized peer-to-peer network. Nodes do not need to trust each other and there is no central node. Therefore, transactions on the blockchain also need to ensure the security of transaction information on unsecured channels and to maintain the integrity of transactions. It can be seen that cryptography

technology occupies the most central position in the blockchain. In blockchain, cryptography technology is mainly used to protect user privacy and transaction information, and ensure data consistency, etc. This paper briefly introduces the cryptographic techniques such as hash algorithm, asymmetric encryption algorithm and digital signature, also elaborates the blockchain infrastructure, the blockchain structure, bitcoin address, digital currency trading and other technologies of blockchain, and also explains how cryptography technology protects privacy and transaction maintenance in the blockchain in detail.

2. Blockchain infrastructures

According to Melanie Swan, founder of the Blockchain Science Institute, blockchain technology has experienced two phase, the first one is the blockchain 1.0 phase of multi-technology portfolio innovation represented by Bitcoin, the second one is the blockchain 2.0 phase represented by Ethereum, which is transferred by digital assets. Typical applications of blockchain technology mainly include Bitcoin, Ethereum, Hyperledgers, etc. Although the implementations are different, there are many commonalities in the overall architecture. As shown in Table 1, the blockchain platform can be divided into five levels: network layer, consensus layer, data layer, contract layer and application layer.

The data layer mainly uses the block data structure to ensure the integrity of data storage. Each node in the network encapsulates the data transactions received over a period of time into a time-stamped data block and links the block to the current longest main blockchain for storage. This layer involves the main techniques of block storage, chain structure, hash algorithm, Merkle tree, time stamp and so on. The consensus layer mainly includes a consensus mechanism, which enables each node to reach a consensus on the validity of block data in the decentralized system[2]. The consensus mechanism mainly has PoW, PoS, PBFT and SBFT. The smart contract that is mainly included in the contract layer is the basis of the blockchain programmable feature. The computerized program that can automatically execute the contract terms is stored in the blockchain in the form of code and data sets. Smart contracts, driven by time or events, are executed by blockchain nodes in a distributed manner. All relevant terms are coded, automatically settled, and triggered by signatures or other external data messages. The network layer includes various data transmission protocols and verification mechanisms. The blockchain is a typical P2P network. All nodes are connected through a planar topology and have no central nodes. Any two nodes can be freely traded, and any node can join or leave the network at any time. The P2P protocol in the blockchain is mainly used for information transmission between nodes. The application layer mainly includes Bitcoin, Ethereum and Hyperledger and so on. Bitcoin is mainly for digital currency transactions. Ethereum adds decentralized applications based on digital currency. Hyperledger do not support digital currency transactions, mainly are enterprise-level blockchain applications.

3. Hash and block structure

The hash algorithm is a function that maps a sequence of messages of any length to a shorter fixed-length value, and is characterized by susceptibility, unidirectionality, collision resistance, and high sensitivity. Hash usually used to ensure data integrity, that is, to verify the data has been illegally tampered with. When the data tested changes, its hash value also changes correspondingly. Therefore, even if the data is in an unsafe environment, the integrity of the data can be detected based on the hash value of the data. SHA is a type of cryptographic hash function issued by the National Institute of Standards and Technology (NIST) with the general characteristics of a cryptographic hash function. The SHA256 algorithm is a class of the SHA-2 algorithm cluster, which generates a 256-bit message digest. The algorithm’s calculation process includes two stages: message preprocessing and main loop. In the message preprocessing stage, binary bit filling and message length filling are performed on the information of any length, and the filled message is divided into several 512-bit message blocks. In the main loop phase, each message block is processed by a compression function. The input of the current compression function is the output of the previous compression function, and the output of the last compression function is the hash value of the original message. RIEPEMD, a summary of the RACE original integrity check message, is a hash function algorithm developed by the COSI research team of the University in Leuven, Belgium. RIPEMD-160 is the most common version of RIPEMD. As the SHA series functions, the first step of the algorithm is message complement, and the complement method is identical to the SHA series algorithm. The core of the processing algorithm is the compression function, which is a loop, where each loop consists of 16 step functions. Using different original logic functions in each loop, the processing of the algorithm is divided into two different cases, with five of the two original logic functions running in reverse order. After all 512-bit packet processing is completed, the resulting of 160-bit output is the hash value of the original message. For blockchain, hash functions can be used to perform block and transaction integrity verification. In the blockchain, the hash value of the information of the previous block is stored in the header of each block, and any user can compare the calculated hash value with the stored hash value. In turn, the integrity of the information of the previous block is detected. Similarly, the hash function can be used to generate public-private key pairs. The hash pointer is a data structure that contains, in addition to the usual pointers, some data information and password hashes associated with the information. A normal pointer is used to retrieve information, and a hash pointer is used to verify that the information has been tampered. As shown in Figure 1 above, the blockchain is a list of hash pointers, each of which is connected by using a hash value. It is verified according to the hash value whether the data contained in the block is changed, thereby ensuring the integrity of the block information. The blocks in blockchain hold all the data information of the whole network, mainly composed of the block header containing metadata and the block body containing all transaction data. The block header encapsulates the previous block hash, the current block’s difficulty target, and the current block solution random number, Merkle root, and timestamp. The block body contains a list of transactions for storing transaction information. Prev Hash: The block hash is a key segment of the blockchain. This field is the hash value of the data information of the previous block, and all the blocks on the chain are sequentially connected. The resulting longest main chain from the creation of the block to the current block is finally formed. Each block not only has the location information of the previous block, but also can verify the integrity of the data contained in the block according to the previous block hash value. Nonce: The header information of each data block contains a random number, and the initial value is 0. The node running the bitcoin mining machine continuously performs a SHA256 operation on the overall data of the block. When the SHA256 value calculated by the current random number does not meet the requirements, then the random number is increased by one unit, and the SHA256 operation is continued. Until the SHA256 value is less than the current data block SHA256 value, then a new data block is generated and the P2P network accepts the new data block. Therefore, the process of generating a new block is actually a process of calculating the SHA256 value and comparing it with the target value. This process of bitcoin data block generation is called Proof of Work. Timestamp: The blockchain technique requires that the node must have a timestamp in the current data block header to indicate the write time of the block data. The blocks on the main chain are arranged in chronological order. The timestamp can be used as a proof of the existence of block data, helping to form a blockchain database that is not tamperable and unforgeable. Target: The target is to make the computing power of the entire network approximately the difficulty level required to generate a block every 10 minutes. The target is automatically recalculated by the blockchain network based on the results of the past two weeks. The target is determined by the SHA256 value in the block. The SHA256 value in the control block header should fall within the controllable range target range to increase or decrease the target. Merkle Root: The Merkle Tree is a hash binary tree originally proposed by the famous cryptographer Merkle to quickly verify the integrity of large-scale data. As shown in Figure 2, the Merkle tree typically contains the transaction database for the block, the root hash of the block header, and all branches along the underlying block data to the root hash. The Merkle tree operation usually groups the data of the block and inserts the generated new hash value into the Merkle tree. Until the last root hash is left and recorded as the Merkle root of the block header, it is finally constructed into a tree structure. Bitcoin uses a double SHA256 hash function, which is to pass two SHA256 hash operations on the original data of arbitrary length, and use 256-bit binary digits for unified storage and identification.

4. Public key system and Bitcoin

The core technologies of cryptography include symmetric encryption and asymmetric encryption. Asymmetric encryption, called public key encryption, can well solve the problem of early distribution of keys in symmetric encryption. In an asymmetric encryption algorithm, the encryption key and the decryption key are different, and are called a public key and a private key, respectively. The private key usually needs to be generated by a random number algorithm, and the public key is calculated by performing an irreversible algorithm. The asymmetric encryption algorithm has the advantages of separate public and private keys, which can be transmitted over unsecured channels. Similarly, it has the disadvantages of low processing speed and low encryption strength, and it is necessary to ensure the security of the asymmetric encryption algorithm based on mathematical problems. Elliptic Curves Cryptography is a common public key encryption algorithm. The security depends on the difficulty of the elliptic curve discrete logarithm problem. The public key encryption algorithm used in the blockchain is secp256k1 in the elliptic curve. secp256k1 is based on an elliptic curve over a finite field. Due to its special construction, its optimized implementation can achieve a 30 percent improvement over other curves. The constant of secp256k1 can effectively avoid the possibility of backdoors. The key pair in the Bitcoin system consists of a private key and a unique public key derived from it. The key pair is generated by public key encryption. In the payment link of bitcoin transactions, the recipient’s address is generated by a public key, called the bitcoin address, which is the payee. As shown in Figure 3, the private key is a number, usually randomly selected, and the public key is generated by encrypting the private key by elliptic curve multiplication. And a single-entry encrypted hash function is used to generate the bitcoin address through the public key.

Generating a Bitcoin private key essentially selects a number between 1 and 2256, and it is necessary to ensure that the result of the selection is unpredictable or non-repeatable. Bitcoin uses the random number generator of the operating system to generate a 256-bit random number as a private key, and multiplies the randomly generated private key k by the defined generation point G on the curve to obtain another point on the curve. That is, the corresponding public key K. The elliptic curve relies on the discrete logarithm problem. The relationship between k and K is fixed, but it can only be a single operation, that is, K is obtained from k, and k is difficult to obtain from K. The generation of currency addresses uses different algorithms on different platforms. Bitcoin uses the SHA256 and RIPEMD160 double hashes to derive the bitcoin address; Ethereum uses the Keccak256 algorithm to generate the Ethereum address. In Bitcoin, the public key K is used as input, and its SHA256 hash value is calculated. Recalculate the RIPEMD160 hash value to get a 160-bit number as the public key hash. Finally, the public key hash is Base58 encoded to form a bitcoin address. Base58 is a widely used encoding format, not only for Bitcoin, but also for other crypto currencies, which combines effective compression, easy reading, and error diagnosis. Bitcoin uses Base58Check in Base58 encoding. A 4-byte error check code is added to the encoded data to effectively check for errors in the transcription.

5. Digital signature and currency trading

The digital signature system usually consists of two parts: a signature algorithm and a verification algorithm. The signature algorithm is used to generate a digital signature on the message, the signature is usually controlled by the signature key, the signature algorithm or the signature key is kept secret, and is controlled by the signer. The verification algorithm is used to verify the digital signature of the message, and the message can be verified according to the signature effectively. The verification algorithm is usually controlled by the verification key, but the verification algorithm and the verification key are public, so the person who needs to verify the signature can easily verify it. In a cryptocurrency system in which the blockchain is the underlying technology, the digital currency owner hashes the content of the previous transaction order of the digital currency and the address of the next owner. The data digitally signed with its own private key is appended to the end of the transaction list and sent to the recipient. The recipient needs to verify the received information to prove the information of the previous owner, and then verify the owner of the transaction. Each transaction in the blockchain records the current owner, previous owner, and next owner of the currency. Therefore, the whole process of money can be traced back, effectively avoiding double payment, false transactions and other issues.

As shown in Figure. 4, user 2 performs payment transactions with user 3. When User 2 needs to pay 10 Bitcoins to User 3, the amount and the source of the Bitcoin are first recorded on the transaction slip. The ten bitcoins of the user 2 are from the user 1, and therefore, to complete the payment transaction of the user 2 to the user 3, it is necessary to record the source of the bitcoin, the amount of the payment, and the digital signature of the user 2. In the transaction authentication process, the signature is mainly completed by the payer. The payer of the transaction first hashes the transaction data information of the previous transaction to obtain its hash value. The payer encrypts the hash using its own private key. The encrypted data is sent to the recipient simultaneously as the digital signature of the previous transaction data message and the previous transaction data. After receiving the information, the receiver will verify the legality of the transaction and use the same hash function as the previous step to obtain a hash summary from the received transaction data information. Finally, the payer’s public key is used to decrypt the additional digital signature of the previous step to obtain another hash digest. By comparing the two summaries, the validity of the order can be ensured. If the two contents are the same, the recipient can confirm the order is valid.

6. Blockchain consensus mechanism

The consensus mechanism is used to determine the accounting nodes in the blockchain network and is used to confirm the transaction information, thereby ensuring the consistency of the data of each block. The early Bitcoin blockchain used a Proof of Work mechanism. This mechanism relies heavily on node computing power to ensure consistent accounting for bitcoin network distributed accounting. The PoW mechanism relies on the computing power competition between distributed nodes to ensure the consistency and security of the entire network blockchain data. Each node needs to rely on its own power to solve the SHA256 calculation problem, that is, to find a suitable random number Nonce, so that the SHA256 hash value of the block header original data is smaller than the setting value of the difficulty target in the block header: Hn h t ( || ) ≤ . H is the SHA256 hash function; n is the random number Nonce; h is the block header data, mainly including the previous block hash, Merkle root, etc.; t is the difficulty target, the smaller the t value, the harder the n value is found; The node that is first found can obtain the accounting rights of the new block. The consensus process of PoW in the blockchain network is as follows: 

Each new transaction is broadcast to all nodes in the blockchain network.  In order to construct a new block, each node collects all transactions received since the previous block was generated, and calculates the Merkle root of the block header based on these transactions. Increase the Nonce of the block header from 0 to 1, until the twice SHA256 hashe value of the block header are less than or equal to the set value of the target. 

The whole network node participates in the calculation at the same time. If a node first finds the correct random number, the node will obtain the new block’s billing rights and mining reward, and broadcast the block to the entire network.  After receiving the new block, the other nodes verify the validity of the transaction and the random number Nonce in the block. If correct, the block is added to the local blockchain, and the next block is built based on the block. . With the development of blockchain technology and the emergence of various competitive currencies, researchers have proposed various mechanisms that can be reached without relying on computing power. For example, PoS and DPoS, as well as some distributed consistency algorithms, such as PBFT, Raft, etc., these consensus mechanisms have their own advantages and disadvantages, and the application scenarios are also different.

7. Security issues in blockchain

The global ledger that stores transaction information in blockchain technology is public, and any node that joins the blockchain network can obtain a complete copy. By analyzing the transaction records in the global ledger, potential attackers may pose a threat to the user’s transaction privacy and identity privacy. Trading privacy threats means that an attacker can obtain valuable information by analyzing transaction records. For example, the fund balance and transaction details of a specific account, the flow of specific funds, and so on. The identity privacy threat means that the attacker can obtain the identity information of the trader by combining some background knowledge based on analyzing the transaction data. In order to counter this attack, we usually use coinjoin, ring signature, Zero-Knowledge Proof and so on. Dash uses a coin measure, Consolidating multiple transactions into a single transaction by a coin node, thereby hiding the relationship between the payment address and the payment address. However, the effect of the coin is too dependent on the number of users participating in the coin, and the large amount of transactions is easy to be cracked. The analyst can also analyze the user’s private information by a certain method, and the mechanism of the coin is easy to crack and cannot achieve the desired effect. Therefore, it is necessary to add a cryptographic mechanism to ensure the security of the mixed currency. Maneroo uses a ring signature, which recognizes the verification signature, and does not know the identity of the signer, thereby hiding the identity information of the sender of the transaction. Zerocash uses zero-knowledge proof to prove the correctness of the transaction to the verifier without leaking the transaction information and additional information. However, the use of cryptography requires a lot of computing resources, and needs to modify the underlying protocol to reduce the efficiency of the blockchain. Data security and privacy protection in the blockchain are severely challenged, and advanced cryptography techniques can effectively solve such problems, but there are still weak links. The private key is generated by the random number generator in the computer system, which is called pseudo-random, has certain regularity, and has the threat of being cracked. Although the SHA-2 algorithm does not have an effective method to crack this series of algorithms, once it is cracked, the privacy and security of all data in the blockchain will no longer exist. In future research, it is necessary to develop a coin-rich mechanism under the protection of cryptography mechanisms, and to minimize the performance requirements. A more secure and reliable cryptographic encryption algorithm is needed to improve the security of the blockchain.

8. Conclusion

This study introduces the main applications of cryptography in the blockchain and analyzes existing problems. Firstly, starting from the blockchain infrastructure, the blockchain technology is simplified. Secondly, the cryptography technology is introduced to elaborate the blockchain. Finally, the existing security problems in the blockchain are analyzed. It shows that digital encryption technology runs through the blockchain system and is the core technology of the blockchain system. This paper emphasizes that the research of cryptography plays a decisive role in the development of blockchain, and prospects the future research direction of blockchain technology.

Speaker Profile

I am Mary Ndak, a Crypto expert, Brand ambassador, Video Editor, Blogger and Research. I have been privilege's to work for different setup over the year.

My knowledge to all this began with an interest to venture into something new. And Over the years I have gathered enough experience and still gathering.

For the past few years, I have been privileged to be an Ambassador for several projects. I have also act as a moderator in a community.

I love work for project that has good future based.

To summarize everything up, I love tech!

--

--

Crypto Fance
Crypto Fance

Written by Crypto Fance

Fance is a Crypto Enthusiast | Brand Ambassador | Content Creator | Promoter’.