Skip to content

Commit

Permalink
FAB-959 Chaincode with binary data in CouchDB
Browse files Browse the repository at this point in the history
CouchDB is most suited for handling chaincode with JSON values.
But in some cases chaincode with binary values will need to be stored
in CouchDB state database, for example to support chaincode
deployment in lifecycle chaincode.

This change adds attachment support for couchDB in order to handle
chaincode with binary data, in addition to chaincode with JSON data.

For this change, only one attachment is supported even though
the attachment is added as an array.

The new signature for SaveDoc now allows for either a JSON represented
as a byte array or an array of attachments.

Change-Id: Ifac9ce56c053ed929dae2aab4a5932c0453680a7
Signed-off-by: Chris Elder <chris.elder@us.ibm.com>
  • Loading branch information
Chris Elder committed Nov 6, 2016
1 parent 2e9fab0 commit 5914b12
Show file tree
Hide file tree
Showing 3 changed files with 433 additions and 47 deletions.
Loading

0 comments on commit 5914b12

Please sign in to comment.