错误:搜索内容不能为空,请输入英文关键词
错误:关键词超出字数限制,请精简
高级检索

Essentials of Blockchain Programming

  • Ramchandra Sharad Mangrulkar,
  • Pallavi Vijay Chavan

摘要

Focusing on cryptography primitives and Merkle trees, this chapter examines the fundamentals of blockchain programming. The first section of the chapter describes hash functions and their properties. It highlights the significance of hash functions in the context of blockchain, especially for assuring data integrity and tamper resistance. The Secure Hash Algorithm (SHA) is presented as a popular hashing algorithm. The chapter then discusses public key cryptography, including the use of public and private keys, encryption algorithms, and digitally signed transactions. It emphasizes the importance of digital signatures in assuring the veracity and irrefutability of blockchain transactions. Merkle trees are introduced in blockchain technology as a fundamental data structure. The creation of a Merkle tree and its function in the blockchain to efficiently verify large data sets are described. In addition, the benefits and diverse applications of Merkle trees within the blockchain ecosystem are discussed. In the final section of the chapter, Python programs and practical exercises demonstrate the implementation of cryptographic primitives, hashing algorithms, and Merkle trees in blockchain development. These programs include hash code generation, mining, proving membership/nonmembership in Merkle trees, and employing the RSA digital signature scheme.