Akachain / AKC-Whitepaper

This Repo for Akachain Whitepaper
https://akachain.io
0 stars 1 forks source link

AKC Deployment tool #5

Open GiangtranFPT opened 6 years ago

GiangtranFPT commented 6 years ago

We need a kind of deployment tool that developer can deploy and test their chaincode on AKC.

squamosa89 commented 5 years ago

Currently AKC offers a tool for developer to "upload" .go file directly to the test peer machine. This behavior is highly insecure and tbh, extremely hard to make it secure ! There are couple of points here:

Now, I propose 2 steps to "fix" this issue:

  1. AKC Test offers a docker image with all deployed network and configuration. We'll provide a guide for developer to write Chaincode and some script to install, instantiate and invoke those Chaincode in their local docker container. We call this the "Local testing" step.

  2. AKC Test Net allows developer to "upload" their Chaincode .go file. However, AKC Admin will personally review each of those code, then install them themselves. The installed Chaincode will be made available for the developer in their AKC Test Net account. (Probably on a separated channel ?). This is the "Review" step

  3. Developer can instantiate and invoker ONLY THEIR OWN Chaincode in their own channel on AKC Test net. This is called the "Online testing" step.

squamosa89 commented 5 years ago

@GiangtranFPT , @longnv1a

0x369142857 commented 5 years ago

@squamosa89 I though there was something misunderstanding here,