Introducing Blockchain with Java: Program, Implement, and Extend Blockchains with Java
- Length: 185 pages
- Edition: 1
- Language: English
- Publisher: Apress
- Publication Date: 2022-03-26
- ISBN-10: 1484279263
- ISBN-13: 9781484279267
- Sales Rank: #4557947 (See Top 100 Books)
Create your own crypto currency by implementing blockchain technology using Java. This step-by-step guide will teach you how to create a user interface using Java FX and implement SQLite DB using JDBC Driver for the blockchain.
Introducing Blockchain with Java includes numerous exercises and test questions to help you solidify what you have learned as you progress through the book, and provides ideas on expanding the codebase to make it your own. You will have access to a fully-functioning repository with Java code.
Upon completing this book, you will have the knowledge necessary to program your own blockchains with Java and you will have a completed project for your portfolio.
What You Will Learn
- Know the most important theoretical concepts of the blockchain
- Code the blockchain in Java
- Create a user interface with JavaFX
- Implement SQLite DB using JDBC Driver
- Create a P2P multi-threaded app
- Create your own cryptocurrency app with full functionality
- Implement blockchain technology on a P2P network from scratch using Java, JavaFX, and SQL
Who This Book Is For
Anyone with a basic level knowledge of: Java or similar object-oriented programming language, FXML or HTML or similar markup language, and SQL
Chapter 1: Introduction to Blockchain 1.1 Motivation and Basic Definitions 1.2 Encryption 1.2.1 Functions 1.2.2 Symmetric-Key Algorithm 1.2.3 Asymmetric-Key Algorithm 1.3 Hashing 1.4 Smart Contracts 1.5 Bitcoin 1.6 Example Workflows 1.7 Summary Chapter 2: Model: Blockchain Core 2.1 Block.java 2.2 Transaction.java 2.3 Wallet.java 2.4 Summary Chapter 3: Database Setup 3.1 SQLite Database Browser Setup 3.2 Blockchain.db 3.3 Wallet.db 3.4 JDBC Driver for SQLite Setup 3.5 Writing Your App init() Method 3.6 Summary Chapter 4: Building the UI 4.1 Scene Builder Quick Setup 4.2 Creating Your Views 4.2.1 MainWindow.fxml 4.2.2 AddNewTransactionWindow.fxml 4.3 Creating Your View Controllers 4.3.1 MainWindowController 4.3.2 AddNewTransactionController 4.4 Summary Chapter 5: Setting Up the Network and Multithreading 5.1 UI Thread 5.2 Mining Thread 5.3 P2P Network Threads 5.3.1 PeerClient Thread 5.3.2 PeerServer Thread 5.4 PeerRequestThread 5.5 Summary Chapter 6: Service Layer 6.1 WalletData 6.2 BlockchainData 6.2.1 Blockchain Consensus Protocol 6.3 Summary Chapter 7: Extras 7.1 Running the Application 7.2 Topics for Future Improvements 7.3 Conclusion
Donate to keep this site alive
How to download source code?
1. Go to: https://github.com/Apress
2. In the Find a repository… box, search the book title: Introducing Blockchain with Java: Program, Implement, and Extend Blockchains with Java
, sometime you may not get the results, please search the main title.
3. Click the book title in the search results.
3. Click Code to download.
1. Disable the AdBlock plugin. Otherwise, you may not get any links.
2. Solve the CAPTCHA.
3. Click download link.
4. Lead to download server to download.