Commit 32ead688 authored by Daisuke IIZUKA's avatar Daisuke IIZUKA Committed by Alessandro Sorniotti
Browse files

[FAB-12598] Omit trailing spaces to success CI.



If ASCII-text file which contains trailing whilte space(s)
is edited and pushed to gerrit, VerifyBuild on CI will fail.

This patch omits trailing white space(s).

Change-Id: Ifa2483386fb92562a35d3e9498b31b555528c32b
Signed-off-by: default avatarDaisuke IIZUKA <daisuke.iizuka.ag@hitachi.com>
parent e7e2934f
## Contributing
We welcome contributions to the Hyperledger Fabric Project in many forms, and
there's always plenty to do!
there's always plenty to do!
Please visit the
[contributors guide](http://hyperledger-fabric.readthedocs.io/en/latest/CONTRIBUTING.html) in the
Please visit the
[contributors guide](http://hyperledger-fabric.readthedocs.io/en/latest/CONTRIBUTING.html) in the
docs to learn how to make contributions to this exciting project.
<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 />This work is licensed under a <a rel="license" href="http://creativecommons.org/licenses/by/4.0/">Creative Commons Attribution 4.0 International License</a>.
......
......@@ -511,7 +511,7 @@ chaincode that executes the query until no more results are returned. For more i
this `topic on pagination with CouchDB <http://hyperledger-fabric.readthedocs.io/en/master/couchdb_as_state_database.html#couchdb-pagination>`__.
We will use the `Marbles sample <https://github.com/hyperledger/fabric-samples/blob/master/chaincode/marbles02/go/marbles_chaincode.go>`__
We will use the `Marbles sample <https://github.com/hyperledger/fabric-samples/blob/master/chaincode/marbles02/go/marbles_chaincode.go>`__
function ``queryMarblesWithPagination`` to demonstrate how
pagination can be implemented in chaincode and the client application.
......@@ -600,7 +600,7 @@ of the five marbles are returned because the ``pagsize`` was set to ``3``:
.. note:: Bookmarks are uniquely generated by CouchDB for each query and
represent a placeholder in the result set. Pass the
returned bookmark on the subsequent iteration of the query to
returned bookmark on the subsequent iteration of the query to
retrieve the next set of results.
The following is a peer command to call queryMarblesWithPagination with a
......@@ -642,7 +642,7 @@ No records are returned, indicating that all pages have been retrieved:
"Bookmark":"g1AAAABLeJzLYWBgYMpgSmHgKy5JLCrJTq2MT8lPzkzJBYqz5yYWJeWkmoKkOWDSOSANIFk2iCyIyVySn5uVBQAGYhR1"}}]
For an example of how a client application can iterate over
the result sets using pagination, search for the ``getQueryResultForQueryStringWithPagination``
the result sets using pagination, search for the ``getQueryResultForQueryStringWithPagination``
function in the `Marbles sample <https://github.com/hyperledger/fabric-samples/blob/master/chaincode/marbles02/go/marbles_chaincode.go>`__.
.. _cdb-update-index:
......
# Using EncCC
To test `EncCC` you need to first generate an AES 256 bit key as a base64
encoded string so that it can be passed as JSON to the peer chaincode
To test `EncCC` you need to first generate an AES 256 bit key as a base64
encoded string so that it can be passed as JSON to the peer chaincode
invoke's transient parameter.
Note: Before getting started you must use govendor to add external dependencies. Please issue the following commands inside the "enccc_example" folder:
......@@ -20,7 +20,7 @@ follows:
Note: the following assumes the env is initialized and peer has joined channel "my-ch".
```
peer chaincode invoke -n enccc -C my-ch -c '{"Args":["ENCRYPT","key1","value1"]}' --transient "{\"ENCKEY\":\"$ENCKEY\"}"
peer chaincode invoke -n enccc -C my-ch -c '{"Args":["ENCRYPT","key1","value1"]}' --transient "{\"ENCKEY\":\"$ENCKEY\"}"
```
This call will encrypt using a random IV. This may be undesirable for
......@@ -36,7 +36,7 @@ IV=`openssl rand 16 -base64`
Then, the IV may be specified in the transient field
```
peer chaincode invoke -n enccc -C my-ch -c '{"Args":["ENCRYPT","key2","value2"]}' --transient "{\"ENCKEY\":\"$ENCKEY\",\"IV\":\"$IV\"}"
peer chaincode invoke -n enccc -C my-ch -c '{"Args":["ENCRYPT","key2","value2"]}' --transient "{\"ENCKEY\":\"$ENCKEY\",\"IV\":\"$IV\"}"
```
Two such invocations will produce equal KVS writes, which can be endorsed by multiple nodes.
......@@ -56,7 +56,7 @@ invocation would persist the result in the ledger for all channel readers to
see whereas a query can be discarded and so the result remains confidential.
To test signing and verifying, you also need to generate an ECDSA key for the appopriate
curve, as follows.
curve, as follows.
```
On Intel:
......
......@@ -7,7 +7,7 @@
SDIR="$(dirname ${BASH_SOURCE[0]})"
# Set default variables if they have not been set
# Set default variables if they have not been set
: ${INTERACTIVE:=false}
: ${CONFIGTXLATOR_URL:="http://127.0.0.1:7059"}
: ${ORDERER_ADDRESS:=127.0.0.1:7050}
......@@ -209,7 +209,7 @@ findConfigtxgen() {
fi
if [ -e "../../../build/bin/configtxgen" ] ; then
CONFIGTXGEN="../../../build/bin/configtxgen"
CONFIGTXGEN="../../../build/bin/configtxgen"
return 0
fi
......@@ -224,7 +224,7 @@ findConfigtxlator() {
fi
if [ -e "${SDIR}/../../../build/bin/configtxlator" ] ; then
CONFIGTXGEN="${SDIR}/../../../build/bin/configtxlator"
CONFIGTXGEN="${SDIR}/../../../build/bin/configtxlator"
return 0
fi
......@@ -239,7 +239,7 @@ findPeer() {
fi
if [ -e "${SDIR}/../../../build/bin/peer" ] ; then
PEER="${SDIR}/../../../build/bin/peer"
PEER="${SDIR}/../../../build/bin/peer"
return 0
fi
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment