Search icon CANCEL
Arrow left icon
Explore Products
Best Sellers
New Releases
Books
Videos
Audiobooks
Learning Hub
Conferences
Free Learning
Arrow right icon
Arrow up icon
GO TO TOP
Blockchain across Oracle

You're reading from   Blockchain across Oracle Understand the details and implications of the Blockchain for Oracle developers and customers

Arrow left icon
Product type Paperback
Published in Oct 2018
Publisher Packt
ISBN-13 9781788474290
Length 530 pages
Edition 1st Edition
Languages
Concepts
Arrow right icon
Author (1):
Arrow left icon
Robert van Molken Robert van Molken
Author Profile Icon Robert van Molken
Robert van Molken
Arrow right icon
View More author details
Toc

Table of Contents (24) Chapters Close

Preface 1. Part I FREE CHAPTER
2. An Introduction to the Blockchain 3. How Blockchain Will Disrupt Your Organization 4. Part II
5. Blockchain 101 - Assets, Transactions, and Hashes 6. Blockchain 101 - Blocks, Chains, and Consensus 7. Blockchain 101 - Security, Privacy, and Smart Contracts 8. Understanding the Blockchain Data Flow 9. Public Versus Permissioned Blockchains and their Providers 10. Part III
11. Ethereum Versus Hyperledger 12. Building a Next-Generation Oracle B2B Platform 13. Introducing the Oracle Blockchain Cloud Service 14. Setting Up Your Permissioned Blockchain 15. Designing and Developing Your First Smart Contract 16. Deploying and Testing Your First Smart Contract 17. Configuring, Extending, and Monitoring Your Network 18. Part IV
19. Blockchain Across the Financial Services Industry 20. Blockchain Across the Transportation Industry 21. Blockchain Across the Healthcare Industry 22. Future Industry and Technology Directions 23. Other Books You May Enjoy

Programming the smart contract

Up until this point in the chapter, we have designed the data model for our assets, transactions, and events, and have installed the development tools necessary to write our smart contract. The next step is to program the actual smart contract (called chaincode from this point forward) in the Go language. In the following sections, we will do the following:

  • Set up a workspace in VSCode for our chaincode project(s)
  • Install and initialize some missing Go packages/commands
  • Program the actual chaincode, including the data objects, transactions, and events

Setting up a workspace in VSCode

Back in VSCode, either select the menu item File | Add Folder to Workspace, or if you see the Add Folder button...

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 R$50/month. Cancel anytime