Search icon
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 with Hyperledger Fabric - Second Edition

You're reading from  Blockchain with Hyperledger Fabric - Second Edition

Product type Book
Published in Nov 2020
Publisher Packt
ISBN-13 9781839218750
Pages 756 pages
Edition 2nd Edition
Languages
Concepts
Authors (6):
Nitin Gaur Nitin Gaur
Profile icon Nitin Gaur
Anthony O'Dowd Anthony O'Dowd
Profile icon Anthony O'Dowd
Petr Novotny Petr Novotny
Profile icon Petr Novotny
Luc Desrosiers Luc Desrosiers
Profile icon Luc Desrosiers
Venkatraman Ramakrishna Venkatraman Ramakrishna
Profile icon Venkatraman Ramakrishna
Salman A. Baset Salman A. Baset
Profile icon Salman A. Baset
View More author details

Table of Contents (18) Chapters

Preface 1. Blockchain – An Enterprise and Industry Perspective 2. Exploring Hyperledger Fabric 3. Business Networks 4. Setting the Stage with a Business Scenario 5. Designing Smart Contract Transactions and Ledger Data Structures 6. Developing Smart Contracts 7. Developing Applications 8. Advanced Topics for Developing Smart Contracts and Applications 9. Network Operation and Distributed Application Building 10. Enterprise Design Patterns and Considerations 11. Agility in a Blockchain Network 12. Governance – A Necessary Evil of Regulated Industries 13. Life in a Blockchain Network 14. Hyperledger Fabric Security 15. Blockchain's Future, Protocol Commercialization, and Challenges Ahead 16. Another Book You May Enjoy
17. Index

Advanced contract design topics

In the following sections, we will explore topics that allow us to develop fully functional contracts including cross-contract and cross-ledger invocations, composite keys, querying techniques, indexing of data, and explain the key transaction mechanisms.

Cross-contract and cross-ledger invocation

In complex business process workflows spanning multiple contracts and channels, a contract may need to invoke other contracts as parts of its logic. In our solution, this happens when transactions of LetterOfCreditContract and ExportLicenseContract require information from TradeContract about TradeAgreements.

Both Contract APIs provide function invokeChaincode, which calls the contract within the same or a different channel. The Java Contract API has the additional invokeChaincodeWithStringArgs, which simplifies the handling of string arguments.

The functions use the transaction context of the calling function to invoke the contract and thus...

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 $15.99/month. Cancel anytime}