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 smart contract packaging

The final section in this chapter is a short but important one—how to best exploit smart contract packaging. In Chapter 7, Developing Applications, we learned that packaging was a fairly straightforward activity, and in many cases it will be so.

However, when using private data, verify-style, insert-style, and transfer-style contracts, there are opportunities and traps of which we should be aware.

In summary, proper packaging of smart contracts can:

  • Allow different endorsement policies to be applied to the same smart contract
  • Ensure organizations only see the smart contract code they need to see
  • Minimize distribution of unnecessary code

As we saw in Chapter 6, Developing Smart Contracts, Fabric 2 has significantly improved smart contract packaging. The most important change is the introduction of a smart contract package (chaincode) definition. In most cases, there will be a one-to-one mapping between...

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}