How to unpack a packaged chaincode


Mr.Phuwanai Thummavet
 

Hi all,

Does anyone know how to unpack a packaged chaincode (.cds and/or .out extension)? I can't find any documentation regarding it.

Thanks.
--
Best Regards,
Phuwanai Thummavet
Blockchain Architect and Full-Stack Developer


Baohua Yang
 

You can unpack it using the package  "github.com/hyperledger/fabric/core/common/ccprovider" easily.

Basically, you read the file, un-marshal and store the internal package as the tar file.


FYI.

On Thu, Jan 2, 2020 at 1:37 AM Mr.Phuwanai Thummavet <mr.thummavet@...> wrote:
Hi all,

Does anyone know how to unpack a packaged chaincode (.cds and/or .out extension)? I can't find any documentation regarding it.

Thanks.
--
Best Regards,
Phuwanai Thummavet
Blockchain Architect and Full-Stack Developer



--
Best wishes!

Baohua Yang


Mr.Phuwanai Thummavet
 

Thanks, I'll check it out.


On Fri, 3 Jan 2020, 03:08 Baohua Yang, <yangbaohua@...> wrote:
You can unpack it using the package  "github.com/hyperledger/fabric/core/common/ccprovider" easily.

Basically, you read the file, un-marshal and store the internal package as the tar file.


FYI.

On Thu, Jan 2, 2020 at 1:37 AM Mr.Phuwanai Thummavet <mr.thummavet@...> wrote:
Hi all,

Does anyone know how to unpack a packaged chaincode (.cds and/or .out extension)? I can't find any documentation regarding it.

Thanks.
--
Best Regards,
Phuwanai Thummavet
Blockchain Architect and Full-Stack Developer



--
Best wishes!

Baohua Yang