更新时间:2021-07-02 14:18:16
coverpage
Title Page
Copyright and Credits
Foundations of Blockchain
About Packt
Why subscribe?
Packt.com
Contributors
About the author
About the reviewer
Packt is searching for authors like you
Preface
Who this book is for
What this book covers
To get the most out of this book
Download the example code files
Download the color images
Conventions used
Get in touch
Reviews
Introduction
What blockchain is
What blockchain isn't
Blockchain definitions
How are blockchains different from databases?
History of blockchain
Blockchain 2.0
The motivations behind blockchain
Characteristics of blockchain
Background of DLT
The different types of blockchain
Public blockchain (permissionless)
Private blockchain (permissioned)
Consortium blockchain
Overview of blocks
Block attributes
Structure of the block
Block header
Linking blocks
Influence of Moore's law on blockchain technology
Summary
A Bit of Cryptography
Cryptography in blockchain
Classical cryptography
Cryptographic primitives
Symmetric key cryptography
Stream cipher
Block cipher
Data Encryption Standard
Advanced Encryption Standard
An example implementation of AES
Asymmetric key cryptography
Prime factorization
Discrete logarithm
Elliptic-curve
RSA cryptosystem
RSA parameter generation
Encryption and decryption using RSA
An example implementation of RSA
Elliptic-curve cryptography
Operations on elliptic curves
Point addition
Point doubling
Computing the public key
Technical details of secp256k1
Digital signatures
How does it work?
Signing process
Verification process
Elliptical Curve Digital Signature Algorithm (ECDSA)
ECDSA example to create and verify a digital signature
Cryptographic hashing
Hashing algorithms
Message Digest
Secure Hash Algorithms (SHA)
Hashing example using an SHA-256 algorithm
Merkle hash trees
Encoding schemes
Cryptography in Blockchain
Hashing in blockchain
Linking blocks in a blockchain
Linking blocks using an SHA256 hashing algorithm
Block structure
Blockchain functionality
Creating a blockchain
Byzantine failure problem in blockchain
How does Proof of Work ensure Byzantine fault tolerance?
How does Proof of Work use cryptography?
An example implementation of Proof of Work
Example of finding a nonce to solve Proof of Work
Digital signatures in blockchain
Creating an identity
Signatures in transaction
Asset ownership in blockchain
Transferring an asset
Transmitting the transaction
Claiming the asset
Blockchain wallets