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
{{ message }}
This repository was archived by the owner on Apr 22, 2025. It is now read-only.
Copy file name to clipboardExpand all lines: README.md
+9Lines changed: 9 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -11,6 +11,7 @@ Note, the SDK does ***not*** provide a means of persistence
11
11
for the application defined channels and user artifacts on the client. This is left for the embedding application to best manage.
12
12
Channels may be serialized via Java serialization in the context of a client.
13
13
Channels deserialized are not in an initialized state.
14
+
Applications need to handle migration of serialzed files between versions.
14
15
15
16
The SDK also provides a client for Hyperledger's certificate authority. The SDK is however not dependent on this
16
17
particular implementation of a certificate authority. Other Certificate authority's maybe used by implementing the
@@ -215,6 +216,14 @@ Use this `maven` command to run the integration tests:
215
216
The _src/test/java/org/hyperledger/fabric/sdkintegration/End2endIT.java_ integration test is an example of installing, instantiating, invoking and querying a chaincode.
216
217
It constructs the Hyperledger channel, deploys the `GO` chaincode, invokes the chaincode to do a transfer amount operation and queries the resulting blockchain world state.
217
218
219
+
The _src/test/java/org/hyperledger/fabric/sdkintegration/End2endAndBackAgainIT.java_ Shows recreating the channel objects created in End2endIT.java and
220
+
upgrading chaincode and invoking the up graded chaincode.
221
+
222
+
Between End2endIT.java and End2endAndBackAgainIT.java this code shows almost all that the SDK can do.
223
+
To learn the SDK you must have some understanding first of the Fabric. Then it's best to study these two integrations tests and better yet work with them in a debugger to follow the code. ( *a live demo* )
224
+
Then once you understand them you can cut and paste from there to your own application. ( _the code is done for you!_ )
225
+
226
+
218
227
This test is a reworked version of the Fabric [e2e_cli example](https://github.com/hyperledger/fabric/tree/master/examples/e2e_cli) to demonstrate the features of the SDK.
219
228
To better understand blockchain and Fabric concepts, we recommend you install and run the _e2e_cli_ example.
0 commit comments