Date   

Select wallet identity

Nikos Karamolegkos
 

Hello, I am studying the wallet functionality from here. I can see that the user Isabella can have multiple identities so I understand that in the chaincode I can verify not only the user but the identity (e.g ID1, ID2) of the user too (who invoked the transaction). Therefore, my questions are:
1) Is there any code sample that does that verification inside the chaincode?
2) How can select from my client application a specific ID from the wallet in order to invoke the transaction? (eg. ID1)

Thanks,

-- 
Nikos Karamolegkos
R & D engineer at ICS-FORTH
Telecommunications and Networks Lab (TNL)


Re: MiniFabric Related Queries - Reg.

gerald li <xixisese@...>
 

From my understanding. MiniFabric is not a Production Release. It's just a tool used to understand fabric easily. It's just kind of "Example" for test network.  but not a tool used to deploy production environment
Sometimes I really doubt about the value of the MiniFabric. It did help to build a fabric test network quickly. But it also conceal lots of details/concept that are important to understand fabric components(orderer, peer, ca, even docker etc.).  The result is Veterans are happy to use it for time saving. The beginners are always confused to the MiniFabric introduced command, configuration, purpose etc.

Sasikumar R <sasikumarcse@...> 于2021年11月15日周一 下午1:55写道:

Hi Everyone,
     I have some questions with respect to Hyperledger MiniFabric. Kindly help me with respect to it:
    1) Shall I use Minifabric to implement any application?
    2) Which database is used by MiniFabric (LevelDB or CouchDB)?
    3) Are there any constraints while using MiniFabric?
    4) Is it good to use for our applications?
 
Thank you.


With regards,
R.Sasikumar.



MiniFabric Related Queries - Reg.

Sasikumar R
 

Hi Everyone,
     I have some questions with respect to Hyperledger MiniFabric. Kindly help me with respect to it:
    1) Shall I use Minifabric to implement any application?
    2) Which database is used by MiniFabric (LevelDB or CouchDB)?
    3) Are there any constraints while using MiniFabric?
    4) Is it good to use for our applications?
 
Thank you.


With regards,
R.Sasikumar.



Re: How does a peer know there's a certificate authority in the same Org? #fabric-peer #fabric-ca

gerald li <xixisese@...>
 

It relates to how the CA works. The peer knows the Root CA of the Org through the peer's MSP files. It can then verifies the incoming certificates against the Root CA. 
Just as verifying the certificate through the command line:
openssl verify -verbose -CAfile <Root certificate> <certificate>

BigBang019 <zhuxy0000@...> 于2021年11月14日周日 下午8:42写道:

Hi, I was reading the source code of hyperledger fabric, and reading the log of a peer in a DEBUG mode.

I wonder how fabric peer know the information of the certificate authorites of its own Org?
For example,
(1) address: I didn't find it
(2) name: I didn't find it
(3) pem file: pem file is detected when starting a peer inside /internal/peer/node/start.go, the method serve()

Thanks in advance.
 


Building a Blockchain one Business Unit at a time

WebZest
 

I would like to create a Private Blockchain:
1.  A single Organization:  www.myorg.com
2.  In this Org, I have 3 Regions:  USA, APAC, EMEA
3.  The Organization has a Primary CA for all three Regions.
          a. Org has three business units (BU) that are comprised of three Departments: Legal, Finance, and Operations 
                     (1).  Each BU maintain their own secrets that are not visible to other Business Unit Users
                     (2).  There are some files or assets that are public and available to everyone
4.  There is a Master key that allows access to every asset in the corporation

How would I create this environment in miniFabric? 


How does a peer know there's a certificate authority in the same Org? #fabric-peer #fabric-ca

BigBang019
 

Hi, I was reading the source code of hyperledger fabric, and reading the log of a peer in a DEBUG mode.

I wonder how fabric peer know the information of the certificate authorites of its own Org?
For example,
(1) address: I didn't find it
(2) name: I didn't find it
(3) pem file: pem file is detected when starting a peer inside /internal/peer/node/start.go, the method serve()

Thanks in advance.
 


Re: How to update/re-deploy the chaincode without restart the whole network?

Kavin Arumugam
 

Hi Matthew,

     Thanks for sharing this information.


Thanks & Regards
Kavin Arumugam
Mobile: +91 7373 36 86 36
LinkedIn: @karthikkavina


On Fri, 12 Nov, 2021, 7:52 pm Matthew White, <WHITEMAT@...> wrote:
In addition, the chaincode-as-a-service model is also useful here, as it can be started/stopped in much the same way as dev mode.  
 
 
Regards, Matthew.
Matthew B White  IBM Blockchain Solutions Architect
 
Email me at WHITEMAT@...
Find me on StackOverflow, and generally at  calanais.me.uk
 
Note: restricted availability for meetings 14:30 to 17:00 UK Tuesday 
IBM United Kingdom Limited, Hursley Park, Winchester, Hampshire, SO21 2JN

"The wrong answers are the ones you go looking for when the right answers stare you in the face"
 
 
 
----- Original message -----
From: "Kavin Arumugam" <a.kavin24@...>
Sent by: fabric@...
To: pham.qtpham@...
Cc: "fabric" <fabric@...>
Subject: [EXTERNAL] Re: [Hyperledger Fabric] How to update/re-deploy the chaincode without restart the whole network?
Date: Thu, Nov 11, 2021 11:20 AM
 
Hi Pham, Restarting a network or Recreating a Channel is not required, when you want to upgrade a Chaincode. You can use the Fabric chaincode lifecycle process to upgrade a chaincode that has already been deployed to a channel. Please refer ZjQcmQRYFpfptBannerStart
This Message Is From an External Sender
This message came from outside your organization.
ZjQcmQRYFpfptBannerEnd
Hi Pham,
 
Restarting a network or Recreating a Channel is not required, when you want to upgrade a Chaincode.
You can use the Fabric chaincode lifecycle process to upgrade a chaincode that has already been deployed to a channel.
Please refer to the following link for details.

https://hyperledger-fabric.readthedocs.io/en/release-2.2/chaincode_lifecycle.html#upgrade-a-chaincode

https://hyperledger-fabric.readthedocs.io/en/release-2.2/deploy_chaincode.html#upgrading-a-smart-contract


Suppose if you are iteratively developing and testing the chaincode, consider the following link
https://hyperledger-fabric.readthedocs.io/en/release-2.3/peer-chaincode-devmode.html



 
Thanks & Regards
Kavin Arumugam
LinkedIn: @karthikkavina
 
On Thu, Nov 11, 2021 at 12:57 PM <pham.qtpham@...> wrote:
Hi,

My chain codes using Javascript is working fine. Now I change my chain codes  and now I want to re-reploy in the HLF V2. Usually I need to restart the Network , re-create Channel and then deploy the newly updated chain codes.

How can I do this without restart the whole network?

Thx,

Trung

 

 

 

Unless stated otherwise above:

IBM United Kingdom Limited - Registered in England and Wales with number 741598.

Registered office: PO Box 41, North Harbour, Portsmouth, Hampshire PO6 3AU



Re: How to update/re-deploy the chaincode without restart the whole network?

Matthew White
 

In addition, the chaincode-as-a-service model is also useful here, as it can be started/stopped in much the same way as dev mode.  
 
 
Regards, Matthew.
Matthew B White  IBM Blockchain Solutions Architect
 
Email me at WHITEMAT@...
Find me on StackOverflow, and generally at  calanais.me.uk
 
Note: restricted availability for meetings 14:30 to 17:00 UK Tuesday 
IBM United Kingdom Limited, Hursley Park, Winchester, Hampshire, SO21 2JN

"The wrong answers are the ones you go looking for when the right answers stare you in the face"
 
 
 
----- Original message -----
From: "Kavin Arumugam" <a.kavin24@...>
Sent by: fabric@...
To: pham.qtpham@...
Cc: "fabric" <fabric@...>
Subject: [EXTERNAL] Re: [Hyperledger Fabric] How to update/re-deploy the chaincode without restart the whole network?
Date: Thu, Nov 11, 2021 11:20 AM
 
Hi Pham, Restarting a network or Recreating a Channel is not required, when you want to upgrade a Chaincode. You can use the Fabric chaincode lifecycle process to upgrade a chaincode that has already been deployed to a channel. Please refer ZjQcmQRYFpfptBannerStart
This Message Is From an External Sender
This message came from outside your organization.
ZjQcmQRYFpfptBannerEnd
Hi Pham,
 
Restarting a network or Recreating a Channel is not required, when you want to upgrade a Chaincode.
You can use the Fabric chaincode lifecycle process to upgrade a chaincode that has already been deployed to a channel.
Please refer to the following link for details.

https://hyperledger-fabric.readthedocs.io/en/release-2.2/chaincode_lifecycle.html#upgrade-a-chaincode

https://hyperledger-fabric.readthedocs.io/en/release-2.2/deploy_chaincode.html#upgrading-a-smart-contract


Suppose if you are iteratively developing and testing the chaincode, consider the following link
https://hyperledger-fabric.readthedocs.io/en/release-2.3/peer-chaincode-devmode.html



 
Thanks & Regards
Kavin Arumugam
LinkedIn: @karthikkavina
 
On Thu, Nov 11, 2021 at 12:57 PM <pham.qtpham@...> wrote:
Hi,

My chain codes using Javascript is working fine. Now I change my chain codes  and now I want to re-reploy in the HLF V2. Usually I need to restart the Network , re-create Channel and then deploy the newly updated chain codes.

How can I do this without restart the whole network?

Thx,

Trung

 

 

 

Unless stated otherwise above:

IBM United Kingdom Limited - Registered in England and Wales with number 741598.

Registered office: PO Box 41, North Harbour, Portsmouth, Hampshire PO6 3AU



Re: Expose Hyperledger as REST

Matthew White
 

There are several examples of how this can be done written by different community members. A basic example is very simple to create, a POST for example is mapped to a submitTransaction. You could use any REST framework and any language you wish.   There are some sophisticated examples that will create the REST API automatically based on the contact metadata.
 
Some of the challenges that you'll come across in a production scenario.
- How are fabric identities used for submitting to the transactions held and used. Are they somehow past via the REST call, or held by the REST Server?
- Will a single rest server front more than one contract? Think about the pooling of connections to fabric, and how these are reused and recreated
- Depending on the number of endorsements required, a Fabric transaction could take some time to complete. REST calls are intended to be much quicker - you might need to think about a polling system so any UI is kept responsive. 
 
 
Regards, Matthew.
Matthew B White  IBM Blockchain Solutions Architect
 
Email me at WHITEMAT@...
Find me on StackOverflow, and generally at  calanais.me.uk
 
Note: restricted availability for meetings 14:30 to 17:00 UK Tuesday 
IBM United Kingdom Limited, Hursley Park, Winchester, Hampshire, SO21 2JN

"The wrong answers are the ones you go looking for when the right answers stare you in the face"
 
 
 
----- Original message -----
From: "satheesh via lists.hyperledger.org" <ctsatheesh=yahoo.com@...>
Sent by: fabric@...
To: "fabric@..." <fabric@...>, "Nitish Joshi" <nitishjoshi060291@...>
Cc:
Subject: [EXTERNAL] Re: [Hyperledger Fabric] Expose Hyperledger as REST
Date: Thu, Nov 11, 2021 2:36 PM
 
Hello Nitish, I don't think fabric has this capability out of box. You can write your own service say for e.g., Node.js rest service to invoke chaincode and use that for integration with UI. Regards, Satheesh ‍ ‍ ‍ ‍ ‍ ‍ ‍ ‍ ‍ ‍ ‍ ‍ ‍ ‍ ‍ ‍ ‍ ‍ ‍ ‍ ‍ ‍ ‍ ‍ ‍ ‍ ‍ ‍ ‍ ‍ ZjQcmQRYFpfptBannerStart
This Message Is From an External Sender
This message came from outside your organization.
ZjQcmQRYFpfptBannerEnd
 
Hello Nitish,
 
I don't think fabric has this capability out of box. You can write your own service say for e.g., Node.js rest service to invoke chaincode
and use that for integration with UI.
 
Regards,
Satheesh
 
On Thursday, November 11, 2021, 03:56:56 PM GMT+5:30, Nitish Joshi <nitishjoshi060291@...> wrote:
 
 

I have setup Hyperledger fabric on machine and deployed some of my chaincodes on it. Can someone help me with the documentation that how I can expose it as REST to perform the integration testing with front end.

 

Regards

Nitish Joshi

 

Unless stated otherwise above:

IBM United Kingdom Limited - Registered in England and Wales with number 741598.

Registered office: PO Box 41, North Harbour, Portsmouth, Hampshire PO6 3AU



Re: Adding new Organization and Users reg.

Nikos Karamolegkos
 

Very helpful. So If I have M orgs in channel1, if I create a new channel (channel2) with the SDK can I join these M orgs to channel2 without affect the running operations  (corresponding to channel1) of the orgs?


Re: Expose Hyperledger as REST

satheesh
 

Hello Nitish,

I don't think fabric has this capability out of box. You can write your own service say for e.g., Node.js rest service to invoke chaincode
and use that for integration with UI.

Regards,
Satheesh

On Thursday, November 11, 2021, 03:56:56 PM GMT+5:30, Nitish Joshi <nitishjoshi060291@...> wrote:


I have setup Hyperledger fabric on machine and deployed some of my chaincodes on it. Can someone help me with the documentation that how I can expose it as REST to perform the integration testing with front end.

 

Regards

Nitish Joshi


Re: How to update/re-deploy the chaincode without restart the whole network?

Kavin Arumugam
 

Hi Pham,

Restarting a network or Recreating a Channel is not required, when you want to upgrade a Chaincode.
You can use the Fabric chaincode lifecycle process to upgrade a chaincode that has already been deployed to a channel.
Please refer to the following link for details.

https://hyperledger-fabric.readthedocs.io/en/release-2.2/chaincode_lifecycle.html#upgrade-a-chaincode

https://hyperledger-fabric.readthedocs.io/en/release-2.2/deploy_chaincode.html#upgrading-a-smart-contract


Suppose if you are iteratively developing and testing the chaincode, consider the following link
https://hyperledger-fabric.readthedocs.io/en/release-2.3/peer-chaincode-devmode.html




Thanks & Regards
Kavin Arumugam
LinkedIn: @karthikkavina


On Thu, Nov 11, 2021 at 12:57 PM <pham.qtpham@...> wrote:
Hi,

My chain codes using Javascript is working fine. Now I change my chain codes  and now I want to re-reploy in the HLF V2. Usually I need to restart the Network , re-create Channel and then deploy the newly updated chain codes.

How can I do this without restart the whole network?

Thx,

Trung


Expose Hyperledger as REST

Nitish Joshi
 

I have setup Hyperledger fabric on machine and deployed some of my chaincodes on it. Can someone help me with the documentation that how I can expose it as REST to perform the integration testing with front end.

 

Regards

Nitish Joshi


How to update/re-deploy the chaincode without restart the whole network?

pham.qtpham@...
 

Hi,

My chain codes using Javascript is working fine. Now I change my chain codes  and now I want to re-reploy in the HLF V2. Usually I need to restart the Network , re-create Channel and then deploy the newly updated chain codes.

How can I do this without restart the whole network?

Thx,

Trung


Re: Having lots of difficulties installing the code for a working development environment or otherwise. #fabric

Marcos Sarres
 

Hello Johnny,

 

We will fix this compilation messages soon, but do not worry, your HL Fabric is good to go.

 

Do not forget to run the script:

 

./run-cc-web.sh 8080 >> /dev/null &

This will allow you to use the web app integrated with your chaincode.

 

If you have any other questions, contact us at our Discord community.

 

Regards,

 

Marcos Sarres | CEO | +55 61 98116 7866

 

 

De: fabric@... <fabric@...> Em nome de WebZest
Enviada em: quarta-feira, 10 de novembro de 2021 17:29
Para: fabric@...
Assunto: [Hyperledger Fabric] Having lots of difficulties installing the code for a working development environment or otherwise. #fabric

 

Hello,
I have tried to setup the development environment, from some reliable sources of installation, such as GoLedger; however, my results are not as described on the Goledger pages.  For example, I am not getting the  Install network Chaincode portion in the report when I call ./startDev.sh.  Please see below.
I tried to update the prerequisites sh file to install the latest version of Golang and Node as well as running the sh file that installs the prerequisites as is, but the results are the same; they do not match the goLedger instructions page and getting lots of errors in the reports: GoLedger

I am getting errors and can't verify the results because they do not match the instruction pages from GoLedger.

---------------------------------------

johnny@JSHLF:~/cc-tools-demo$ ./startDev.sh

"docker rmi" requires at least 1 argument.

See 'docker rmi --help'.

 

Usage:  docker rmi [OPTIONS] IMAGE [IMAGE...]

 

Remove one or more images

4b59d9aea77278c9316486ba13d284d962e17117a0485d0d881ef7792bbfb1c8

5aabadde77a0dd187bc01c846ea5cfc07d86ca87f70f8c7516482dcc29689b05

9e9392a2028e08a9f15eb2e2a9772ea1df539739ca801c8ac0a0252bf11e45bb

24a87e5b059bf3fa93c2e61ea9cbbed3f216e9fff46dfe6ed5c42b9604768fb8

fabric_orderer0.org1.example.com

fabric_orderer0.org2.example.com

fabric_orderer0.org3.example.com

fabric_peer0.org1.example.com

fabric_peer0.org2.example.com

fabric_peer0.org3.example.com

No stopped containers

Untagged: dev-peer0.org1.example.com-cc-tools-demo-0.1-a901886cfe68914269e138b122307822ea9170c9b2da50077ec3ec7ff2d21732:latest

Deleted: sha256:fbc5ca08a04347c455ede26ef6a8db504a0788f1e96849388bad7db43a81fa31

Deleted: sha256:d5a47ae22de2985392e301bf22ae96c8139d6b9f969c97c6a15c777f7716626f

Deleted: sha256:82ec4a9d3e2a263586c792f2c4eb0f884406ebf5505a8a4278906e4c217227ca

Deleted: sha256:1285434ae9a079c25707cab1d337ebc97007398a9b127e294660fefaebdb67fc

Network cc-tools-demo-net is external, skipping

Removing volume fabric_orderer0.org1.example.com

WARNING: Volume fabric_orderer0.org1.example.com not found.

Removing volume fabric_peer0.org1.example.com

WARNING: Volume fabric_peer0.org1.example.com not found.

Removing volume fabric_orderer0.org2.example.com

WARNING: Volume fabric_orderer0.org2.example.com not found.

Removing volume fabric_peer0.org2.example.com

WARNING: Volume fabric_peer0.org2.example.com not found.

Removing volume fabric_orderer0.org3.example.com

WARNING: Volume fabric_orderer0.org3.example.com not found.

Removing volume fabric_peer0.org3.example.com

WARNING: Volume fabric_peer0.org3.example.com not found.

Error response from daemon: network with name cc-tools-demo-net already exists

"docker volume rm" requires at least 1 argument.

See 'docker volume rm --help'.

 

Usage:  docker volume rm [OPTIONS] VOLUME [VOLUME...]

 

Remove one or more volumes

WARNING! This will remove all local volumes not used by at least one container.

Are you sure you want to continue? [y/N] Total reclaimed space: 0B

Error response from daemon: network with name cc-tools-demo-net already exists

Pulling orderer0.org1.example.com    ... done

Pulling peer0.org1.example.com       ... done

Pulling couch.peer0.org1.example.com ... done

Pulling orderer0.org2.example.com    ... done

Pulling peer0.org2.example.com       ... done

Pulling couch.peer0.org2.example.com ... done

Pulling orderer0.org3.example.com    ... done

Pulling peer0.org3.example.com       ... done

Pulling couch.peer0.org3.example.com ... done

Pulling api.org1.example.com         ... done

Pulling api.org2.example.com         ... done

Pulling api.org3.example.com         ... done

Pulling cli                          ... done

Creating volume "fabric_orderer0.org1.example.com" with default driver

Creating volume "fabric_peer0.org1.example.com" with default driver

Creating volume "fabric_orderer0.org2.example.com" with default driver

Creating volume "fabric_peer0.org2.example.com" with default driver

Creating volume "fabric_orderer0.org3.example.com" with default driver

Creating volume "fabric_peer0.org3.example.com" with default driver

Creating peer0.org2.example.com       ... done

Creating api.org3.example.com         ... done

Creating cli                          ... done

Creating couch.peer0.org2.example.com ... done

Creating orderer0.org3.example.com    ... done

Creating peer0.org1.example.com       ... done

Creating api.org2.example.com         ... done

Creating couch.peer0.org3.example.com ... done

Creating orderer0.org2.example.com    ... done

Creating couch.peer0.org1.example.com ... done

Creating peer0.org3.example.com       ... done

Creating api.org1.example.com         ... done

Creating orderer0.org1.example.com    ... done

 

 

Create channel - mainchannel

{"status":"SUCCESS","created":true}

 

Join org1 to channel

{"status":"SUCCESS"}

 

Join org2 to channel

{"status":"SUCCESS"}

 

Join org3 to channel

{"status":"SUCCESS"}

 

Update anchor peers on org1

{"status":"SUCCESS"}

 

Update anchor peers on org2

{"status":"SUCCESS"}

 

Update anchor peers on org3

{"status":"SUCCESS"}

 

Install chaincode on org1

{"status":"SUCCESS"}

 

Install chaincode on org2

{"status":"SUCCESS"}

 

Install chaincode on org3

{"status":"SUCCESS"}

 

Instantiate chaincode

{"started":true}

 

d116f24cdd8f

d116f24cdd8f

Network cc-tools-demo-net is external, skipping

Starting intermediate-container ... done

Creating ccapi.org1.example.com ... done

Creating ccapi.org2.example.com ... done

Creating ccapi.org3.example.com ... done

johnny@JSHLF:~/cc-tools-demo$ docker logs ccapi.org1.example.com

 

> cc-tools-demoapi@1.0.0 start /rest-server

> gulp default; gulp start

 

[19:59:38] Using gulpfile /rest-server/gulpfile.js

[19:59:38] Starting 'default'...

[19:59:38] Starting 'assets'...

[19:59:38] Finished 'default' after 28 ms

[19:59:38] Finished 'assets' after 29 ms

src/routes/chaincode/invokeTx.ts(30,7): error TS2322: Type 'string[] | ParsedQs[]' is not assignable to type 'string[]'.

  Type 'ParsedQs[]' is not assignable to type 'string[]'.

    Type 'ParsedQs' is not assignable to type 'string'.

src/routes/chaincode/invokeTx.ts(32,27): error TS2322: Type 'string | ParsedQs' is not assignable to type 'string'.

  Type 'ParsedQs' is not assignable to type 'string'.

TypeScript: 2 semantic errors

TypeScript: emit succeeded (with errors)

Error: TypeScript: Compilation failed

    at Output.mightFinish (/rest-server/node_modules/gulp-typescript/release/output.js:130:43)

    at applySourceMap.then.appliedSourceMap (/rest-server/node_modules/gulp-typescript/release/output.js:43:22)

    at <anonymous>

[20:00:46] Using gulpfile /rest-server/gulpfile.js

[20:00:46] Starting 'start'...

[20:00:46] [nodemon] 2.0.15

[20:00:46] [nodemon] to restart at any time, enter `rs`

[20:00:46] [nodemon] watching path(s): src/**/*

[20:00:46] [nodemon] watching extensions: js,mjs,json

[20:00:46] [nodemon] starting `node dist/`

Listening on port 80

johnny@JSHLF:~/cc-tools-demo$


Re: Having lots of difficulties installing the code for a working development environment or otherwise. #fabric

Sam Venzi
 

Hello WebZest,

My name is Sam, from the GoLedger team.

We have since removed the networkChaincode functionality and this output from the documentation is outdated. 
As long as you get a SUCCESS during the Chaincode Instantiation you’re good to go.

I apologize for this inconsistency and feel free to contact me if you need anymore help with cc-tools.

Best, 
Sam


Re: Hyperledger Network structure & channel creation in Fabric 2.x - Reg.

Kavin Arumugam
 

Hi Sasikumar,

    1. For adding a new organization like Org3, you can follow the link below:
        Note: Modify MSP Id according to your needs.

    2. Yes. You can create more than one channel. For detailed instructions, please have a look at following link.
       https://hyperledger-fabric.readthedocs.io/en/release-2.2/create_channel/create_channel.html


Thanks & Regards
Kavin Arumugam
LinkedIn: @karthikkavina

On Wed, 10 Nov, 2021, 10:24 pm Sasikumar R, <sasikumarcse@...> wrote:
Dear sir/madam,
        I have successfully executed the test-network which is available in the fabric-samples folder. It creates Org1 & Org2 with one peer each. If I need Org3 in my network, I can use the addOrg3.sh script file inside the addOrg3 folder. But my questions are:

1. Like the Org3, I want to add more Org (Ex: Org4, Org5) in my network and also I want to change my Organization name(Ex: "Hospital" Instead of Org1) depending on my application. How can I do it? Which script files or yaml files do I need to modify?
2. Is it possible to create more than one channel in my network structure? and each channel can have different Organizations. (Ex: channel1 for Org1, Org2, Org3. & Channel2 for Org1, Org2, Org4 likewise)

Kindly suggest detailed tutorials or videos link for the same.

Thank you.


with regards,
Sasikumar Rajendran.


Re: Having lots of difficulties installing the code for a working development environment or otherwise. #fabric

David F. D. Reis
 

And you may use ibm microfab:


Hi is integrated with ibm vs code extension:


.

Best regards,

David

Em qua., 10 de nov. de 2021 19:17, Ry Jones <rjones@...> escreveu:

Hi,
If you're just getting started with Fabric development, I suggest using minifab to get up and running:

On Wed, Nov 10, 2021 at 12:28 PM WebZest <js@...> wrote:
Hello,
I have tried to setup the development environment, from some reliable sources of installation, such as GoLedger; however, my results are not as described on the Goledger pages.  For example, I am not getting the  Install network Chaincode portion in the report when I call ./startDev.sh.  Please see below.
I tried to update the prerequisites sh file to install the latest version of Golang and Node as well as running the sh file that installs the prerequisites as is, but the results are the same; they do not match the goLedger instructions page and getting lots of errors in the reports: GoLedger
--
Ry Jones
Community Architect, Hyperledger


Re: Having lots of difficulties installing the code for a working development environment or otherwise. #fabric

Ry Jones
 

Hi,
If you're just getting started with Fabric development, I suggest using minifab to get up and running:

On Wed, Nov 10, 2021 at 12:28 PM WebZest <js@...> wrote:
Hello,
I have tried to setup the development environment, from some reliable sources of installation, such as GoLedger; however, my results are not as described on the Goledger pages.  For example, I am not getting the  Install network Chaincode portion in the report when I call ./startDev.sh.  Please see below.
I tried to update the prerequisites sh file to install the latest version of Golang and Node as well as running the sh file that installs the prerequisites as is, but the results are the same; they do not match the goLedger instructions page and getting lots of errors in the reports: GoLedger
--
Ry Jones
Community Architect, Hyperledger


Having lots of difficulties installing the code for a working development environment or otherwise. #fabric

WebZest
 

Hello,
I have tried to setup the development environment, from some reliable sources of installation, such as GoLedger; however, my results are not as described on the Goledger pages.  For example, I am not getting the  Install network Chaincode portion in the report when I call ./startDev.sh.  Please see below.
I tried to update the prerequisites sh file to install the latest version of Golang and Node as well as running the sh file that installs the prerequisites as is, but the results are the same; they do not match the goLedger instructions page and getting lots of errors in the reports: GoLedger

I am getting errors and can't verify the results because they do not match the instruction pages from GoLedger.

---------------------------------------
johnny@JSHLF:~/cc-tools-demo$ ./startDev.sh
"docker rmi" requires at least 1 argument.
See 'docker rmi --help'.
 
Usage:  docker rmi [OPTIONS] IMAGE [IMAGE...]
 
Remove one or more images
4b59d9aea77278c9316486ba13d284d962e17117a0485d0d881ef7792bbfb1c8
5aabadde77a0dd187bc01c846ea5cfc07d86ca87f70f8c7516482dcc29689b05
9e9392a2028e08a9f15eb2e2a9772ea1df539739ca801c8ac0a0252bf11e45bb
24a87e5b059bf3fa93c2e61ea9cbbed3f216e9fff46dfe6ed5c42b9604768fb8
fabric_orderer0.org1.example.com
fabric_orderer0.org2.example.com
fabric_orderer0.org3.example.com
fabric_peer0.org1.example.com
fabric_peer0.org2.example.com
fabric_peer0.org3.example.com
No stopped containers
Untagged: dev-peer0.org1.example.com-cc-tools-demo-0.1-a901886cfe68914269e138b122307822ea9170c9b2da50077ec3ec7ff2d21732:latest
Deleted: sha256:fbc5ca08a04347c455ede26ef6a8db504a0788f1e96849388bad7db43a81fa31
Deleted: sha256:d5a47ae22de2985392e301bf22ae96c8139d6b9f969c97c6a15c777f7716626f
Deleted: sha256:82ec4a9d3e2a263586c792f2c4eb0f884406ebf5505a8a4278906e4c217227ca
Deleted: sha256:1285434ae9a079c25707cab1d337ebc97007398a9b127e294660fefaebdb67fc
Network cc-tools-demo-net is external, skipping
Removing volume fabric_orderer0.org1.example.com
WARNING: Volume fabric_orderer0.org1.example.com not found.
Removing volume fabric_peer0.org1.example.com
WARNING: Volume fabric_peer0.org1.example.com not found.
Removing volume fabric_orderer0.org2.example.com
WARNING: Volume fabric_orderer0.org2.example.com not found.
Removing volume fabric_peer0.org2.example.com
WARNING: Volume fabric_peer0.org2.example.com not found.
Removing volume fabric_orderer0.org3.example.com
WARNING: Volume fabric_orderer0.org3.example.com not found.
Removing volume fabric_peer0.org3.example.com
WARNING: Volume fabric_peer0.org3.example.com not found.
Error response from daemon: network with name cc-tools-demo-net already exists
"docker volume rm" requires at least 1 argument.
See 'docker volume rm --help'.
 
Usage:  docker volume rm [OPTIONS] VOLUME [VOLUME...]
 
Remove one or more volumes
WARNING! This will remove all local volumes not used by at least one container.
Are you sure you want to continue? [y/N] Total reclaimed space: 0B
Error response from daemon: network with name cc-tools-demo-net already exists
Pulling orderer0.org1.example.com    ... done
Pulling peer0.org1.example.com       ... done
Pulling couch.peer0.org1.example.com ... done
Pulling orderer0.org2.example.com    ... done
Pulling peer0.org2.example.com       ... done
Pulling couch.peer0.org2.example.com ... done
Pulling orderer0.org3.example.com    ... done
Pulling peer0.org3.example.com       ... done
Pulling couch.peer0.org3.example.com ... done
Pulling api.org1.example.com         ... done
Pulling api.org2.example.com         ... done
Pulling api.org3.example.com         ... done
Pulling cli                          ... done
Creating volume "fabric_orderer0.org1.example.com" with default driver
Creating volume "fabric_peer0.org1.example.com" with default driver
Creating volume "fabric_orderer0.org2.example.com" with default driver
Creating volume "fabric_peer0.org2.example.com" with default driver
Creating volume "fabric_orderer0.org3.example.com" with default driver
Creating volume "fabric_peer0.org3.example.com" with default driver
Creating peer0.org2.example.com       ... done
Creating api.org3.example.com         ... done
Creating cli                          ... done
Creating couch.peer0.org2.example.com ... done
Creating orderer0.org3.example.com    ... done
Creating peer0.org1.example.com       ... done
Creating api.org2.example.com         ... done
Creating couch.peer0.org3.example.com ... done
Creating orderer0.org2.example.com    ... done
Creating couch.peer0.org1.example.com ... done
Creating peer0.org3.example.com       ... done
Creating api.org1.example.com         ... done
Creating orderer0.org1.example.com    ... done
 
 
Create channel - mainchannel
{"status":"SUCCESS","created":true}
 
Join org1 to channel
{"status":"SUCCESS"}
 
Join org2 to channel
{"status":"SUCCESS"}
 
Join org3 to channel
{"status":"SUCCESS"}
 
Update anchor peers on org1
{"status":"SUCCESS"}
 
Update anchor peers on org2
{"status":"SUCCESS"}
 
Update anchor peers on org3
{"status":"SUCCESS"}
 
Install chaincode on org1
{"status":"SUCCESS"}
 
Install chaincode on org2
{"status":"SUCCESS"}
 
Install chaincode on org3
{"status":"SUCCESS"}
 
Instantiate chaincode
{"started":true}
 
d116f24cdd8f
d116f24cdd8f
Network cc-tools-demo-net is external, skipping
Starting intermediate-container ... done
Creating ccapi.org1.example.com ... done
Creating ccapi.org2.example.com ... done
Creating ccapi.org3.example.com ... done
johnny@JSHLF:~/cc-tools-demo$ docker logs ccapi.org1.example.com
 
> cc-tools-demoapi@1.0.0 start /rest-server
> gulp default; gulp start
 
[19:59:38] Using gulpfile /rest-server/gulpfile.js
[19:59:38] Starting 'default'...
[19:59:38] Starting 'assets'...
[19:59:38] Finished 'default' after 28 ms
[19:59:38] Finished 'assets' after 29 ms
src/routes/chaincode/invokeTx.ts(30,7): error TS2322: Type 'string[] | ParsedQs[]' is not assignable to type 'string[]'.
  Type 'ParsedQs[]' is not assignable to type 'string[]'.
    Type 'ParsedQs' is not assignable to type 'string'.
src/routes/chaincode/invokeTx.ts(32,27): error TS2322: Type 'string | ParsedQs' is not assignable to type 'string'.
  Type 'ParsedQs' is not assignable to type 'string'.
TypeScript: 2 semantic errors
TypeScript: emit succeeded (with errors)
Error: TypeScript: Compilation failed
    at Output.mightFinish (/rest-server/node_modules/gulp-typescript/release/output.js:130:43)
    at applySourceMap.then.appliedSourceMap (/rest-server/node_modules/gulp-typescript/release/output.js:43:22)
    at <anonymous>
[20:00:46] Using gulpfile /rest-server/gulpfile.js
[20:00:46] Starting 'start'...
[20:00:46] [nodemon] 2.0.15
[20:00:46] [nodemon] to restart at any time, enter `rs`
[20:00:46] [nodemon] watching path(s): src/**/*
[20:00:46] [nodemon] watching extensions: js,mjs,json
[20:00:46] [nodemon] starting `node dist/`
Listening on port 80
johnny@JSHLF:~/cc-tools-demo$