You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Fix broken links and formatting issues on doc files
Include docker image and compose files to support docs
Update sample apps with environment settings
fix src and tag in dockerfile
fix docker image name in doc
Change-Id: I7e2781411199039ee851ec5da63d3f9377767cac
Signed-off-by: Bret Harrison <[email protected]>
Copy file name to clipboardexpand all lines: docs/nodeSDK/app-overview.md
+4-4
Original file line number
Diff line number
Diff line change
@@ -30,19 +30,19 @@ This interaction with the Peer consists of submitting transactions to the blockc
30
30
* invoke - to execute a chaincode function which changes the state of the *blockchain database*;
31
31
* query - to execute a chaincode function which may return state information related to the *blockchain database*.
32
32
33
-
The **SDK** also interacts with a **Membership Services** process. In fact, if security is enabled in the Peer (strongly recommended), the Node.js client SDK must interact with Membership Services first in order to retrieve *credentials*which are then used to interact with the Peer. These *credentials* consist of certificates as described in [Membership Services](membership-services.md).
33
+
The **SDK** also interacts with a **Membership Services** process. In fact, if security is enabled in the Peer (strongly recommended), the Node.js client SDK must interact with Membership Services first in order to retrieve credential certificates which are then used to interact with the Peer.
34
34
35
35
The interaction with the Membership Services consists of:
36
36
37
-
* register - to indicate a new user to the blockchain
37
+
* register - to invite a new user to the blockchain
38
38
* enroll - to get access to the blockchain
39
39
40
40
<aname="webApp"></a>
41
41
## Web Application
42
42
43
43
The following diagram provides an overview of the major components of Hyperledger fabric for the web application developer.
44
44
45
-
At a high-level, you can think of the Block Chain as a database with which the web application interacts; therefore, it is similar to the following topology.
45
+
At a high-level, you can think of the blockchain as a database with which the web application interacts; therefore, it is similar to the following topology.
In the diagram above, the blue boxes are Hyperledger fabric components and the green boxes are application developer components. Each outer box represents a separate process.
55
55
56
-
The browser interacts with the developer's Node.js web application using the Hyperledger fabric's Node.js client SDK. The SDK handles all interactions with other Hyperledger fabric components in the same manor as described in the [SDK interactions](#sdk-interactions) section of [Standalone Application](#standaloneApp).
56
+
The browser interacts with the developer's Node.js web application using the Hyperledger fabric's Node.js client SDK. The SDK handles all interactions with other Hyperledger fabric components as described in the [SDK interactions](#sdk-interactions) section of [Standalone Application](#standaloneApp).
Copy file name to clipboardexpand all lines: docs/nodeSDK/node-sdk-guide.md
+2-2
Original file line number
Diff line number
Diff line change
@@ -21,12 +21,12 @@ The Hyperledger fabric Client (HFC) SDK for Node.js provides a powerful and easy
21
21
22
22
*[Node.js Standalone Application in Vagrant](sample-standalone-app.md) for a sample standalone Node.js application running in the full development environment within Vagrant.
23
23
24
-
*[Node.js Web Application](sample-web-app.md) for a sample web application and to see how to use the Node.js client SDK for a sample web app leveraging the client SDK to interact with blockchain network.
24
+
*[Node.js Web Application](sample-web-app.md) for a sample web application and to see how to use the Node.js client SDK for a sample web app leveraging the client SDK to interact with a blockchain network.
25
25
26
26
27
27
28
28
#### Related information
29
29
30
-
* To build and view the reference documentation for the Node.js client SDK APIs follow the instructions [here](app-developer-env-setup.md).
30
+
* To build the reference documentation for the Node.js client SDK APIs follow the instructions [here](app-developer-env-setup.md).
31
31
32
32
* To learn more about chaincode, see [Writing, Building, and Running Chaincode in a Development Environment](../Setup/Chaincode-setup.md).
Copy file name to clipboardexpand all lines: docs/nodeSDK/node-sdk-indepth.md
+17-7
Original file line number
Diff line number
Diff line change
@@ -2,9 +2,19 @@
2
2
3
3
The Hyperledger fabric Client (HFC) SDK provides a powerful and easy to use API to interact with a Hyperledger fabric blockchain.
4
4
5
+
Below, you'll find the following sections:
6
+
7
+
-[Installing only the SDK](#installing-only-the-sdk)
8
+
-[Terminology](#terminology)
9
+
-[HFC Objects](#hfc-objects)
10
+
-[Pluggability](#pluggability)
11
+
-[Chaincode Deployment](#chaincode-deployment)
12
+
-[Enabling TLS](#enabling-tls)
13
+
-[Troubleshooting](#troubleshooting)
14
+
5
15
## Installing only the SDK
6
16
7
-
If you are an experienced node.js developer and already have a blockchain environment set up and running elsewhere, you can set up a client-only environment to run the node.js client by installing the HFC node module as shown below. This assumes npm version 2.11.3 and node.js version 0.12.7 are already installed.
17
+
If you are an experienced node.js developer and already have a blockchain environment set up and running elsewhere, you can set up a client-only environment to run the node.js client by installing the HFC node module as shown below. This assumes a minimum of npm version 2.11.3 and node.js version 0.12.7 are already installed.
8
18
9
19
* To install the latest HFC module of Hyperledger fabric
10
20
@@ -14,7 +24,7 @@ If you are an experienced node.js developer and already have a blockchain enviro
14
24
15
25
### Terminology
16
26
17
-
In order to transact on a hyperledger blockchain, you must first have an identity which has been both **registered** and **enrolled** with Membership Services. For a topological overview of how the components interact, see [Application Developer's Overview](app-developer-overview.md).
27
+
In order to transact on a Hyperledger fabric blockchain, you must first have an identity which has been both **registered** and **enrolled** with Membership Services. For a topological overview of how the components interact, see [Application Developer's Overview](app-overview.md).
18
28
19
29
Think of **registration** as *issuing a user invitation* to join a blockchain. It consists of adding a new user name (also called an *enrollment ID*) to the membership service configuration. This can be done programatically with the `Member.register` method, or by adding the enrollment ID directly to the [membersrvc.yaml](https://github.com/hyperledger/fabric/blob/master/membersrvc/membersrvc.yaml) configuration file.
20
30
@@ -46,7 +56,7 @@ The following is a high-level description of the HFC objects (classes and interf
46
56
47
57
This class implements the bulk of the deploy, invoke, and query logic. It interacts with Membership Services to get a TCert to perform these operations. Note that there is a one-to-one relationship between TCert and TransactionContext. In other words, a single TransactionContext will always use the same TCert. If you want to issue multiple transactions with the same TCert, then you can get a `TransactionContext` object from a `Member` object directly and issue multiple deploy, invoke, or query operations on it. Note however that if you do this, these transactions are linkable, which means someone could tell that they came from the same user, though not know which user. For this reason, you will typically just call deploy, invoke, and query on the Member or User object.
48
58
49
-
####Pluggability
59
+
## Pluggability
50
60
51
61
HFC was designed to support two pluggable components:
52
62
@@ -56,9 +66,9 @@ HFC was designed to support two pluggable components:
56
66
57
67
2. Pluggable `MemberServices` which is used to register and enroll members. Member services enables hyperledger to be a permissioned blockchain, providing security services such as anonymity, unlinkability of transactions, and confidentiality
58
68
59
-
###Chaincode Deployment
69
+
## Chaincode Deployment
60
70
61
-
####'net' mode
71
+
### 'net' mode
62
72
63
73
To have the chaincode deployment succeed in network mode, you must properly set
64
74
up the chaincode project outside of your Hyperledger fabric source tree to include all the **golang** dependencies such that when tarred up and sent to the peer, the peer will be able to build the chain code and then deploy it. The
@@ -90,7 +100,7 @@ present.
90
100
go build
91
101
```
92
102
93
-
####'dev' mode
103
+
### 'dev' mode
94
104
For deploying chaincode in development mode see [Writing, Building, and Running Chaincode in a Development Environment](../Setup/Chaincode-setup.md).
95
105
The chaincode must be running and connected to the peer before issuing the `deploy()` from the Node.js application. The hfc `chain` object must be set to dev mode.
96
106
@@ -143,7 +153,7 @@ To configure the peer to connect to the Membership Services server over TLS (oth
143
153
144
154
*Note:* If you cleanup the folder `/var/hyperledger/production` then don't forget to copy again the *tlsca.cert* file as described above.
145
155
146
-
### Troublingshooting
156
+
### Troubleshooting
147
157
If you see errors stating that the client has already been registered/enrolled, keep in mind that you can perform the enrollment process only once, as the enrollmentSecret is a one-time-use password. You will see these errors if you have performed a user registration/enrollment and subsequently deleted the cryptographic tokens stored on the client side. The next time you try to enroll, errors similar to the ones below will be seen.
0 commit comments