Book Image

Hyperledger Cookbook

By : Xun (Brian) Wu, Chuanfeng Zhang, Zhibin (Andrew) Zhang
Book Image

Hyperledger Cookbook

By: Xun (Brian) Wu, Chuanfeng Zhang, Zhibin (Andrew) Zhang

Overview of this book

Hyperledger is an open-source project and creates private blockchain applications for a range of domains. This book will be your desk reference as you explore common and not-so-common challenges faced while building blockchain networks using Hyperledger services. We'll work through all Hyperledger platform modules to understand their services and features and build end-to-end blockchain applications using various frameworks and tools supported by Hyperledger. This book's independent, recipe-based approach (packed with real-world examples) will familiarize you with the blockchain development cycle. From modeling a business network to integrating with various tools, you will cover it all. We'll cover common and not-so-common challenges faced in the blockchain life cycle. Later, we'll delve into how we can interact with the Hyperledger Fabric blockchain, covering all the principles you need to master, such as chaincode, smart contracts, and much more. We'll also address the scalability and security issues currently faced in blockchain development. By the end of this book, you will be able to implement each recipe to plan, design, and create a full-fledged, private, decentralized application to meet organizational needs.
Table of Contents (12 chapters)

Permissioning Ethereum EOA and contract accounts on Seth

In this recipe, we will go through how to provision permission to both EOAs and contract accounts on Seth.

How to do it...

  1. Start the Seth Docker images with Docker-Compose:
sudo docker-compose up
  1. Execute bash on the seth-cli-go container:
sudo docker exec -it seth-cli-go bash
  1. Check the contract account permissions:
seth show account "da9fae99224516db78935d7cb91724e851c5b3fa"
Address: da9fae99224516db78935d7cb91724e851c5b3fa
Balance: 0
Nonce : 1
Perms : -root,+send,+call,-contract,-account
Storage:
0000000000000000000000000000000000000000000000000000000000000001 -> 000000000000000000000000da9fae99224516db78935d7cb91724e851c5b3fa
0000000000000000000000000000000000000000000000000000000000000000...