Skip to content
This repository was archived by the owner on Jan 22, 2020. It is now read-only.

Commit 2923069

Browse files
alexandrag2254tkuhrt
authored andcommitted
Add Hyperledger Fabric code to Hyperledger education repo (#7)
* add license comments to all files * adding Hyperledger Fabric code to education repo * add readme to LFS171x folder Signed-off-by: Alexandra Groetsema <alexandrag2254@gmail.com>
1 parent 1ddf5d5 commit 2923069

File tree

89 files changed

+5425
-4
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

89 files changed

+5425
-4
lines changed

LFS171x/.gitignore

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,4 @@ yarn-error.log*
1414
node_modules/
1515

1616
# Optional npm cache directory
17-
.npm
18-
19-
# dotenv environment variables file
20-
.env
17+
.npm

LFS171x/sawtooth-material/sawtooth-tuna/LICENSE renamed to LFS171x/LICENSE

File renamed without changes.

LFS171x/README.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
## LFS171x: Blockchain for Business - An Introduction to Hyperledger Technologies
2+
3+
The source code and documentation in this directory is for the Introduction to Hyperledger Technologies course on edX. This course is a primer to blockchain and distributed ledger technologies. Learn how to start building blockchain applications with Hyperledger frameworks.
4+
5+
The course is free and open to the public and you can find it and sign up here:
6+
7+
(https://www.edx.org/course/blockchain-business-introduction-linuxfoundationx-lfs171x)
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
COMPOSE_PROJECT_NAME=net
Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
## Basic Network Config
2+
3+
Note that this basic configuration uses pre-generated certificates and
4+
key material, and also has predefined transactions to initialize a
5+
channel named "mychannel".
6+
7+
To regenerate this material, simply run ``generate.sh``.
8+
9+
To start the network, run ``start.sh``.
10+
To stop it, run ``stop.sh``
11+
To completely remove all incriminating evidence of the network
12+
on your system, run ``teardown.sh``.
13+
14+
## Licenses
15+
16+
Source code is licensed under the Apache License, Version 2.0 (the "License"). You may obtain a copy of the License at
17+
18+
(http://www.apache.org/licenses/LICENSE-2.0)
19+
20+
21+
<a rel="license" href="http://creativecommons.org/licenses/by/4.0/"><img alt="Creative Commons License" style="border-width:0" src="https://i.creativecommons.org/l/by/4.0/88x31.png" /></a><br />Documentation is licensed under a <a rel="license" href="http://creativecommons.org/licenses/by/4.0/">Creative Commons Attribution 4.0 International License</a>
368 Bytes
Binary file not shown.
6.21 KB
Binary file not shown.
Lines changed: 130 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,130 @@
1+
# Copyright IBM Corp. All Rights Reserved.
2+
#
3+
# SPDX-License-Identifier: Apache-2.0
4+
#
5+
6+
---
7+
################################################################################
8+
#
9+
# Profile
10+
#
11+
# - Different configuration profiles may be encoded here to be specified
12+
# as parameters to the configtxgen tool
13+
#
14+
################################################################################
15+
Profiles:
16+
17+
OneOrgOrdererGenesis:
18+
Orderer:
19+
<<: *OrdererDefaults
20+
Organizations:
21+
- *OrdererOrg
22+
Consortiums:
23+
SampleConsortium:
24+
Organizations:
25+
- *Org1
26+
OneOrgChannel:
27+
Consortium: SampleConsortium
28+
Application:
29+
<<: *ApplicationDefaults
30+
Organizations:
31+
- *Org1
32+
33+
################################################################################
34+
#
35+
# Section: Organizations
36+
#
37+
# - This section defines the different organizational identities which will
38+
# be referenced later in the configuration.
39+
#
40+
################################################################################
41+
Organizations:
42+
43+
# SampleOrg defines an MSP using the sampleconfig. It should never be used
44+
# in production but may be used as a template for other definitions
45+
- &OrdererOrg
46+
# DefaultOrg defines the organization which is used in the sampleconfig
47+
# of the fabric.git development environment
48+
Name: OrdererOrg
49+
50+
# ID to load the MSP definition as
51+
ID: OrdererMSP
52+
53+
# MSPDir is the filesystem path which contains the MSP configuration
54+
MSPDir: crypto-config/ordererOrganizations/example.com/msp
55+
56+
- &Org1
57+
# DefaultOrg defines the organization which is used in the sampleconfig
58+
# of the fabric.git development environment
59+
Name: Org1MSP
60+
61+
# ID to load the MSP definition as
62+
ID: Org1MSP
63+
64+
MSPDir: crypto-config/peerOrganizations/org1.example.com/msp
65+
66+
AnchorPeers:
67+
# AnchorPeers defines the location of peers which can be used
68+
# for cross org gossip communication. Note, this value is only
69+
# encoded in the genesis block in the Application section context
70+
- Host: peer0.org1.example.com
71+
Port: 7051
72+
73+
################################################################################
74+
#
75+
# SECTION: Orderer
76+
#
77+
# - This section defines the values to encode into a config transaction or
78+
# genesis block for orderer related parameters
79+
#
80+
################################################################################
81+
Orderer: &OrdererDefaults
82+
83+
# Orderer Type: The orderer implementation to start
84+
# Available types are "solo" and "kafka"
85+
OrdererType: solo
86+
87+
Addresses:
88+
- orderer.example.com:7050
89+
90+
# Batch Timeout: The amount of time to wait before creating a batch
91+
BatchTimeout: 2s
92+
93+
# Batch Size: Controls the number of messages batched into a block
94+
BatchSize:
95+
96+
# Max Message Count: The maximum number of messages to permit in a batch
97+
MaxMessageCount: 10
98+
99+
# Absolute Max Bytes: The absolute maximum number of bytes allowed for
100+
# the serialized messages in a batch.
101+
AbsoluteMaxBytes: 99 MB
102+
103+
# Preferred Max Bytes: The preferred maximum number of bytes allowed for
104+
# the serialized messages in a batch. A message larger than the preferred
105+
# max bytes will result in a batch larger than preferred max bytes.
106+
PreferredMaxBytes: 512 KB
107+
108+
Kafka:
109+
# Brokers: A list of Kafka brokers to which the orderer connects
110+
# NOTE: Use IP:port notation
111+
Brokers:
112+
- 127.0.0.1:9092
113+
114+
# Organizations is the list of orgs which are defined as participants on
115+
# the orderer side of the network
116+
Organizations:
117+
118+
################################################################################
119+
#
120+
# SECTION: Application
121+
#
122+
# - This section defines the values to encode into a config transaction or
123+
# genesis block for application related parameters
124+
#
125+
################################################################################
126+
Application: &ApplicationDefaults
127+
128+
# Organizations is the list of orgs which are defined as participants on
129+
# the application side of the network
130+
Organizations:
Lines changed: 72 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,72 @@
1+
# Copyright IBM Corp. All Rights Reserved.
2+
#
3+
# SPDX-License-Identifier: Apache-2.0
4+
#
5+
6+
# ---------------------------------------------------------------------------
7+
# "OrdererOrgs" - Definition of organizations managing orderer nodes
8+
# ---------------------------------------------------------------------------
9+
OrdererOrgs:
10+
# ---------------------------------------------------------------------------
11+
# Orderer
12+
# ---------------------------------------------------------------------------
13+
- Name: Orderer
14+
Domain: example.com
15+
# ---------------------------------------------------------------------------
16+
# "Specs" - See PeerOrgs below for complete description
17+
# ---------------------------------------------------------------------------
18+
Specs:
19+
- Hostname: orderer
20+
# ---------------------------------------------------------------------------
21+
# "PeerOrgs" - Definition of organizations managing peer nodes
22+
# ---------------------------------------------------------------------------
23+
PeerOrgs:
24+
# ---------------------------------------------------------------------------
25+
# Org1
26+
# ---------------------------------------------------------------------------
27+
- Name: Org1
28+
Domain: org1.example.com
29+
# ---------------------------------------------------------------------------
30+
# "Specs"
31+
# ---------------------------------------------------------------------------
32+
# Uncomment this section to enable the explicit definition of hosts in your
33+
# configuration. Most users will want to use Template, below
34+
#
35+
# Specs is an array of Spec entries. Each Spec entry consists of two fields:
36+
# - Hostname: (Required) The desired hostname, sans the domain.
37+
# - CommonName: (Optional) Specifies the template or explicit override for
38+
# the CN. By default, this is the template:
39+
#
40+
# "{{.Hostname}}.{{.Domain}}"
41+
#
42+
# which obtains its values from the Spec.Hostname and
43+
# Org.Domain, respectively.
44+
# ---------------------------------------------------------------------------
45+
# Specs:
46+
# - Hostname: foo # implicitly "foo.org1.example.com"
47+
# CommonName: foo27.org5.example.com # overrides Hostname-based FQDN set above
48+
# - Hostname: bar
49+
# - Hostname: baz
50+
# ---------------------------------------------------------------------------
51+
# "Template"
52+
# ---------------------------------------------------------------------------
53+
# Allows for the definition of 1 or more hosts that are created sequentially
54+
# from a template. By default, this looks like "peer%d" from 0 to Count-1.
55+
# You may override the number of nodes (Count), the starting index (Start)
56+
# or the template used to construct the name (Hostname).
57+
#
58+
# Note: Template and Specs are not mutually exclusive. You may define both
59+
# sections and the aggregate nodes will be created for you. Take care with
60+
# name collisions
61+
# ---------------------------------------------------------------------------
62+
Template:
63+
Count: 1
64+
# Start: 5
65+
# Hostname: {{.Prefix}}{{.Index}} # default
66+
# ---------------------------------------------------------------------------
67+
# "Users"
68+
# ---------------------------------------------------------------------------
69+
# Count: The number of user accounts _in addition_ to Admin
70+
# ---------------------------------------------------------------------------
71+
Users:
72+
Count: 1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
-----BEGIN PRIVATE KEY-----
2+
MIGHAgEAMBMGByqGSM49AgEGCCqGSM49AwEHBG0wawIBAQQgbIRfBJjk/t3HLnEz
3+
32V4sCllmJtnliVv4UmLfrjZ+B6hRANCAASM01iiFoDgTsTd27nU+R1z7YZbqM4I
4+
Tlz13Mg+SQWsWn25IM6/IwtzNq5SSQZtJwpo7+gtS5IggDn7WJMi6Hy6
5+
-----END PRIVATE KEY-----

0 commit comments

Comments
 (0)