OKX Blockchain 60 Lessons | Episode 11: Cryptography in Blockchain (Part 1)

OKX Blockchain 60 Lessons | Episode 11: Cryptography in Blockchain (Part 1)

OKX Tutorial Team

OKX Blockchain 60 Lessons | Episode 11: Cryptography in Blockchain (Part 1)

"OKX Blockchain 60 Lessons" is a blockchain educational animated video series jointly produced by OKX and Sina Technology. It targets users with zero baseline knowledge of blockchain and uses articles, animated videos, and other formats to vividly explain blockchain concepts through 5 major sections and 60 knowledge points, covering concepts, technology, and applications. The content of this episode was guided by Xiong Yue, Partner at Bitxin.

Hello everyone, I'm Xiao K. Today we're going to cover: "Cryptography in Blockchain (Part 1)."

As we discussed before, the four core technologies of blockchain are cryptography, distributed ledger, consensus mechanism, and smart contracts. Cryptography is the most important among them, as it protects the security of the blockchain system — you could say it is the cornerstone of blockchain. All other technologies are built upon this foundation, allowing us to construct the towering edifice of blockchain.

Blockchain primarily uses two branches of cryptography: one is hash algorithms, and the other is asymmetric encryption. In this lesson, Xiao K. will mainly explain what "hash algorithms" are in blockchain cryptography.

format,webp

Simply put, a hash algorithm is a special kind of function — no matter how long a string of characters you input, the function always produces an output of a fixed length. Think of it like an ID card number: whether you're from Beijing or Shanghai, everyone's ID card number is 18 digits and unique nationwide.

Similarly, hashing is also a compression mapping — it can transform input of any length into output of a fixed length, always a fixed 256 bits. This resulting output value is called the hash value.

Hash algorithms have three characteristics: one-wayness, tamper resistance, and collision resistance. These give blockchain its immutability, anonymity, and other features, and protect the security of the entire blockchain system.

Let's start with the first characteristic: one-wayness. One-wayness means that in a hash function, you can derive output from input, but it is virtually impossible to reverse-engineer the input from the output. For example, if we input a known string A and get the hash value F(A), we cannot work backward from this hash value F(A) to recover the data we input.

format,webp

When blockchain packages data into blocks, the data is all processed through hash algorithms. It is precisely based on the one-wayness of hash algorithms that blockchain effectively protects the security of our information.

The second characteristic of hash algorithms is tamper resistance. Tamper resistance means that for any input, even a very small change — such as a single punctuation mark — will cause the hash value to change dramatically.

This feature plays a critical role in the linking between blocks.

Each block in the blockchain uses the hash value of the previous block as its identifier, which is then processed through the hash algorithm. This way, subsequent blocks can not only look up all preceding blocks but also verify whether the data in preceding blocks has been altered. Unless someone can crack all the hash values across the entire chain, once data is recorded on the chain, it is impossible to tamper with.

The third characteristic of hash algorithms is collision resistance. Collision refers to when two different input data values produce the same output — similar to running into someone wearing the same outfit while shopping.

format,webp

Collision resistance means that for most inputs, a unique output can be obtained. Note that we can only say the probability of a collision is extremely low, but it does not mean collisions are impossible, because none of the existing hash algorithms can be proven mathematically to never experience collisions.

The third characteristic of hash algorithms is primarily applied in blockchain account addresses. In the world of blockchain, every transaction and account address is generated entirely based on hash algorithms. The purpose of this is to ensure the uniqueness of transaction or account addresses within the blockchain network — no matter how much money I transfer or how many people I send it to, it remains a unique entry in blockchain's grand ledger.

Overall, hash algorithms are the most fundamental element in blockchain technology. They are like the white blood cells in our bodies — not only is every part of blockchain dependent on them, but they also endow blockchain with its various features, protecting the security of the entire blockchain system.

Thanks to Teacher Xiong Yue for his assistance and guidance on the content of this episode.

Disclaimer

This article may contain product-related content that is not applicable in your region. This article is dedicated to providing general information only and does not accept responsibility for any factual errors or omissions contained herein. This article represents the personal views of the author only and does not represent the views of OKX. This article is not intended to provide any advice, including but not limited to: (i) investment advice or investment recommendations; (ii) offers or solicitations to buy, sell, or hold digital assets; or (iii) financial, accounting, legal, or tax advice. Holding digital assets (including stablecoins) involves a high degree of risk and may fluctuate significantly, or even become worthless. You should carefully consider whether trading or holding digital assets is appropriate for you based on your financial situation. For questions about your specific circumstances, please consult your legal/tax/investment professional. The information contained in this article (including market data and statistics, if any) is provided for general reference purposes only. Although all reasonable precautions have been taken in preparing this data and these charts, we assume no responsibility for any factual errors or omissions expressed herein. © 2025 OKX. This article may be reproduced or distributed in its entirety or in excerpts of 100 words or less, provided that such use is non-commercial in nature. Any reproduction or distribution of the full article must prominently state: "This article is copyrighted © 2025 OKX, used with permission." Permitted excerpts must cite the article name and include attribution, for example: "Article name, [author name (if applicable)], © 2025 OKX." Portions of this content may have been generated or assisted by artificial intelligence (AI) tools. Derivative works and other uses of this article are not permitted.

Show More

Recommended Reading

thumbnail:ok-blockchain-lecture-60-episode-43-cn

OKX Blockchain 60 Lessons | Episode 43: The Rise of the Mining Circle (Part 2) — The Rise of Bitmain

Hello everyone, I'm Xiao K. Today we're going to cover: "The Rise of the Mining Circle (Part 2) — The Rise of Bitmain." In the previous lesson, we discussed two people who opened the doors to capitalization and commercialization in the mining circle: Pumpkin Zhang — Zhang Nan-geng — and Fried Cat — Jiang Xinyu. Although they jointly inaugurated the golden age of the mining circle, it was someone else who truly pushed the mining industry to its peak, and that person's name is Wu Jihan.

2025年9月18日

thumbnail:ok-blockchain-lecture-60-episode-2-why-is-blockchain-called-blockchain-cn

OKX Blockchain 60 Lessons | Episode 2: Why is Blockchain Called Blockchain?

"OKX Blockchain 60 Lessons" is a blockchain educational animated video series jointly produced by OKX and Sina Technology. It targets users with zero baseline knowledge of blockchain and uses articles, animated videos, and other formats to vividly explain blockchain concepts through 5 major sections and 60 knowledge points, covering concepts, technology, and applications. The content of this episode was guided by Meng Yan, Deputy Dean of the Digital Assets Research Institute. In 2008, a global financial crisis erupted. On October 31st, "

2025年9月18日

thumbnail:ok-blockchain-lecture-60-episode-16-what-is-the-pow-consensus-mechanism-cn

OKX Blockchain 60 Lessons | Episode 16: What is the PoW Consensus Mechanism

"OKX Blockchain 60 Lessons" is a blockchain educational animated video series jointly produced by OKX and Sina Technology. It targets users with zero baseline knowledge of blockchain and uses articles, animated videos, and other formats to vividly explain blockchain concepts through 5 major sections and 60 knowledge points, covering concepts, technology, and applications. The content of this episode was guided by Huang Fangyu, Co-founder of Wanyou Computing Power. Hello everyone, I'm Xiao K. Today we're going to cover:

2025年9月18日

thumbnail:ok-blockchain-lecture-60-episode-51-cnpng

OKX Blockchain 60 Lessons | Episode 51: 2019, Giants Enter the Market, Facebook's Cryptocurrency Dream

Previously, we discussed how in 2018, as blockchain was being overly hyped and inflated, the industry entered a dramatic de-bubble process, plunging the entire sector into a winter. However, crisis and opportunity coexist — this periodic downturn in the industry also happened to provide the perfect timing for international giants to enter the market. In February 2019, Wall Street financial giant JPMorgan Chase sounded the horn for international giants to enter the blockchain space, followed by Goldman Sachs, UBS, Citigroup, Microsoft, and other giants.

2025年9月18日

thumbnail:ok-blockchain-lecture-60-episode-7-what-does-the-fork-in-the-blockchain-mean-cn

OKX Blockchain 60 Lessons | Episode 7: What Does a Fork in the Blockchain Mean?

"OKX Blockchain 60 Lessons" is a blockchain educational animated video series jointly produced by OKX and Sina Technology. It targets users with zero baseline knowledge of blockchain and uses articles, animated videos, and other formats to vividly explain blockchain concepts through 5 major sections and 60 knowledge points, covering concepts, technology, and applications. The content of this episode was guided by Boolean费墨, an Austrian School economist. A fork in the blockchain, you could say, is a unique pheno

2025年9月18日

25-什么是闪电网络png

OKX Blockchain 60 Lessons | Episode 25: What is the Lightning Network?

Hello everyone, I'm Xiao K. Today we're going to cover: "What is the Lightning Network"? The Lightning Network refers to a technology first proposed in 2015 by Joseph Poon and Thaddeus Dryja in a whitepaper, designed to solve Bitcoin transaction congestion. The origin of this technology stems from a problem left over from Bitcoin's early days. Because when Bitcoin was originally designed, a

2025年9月18日

Related Articles