Tag Archives: Linuxcom

Software package and application requirements for Hyperledge Fabric installation on AWS | Linux.com


If you like to develop small to enterprise blockchain applications using Hyperledger tools, the first step is to learn what is Hyperledger and how it works. . Specifically, Hyperledger Fabric Architecture and Components for Blockchain Developers article is a great start. Once you learn the structure of transaction flow in Hyperledger, you can proceed with setting up your development environment. In this article, I show you the software package and application requirements for installing Hyperledge Fabric on Amazon

Web Services or AWS.

 

To install and run Hyperldger Fabric on AWS, the following software packages are needed:

  • cURL: A tool used to transfer data from or to a server, using one of the supported protocols (HTTP, HTTPS, FTP, FTPS, SCP, SFTP, TFTP, DICT, TELNET, LDAP, or FILE). The command is designed to work without user interaction.
  • Docker: A tool to create, deploy, and run applications using containers. Containers allow developers to package applications with all of the parts it needs, such as libraries and other dependencies, and ship it out as one package.
  • Docker Compose: It is a tool which is used for defining and running Multi-container application. You can create and start all the services with help of a single command from your configuration YAML file.
  • Go: An open source programming language that makes it easy to build simple, reliable, andefficient software. Hyperledger Fabric is primarily developed using the Go language.
  • Node.js: A platform built on Chrome's JavaScript runtime to easily build fast and scalable network applications. Node.js is considered to be more lightweight and efficient since it uses event-driven, non-blocking I/O models, which make it more feasible for data-intensive real-time applications.
  • npm package manager: A tool that will allow you to install third-party libraries (other people’s code) using the command line.
  • Python: A general-purpose programming language for developing both desktop and web applications. Python is also used to develop complex scientific and numeric applications. It is designed with features to facilitate data analysis and visualization.

Also, installing the following applications are useful for learning the capabilities and operations of Hyperledger Fabric:

  • balance-transfer: A sample Node.js app to demonstrate fabric-client and fabric-ca-client Node.js SDK APIs.
  • basic-network: A basic network with certificates and key materials, predefined transactions, and one channel, mychannel.
  • bin: Binary and scripts for fabric-ca, orderer, and peer.
  • chaincode: Chaincode developed for fabcar, marbles, and a few other examples.
  • chaincode-docker-devmode: Develops chaincode in dev mode for rapid code/build/run/debug.
  • config: YAML files to define transaction, orderer, organization, and chaincode.
  • fabcar: A sample Node.js app to demonstrate the capabilities with chaincode deployment, query, and updating the ledger.
  • fabric-ca: Uses the Fabric CA client and server to generate all crypto material and learn how to use attribute-based access control.
  • first-network: Builds the first hyperledger fabric network with byfn.sh and eyfn.sh.
  • Jenkinsfile: Jenkins is a suite of plugins that supports implementing and integrating continuous-delivery pipelines. The definition of a Jenkins pipeline is typically written into a text file, Jenkinsfile, which in turn is checked into a project's source-control repository.
  • scripts: There are two scripts in this directory: bootstrap.sh and Jenkins_Scripts.
Now that you know the installation requirements, the next is to follow this article: Install Hyperledger Fabric on AWS that gives you step-by-step guide for installing Hyperledger Fabric on AWS.


About Authors
This article is written by Matt Zand (Founder of High School Technology Services) in collaboration with Brian Wu who is a senior blockchain instructor at Coding Bootcamps school in Virginia.

Click Here!

Software package and application requirements for Hyperledge Fabric installation on AWS | Linux.com


If you like to develop small to enterprise blockchain applications using Hyperledger tools, the first step is to learn what is Hyperledger and how it works. . Specifically, Hyperledger Fabric Architecture and Components for Blockchain Developers article is a great start. Once you learn the structure of transaction flow in Hyperledger, you can proceed with setting up your development environment. In this article, I show you the software package and application requirements for installing Hyperledge Fabric on Amazon

Web Services or AWS.

 

To install and run Hyperldger Fabric on AWS, the following software packages are needed:

  • cURL: A tool used to transfer data from or to a server, using one of the supported protocols (HTTP, HTTPS, FTP, FTPS, SCP, SFTP, TFTP, DICT, TELNET, LDAP, or FILE). The command is designed to work without user interaction.
  • Docker: A tool to create, deploy, and run applications using containers. Containers allow developers to package applications with all of the parts it needs, such as libraries and other dependencies, and ship it out as one package.
  • Docker Compose: It is a tool which is used for defining and running Multi-container application. You can create and start all the services with help of a single command from your configuration YAML file.
  • Go: An open source programming language that makes it easy to build simple, reliable, andefficient software. Hyperledger Fabric is primarily developed using the Go language.
  • Node.js: A platform built on Chrome's JavaScript runtime to easily build fast and scalable network applications. Node.js is considered to be more lightweight and efficient since it uses event-driven, non-blocking I/O models, which make it more feasible for data-intensive real-time applications.
  • npm package manager: A tool that will allow you to install third-party libraries (other people’s code) using the command line.
  • Python: A general-purpose programming language for developing both desktop and web applications. Python is also used to develop complex scientific and numeric applications. It is designed with features to facilitate data analysis and visualization.

Also, installing the following applications are useful for learning the capabilities and operations of Hyperledger Fabric:

  • balance-transfer: A sample Node.js app to demonstrate fabric-client and fabric-ca-client Node.js SDK APIs.
  • basic-network: A basic network with certificates and key materials, predefined transactions, and one channel, mychannel.
  • bin: Binary and scripts for fabric-ca, orderer, and peer.
  • chaincode: Chaincode developed for fabcar, marbles, and a few other examples.
  • chaincode-docker-devmode: Develops chaincode in dev mode for rapid code/build/run/debug.
  • config: YAML files to define transaction, orderer, organization, and chaincode.
  • fabcar: A sample Node.js app to demonstrate the capabilities with chaincode deployment, query, and updating the ledger.
  • fabric-ca: Uses the Fabric CA client and server to generate all crypto material and learn how to use attribute-based access control.
  • first-network: Builds the first hyperledger fabric network with byfn.sh and eyfn.sh.
  • Jenkinsfile: Jenkins is a suite of plugins that supports implementing and integrating continuous-delivery pipelines. The definition of a Jenkins pipeline is typically written into a text file, Jenkinsfile, which in turn is checked into a project's source-control repository.
  • scripts: There are two scripts in this directory: bootstrap.sh and Jenkins_Scripts.

Now that you know the installation requirements, the next is to follow this article: Install Hyperledger Fabric on AWS that gives you step-by-step guide for installing Hyperledger Fabric on AWS.


About Authors
This article is written by Matt Zand (Founder of High School Technology Services) in collaboration with Brian Wu who is a senior blockchain instructor at Coding Bootcamps school in Virginia.

Click Here!

Essential Hyperledger Composer tools and administrative, operational, and development commands | Linux.com


Hyperledger tools are very popular for building blockchain and decentralized applications. In particular, Hyperledger Fabric and Hyperledger Composer are the most widely used tools. Hyperledger Fabric Architecture and Components for Blockchain Developers and Installing Hyperledger Fabric on AWS articles are great resources for learning about Hyperledger Fabric. Once you learn about Hyperledger Fabric, you can move on to explore Hyperledger Composer.

Hyperledger Composer is a set of collaboration tools for business owners and developers that make it easy to write chaincode for Hyperledger Fabric and decentralized applications (DApps). With Composer, you can quickly build POC and deploy chaincode to the blockchain in a short amount of time. Hyperledger Composer consists of the following toolsets:

  • A modeling language called CTO: A domain modeling language that defines a business model, concept, and function for a business network definition
     
  • Playground: Rapid configuration, deployment, and testing of a business network
     
  • Command-line interface (CLI) tools: The client command-line tool is used to integrate business network with Hyperledger Fabric

Composer-CLI is the most important tool for Composer deployment; it contains all the essential command-line operations. Other very useful tools include Composer REST server, generator Hyperledger Composer, Yeoman, and Playground. Composer CLI provides many useful tools for developers.

Composer CLI can be used to perform multiple administrative, operational, and development tasks. Here is a summary of the CLI commands:

Command

Description

Examples

composer archive

<subcommand>

Composer archive command.

 

Composer archive list.

 

composer card

<subcommand>

Command for managing business

network cards.

Composer card list.

 

composer generator

<subcommand>

 

Composer generator command to

convert a business network

definition into code.

Composer generator

docs.

 

composer identity

<subcommand>

Composer identity command.

 

Composer identity

issue.

composer network

<subcommand>

Composer network command.

 

Composer network

install.

composer participant

<subcommand>

Composer participant command.

Composer participant

add.

composer report

 

 

Command for creating a report of

the current .Composer

environment

 

Composer report.

 

composer transaction

<subcommand>

Composer transaction command.

 

 

Composer transaction

submit.

The Composer REST server is used to generate a REST interface to a deployed blockchain business network.

Now that you know the essential tools and commands of Hyperledger Composer, the next is to follow this article: Hyperledger Composer Development Environment Requirements and Setup that gives you step-by-step guide for installing Hyperledger Composer development requirements as well as showing you how to configure a business network on Hyperledger Composer.

 


About Authors
This article is written by Matt Zand (Founder of High School  Technology Services) in collaboration with Brian Wu who is a senior blockchain instructor at Coding Bootcamps school in Virginia.

How to Change User Password in Ubuntu | Linux.com


In this short quick article, we will show you how to change a user password in Ubuntu Linux using the graphical interface as well as the command line interface. As you are well aware, most operations on Ubuntu are applicable to its derivatives such as Linux Mint, Xubuntu, Lubuntu, and many others.

 

Read more at: TecMint

Click Here!

Text Processing in Rust | Linux.com


Create handy command-line utilities in Rust.

This article is about text processing in Rust, but it also contains a quick introduction to pattern matching, which can be very handy when working with text.

Strings are a huge subject in Rust, which can be easily realized by the fact that Rust has two data types for representing strings as well as support for macros for formatting strings. However, all of this also proves how powerful Rust is in string and text processing.

Apart from covering some theoretical topics, this article shows how to develop some handy yet easy-to-implement command-line utilities that let you work with plain-text files. If you have the time, it’d be great to experiment with the Rust code presented here, and maybe develop your own utilities.

Rust and Text

Rust supports two data types for working with strings: String and str. The String type is for working with mutable strings that belong to you, and it has length and a capacity property. On the other hand, the str type is for working with immutable strings that you want to pass around. You most likely will see an str variable be used as &str. Put simply, an str variable is accessed as a reference to some UTF-8 data. An str variable is usually called a “string slice” or, even simpler, a “slice”. Due to its nature, you can’t add and remove any data from an existing str variable.

Read more at Linux Journal