Search icon CANCEL
Subscription
0
Cart icon
Close icon
You have no products in your basket yet
Save more on your purchases!
Savings automatically calculated. No voucher code required
Arrow left icon
All Products
Best Sellers
New Releases
Books
Videos
Audiobooks
Learning Hub
Newsletters
Free Learning
Arrow right icon
Blockchain Development for Finance Projects

You're reading from  Blockchain Development for Finance Projects

Product type Book
Published in Jan 2020
Publisher Packt
ISBN-13 9781838829094
Pages 530 pages
Edition 1st Edition
Languages
Concepts
Author (1):
Ishan Roy Ishan Roy
Profile icon Ishan Roy

Table of Contents (17) Chapters

Preface 1. Section 1: Blockchain Payments and Remittances
2. Blockchain in Financial Services 3. Building a Blockchain Wallet for Fungible and Non-Fungible Assets 4. Designing a Payment Gateway for Online Merchants 5. Corporate Remittances and Settlement 6. Enabling Cross-Border Remittances with Real-Time KYC/AML Verification 7. Section 2: Blockchain Workflows Using Smart Contracts
8. Building a Letter of Credit Workflow Module Using Smart Contracts 9. Section 3: Securing Digital Documents and Files Using Blockchain
10. Building a Tamper-Proof Document Storage System 11. Section 4: Decentralized Trading Exchanges Using Blockchain
12. Building a Decentralized Trading Exchange 13. Developing a Currency Trading Exchange for Market Making 14. Looking into the Future 15. Other Books You May Enjoy Appendix: Application Checklist

Writing and deploying the DocsApp chaincode

Now that our network is online, the next step we need to do is write and deploy our chaincode contract. The chaincode DocsApp consists of the following methods:

  • addDocHash: This method adds a new document hash to the blockchain. Document hashes are indexed by the hash of the file path.
  • addParamHash: This method adds the FTH and the MTH to the blockchain indexed by a timestamp. The timestamp indicates the time at which the FTH and MTH were calculated and stored to the blockchain.
  • queryDocHash: This method retrieves the last updated hash for a document using the hash of the file path.
  • queryParamHash: This method retrieves the FTH and the MTH stored in the blockchain at a particular time using the timestamp indicating the time that it was stored.

We'll also have to install the chaincode for all the nodes that are part of our network...

lock icon The rest of the chapter is locked
Register for a free Packt account to unlock a world of extra content!
A free Packt account unlocks extra newsletters, articles, discounted offers, and much more. Start advancing your knowledge today.
Unlock this book and the full library FREE for 7 days
Get unlimited access to 7000+ expert-authored eBooks and videos courses covering every tech area you can think of
Renews at €14.99/month. Cancel anytime}