Bitcoin
摘要
This chapter discusses the fundamentals of Bitcoin, its history, and the predicted market for this cryptocurrency. It introduces the concept of Bitcoin wallets and describes their varieties and features, including custodial and noncustodial wallets and software and hardware wallets. The chapter also discusses digital keys and addresses, concentrating on Bitcoin’s private and public keys. From their life cycle to the data structures involved, Bitcoin transactions are explained in detail. The chapter looks at the creation, broadcasting, and propagation of Bitcoin transactions, as well as the categories of transactions and their inputs and outputs. Also discussed are digital signatures and their function in securing transactions. The chapter then examines Bitcoin’s mining and consensus mechanisms. It describes the mining process, decentralized consensus, and the associated costs. Consensus assaults and forking (hard and soft forks) are also discussed to emphasize the significance of consensus in the Bitcoin network. Laboratory exercises implementing various Bitcoin-related concepts and programs, such as generating private keys, deploying smart contracts, and simulating transaction life cycles, conclude the chapter. The summary section includes multiple choice, short answer, and extended answer questions to test the reader’s comprehension of the chapter’s material.