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
[FAB-13463] Document vendoring for shim extensions
Add documentation to clarify how to vendor
shim extensions into chaincode.
Change-Id: Ic568e00c19cd512cfd2160b109ac9090c8a38901
Signed-off-by: David Enyeart <enyeart@us.ibm.com>
To help set endorsement policies and marshal them into validation
168
-
parameter byte arrays, the shim provides convenience functions that allow the
169
-
chaincode developer to deal with endorsement policies in terms of the MSP
170
-
identifiers of organizations(`KeyEndorsementPolicy <https://godoc.org/github.com/hyperledger/fabric/core/chaincode/shim/ext/statebased#KeyEndorsementPolicy>`_):
168
+
parameter byte arrays, the Go shim provides an extension with convenience
169
+
functions that allow the chaincode developer to deal with endorsement policies
170
+
in terms of the MSP identifiers of organizations, see `KeyEndorsementPolicy <https://godoc.org/github.com/hyperledger/fabric/core/chaincode/shim/ext/statebased#KeyEndorsementPolicy>`_:
171
171
172
172
.. code-block:: Go
173
173
@@ -192,6 +192,8 @@ required to endorse the key change, pass both org ``MSPIDs`` to ``AddOrgs()``,
192
192
and then call ``Policy()`` to construct the endorsement policy byte array that
193
193
can be passed to ``SetStateValidationParameter()``.
194
194
195
+
To add the shim extension to your chaincode as a dependency, see :ref:`vendoring`.
0 commit comments