header-langage
简体中文
繁體中文
English
Tiếng Việt
Scan to Download the APP
Science Learning
Zero-Knowledge Proofs Zk-rollup zk-SNARKs zk-STARKs Whitelist Wick Win Rate Wrapped Ether (WETH) Weak Subjectivity Web 1.0 Wei Whale Whiskers Vladimir Club Volatility Volume WAGMI Wallet Weak Hands Unit of Account Unspent Transaction Output (UTXO) User Interface (UI) Verification Code Virtual Machine TrueUSD (TUSD) Trustless Turing Complete Understanding CZ’s Number 4 Total Supply Total Value Locked (TVL) TradFi Transaction ID (TXID) Transactions Per Second (TPS) Token Lockup Token Sale Token Standards Tokenomics Supply Chain Support Taker Tank Ticker Token Staking Pool State Channel Store of Value Supercomputer Social Trading Source Code SPL Stablecoin Sidechains Smart Contract Snapshot Social Recovery Wallet Selfish Mining Sell Wall Sentiment Sharding Sharpe Ratio Security Audit Seed Phrase Seed Tag Segregated Witness (SegWit) Rug pull Sandwich Trading Satoshi Satoshi Nakamoto Secure Asset Fund for Users (SAFU) Securities and Exchange Commission (SEC) Relative Strength Index (RSI) Resistance Return on Investment (ROI) Roadmap Routing Attack Quantum Computing Race attack Ransomware Real World Assets (RWAs) Rekt Proposer-Builder Separation (PBS) Proto-Danksharding Pseudorandom Progressive Web application (PWA) Proof of Attendance Protocol (POAP) Proof of Reserves (PoR) Proof of Stake (PoS) Proof of Staked Authority (PoSA) Proof of Work (PoW) Price Action Prisoner's Dilemma Private Key Private Keys Private Sale Permissionless Blockchain Phishing Plasma Polkadot Crowdloan Ponzi Scheme Orphan Block Paper Wallet Passive Management Peer-to-Peer (P2P) Pegged Currency Offshore account Open-Source Software (OSS) Oracle ORC-20 Tokens Order Book Ordinals Node Non-fungible Token (NFT) Nonce OCO Order Off-chain Monitoring Tag Moon Multisignature NFT Floor Prices NFT Mystery Boxes NGMI Metaverse Mining Mining Farm Minting Monetary Policy Mempool Merged Mining Merkle Tree Metadata Market Momentum Market Order Masternode Maximum Supply Mainnet Swap Maker Malware Margin Trading Market Capitalization Liquidity Crisis Liquidity Provider Liquidity Ratios Listing Mainnet Library Lightning Network Linux Liquidity Know Your Customer (KYC) Latency Law of Demand Layer 2 Ledger Leveraged Tokens InterPlanetary File System (IPFS) IOU Isolated Margin Issuance Keccak Initial Coin Offering (ICO) Initial Exchange Offering (IEO) Initial Public Offering (IPO) Integrated Circuit (IC) Interoperability HODL Honeypot Iceberg Order Immutability Index Hash Hash Rate Hashed TimeLock Contract (HTLC) High-Frequency Trading (HFT) Hackathon Hacker Haha Money Printer Go Brrrrr Halving Hard Cap Genesis Block GitHub GM (Good Morning) Golden Cross Gossip Protocol Gwei Fungibility Futures Contract Gas Gas Limit General Public License Formal Verification Fraud Proof Fren Full Node Fundamental Analysis (FA) Flashbots Flippening Forced Liquidation Forex (FX) Fork Fiat Fill Or Kill Order (FOK) Finality First-Mover Advantage (FMA) Fiscal Policy Flappening Fakeout Falling Knife Fan Tokens Fear Of Missing Out (FOMO) Fear, Uncertainty and Doubt (FUD) ERC-721 ETF Ethereum Classic Ethereum Virtual Machine (EVM) Exchange Efficient Market Hypothesis (EMH) Encryption Enterprise Ethereum Alliance (EEA) ERC-1155 ERC-20 Divergence Diversification Do Your Own Research (DYOR) Dollar Cost Averaging (DCA) Double Spending Eclipse Attack Design Flaw Attack Diamond Hands Difficulty Difficulty Bomb Decentralized Indexes Decryption Deep Web Delisting Depeg Decentralized Application (DApp) Decentralized Autonomous Cooperative (DAC) Decentralized Autonomous Organization (DAO) Decentralized Exchange (DEX) Decentralized Finance (DeFi) Custody Daemon Danksharding Dead Cat Bounce Crypto ETFs Crypto Protocol Crypto Winter Cryptocurrency Cryptography Consumer Price Index (CPI) Contango and Backwardation Copy Trading Counterparty Risk Credentials Cross-Chain Bridges Colocation Commodity Futures Trading Commission (CFTC) Compound Interest Confirmation Time Confluence Cipher Circulating Supply Cloud Coin Collateral Central Bank Central Bank Digital Currency (CBDC) Central Processing Unit (CPU) Centralized Centralized Exchange Buy Wall Candidate Block Candlestick Capitulation Censorship-resistance Breakeven Multiple Breakout BUIDL Bull Market BNB Bollinger Bands Bounty BRC-20 Tokens Break-Even Point (BEP) Block Reward Blockchain Blockchain Charity Foundation Bloom Filter Blue-Chip Token Black Swan Event Block Block Explorer Block header Block Height Bitcoin Dominance Bitcoin Maximalists Bitcoin Pizza Binance Ecosystem Fund (BEF) Binance Labs Binancian Bitcoin Bitcoin Core Beta (Coefficient) Beta (Release) Bid Price Bid-Ask Spread Binance Community Vote Benchmark BEP-2 BEP-20 BEP-721 BEP-95 B-Tokens Bags Beacon Chain Bear Market Asynchronous Atomic Swap Attack surface Auction Automated Market Maker (AMM) Arbitrage ASIC-resistant Ask Price Asset Management Altcoin Angel Investor Anti Money Laundering (AML) Application Programming Interface (API) Application-Specific Integrated Circuit (ASIC) All-Time High (ATH) Allocation Alpha Address Airdrop Algorithm All or None Order (AON) Absolute Advantage Active Management Ad Hoc 51% Attack What is ransomware? Proof of entrusted rights and interests Detailed explanation of market placers and market takers What is a 51% attack? What is inflation? What is a dust attack? What is BNB? What is phishing? What is keylogging universal security principles Pyramids and Ponzi Schemes Explained A Beginner’s Guide to the Bitcoin Lightning Network Delayed proof of work What is a node? Moving averages explained Hard fork and soft fork The difference between blockchain and Bitcoin An explanation of liquidity The history of blockchain Byzantine Fault Tolerance What is a cryptocurrency? Burn proof explained Sybil Attack What is Proof of Stake (PoS)? What is Proof of Work (PoW)? What is token burning? What is the RSI indicator? Bollinger Bands Indicator Explanation Authoritative proof explanation What is Trust Wallet(TWT)? Binance Two-Factor Authentication (2FA) Guide What is a market order? What is a limit order? Withdrawal whitelist address What is a limit, take profit, and stop loss order? How blockchain works How to deposit money on Binance Anti-phishing code setting guide How to Withdraw Cash on Binance Convert Dust in Binance What is the blockchain consensus algorithm? Proof of Work (PoW) vs Proof of Stake (PoS) Advantages and Disadvantages of Blockchain On Game Theory and Cryptocurrency What is fiat currency? 2008 financial crisis What is Ripple? What is tulip fever? What is a multi-signature wallet? What is Ethereum Plasma? Why public Wifi is unsafe The history of cryptography What is a DoS attack? Blockchain use case: supply chain What is a replay attack? What is public key cryptography? What is an Initial Coin Offering (ICO)? What is a fractional reserve system? What is quantitative easing (QE)? Blockchain use case: charity Blockchain application case: medical insurance What is Stochastic RSI? What is hyperinflation? What ensures the security of blockchain? What is social engineering? Blockchain application cases zk-SNARKs and zk-STARKs explained Binance Chain Explorer User Guide Binance Chain: Things to avoid on the test network Detailed explanation of hybrid PoW/PoS consensus mechanism What are forward and futures contracts? MACD indicator explanation What is technical analysis? Symmetric encryption vs asymmetric encryption Blockchain application case: Internet of Things (IOT) What is symmetric encryption? Detailed explanation of Ichimoku Cloud What is an options contract? What is leveraged trading? Common scams on mobile devices What is PGP? Lease Proof of Stake (LPOS) Consensus Algorithm Blockchain use case: electronic identity Binance Margin Trading Account Setup Guide Detailed explanation of atomic swap Application cases of blockchain: government governance What is a cryptocurrency wallet? Detailed explanation of Ethereum Casper What is hashing? What is a perpetual futures contract? Device fingerprinting: How were you exposed? What is a 2-for-1 order? What is a digital signature? Blockchain application case: transfer and remittance What is Mimblewimble? Detailed explanation of financial risks Detailed explanation of Wyckoff analysis method market cycle psychology What are leading and lagging indicators? Detailed explanation of peer-to-peer network What is equity pledge? What is a smart contract? Detailed explanation of trend lines A Beginner’s Guide to Segregated Witness (SegWit) An introduction to cryptoeconomics A Brief Guide to the Parabolic Indicator The Ultimate Guide to Binance Futures Trading A risk management guide for beginners The Complete Beginner’s Guide to Decentralized Finance (DeFi) Blockchain use case: Gaming How blockchain technology will impact the banking industry The Ultimate Guide to Key Proof Day What is the difference between private chain, public chain and consortium chain? A Beginner’s Guide to Earning Passive Income Using Digital Currencies Insights from a Professional Cryptocurrency Trader - Nik Patel Quantum computers and cryptocurrencies Asset allocation and diversification explained What is an Eclipse Attack? Introduction to Dow Theory Introduction to Dark Pools Introduction to Web 3.0 and its importance Detailed explanation of double spending problem Blockchain and artificial intelligence-detailed explanation of future technologies Beginner's Guide to K-Line Charts Introduction to Confidential Transactions Introduction to Elliott Wave Theory Analyzing Bitcoin 12 types of K-line charts commonly used in technical analysis Blockchain Scalability - Sidechain Technology and Payment Channels A guide to digital currency collectibles and non-fungible tokens (NFTs) SafePal S1 – Hardware Wallet Review 2022 Trezor Model T – 2022 Hardware Wallet Review Trezor On – Hard Wallet Review 2022 Cobo Vault – Hardware Wallet Review 2022 Why you should use a hardware wallet 5 basic indicators used in technical analysis Blockchain use case: prediction markets What is Ethereum? Ledger Nano S – Hardware Wallet Review 2022 Ledger Nano X – Hardware Wallet Review 2022 KeepKey – Hardware Wallet Review 2022 CoolWallet S – Hardware Wallet Review 2022 Detailed explanation of Decentralized Autonomous Organization (DAO) What is selfish mining Token Mixing and CoinJoin Interpretation "Fibonacci Retracement Study Guide" Bitcoin and Stock-to-Flow Ratio Model Beginner’s Guide to Classic Chart Patterns How to calculate position size in trading A brief discussion on "Black Monday" and the stock market crash Detailed explanation of mining pools A Beginner’s Guide to Security Tokens Is Bitcoin a store of value? 7 simple steps to protect your Binance account Detailed explanation of dollar cost averaging (DCA) 5 Common Cryptocurrency Scams and Prevention Strategies Detailed explanation of the basic principles of support and resistance A Beginner’s Guide to Binance Leveraged Token (BLVT) Detailed explanation of volume weighted average price (VWAP) A Beginner’s Guide to Cryptocurrency Trading Strategies How to Safely Store Digital Currency 7 common mistakes in technical analysis (TA) What is fundamental analysis (FA)? How to trade delivery futures on Binance A must-read for newbies: A complete guide to cryptocurrency trading What is currency? What is the Golden Cha and the Dead Cha? Binance API Series Part I – Spot Trading with Postman Introduction to Bitcoin Script What do Schnorr signatures mean for Bitcoin? Detailed explanation of Merkel tree and Merkel root What is end-to-end encryption (E2EE)? A Beginner’s Guide to Cryptocurrency Day Trading What is a short squeeze? Introduction to ERC-20 Tokens What does short selling mean in financial markets? What is a bull market? What is a Directed Acyclic Graph (DAG) in cryptocurrency? How does the economy work? A Beginner’s Guide to Swing Trading Cryptocurrency What is a bear market? Tokenizing Bitcoin in Ethereum Explained What exactly is liquidity mining in decentralized finance (DeFi)? 12 Terms Cryptocurrency Traders Must Know What is cryptocurrency short-term trading? How to use MetaMask What are flash loans in DeFi? What is Compound Finance in Decentralized Finance (DeFi)? What is SushiSwap and how does it work? How to create technical analysis indicators on TradingView What is Uniswap? How does it work? What is risk-reward ratio and how to use it PancakeSwap Guide A Guide to Cryptocurrency Fundamental Analysis Binance Dual Currency Investing Quick Start Guide Seven indicators that decentralized finance (DeFi) investors must know What is Dogecoin? What is an automated market maker (AMM)? What is Binance Smart Chain? What are cookies? What is a decentralized exchange (DEX)? What is impermanent loss How to Calculate Return on Investment (ROI) Learn about the different order types Connect MetaMask wallet in Binance Smart Chain How to use a Bitcoin ATM How to use the Bitcoin Blockchain Explorer What is Alpha Homora in DeFi? Six Binance Smart Chain (BSC) Metrics You Must Know Introduction to Binance Bridge What is arbitrage trading? An introduction to Ethereum 2.0 and its importance Getting Started with BakerySwap What is Yearn.finance (YFI)? What is a trading journal and how to use it What is Curve Finance in Decentralized Finance (DeFi)? BurgerSwap(BURGER) Guide How to spot a scam in decentralized finance (DeFi) What is Chainlink (LINK)? 8 common Bitcoin scams and strategies to prevent them What is backtesting? What is an elastic supply token? What is MakerDAO (DAI)? What is Taproot and how does it benefit Bitcoin? Who is Satoshi Nakamoto? What is Polkadot (DOT)? What are the liquidity pools in the DeFi field? How do they work? Detailed explanation of cryptocurrency market capitalization What is Swipe Token (SXP)? What are Spark (FLR) and Flare Network? what is interest rate What is Facebook Libra (Diem)? What is an Initial Exchange Offering (IEO)? What is Tether (USDT)? What is Aave (AAVE)? How to backtest a trading strategy What is Cardano (ADA)? What is Basic Attention Token (BAT)? What are network effects? Review of Binance Academy’s major events in 2020 What is Filecoin (FIL)? Detailed explanation of Central Bank Digital Currency (CBDC) Beginner’s Guide to Binance Finance What is a wrapped token? What is VeChain (VET)? What is Tezos (XTZ)? What is OmiseGO (OMG)? Detailed explanation of Tendermint What is spoofing in financial markets? What is a Bitcoin ETF? What are blockchain transaction fees? Getting Started Guide to BNB Smart Chain (BSC) What is Axie Infinity (AXS)? Binance Beginner’s Guide How to recover digital currency transferred to the wrong network on Binance A quick guide to staking Binance Coin on Binance Smart Chain (BSC) How to make your own NFT How to withdraw BEP-20 tokens on Binance Smart Chain The top three NFT projects on Binance Smart Chain What is BETH and how to use it How to use Binance Chain wallet How to cancel or replace a pending Ethereum transaction Bitcoin Mining Guide How to invest in Bitcoin and altcoins What are Cryptopunks? Connect Trust Wallet wallet in BNB Smart Chain (BSC) What is "Decentraland" (MANA)? 7 things you need to know about NFTs What is cryptocurrency market sentiment? What is the Ethereum London Hard Fork? "Seven Major NFT Use Cases" What is Solana (SOL)? Detailed explanation of bid-ask spread and sliding spread TradingView Beginner’s Guide Getting Started with Binance NFT Market Why is Bitcoin valuable? What is Synthetix (SNX)? What is Bitcoin Cash (BCH)? What is the Cryptocurrency Fear and Greed Index? What is Forex trading? How to use WalletConnect How is Binance Smart Chain different from Ethereum? What is Polygon (MATIC)? Comparison of custodial and non-custodial NFTs: What is the difference between the two? Best Cryptocurrency Wallets for BNB Smart Chain (BSC) How are cryptocurrencies taxed? What is the spot market and how is spot trading conducted? How to trade Bitcoin futures contracts How to Build a Balanced Cryptocurrency Portfolio How to trade cryptocurrencies responsibly Bitcoin price history overview An introduction to QuickSwap concepts and how it works What is Avalanche (AVAX)? An introduction to the concept of NFT games and their operating principles What is KYC (Know Your Customer)? What is Anti-Money Laundering (AML)? What are Binance Fan Tokens? What is Etherscan and how to use it? Why has Loot become a popular project in the NFT gaming community? What is a cryptocurrency card and how it works What is the Metaverse? How to connect Ledger Nano to Binance Smart Chain (BSC)? Introduction to NFT blind box and its operating principle How to create your own cryptocurrency? How to use Ronin wallet? Beginner’s Guide to Binance Lite What is "Play and Earn" and how to cash out? What is Illuvium (ILV)? What is Shiba Inu Coin (SHIB)? What is Cosmos (ATOM)? What is Smooth Love Potion (SLP)? What is the Ethereum Name Service (ENS)? What is Sandbox (SAND)? BscScan concept and usage analysis What is the Boring Ape Yacht Club (BAYC)? What is a memecoin? What is NFT staking and how does it work? 6 international giants who are creating the Metaverse What is Litecoin (LTC)? What is a nested trading platform? Why must we avoid it? 4 Blockchain and Cryptocurrency Projects in the Metaverse What is Audius (AUDIO)? 7 major technologies that promote the development of the Metaverse Binance Academy 2021 Year in Review An introduction to DeFi 2.0 and its importance What is a non-fungible token (NFT) virtual land in the Metaverse? What is an initial game release (IGO)? What is the Ethereum Arrow Glacier Upgrade? How to use Polygon Bridge? What is an IDO (Initial Decentralized Exchange Offering)? How to add the Avalanche consensus protocol to MetaMask? How to add Polygon to MetaMask? What is Wrapped XRP (wXRP) and how does it work? How to buy land in the Metaverse? What is BNB automatic destruction? What is a cryptocurrency airdrop? Cryptocurrency Payments Explained Cryptocurrency Lending and How It Works How to use Avalanche wallet? What is Algorand (ALGO)? What is Layer 1 in blockchain? Analysis of the concept and usage of SolScan How to create a DAO? Wrapped Ethereum (WETH): Concept and Packaging What is Porto Fan Token (PORTO)? What are Yield Guild Games (YGG)? What is the NEAR Protocol (NEAR)? What is leverage in cryptocurrency trading? What is Harmony (ONE)? What is smart contract security audit? How to trade the hammer candlestick pattern What is the difference between custodial and non-custodial wallets? What is WOO Network(WOO)? What is COTI? What is Ankr (ANKR)? What is THORChain(RUNE)? What is Immutable X(IMX)? What is ApeCoin (APE)? What is Qtum (QTUM)? The concept of GameFi and how it works The 10 most expensive NFTs sold to date How to add Arbitrum to MetaMask? Six Top Dual Currency Investment and Trading Strategies How to add Fantom to MetaMask? What is NEXO (NEXO)? What is a decentralized application (DApp)? What is a cryptocurrency faucet? What are Liquidity Pool (LP) tokens? What are governance tokens? Blockchain Layer 1 and Layer 2 expansion solutions What is the difference between cryptocurrencies and stocks? What is XRP Ledger (XRPL)? What is PAX Gold (PAXG)? What is SKALE (SKL)? What is STP (STPT)? What is an investment DAO? What is the Bitcoin (BTC) Leading Index? What is a blockchain bridge? What is Kyber Network (KNC)? What is tokenomics? Why is it important? What is Band Protocol (BAND)? What is UMA? What is Lisk (LSK)? A comprehensive introduction to the Ethereum merge and upgrade What is MANTRA (OM)? What is BitTorrent (BTTC)? What is Livepeer (LPT)? What is Soul-Bound Token (SBT)? Take-profit and stop-loss points and their calculation methods What is Lido (LDO)? What are BurgerCities (BURGER)? Can there be multiple metaverses? How to Become an NFT Artist: Getting Started with the Binance NFT Market Ethereum moves to proof-of-stake: What Ethereum holders need to know What is High Street (HIGH)? What is Metaverse Real Estate? What is BENQI (QI)? Who is NFT artist Beeple? Why the fame? What is the average amplitude indicator? Web2 vs. Web3: Which one is better? What is a cryptocurrency white paper? What is Binance Oracle? What is the relationship between blockchain and Web3? Which companies have invested in the Metaverse? A brief history of the Bitcoin Leading Index What is the blockchain ternary paradox? What is WOOFi? Cryptocurrency Mining Guide What is GMX? What is Venus Protocol? What is TrueFi (TRU)? "Five Risk Management Strategies" What is Polymesh (POLYX)? What is a behavioral bias? How to avoid behavioral biases? What is a cryptocurrency index fund? A brief history of the Metaverse and the role of cryptocurrencies What is Proof of Reserves and how does it work on Binance? Binance Academy 2022 Year in Review What is DeFi’s real rate of return? What are dynamic NFTs and how do they change? The concept of zero-knowledge proof and its impact on blockchain What is Hashflow (HFT)? What is Hooked Protocol (HOOK)? Ethereum Shanghai upgrade concept and its impact What are token standards? What is Layer 0 in blockchain? What is an API key and a guide to using it securely What is EOS? What is peer-to-peer trading and how is it used? What is the time value of money? What is Maximum Extractable Value (MEV)? How AI Impacts DeFi: Promises and Delusions What is formal verification of smart contracts? How to set and achieve personal financial goals What are permissioned and permissionless blockchains? Trading Psychology: How to Avoid Emotional Trading How do DeFi protocols bring revenue and why is it important? Four self-research methods on DeFi liquidity mining The difference between optimistic aggregation and zero-knowledge aggregation What is BNB Greenfield? How will AI affect the NFT art ecosystem? What is triangular arbitrage and how to exploit it? What are the common cross-chain bridging security vulnerabilities? What are Ordinals? Bitcoin NFT Overview What is ERC-4337, the Ethereum Account Abstraction? What is decentralized storage? What is cross-chain interoperability? What is a cryptocurrency? What are some common security issues with GameFi? How Web3 will change the worlds of sports, music and fashion How to Conduct Peer-to-Peer (C2C) Transactions Safely What is cryptocurrency mining and how does it work? What are non-fungible tokens (NFTs)? What are crypto whales and how can you spot them? What is an air gap wallet? What is a cryptocurrency gaming currency? What to consider when building your investment portfolio What is data tokenization and why is it important? What is a stablecoin? How to protect crypto assets after death and transfer them to heirs How to create an NFT What is ZkEVM and how does it enhance the Ethereum ecosystem? The difference between Bitcoin spot ETF and Bitcoin futures ETF Introduction to Isolated Margin and Cross Margin in Cryptocurrency Trading A detailed guide on how to grow your savings An introduction to NFT lending and how it works How hedging works in the cryptocurrency field and what you need to know about seven hedging strategies An introduction to cryptocurrency trading bots and how they work Comprehensive Guide to NFT Categories What is Uniswap V4? What is two-factor authentication (2FA)? What is BASE – Coinbase’s Layer 2 Network? What is EIP-7514 The thunder is loud but the rain is small, is the FTX liquidation really that scary? What is Tip Coin? Can I earn a bowl of pig's trotter rice through it? What is OpenSea What is a vampire attack What is the Cosmos v12 upgrade What is Rebase Token? What are the U.S. government Bitcoin addresses? What is Shiba Inu (SHIB): The Memecoin that strives to shed the Meme tag What is a banana gun? Can you charge? What is Restaking What is EigenLayer What is ERC-6551: The most important innovation in the NFT space after ERC-721 What is Rollbit? Why is it so popular recently? Bitcoin spot ETF application review - when will it be approved? What is order book liquidity? How to compare liquidity data of major exchanges in real time through TokenInsight? What is EIP-4844? How Cancun Upgrade Reduces Ethereum Transaction Fees? What is Sei Network What is ERC-4337 What is Account Abstraction? What is Polygon 2.0 What is PYUSD? Learn about PayPal’s new moves in Web 3.0 Can Bitcoin Spot ETF Successfully Get Approval? Bitcoin Spot ETF 2023 Application Status Bitcoin spot ETF failure case Why Bitcoin Spot ETFs Matter What are the Bitcoin spot funds? What is a Bitcoin ETF? How to become a better memecoin player How to Assess the Value of Meme Coins What is Memecoin? How to understand meme coin project risks How to discover meme coins What is the Responsible Financial Innovation Act What is the 21st Century Financial Innovation and Technology Act? Who is Arthur Hayes: Pioneer of Crypto Madness What is Bitcoin Market Capitalization Bitcoin Dominance Is Gary Gensler still worth the crypto market’s expectations? What is Pi Cycle Indicator What is NVT Ratio What is CDD and Liveliness What is Puell Multiple What is SOPR What are MVRV and NUPL What is WorldCoin What is UniswapX What are the benefits of hiNFT transactions? What is a Divisible NFT? How Fracton is revolutionizing divisible NFTs Where to trade hiNFT What is Bitcoin Cash Bitcoin Cash ($BCH) How to use Tokenlon Limit Orders Limit Orders How to use Tokenlon Instant Swap What are the characteristics of Tokenlon DEX? What is Tokenlon DEX How to value Bitcoin What is Take Profit/Stop Loss Order TP/SL Order What is a limit order? Limit Order What is a Market Order? What is Open Interest? What are U-margined and coin-margined contracts? What is Cross Margin and Isolated Margin? What is Funding Rate? What is Mark Price and Index Price? Who is SBF – From mansions and yachts to silver bracelets and iron fences How to use TokenInsight batch transfer assistant What is an FOMC meeting? Why is it important? What is Osmosis What is Appchain Appchain What is the history of Cosmos What is Cosmos Hub What is Tendermint What is Cosmos SDK What is the IBC protocol What is Cosmos What are some interesting Starknet projects? How to use StarkNet What is the relationship between StarkNet and StarkEx What is the difference between Starknet and zkSync What is Starknet What is the difference between SNARK and STARK What is Optimism Bedrock Upgrade How to use iZiSwap What is iZiSwap iPoint What is Discrete Liquidity Automated Market Maker DLAMM What is iZiSwap What is Safu What is Shill What is GM/GN What is Degen What is IYKYK What is To the Moon What is NFA What is Paper Hand? what is diamond hand What is NGMI What is WAGMI What is FUD What is DYOR What is LFG What is FOMO What are the functions of OKX wallet? How to install OKX wallet What is OKX Wallet What is BRC-20 The difference between Bitcoin NFT and Ethereum NFT What are Bitcoin NFTs? What is SyncSwap What is Mute What is Velocore How to use zkSync What is zkSync What is Rollup How to get airdrops Receive Airdrops What is TVL What is Account Model? Account Model Who is Brian Armstrong Who is Hayden Adams Who is Joseph Lubin What is Stargate What is Wormhole What is Cross-Chain Bridge? DeFi History Review Who is CZ Who is Vitalik Buterin Who is Satoshi Nakamoto? How to use cryptocurrencies Use Cryptocurrencies What is DeFi Aggregator My Risks When Buying/Holding Crypto How to Get Cryptocurrencies Get Cryptocurrencies What is Rekt What is a mnemonic phrase? Secret Recovery Phrase What is sharding? What is GMX What is dYdX What is Impermanent Loss? What is Curve What is Uniswap What is a centralized exchange CEX What is an Automated Market Maker (AMM)? What is a decentralized exchange DEX What is Flash Loan? Flash Loan What is a decentralized stablecoin? Decentralized Stablecoin What is Liquidity and LP (Pool) What is Slippage? What is Three Arrows Capital? What is DeFi What is yearn.finance What is Yield Farming/Liquidity Mining? What is Launchpad Launchpad What is a smart contract Smart Contract What is Euler Finance Where can I check Token information? What is Liquid Staking? What is Aave What is decentralized lending? Decentralized Lending & Borrowing What is Block Block What is Oracle What is Perpetual Contract Perp What is an exchange? What is Blockchain Blockchain What is a synthetic asset? Synthetic Asset What is Chainlink What are the four basic functions of a blockchain? Primary Functions of a Blockchain What is 51% Attack 51% Attack What is Soulbound Token? What are public keys and private keys? Public Keys and Private Keys What is Nonce What is EIP What is Shanghai Upgrade? What is Node/Validator Node/Validator What is the Difference between Cryptocurrency and Stock Difference between Cryptocurrency and Stock What is Arweave What is ICO / IEO / IDO What is Bitcoin Halving Bitcoin Halving What is Ultrasound Money What is APR / APY What is a Rug Pull scam? What is Utilization Rate? What is Pump & Dump Scam? What is Phishing Scam Phishing What is Ponzi Scheme Ponzi Scheme What is Mining What is Zero-Knowledge Proof? What is Liquidation? What is the Byzantine Generals Problem? What is Lending? What is Sybil Attack Sybil Attack What is exchange platform currency Exchange Token What is Blockchain Impossible Triangle Blockchain Trilemma What is Faucet What is UTXO What is Consensus Mechanism? What is Proof of Stake? What is Proof of Work PoW What is RPC What is plasma What is Nakamoto Coefficient What is IPFS What is a state channel? State Channel What is gas fee What is Layer 2 Network Layer 2 What is Validium What is HODL What is a fork? What is Wrapped Token? What is Fungible Token? What is ERC-20 What are Coins and Tokens What is Ethereum Virtual Machine Compatible EVM-compatible What is Ethereum Virtual Machine EVM What is Airdrop What is MEV What is DApp What is a distributed ledger? Distributed Ledger What is Wallet? What is DAO What is Stablecoin? What is Tokenomics? What is MetaMask What is whitelist Whitelist What is Metaverse What is Bitcoin Bitcoin What is Ethereum Ethereum what is (3,3) meme What is YGG What is CultDAO What is NFT
Introduction to Bitcoin Script
2023-11-18 22:51 Update

Introduction

Bitcoin is sometimes called programmable currency. Its digital nature gives users a lot of flexibility in setting conditions for how their funds are used

When discussing Bitcoin, we will mention wallets and tokens. But we can also think of wallets as keys, tokens as checks, and blockchains as rows and rows of locked safes. Each safe has a tiny slot so anyone can deposit a check or see how much value is in the safe. However, only the key holder can unlock the safe.

If the key holder wants to give the money to someone else, the safe will be opened. They would write a new check referencing the old check (which would then be destroyed) and relock it in a box that the payee could open. In order to spend the money, the new recipient needs to repeat the process.

In this article, we will take a closer look at scripting, a programming language that is interpreted by nodes on the Bitcoin network. The script manages the locking/unlocking mechanism of the safe mentioned earlier.


How does Bitcoin work?

Using the above analogy, we can say that every transaction has two parts - the key (used to unlock the safe) and the lock. You need a key to open the box containing the check you want to send, and then add the new check to a new box with a different lock. To spend the money inside the new chest, you need another key.

It’s that simple. There may be some variation in the types of locks in the system. Some safes require you to provide multiple keys, others require you to prove you know a combination, and there are many conditions you can set.

Our key is what we call scriptSig, and the lock is what we call scriptPubKey. If we look at these components in more detail, we see that they are actually made up of bits of data and blocks of code. When they are combined, they form a small program.

When you place a trade, you are broadcasting that combination to the network. Each node that receives this transaction will check this program, which will tell the node whether this transaction is valid. If invalid, the transaction will be scrapped and you will not be able to use the locked funds.

The checks (tokens) you hold are called Unspent Transaction Outputs (UTXO). Anyone can access the funds as long as they provide a key that matches the lock. Specifically, the key is scriptSig and the lock is scriptPubKey.

If UTXOs are in your wallet, they may have a condition that only someone who can prove ownership of that public key can unlock the funds. To unlock funds, you need to provide a scriptSig that contains a digital signature, using the private key mapped to the public key specified in scriptPubKey. Everything will become clear soon.


Understanding the Bitcoin Stack

Script is a stack-based language. This means that when we read a set of instructions, we place them in columns that are considered vertical. For example, the list A, B, C will produce a stack with A at the bottom and C at the top. When an instruction tells us to do something, we operate on one or more elements starting at the top of the stack.


元素A、B和C被添加并从堆栈中“弹出”。

Elements A, B and C are added and removed from the stack "Pop up".


We can distinguish between data (such as signatures, hashes, and public keys) and instructions (or opcodes). Instructions to delete data and process it. Here is a very simple script example:

<xyz> ; <md5 hasher> <d16fb36f0911f878998c136191af705e> <check if equal>

The red part represents the data, and the blue part represents the operation code. We read from left to right, so we first put the string <xyz> on the stack superior. Next is the <md5 hasher> opcode. This opcode does not exist in Bitcoin, but we assume that it removes the element at the top of the stack (<xyz>) and hashed using the MD5 algorithm. The output is then added back to the stack. The output here happens to be d16fb36f0911f878998c136191af705e.

What a coincidence! The next element we want to add is <d16fb36f0911f878998c136191af705e>, so now our stack has two identical elements. Finally, <check if equal> pops two elements on top and checks if they are equal. If equal, add <1> to the stack. If not equal, add <0> to the stack.

We have reached the end of the command list. Our script can fail in two ways - if the remaining elements are zero, or if some condition is not met, one of the operators will cause it to fail. In this example, we don't have any such operator and end up with a non-zero element (<1>), so our script is valid. These rules also apply to real Bitcoin transactions.

The above example is just a fictitious program. Now let's look at some practical examples.


Payment to Public Key (P2PK)

Payment to Public Key (P2PK) is very simple. It is designed to lock funds to a specific public key. If you want to receive funds this way, you need to provide the sender with your public key, not your Bitcoin address.

The first transaction between Satoshi Nakamoto and Hal Finney in 2009 was a P2PK transaction. This structure was heavily used in the early days of Bitcoin, but today, Payment-to-Public-Key Hash (P2PKH) has largely replaced it.

The locking script for P2PK transactions follows <public key>  OP_CHECKSIG format. It's that simple. As you may have guessed, OP_CHECKSIG checks the signature against the provided public key. Therefore, our scriptSig will be a simple <signature>. Remember, scriptSig is the key that unlocks the lock.


签名被添加到堆栈中,随后是公钥。<strong>OP_CHECKSIG</strong>The signature and public key pop up at the same time, and the signature is verified based on the public key. If they are the same, add 1 to the stack. Otherwise add <strong><0></strong>.


It doesn't get any simpler than this. The signature is added to the stack, followed by the public key.OP_CHECKSIGPop up the signature and public key at the same time, and verify the signature based on the public key. If they match, send Add<1> to the stack. Otherwise add<0>.

P2PK is actually no longer used for reasons we will detail in the next section.


Payment to Public Key Hash (P2PKH)

Payment to Public Key Hash (P2PKH) is The most common type of transaction now. Unless you go out of your way to download outdated software, your wallet will most likely default to this transaction.

P2PKH’s scriptPubKey is as follows:

OP_DUP OP_HASH160 <public key hash> OP_EQUALVERIFY OP_CHECKSIG

In our Before introducing scriptSig, let's first analyze the function of the new opcode:


OP_DUP

OP_DUP pops up the first element and Copiesthe element. It then adds both back to the stack. Typically this is done to operate on the copy without affecting the original element.


OP_HASH160

This will pop the first element and hash it twice. The first round will be hashed using the SHA-256 algorithm. The SHA-256 output is then hashed using the RIPEMD-160 algorithm. The resulting output is added back to the stack.


OP_EQUALVERIFY

OP_EQUALVERIFY is composed of two other operators, OP_EQUAL and OP_VERIFY. OP_EQUAL pops two elements and checks if they are the same. If they are the same, add 1 to the stack. If they are not the same, add 0. OP_VERIFY pops the top element and checks if it is True (that is, not 0). If not, the transaction fails. Taken together, OP_EQUALVERIFY will cause the transaction to fail if the top two elements do not match.

This time, the scriptSig looks like this:

<signature> <public key>

You A signature along with the corresponding public key is required to unlock the P2PKH output.


我们只是添加了一个额外的步骤,来检查公钥是否与脚本中的哈希匹配


You can learn more about it through the GIF above. It's not that different from P2PK scripts. We just added an extra step to check if the public key matches the hash in the script.

However, there is one thing to note. In the P2PKH locking script, the public key is invisible – we can only see its hash. If we go to the blockchain explorer and look at the output of P2PKH that has not been spent yet, we will not be able to determine its public key. It is only disclosed when the recipient decides to transfer the funds.

This has several benefits. The first is that public key hashes are easier to transmit than the full public key. It was for this reason that Satoshi Nakamoto introduced public key hashing in 2009. The public key hash is what we now know as a Bitcoin address.

The second benefit is that public key hashing can provide an additional layer of security for quantum computing. Because our public key is only known after we spend the funds, it is harder for others to calculate the private key. They had to reverse two rounds of hashes (RIPEMD-160 and SHA-256) to get the private key.


➟ Want to start your cryptocurrency journey? Go to Binance and buy Bitcoin now!


Pay to Script Hash (P2SH)

Pay to Script Hash (P2SH) ) is a very interesting development for Bitcoin. It allows the sender to lock funds to a script’s hash – without knowing what the script actually does. Take the following SHA-256 hash as an example:

e145fe9ed5c23aa71fdb443de00c7d9b4a69f8a27a2e4fbb1fe1d0dbfb6583f1

You don’t need to know the hash Enter to lock funds. However, the person spending the funds needs to provide the script used to hash it, and the conditions of that script need to be met.

The above hash is created by the following script:

<multiply by 2> <4> <check if equal>

If you want to spend the tokens bound to this scriptPubKey, you must not only provide these commands . You also need a scriptSig so that the value of the completed script is True. In this example, you<multiply by 2> to get<4>Elements of the result. Of course, this means that our script is just<2>.

In actual situations, the scriptPubKey output by P2SH is:

OP_HASH160 <redeemScript hash> OP_EQUAL

There are no new operators here. However, we do have <redeemScript hash> as a new element. As the name suggests, this is the script hash we need to provide for the amount of funds to be redeemed (call it redeemScript). scriptSig will change based on what is in redeemScript. Typically, though, you'll find it's some combination of a signature and an appended public key, followed by (mandatory) redeemScript:

<signature> <public key> <redeemScript>

Our calculations and the stack we see so far The execution is slightly different. It is divided into two parts. The first part just checks that you provided the correct hash.


我们已经到了这个小程序的末尾,顶部元素为非0。也就是说,它是有效的。


You will notice that we did not perform any operations on the elements preceding the redeemScript . They will not be used at this time. We have reached the end of this little program and the top element is non-zero. That is, it works.

But we're not done yet. Network nodes recognize this structure as P2SH, so they actually have elements of scriptSig waiting on another stack. This is where signatures and public keys are used.

So far, we have treated redeemScript as an element. But now, it will be interpreted as a command, which can be anything. Let's take the P2PKH lock script as an example. We must provide it with the same strong><public key hash>Matching<signature> and<public key>.


一旦您的redeemScript被扩展,就可以看到我们的情况看起来与常规P2PKH交易完全一样。


Once your redeemScript is extended, you can see that our situation looks the same as regular P2PKH The transaction is exactly the same. After that, you just need to run it like a normal program.

We have demonstrated so-called P2SH (P2PKH) scripts, but you are unlikely to find such scripts in the wild. There's nothing stopping you from making one, but it won't do you any good and will end up taking up more block space (and therefore costing more).

P2SH is generally suitable for situations like multi-signature or SegWit compatible transactions. Multisignature transactions can be very large because they require multiple keys. Before implementing pay-to-script hashing, senders must list all possible public keys in their locking script.

But for P2SH, no matter how complex the consumption conditions are, it will not have an impact. redeemScript's hash is always a fixed size. Therefore, the cost is passed on to the user who wants to unlock the locked script.

SegWit compatibility is another example where P2SH can come in handy (we will discuss the differences in transaction structures in detail in the next section). SegWit is a soft fork that results in changes to the block/transaction format. Since it is an optional upgrade, not all wallet software will recognize these changes.

This does not matter if the client wraps the SegWit script hash in P2SH. As with all transactions of this type, they do not need to know what the unlocked redeemScript is.


SegWit Transaction (P2WPKH and P2WSH)

For a more comprehensive introduction to SegWit, please refer to"A Beginner's Guide to SegWit".

To understand the transaction format in SegWit, all you need to know is that we no longer only have scriptSig and scriptPubKey. Now, we have a new area called "witnessing". The data we previously saved in scriptSig was moved to the witness, so scriptSig is empty.

If you have ever encountered addresses starting with "bc1", then these are what we call SegWit native (rather than SegWit compatible, as they are P2SH addresses, so they start with "3" ;beginning).


Pay to Witness Public Key Hash (P2PKH)

Payment To-Witness Public Key Hash (P2PKH) is the SegWit version of P2PKH. Our testimony is as follows:

<signature> <public key>

You will notice that this is the same as scriptSig in P2PKH. Here, scriptSig is empty. At the same time, scriptPubKey is similar to the following:

<OP_0> <public key hash>

This looks weird, right? Where is the opcode that lets us compare signatures, public keys, and their hashes?

We do not show additional operators here because the node receiving the transaction is based on the <public key hash> ;'s length knows how to handle it. They calculate the length and understand that it must function the same way as a traditional P2PKH transaction.

Non-upgraded nodes don't know how to interpret transactions this way, but that doesn't matter. Under the old rules there were no witnesses, so they read an empty scriptSig and some data. They evaluate it and mark it as valid - in their opinion, anyone can use the output. This is why SegWit is considered a backwards compatible soft fork.


Pay to Public Key Hash (P2PKH)

Pay to Public Key Hash (P2PKH) is the new P2SH. If you've gotten this far, you can probably figure out how it works, but we'll go over it anyway. Our witness is what we normally put in scriptSig. For example, in P2WSH wrapping a P2PKH transaction, it might look like this:

<signature> <public key>

Here is our scriptPubKey:

<OP_0> ; <public key hash>

The same rules apply here. The SegWit node reads the length of the script hash and determines it is a P2WSH output, which is evaluated similarly to P2SH. Meanwhile, old nodes see it as nothing more than an output that anyone can spend.


Summary

In this article, we have a certain understanding of the building blocks of Bitcoin . Let's quickly summarize:


Script TypeDescription

Pay to Public Key (P2PK)

Lock funds to a specific Public Key

Pay to Public Key Hash (P2PKH)

Lock funds to Specific public key hash (i.e. address)

Payment to script hash (P2SH)

Lock funds to a hash of a script that the payee can provide

Pay to a witness public key hash (P2PKH)

SegWit version of P2PK

Payment to Public Key Hash (P2PKH)

SegWit version of P2SH


Once you delve deeper into Bitcoin, you'll begin to understand why it has so much potential. A transaction may have several different components. By manipulating these building blocks, users can set conditions for how and when their funds can be used with extreme flexibility.