Date   

where should we store archived data?

Si Chen
 

Hello,

Where would you suggest that we store archived data, like copies of documents?  Would you encrypt them first and then store on IPFS?  

-----
Si Chen
Open Source Strategies, Inc.

Join our Hyperledger Open Source Carbon Accounting & Certification Working Group - Video


Re: Re. Private Data Collections - Get History By Key and Pagination Support for Private Data Collections Related

David Enyeart
 

I don't believe anybody is working on these two features. I agree they would be nice to have and we'd welcome any code contribution. If somebody has an interest in picking either one up, we can provide some guidance on the implementation.

In the meantime, both Jira items have workaround suggestions in the Description or Comments.

https://jira.hyperledger.org/browse/FAB-5094 Query history of private data
https://jira.hyperledger.org/browse/FAB-11732 Page through chaincode private data query results


Dave Enyeart

"Bharg Pvr" ---09/14/2020 08:09:31 PM---Dear Dave and team, Do you have any insights on the following capabilities and when might they make

From: "Bharg Pvr" <pvrbharg@...>
To: fabric@...
Date: 09/14/2020 08:09 PM
Subject: [EXTERNAL] [Hyperledger Fabric] Re. Private Data Collections - Get History By Key and Pagination Support for Private Data Collections Related
Sent by: fabric@...





Dear Dave and team,

Do you have any insights on the following capabilities and when might they make it to mainstream release?
    1. Get  Private Data History by key, similar to getHistoryForKeyfor public data. Looks like a JIRA ticket Is open for the same (https://jira.hyperledger.org/browse/FAB-5094)
    2. Query private data with pagination, similar to getQueryResultWithPagination for public data.
 
Are there any recommendations on how to accomplish above while those capabilities are being considered?

Regards.





Next Hyperledger Fabric Application Developer Community call -- this Thursday 17th September @ 3pm UTC time: 4pm UK, 11am ET, 8am PT

Paul O'Mahoney
 


dear Fabric Application Developer,


the next  Fabric Application Developer community call is: Thursday 17th Sept:  3pm UTC,  4pm UK time (+1), 11am ET (-5 hrs), 8am PT (-8 hrs)  - other time zones here.   It lasts approx 30-60 mins FYI.

The Zoom webconference ID is  https://zoom.us/my/hyperledger.community   

The agenda will be posted here -> https://wiki.hyperledger.org/display/fabric/Agendas%3A+Fabric+Application+Developer+Community+Call+Meetings  

This community call is held bi-weekly via Zoom webconference and is aimed at :

- helping app developers understand / hear more about exciting new things in Fabric, eg. features upcoming or work in progress, architectures, prototypes, proposals - ie things that appeal to the developer

- helping the worldwide Hyperledger Fabric Application Developer community grow (eg. developing applications, smart contracts, client apps using the SDKs, tutorials/demos etc -  eg using NodeJS/TypeScript, Java, Go etc etc) 
- foster more interest, best practices etc in developing applications (eg developing solutions, use cases) with Hyperledger Fabric. 
- opportunity to ask questions of the Fabric team eg. you may have feedback/questions on your experiences developing solutions with Fabric
- to share stuff you've done with the community, eg sample code / sample use cases that others may be interested in

If you wish to share content on a call, just let me know via email direct - or DM me on Rocketchat (ID: mahoney1) and I'll put an item on the agenda. Provide the following:
- the topic (state whether its presentation, or demo etc)
- the full name of the presenter, and 
- approx length of your pitch in minutes




More information can be found on the community page -> https://wiki.hyperledger.org/display/fabric/Fabric+Application+Developer+Community+Calls

You can get calendar invites (eg iCal) here

many thanks for your time - feel free to forward this email if you think it is of interest to a colleague.

Paul O'Mahony
Community Lead - Hyperledger Fabric Developer Community
RocketChat:  mahoney1

mahoney@...



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


#fabric-chaincode-evm #fabric-chaincode #fabric #fabric-chaincode-evm #fabric-chaincode #fabric

李东旭
 

version of peer ,order, fabric-ca image is  1.4 ,but I got Fabric network is  1.1 。

question:

 the relationship between peer order, fabric-ca‘s version and  Fabric network?


some log :

daronlee@daronlee-virtual-machine:~/learning/experiment/IBM_tutorial/blockchain-application-using-fabric-java-sdk/network$ ./build.sh 
 
Stopping the previous network (if any)
Stopping peer0.org1.example.com ... done
Stopping peer1.org1.example.com ... done
Stopping peer1.org2.example.com ... done
Stopping peer0.org2.example.com ... done
Stopping ca_peerOrg1            ... done
Stopping orderer.example.com    ... done
Stopping ca_peerOrg2            ... done
Removing peer0.org1.example.com ... done
Removing peer1.org1.example.com ... done
Removing peer1.org2.example.com ... done
Removing peer0.org2.example.com ... done
Removing ca_peerOrg1            ... done
Removing orderer.example.com    ... done
Removing ca_peerOrg2            ... done
Removing network network_custom
 
Setting up the Hyperledger Fabric 1.1 network
Creating network "network_custom" with the default driver
Creating ca_peerOrg2            ... done
Creating orderer.example.com ... done
Creating ca_peerOrg1         ... done
Creating peer0.org1.example.com ... done
Creating peer1.org1.example.com ... done
Creating peer1.org2.example.com ... done
Creating peer0.org2.example.com ... done
 
Network setup completed!!
 
daronlee@daronlee-virtual-machine:~/learning/experiment/IBM_tutorial/blockchain-application-using-fabric-java-sdk/network$ docker ps 
CONTAINER ID        IMAGE                            COMMAND                  CREATED             STATUS              PORTS                                            NAMES
4bae8f3ba5ba        hyperledger/fabric-peer:1.4      "peer node start"        4 hours ago         Up 4 hours          0.0.0.0:8056->7051/tcp, 0.0.0.0:8058->7053/tcp   peer1.org2.example.com
30cc6e510c6f        hyperledger/fabric-peer:1.4      "peer node start"        4 hours ago         Up 4 hours          0.0.0.0:8051->7051/tcp, 0.0.0.0:8053->7053/tcp   peer0.org2.example.com
d12a490efc2f        hyperledger/fabric-peer:1.4      "peer node start"        4 hours ago         Up 4 hours          0.0.0.0:7056->7051/tcp, 0.0.0.0:7058->7053/tcp   peer1.org1.example.com
ce33840c091a        hyperledger/fabric-peer:1.4      "peer node start"        4 hours ago         Up 4 hours          0.0.0.0:7051->7051/tcp, 0.0.0.0:7053->7053/tcp   peer0.org1.example.com
f464ebc0d1d2        hyperledger/fabric-ca:1.4        "sh -c 'fabric-ca-se…"   4 hours ago         Up 4 hours          0.0.0.0:7054->7054/tcp                           ca_peerOrg1
ae5cb13f9690        hyperledger/fabric-ca:1.4        "sh -c 'fabric-ca-se…"   4 hours ago         Up 4 hours          0.0.0.0:8054->7054/tcp                           ca_peerOrg2
49f89894c88f        hyperledger/fabric-orderer:1.4   "orderer"                4 hours ago         Up 4 hours          0.0.0.0:7050->7050/tcp                           orderer.example.com
b6a52e0ded9d        gliderlabs/logspout              "/bin/logspout"          4 days ago          Up 22 hours         127.0.0.1:8000->80/tcp                           logspout2
daronlee@daronlee-virtual-machine:~/learning/experiment/IBM_tutorial/blockchain-application-using-fabric-java-sdk/network$ 
 


Re: Approve chaincode definition API in new chaincode lifecycle in v2.2 #fabric #fabric-questions

chintanr97@...
 

Got it now. I was confusing myselves. What I understand is, the organization's admin will sign and vote for approval of chaincode definition. Now, I am assuming this will call the "System chaincode" and it is the endorsement policy for this system CC which gets evaluated for committing the block. Now, I want to know what system chaincode gets invoked here, and how do we identify its endorsement policy - which I guess will be "ANY Admins"?


Re: #fabric-sdk-java #fabric-chaincode-evm #fabric-chaincode #fabric-chaincode #fabric-sdk-java #fabric-chaincode-evm

李东旭
 

 I have the same feeling as your reply 。 But in the  blockchain-application-using-fabric-java-sdk  I change the language of  chaincode from golang to java  making no sense 。

In practice , there is always using the  golang  language of chaincode to deploy  and  initiate the chaincode on  the  channel  from fabric network。

the chaincode project on the  fabric samples: 


the   following is  my own  chaincode  project (learning from the github):






Hello - that really does look like it's still trying to use GO rather than Java Chaincode. 

I would suggest at you look at the Fabric-Samples github repo or the IBM Blockchain VSExtension tutorials... 

There may well be something in that repo isn't quite correct... it's not normally a java app that deploys chaincode for example. 
Will have to look at the repo to determine what it's doing...

Thanks Matthew


Re. Private Data Collections - Get History By Key and Pagination Support for Private Data Collections Related

Bharg Pvr
 

Dear Dave and team,

Do you have any insights on the following capabilities and when might they make it to mainstream release?

  1. Get  Private Data History by key, similar to getHistoryForKeyfor public data. Looks like a JIRA ticket Is open for the same (https://jira.hyperledger.org/browse/FAB-5094)
  2. Query private data with pagination, similar to getQueryResultWithPagination for public data.

 

Are there any recommendations on how to accomplish above while those capabilities are being considered?

Regards.


Re: Ed25519 support

Yacov
 

It is not hard, you just need to add the keys to the BCCSPimplementation, and also (mainly for testing and end user consumption) make Fabric tools support generating the keys.



From:        "Carlos Eduardo Matos Ellery" <carlos.ellery@...>
To:        fabric@...
Date:        09/14/2020 05:40 PM
Subject:        [EXTERNAL] [Hyperledger Fabric] Ed25519 support
Sent by:        fabric@...




Hi all,

Since there is
https://golang.org/pkg/crypto/ed25519/ and that NIST
curves are considered unsafe (by
https://safecurves.cr.yp.to/),

How difficult would be integrate ed25519 algorithm support on Fabric?

Thanks in advance!

--
Carlos Eduardo Matos Ellery








Ed25519 support

Carlos Eduardo Matos Ellery
 

Hi all,

Since there is https://golang.org/pkg/crypto/ed25519/ and that NIST curves are considered unsafe (by https://safecurves.cr.yp.to/),

How difficult would be integrate ed25519 algorithm support on Fabric?

Thanks in advance!

--
Carlos Eduardo Matos Ellery


Re: Approve chaincode definition API in new chaincode lifecycle in v2.2 #fabric #fabric-questions

Will Lahti
 

Approval of a chaincode definition happens independent of the other organizations participating on the channel. It requires a single organization administrator's signature for the "vote" of approval to be verified.
 
Will Lahti
Software Developer - IBM Blockchain
E-mail: wtlahti@...
 
 

----- Original message -----
From: chintanr97@...
Sent by: fabric@...
To: fabric@...
Cc:
Subject: [EXTERNAL] [Hyperledger Fabric] Approve chaincode definition API in new chaincode lifecycle in v2.2 #fabric #fabric-questions
Date: Mon, Sep 14, 2020 8:21 AM
 
Starting from v2.2 of HLF, we see that the new chaincode lifecycle expects the organizations to approve a chaincode definition before they can use the chaincode on the channel. As a part of approving the chaincode definition, the peer organization admin will initiate a transaction of approve chaincode definition. The peer node from that particular organization will sign the tx. Now, the transaction is submitted to orderer for committing. If this is getting added a new block in the channel, then what happens if we use "MAJORITY Writers" as the application level policy - does it imply that majority of peer organizations' would have to sign the tx block before it can get accepted?

Which means every approval tx (initiated by one of the peer organizations) - will require majority of participating peer orgs' signatures too. Now, writers policy by default is set to "orgMSP.member" at an org level. What happens if individual orgs, use more stricter writers policy like "orgMSP.admin" - how would the approvals work in this case? Will it cause any deadlock?

Please correct me if my assumptions are wrong or not preferred ones.
 


Approve chaincode definition API in new chaincode lifecycle in v2.2 #fabric #fabric-questions

chintanr97@...
 

Starting from v2.2 of HLF, we see that the new chaincode lifecycle expects the organizations to approve a chaincode definition before they can use the chaincode on the channel. As a part of approving the chaincode definition, the peer organization admin will initiate a transaction of approve chaincode definition. The peer node from that particular organization will sign the tx. Now, the transaction is submitted to orderer for committing. If this is getting added a new block in the channel, then what happens if we use "MAJORITY Writers" as the application level policy - does it imply that majority of peer organizations' would have to sign the tx block before it can get accepted?

Which means every approval tx (initiated by one of the peer organizations) - will require majority of participating peer orgs' signatures too. Now, writers policy by default is set to "orgMSP.member" at an org level. What happens if individual orgs, use more stricter writers policy like "orgMSP.admin" - how would the approvals work in this case? Will it cause any deadlock?

Please correct me if my assumptions are wrong or not preferred ones.


install fabric v2.x on raspberry pi #fabric

kokolaki@...
 

hello, I have cloned fabric-samples from github (using git clone...command) and I use version 2.2.0 of fabric images. I have build the binaries for arm architecture and I have copied them in folder of fabric samples. When I try to run ./network.sh up in test-network or ./startFabric.sh in fabcar I have the following problem:
Peer binary and configuration files not found..
Follow the instructions in the Fabric docs to install the Fabric Binaries:
https://hyperledger-fabric.readthedocs.io/en/latest/install.html
I don't know what files are needed for version 2.x of fabric (in version 1.4, I don't have that problem) I try to install fabric network on raspberry pi (arm architecture).....Please, If anyone has installed fabric 2.2.0 on arm architecture in success, contact me for information.


Re: how to make a peer as a static leader in hyperledger fabric? #fabric-questions #fabric

Yacov
 

The leader election algorithm doesn't take place once the module is turned off, so you won't see it in the logs because it's not there.

What you can see in the log, however, is a line saying it's going to connect to the ordering service

 



From:        "Kumari Shweta" <kumari.shweta@...>
To:        fabric@...
Date:        09/14/2020 02:01 PM
Subject:        [EXTERNAL] [Hyperledger Fabric] how to make a peer as a static leader in hyperledger fabric? #fabric #fabric-questions
Sent by:        fabric@...




We have tried with two approaches to make peer static leader.

#Approach 1 -

1. Go to peer container
2. set
export CORE_PEER_GOSSIP_USELEADERELECTION=false

export CORE_PEER_GOSSIP_ORGLEADER=true
3.checked peer container log adnd didn't found any leader selection log.

#Approach 2

1. go to docker-compose file
2. set these to peer service

CORE_PEER_GOSSIP_USELEADERELECTION=false

CORE_PEER_GOSSIP_ORGLEADER=true
3. restarted peer container
but didn't found any leader section log in peer container

Please suggest how to resolve the problem.






how to make a peer as a static leader in hyperledger fabric? #fabric-questions #fabric

Kumari Shweta
 

We have tried with two approaches to make peer static leader.

#Approach 1 -

1. Go to peer container
2. set 
export CORE_PEER_GOSSIP_USELEADERELECTION=false
export CORE_PEER_GOSSIP_ORGLEADER=true
3.checked peer container log adnd didn't found any leader selection log.

#Approach 2

1. go to docker-compose file
2. set these to peer service
CORE_PEER_GOSSIP_USELEADERELECTION=false
CORE_PEER_GOSSIP_ORGLEADER=true
3. restarted peer container
but didn't found any leader section log in peer container

Please suggest how to resolve the problem.


Re: #fabric-sdk-java #fabric-chaincode-evm #fabric-chaincode #fabric-chaincode #fabric-sdk-java #fabric-chaincode-evm

Matthew White
 

Hello - that really does look like it's still trying to use GO rather than Java Chaincode. 

I would suggest at you look at the Fabric-Samples github repo or the IBM Blockchain VSExtension tutorials... 

There may well be something in that repo isn't quite correct... it's not normally a java app that deploys chaincode for example. 
Will have to look at the repo to determine what it's doing...

Thanks Matthew


#fabric-sdk-java #fabric-chaincode-evm #fabric-chaincode #fabric-chaincode #fabric-sdk-java #fabric-chaincode-evm

李东旭
 


some enviroment infomation :



a running fabric network in my VMware workstaion 15 pro with Ubuntu 18.04 :


daronlee@daronlee-virtual-machine:~/learning/experiment/hyperledger/fabric-chaincode-java$ docker ps 
CONTAINER ID        IMAGE                            COMMAND                  CREATED             STATUS              PORTS                                            NAMES
028e996d7471        hyperledger/fabric-peer:1.4      "peer node start"        2 hours ago         Up 2 hours          0.0.0.0:8051->7051/tcp, 0.0.0.0:8053->7053/tcp   peer0.org2.example.com
c44017fa0c36        hyperledger/fabric-peer:1.4      "peer node start"        2 hours ago         Up 2 hours          0.0.0.0:7051->7051/tcp, 0.0.0.0:7053->7053/tcp   peer0.org1.example.com
880b875ee70a        hyperledger/fabric-peer:1.4      "peer node start"        2 hours ago         Up 2 hours          0.0.0.0:7056->7051/tcp, 0.0.0.0:7058->7053/tcp   peer1.org1.example.com
97e237cfffcc        hyperledger/fabric-peer:1.4      "peer node start"        2 hours ago         Up 2 hours          0.0.0.0:8056->7051/tcp, 0.0.0.0:8058->7053/tcp   peer1.org2.example.com
13c9dec2213c        hyperledger/fabric-ca:1.4        "sh -c 'fabric-ca-se…"   2 hours ago         Up 2 hours          0.0.0.0:7054->7054/tcp                           ca_peerOrg1
13c66c8b8b2a        hyperledger/fabric-ca:1.4        "sh -c 'fabric-ca-se…"   2 hours ago         Up 2 hours          0.0.0.0:8054->7054/tcp                           ca_peerOrg2
e9bf4e20d354        hyperledger/fabric-orderer:1.4   "orderer"                2 hours ago         Up 2 hours          0.0.0.0:7050->7050/tcp                           orderer.example.com
b6a52e0ded9d        gliderlabs/logspout              "/bin/logspout"          3 days ago          Up 3 days           127.0.0.1:8000->80/tcp                           logspout2
 

java source code from java source code   and my code is : 

package org.example.network;
 
import java.io.File;
import java.util.ArrayList;
import java.util.Collection;
import java.util.List;
import java.util.logging.Level;
import java.util.logging.Logger;
 
import org.example.client.ChannelClient;
import org.example.client.FabricClient;
import org.example.config.Config;
import org.example.user.UserContext;
import org.example.util.Util;
import org.hyperledger.fabric.sdk.Channel;
import org.hyperledger.fabric.sdk.Enrollment;
import org.hyperledger.fabric.sdk.Orderer;
import org.hyperledger.fabric.sdk.Peer;
import org.hyperledger.fabric.sdk.ProposalResponse;
import org.hyperledger.fabric.sdk.TransactionRequest.Type;
import org.hyperledger.fabric.sdk.security.CryptoSuite;
 
/**
 * 
 * @author Balaji Kadambi
 *
 */
 
public class DeployInstantiateChaincode {
 
public static void main(String[] args) {
try {
CryptoSuite cryptoSuite = CryptoSuite.Factory.getCryptoSuite();
 
UserContext org1Admin = new UserContext();
File pkFolder1 = new File(Config.ORG1_USR_ADMIN_PK);
File[] pkFiles1 = pkFolder1.listFiles();
File certFolder = new File(Config.ORG1_USR_ADMIN_CERT);
File[] certFiles = certFolder.listFiles();
Enrollment enrollOrg1Admin = Util.getEnrollment(Config.ORG1_USR_ADMIN_PK, pkFiles1[0].getName(),
Config.ORG1_USR_ADMIN_CERT, certFiles[0].getName());
org1Admin.setEnrollment(enrollOrg1Admin);
// quality of code is not well
org1Admin.setMspId("Org1MSP");
org1Admin.setName("admin");
 
UserContext org2Admin = new UserContext();
File pkFolder2 = new File(Config.ORG2_USR_ADMIN_PK);
File[] pkFiles2 = pkFolder2.listFiles();
File certFolder2 = new File(Config.ORG2_USR_ADMIN_CERT);
File[] certFiles2 = certFolder2.listFiles();
Enrollment enrollOrg2Admin = Util.getEnrollment(Config.ORG2_USR_ADMIN_PK, pkFiles2[0].getName(),
Config.ORG2_USR_ADMIN_CERT, certFiles2[0].getName());
org2Admin.setEnrollment(enrollOrg2Admin);
org2Admin.setMspId(Config.ORG2_MSP);
org2Admin.setName(Config.ADMIN);
 
 
FabricClient fabClient = new FabricClient(org1Admin);
 
Channel mychannel = fabClient.getInstance().newChannel(Config.CHANNEL_NAME);
 
 
Orderer orderer = fabClient.getInstance().newOrderer(Config.ORDERER_NAME, Config.ORDERER_URL);
Peer peer0_org1 = fabClient.getInstance().newPeer(Config.ORG1_PEER_0, Config.ORG1_PEER_0_URL);
Peer peer1_org1 = fabClient.getInstance().newPeer(Config.ORG1_PEER_1, Config.ORG1_PEER_1_URL);
Peer peer0_org2 = fabClient.getInstance().newPeer(Config.ORG2_PEER_0, Config.ORG2_PEER_0_URL);
Peer peer1_org2 = fabClient.getInstance().newPeer(Config.ORG2_PEER_1, Config.ORG2_PEER_1_URL);
 
 
mychannel.addOrderer(orderer);
mychannel.addPeer(peer0_org1);
mychannel.addPeer(peer1_org1);
mychannel.addPeer(peer0_org2);
mychannel.addPeer(peer1_org2);
 
 
mychannel.initialize();
 
List<Peer> org1Peers = new ArrayList<Peer>();
org1Peers.add(peer0_org1);
org1Peers.add(peer1_org1);
 
List<Peer> org2Peers = new ArrayList<Peer>();
org2Peers.add(peer0_org2);
org2Peers.add(peer1_org2);
 
Collection<ProposalResponse> response = fabClient.deployChainCode(Config.CHAINCODE_1_NAME,
Config.CHAINCODE_1_PATH, Config.CHAINCODE_ROOT_DIR, Type.JAVA.toString(),
Config.CHAINCODE_1_VERSION, org1Peers);
 
 
for (ProposalResponse res : response) {
Logger.getLogger(DeployInstantiateChaincode.class.getName()).log(Level.INFO,
Config.CHAINCODE_1_NAME + "- Chain code deployment " + res.getStatus());
}
 
// deploy chaincode on the top of org2
fabClient.getInstance().setUserContext(org2Admin);
 
response = fabClient.deployChainCode(Config.CHAINCODE_1_NAME,
Config.CHAINCODE_1_PATH, Config.CHAINCODE_ROOT_DIR, Type.JAVA.toString(),
Config.CHAINCODE_1_VERSION, org2Peers);
 
 
for (ProposalResponse res : response) {
Logger.getLogger(DeployInstantiateChaincode.class.getName()).log(Level.INFO,
Config.CHAINCODE_1_NAME + "- Chain code deployment " + res.getStatus());
}
 
ChannelClient channelClient = new ChannelClient(mychannel.getName(), mychannel, fabClient);
 
String[] arguments = { "" };
response = channelClient.instantiateChainCode(Config.CHAINCODE_1_NAME, Config.CHAINCODE_1_VERSION,
Config.CHAINCODE_1_PATH, Type.JAVA.toString(), "initLedger", arguments, null);
 
for (ProposalResponse res : response) {
Logger.getLogger(DeployInstantiateChaincode.class.getName()).log(Level.INFO,
Config.CHAINCODE_1_NAME + "- Chain code instantiation " + res.getStatus());
}
 
} catch (Exception e) {
e.printStackTrace();
}
}
 
}
 



questions:

  • IBMIBM tutorial use go chaincode , but i want to use java to constrcut the chaincode . I change some config in the java projects ,such as the  language of chaincode , change TYPE.GO_LANG to  TYPE.JAVA ,
  • the channel is cteated without  any problems .
  • when I  perform  java -cp blockchain-client.jar org.example.network.DeployInstantiateChaincode  ,i got the logs from logspout .
  • I donot know what  accurs these errors .
  • please help me !



peer0.org2.example.com|2020-09-14 03:51:56.824 UTC [endorser] callChaincode -> INFO 052 [mychannel][053faec7] Entry chaincode: name:"cscc" 
peer0.org2.example.com|2020-09-14 03:51:56.830 UTC [endorser] callChaincode -> INFO 053 [mychannel][053faec7] Exit chaincode: name:"cscc"  (5ms)
peer0.org2.example.com|2020-09-14 03:51:56.832 UTC [comm.grpc.server] 1 -> INFO 054 unary call completed grpc.service=protos.Endorser grpc.method=ProcessProposal grpc.peer_address=172.30.0.1:37248 grpc.code=OK grpc.call_duration=23.241949ms
peer0.org1.example.com|2020-09-14 03:51:57.330 UTC [endorser] callChaincode -> INFO 04b [mychannel][0a7bd67d] Entry chaincode: name:"cscc" 
peer0.org1.example.com|2020-09-14 03:51:57.345 UTC [endorser] callChaincode -> INFO 04c [mychannel][0a7bd67d] Exit chaincode: name:"cscc"  (14ms)
peer0.org1.example.com|2020-09-14 03:51:57.348 UTC [comm.grpc.server] 1 -> INFO 04d unary call completed grpc.service=protos.Endorser grpc.method=ProcessProposal grpc.peer_address=172.30.0.1:47368 grpc.code=OK grpc.call_duration=19.300743ms
peer0.org2.example.com|2020-09-14 03:51:57.396 UTC [endorser] callChaincode -> INFO 055 [mychannel][6f54c3da] Entry chaincode: name:"cscc" 
peer0.org2.example.com|2020-09-14 03:51:57.398 UTC [endorser] callChaincode -> INFO 056 [mychannel][6f54c3da] Exit chaincode: name:"cscc"  (1ms)
peer0.org2.example.com|2020-09-14 03:51:57.399 UTC [comm.grpc.server] 1 -> INFO 057 unary call completed grpc.service=protos.Endorser grpc.method=ProcessProposal grpc.peer_address=172.30.0.1:37248 grpc.code=OK grpc.call_duration=13.950016ms
peer0.org2.example.com|2020-09-14 03:51:57.418 UTC [endorser] callChaincode -> INFO 058 [mychannel][dc7f10a3] Entry chaincode: name:"cscc" 
peer0.org2.example.com|2020-09-14 03:51:57.422 UTC [endorser] callChaincode -> INFO 059 [mychannel][dc7f10a3] Exit chaincode: name:"cscc"  (3ms)
peer0.org2.example.com|2020-09-14 03:51:57.423 UTC [comm.grpc.server] 1 -> INFO 05a unary call completed grpc.service=protos.Endorser grpc.method=ProcessProposal grpc.peer_address=172.30.0.1:37248 grpc.code=OK grpc.call_duration=5.268603ms
peer1.org1.example.com|2020-09-14 03:51:57.733 UTC [endorser] callChaincode -> INFO 051 [][caabce02] Entry chaincode: name:"lscc" 
peer1.org1.example.com|2020-09-14 03:51:57.783 UTC [endorser] callChaincode -> INFO 052 [][caabce02] Exit chaincode: name:"lscc"  (50ms)
peer1.org1.example.com|2020-09-14 03:51:57.783 UTC [endorser] ProcessProposal -> ERRO 053 [][caabce02] simulateProposal() resulted in chaincode name:"lscc"  response status 500 for txid: caabce02e518c916c7d52d759ab2ad90a9d1dcdcb19ba88064795c195e5e38f2
peer1.org1.example.com|2020-09-14 03:51:57.787 UTC [comm.grpc.server] 1 -> INFO 054 unary call completed grpc.service=protos.Endorser grpc.method=ProcessProposal grpc.peer_address=172.30.0.1:40610 grpc.code=OK grpc.call_duration=60.633093ms
peer0.org1.example.com|2020-09-14 03:51:57.900 UTC [endorser] callChaincode -> INFO 04e [][caabce02] Entry chaincode: name:"lscc" 
peer0.org1.example.com|2020-09-14 03:51:57.954 UTC [endorser] callChaincode -> INFO 04f [][caabce02] Exit chaincode: name:"lscc"  (54ms)
peer0.org1.example.com|2020-09-14 03:51:57.954 UTC [endorser] ProcessProposal -> ERRO 050 [][caabce02] simulateProposal() resulted in chaincode name:"lscc"  response status 500 for txid: caabce02e518c916c7d52d759ab2ad90a9d1dcdcb19ba88064795c195e5e38f2
peer0.org1.example.com|2020-09-14 03:51:57.961 UTC [comm.grpc.server] 1 -> INFO 051 unary call completed grpc.service=protos.Endorser grpc.method=ProcessProposal grpc.peer_address=172.30.0.1:47368 grpc.code=OK grpc.call_duration=71.705132ms
peer0.org2.example.com|2020-09-14 03:51:58.208 UTC [endorser] callChaincode -> INFO 05b [][b8b6e275] Entry chaincode: name:"lscc" 
peer0.org2.example.com|2020-09-14 03:51:58.244 UTC [endorser] callChaincode -> INFO 05c [][b8b6e275] Exit chaincode: name:"lscc"  (36ms)
peer0.org2.example.com|2020-09-14 03:51:58.245 UTC [endorser] ProcessProposal -> ERRO 05d [][b8b6e275] simulateProposal() resulted in chaincode name:"lscc"  response status 500 for txid: b8b6e2750ae4309231eed6130250c25dacceeaea6e6ae2286067856a5d5d4059
peer0.org2.example.com|2020-09-14 03:51:58.249 UTC [comm.grpc.server] 1 -> INFO 05e unary call completed grpc.service=protos.Endorser grpc.method=ProcessProposal grpc.peer_address=172.30.0.1:37248 grpc.code=OK grpc.call_duration=45.224175ms
peer1.org2.example.com|2020-09-14 03:51:58.323 UTC [endorser] callChaincode -> INFO 04b [][b8b6e275] Entry chaincode: name:"lscc" 
peer0.org2.example.com|2020-09-14 03:51:58.403 UTC [endorser] callChaincode -> INFO 05f [mychannel][1144e7e1] Entry chaincode: name:"lscc" 
peer1.org1.example.com|2020-09-14 03:51:58.411 UTC [endorser] callChaincode -> INFO 055 [mychannel][1144e7e1] Entry chaincode: name:"lscc" 
peer0.org1.example.com|2020-09-14 03:51:58.432 UTC [endorser] callChaincode -> INFO 052 [mychannel][1144e7e1] Entry chaincode: name:"lscc" 
peer1.org2.example.com|2020-09-14 03:51:58.380 UTC [endorser] callChaincode -> INFO 04c [][b8b6e275] Exit chaincode: name:"lscc"  (57ms)
peer1.org2.example.com|2020-09-14 03:51:58.380 UTC [endorser] ProcessProposal -> ERRO 04d [][b8b6e275] simulateProposal() resulted in chaincode name:"lscc"  response status 500 for txid: b8b6e2750ae4309231eed6130250c25dacceeaea6e6ae2286067856a5d5d4059
peer1.org2.example.com|2020-09-14 03:51:58.388 UTC [comm.grpc.server] 1 -> INFO 04e unary call completed grpc.service=protos.Endorser grpc.method=ProcessProposal grpc.peer_address=172.30.0.1:51624 grpc.code=OK grpc.call_duration=76.308341ms
peer1.org2.example.com|2020-09-14 03:51:58.474 UTC [endorser] callChaincode -> INFO 04f [mychannel][1144e7e1] Entry chaincode: name:"lscc" 
peer0.org2.example.com|2020-09-14 03:51:59.108 UTC [chaincode.platform.golang] GenerateDockerBuild -> INFO 060 building chaincode with ldflagsOpt: '-ldflags "-linkmode external -extldflags '-static'"'
peer0.org1.example.com|2020-09-14 03:51:59.127 UTC [chaincode.platform.golang] GenerateDockerBuild -> INFO 053 building chaincode with ldflagsOpt: '-ldflags "-linkmode external -extldflags '-static'"'
peer1.org2.example.com|2020-09-14 03:51:59.127 UTC [chaincode.platform.golang] GenerateDockerBuild -> INFO 050 building chaincode with ldflagsOpt: '-ldflags "-linkmode external -extldflags '-static'"'
peer1.org1.example.com|2020-09-14 03:51:59.214 UTC [chaincode.platform.golang] GenerateDockerBuild -> INFO 056 building chaincode with ldflagsOpt: '-ldflags "-linkmode external -extldflags '-static'"'
    competent_mccarthy|can't load package: package github.com/fabcar/java: no Go files in /chaincode/input/src/github.com/fabcar/java
peer1.org2.example.com|2020-09-14 03:52:04.844 UTC [chaincode.platform] func1 -> ERRO 051 Failed to generate platform-specific docker build: Error returned from build: 1 "can't load package: package github.com/fabcar/java: no Go files in /chaincode/input/src/github.com/fabcar/java
peer1.org2.example.com|"
peer1.org2.example.com|2020-09-14 03:52:04.853 UTC [dockercontroller] deployImage -> ERRO 052 Error building image: Failed to generate platform-specific docker build: Error returned from build: 1 "can't load package: package github.com/fabcar/java: no Go files in /chaincode/input/src/github.com/fabcar/java
peer1.org2.example.com|"
peer1.org2.example.com|2020-09-14 03:52:04.853 UTC [dockercontroller] deployImage -> ERRO 053 Build Output:
peer1.org2.example.com|********************
peer1.org2.example.com|
peer1.org2.example.com|********************
peer1.org2.example.com|2020-09-14 03:52:04.908 UTC [endorser] callChaincode -> INFO 054 [mychannel][1144e7e1] Exit chaincode: name:"lscc"  (6432ms)
peer1.org2.example.com|2020-09-14 03:52:04.908 UTC [endorser] SimulateProposal -> ERRO 055 [mychannel][1144e7e1] failed to invoke chaincode name:"lscc" , error: Failed to generate platform-specific docker build: Error returned from build: 1 "can't load package: package github.com/fabcar/java: no Go files in /chaincode/input/src/github.com/fabcar/java
peer1.org2.example.com|"
peer1.org2.example.com|error starting container
peer1.org2.example.com|error starting container
peer1.org2.example.com|2020-09-14 03:52:04.910 UTC [comm.grpc.server] 1 -> INFO 056 unary call completed grpc.service=protos.Endorser grpc.method=ProcessProposal grpc.peer_address=172.30.0.1:51624 grpc.code=OK grpc.call_duration=6.438959218s
peer0.org1.example.com|2020-09-14 03:52:05.224 UTC [chaincode.platform] func1 -> ERRO 054 Failed to generate platform-specific docker build: Error returned from build: 1 "can't load package: package github.com/fabcar/java: no Go files in /chaincode/input/src/github.com/fabcar/java
peer0.org1.example.com|"
peer0.org1.example.com|2020-09-14 03:52:05.244 UTC [dockercontroller] deployImage -> ERRO 055 Error building image: Failed to generate platform-specific docker build: Error returned from build: 1 "can't load package: package github.com/fabcar/java: no Go files in /chaincode/input/src/github.com/fabcar/java
peer0.org1.example.com|"
peer0.org1.example.com|2020-09-14 03:52:05.244 UTC [dockercontroller] deployImage -> ERRO 056 Build Output:
peer0.org1.example.com|********************
peer0.org1.example.com|
peer0.org1.example.com|********************
peer0.org1.example.com|2020-09-14 03:52:05.248 UTC [endorser] callChaincode -> INFO 057 [mychannel][1144e7e1] Exit chaincode: name:"lscc"  (6816ms)
peer0.org1.example.com|2020-09-14 03:52:05.258 UTC [endorser] SimulateProposal -> ERRO 058 [mychannel][1144e7e1] failed to invoke chaincode name:"lscc" , error: Failed to generate platform-specific docker build: Error returned from build: 1 "can't load package: package github.com/fabcar/java: no Go files in /chaincode/input/src/github.com/fabcar/java
peer0.org1.example.com|"
peer0.org1.example.com|error starting container
peer0.org1.example.com|error starting container
peer0.org1.example.com|2020-09-14 03:52:05.259 UTC [comm.grpc.server] 1 -> INFO 059 unary call completed grpc.service=protos.Endorser grpc.method=ProcessProposal grpc.peer_address=172.30.0.1:47368 grpc.code=OK grpc.call_duration=6.855283823s
          lucid_curran|can't load package: package github.com/fabcar/java: no Go files in /chaincode/input/src/github.com/fabcar/java
peer0.org2.example.com|2020-09-14 03:52:05.765 UTC [chaincode.platform] func1 -> ERRO 061 Failed to generate platform-specific docker build: Error returned from build: 1 "can't load package: package github.com/fabcar/java: no Go files in /chaincode/input/src/github.com/fabcar/java
peer0.org2.example.com|"
peer0.org2.example.com|2020-09-14 03:52:05.784 UTC [dockercontroller] deployImage -> ERRO 062 Error building image: Failed to generate platform-specific docker build: Error returned from build: 1 "can't load package: package github.com/fabcar/java: no Go files in /chaincode/input/src/github.com/fabcar/java
peer0.org2.example.com|"
peer0.org2.example.com|2020-09-14 03:52:05.784 UTC [dockercontroller] deployImage -> ERRO 063 Build Output:
peer0.org2.example.com|********************
peer0.org2.example.com|
peer0.org2.example.com|********************
peer0.org2.example.com|2020-09-14 03:52:05.786 UTC [endorser] callChaincode -> INFO 064 [mychannel][1144e7e1] Exit chaincode: name:"lscc"  (7383ms)
peer0.org2.example.com|2020-09-14 03:52:05.786 UTC [endorser] SimulateProposal -> ERRO 065 [mychannel][1144e7e1] failed to invoke chaincode name:"lscc" , error: Failed to generate platform-specific docker build: Error returned from build: 1 "can't load package: package github.com/fabcar/java: no Go files in /chaincode/input/src/github.com/fabcar/java
peer0.org2.example.com|"
peer0.org2.example.com|error starting container
peer0.org2.example.com|error starting container
peer0.org2.example.com|2020-09-14 03:52:05.786 UTC [comm.grpc.server] 1 -> INFO 066 unary call completed grpc.service=protos.Endorser grpc.method=ProcessProposal grpc.peer_address=172.30.0.1:37248 grpc.code=OK grpc.call_duration=7.383946019s
           bold_colden|can't load package: package github.com/fabcar/java: no Go files in /chaincode/input/src/github.com/fabcar/java
peer1.org1.example.com|2020-09-14 03:52:06.832 UTC [chaincode.platform] func1 -> ERRO 057 Failed to generate platform-specific docker build: Error returned from build: 1 "can't load package: package github.com/fabcar/java: no Go files in /chaincode/input/src/github.com/fabcar/java
peer1.org1.example.com|"
peer1.org1.example.com|2020-09-14 03:52:06.832 UTC [dockercontroller] deployImage -> ERRO 058 Error building image: Failed to generate platform-specific docker build: Error returned from build: 1 "can't load package: package github.com/fabcar/java: no Go files in /chaincode/input/src/github.com/fabcar/java
peer1.org1.example.com|"
peer1.org1.example.com|2020-09-14 03:52:06.833 UTC [dockercontroller] deployImage -> ERRO 059 Build Output:
peer1.org1.example.com|********************
peer1.org1.example.com|
peer1.org1.example.com|********************
peer1.org1.example.com|2020-09-14 03:52:06.846 UTC [endorser] callChaincode -> INFO 05a [mychannel][1144e7e1] Exit chaincode: name:"lscc"  (8434ms)
peer1.org1.example.com|2020-09-14 03:52:06.847 UTC [endorser] SimulateProposal -> ERRO 05b [mychannel][1144e7e1] failed to invoke chaincode name:"lscc" , error: Failed to generate platform-specific docker build: Error returned from build: 1 "can't load package: package github.com/fabcar/java: no Go files in /chaincode/input/src/github.com/fabcar/java
peer1.org1.example.com|"
peer1.org1.example.com|error starting container
peer1.org1.example.com|error starting container
peer1.org1.example.com|2020-09-14 03:52:06.847 UTC [comm.grpc.server] 1 -> INFO 05c unary call completed grpc.service=protos.Endorser grpc.method=ProcessProposal grpc.peer_address=172.30.0.1:40610 grpc.code=OK grpc.call_duration=8.444529207s
peer0.org1.example.com|2020-09-14 03:52:07.267 UTC [comm.grpc.server] 1 -> INFO 05a streaming call completed grpc.service=protos.Deliver grpc.method=Deliver grpc.peer_address=172.30.0.1:47364 error="context finished before block retrieved: context canceled" grpc.code=Unknown grpc.call_duration=10.153459206s
peer1.org1.example.com|2020-09-14 03:52:07.267 UTC [comm.grpc.server] 1 -> INFO 05d streaming call completed grpc.service=protos.Deliver grpc.method=Deliver grpc.peer_address=172.30.0.1:40594 error="context finished before block retrieved: context canceled" grpc.code=Unknown grpc.call_duration=10.217643355s
peer0.org2.example.com|2020-09-14 03:52:07.267 UTC [comm.grpc.server] 1 -> INFO 067 streaming call completed grpc.service=protos.Deliver grpc.method=Deliver grpc.peer_address=172.30.0.1:37252 error="context finished before block retrieved: context canceled" grpc.code=Unknown grpc.call_duration=10.264209598s
peer1.org2.example.com|2020-09-14 03:52:07.267 UTC [comm.grpc.server] 1 -> INFO 057 streaming call completed grpc.service=protos.Deliver grpc.method=Deliver grpc.peer_address=172.30.0.1:51608 error="context finished before block retrieved: context canceled" grpc.code=Unknown grpc.call_duration=10.180411464s



 


Re: How to cancel transactions on behalf of the user #fabric #fabric-questions

David Enyeart
 

You can store anything you like in the chaincode state, for example:
- the current auction state for an item
- the list of allowed users
- the list of blocked users
- the list of users that can administer certain auction items

And then subsequent transactions can reference the state and act accordingly. Think of it like any other application with a database... the possibilities are endless...

>>what if I want to bring everything down in order to upgrade the software or fix some technical issue?

You can deploy a subsequent version of the chaincode to handle any new requirements or fixes, so long as the other endorsing orgs agree with the change, and it is backwards compatible with the existing set of states.


Dave Enyeart

"alerner via lists.hyperledger.org" ---09/13/2020 04:54:48 PM---Lets say I am running a hyperledger version of electronic garage sale -- a user puts up stuff for sa

From: "alerner via lists.hyperledger.org" <alerner=symbridge.com@...>
To: fabric@...
Date: 09/13/2020 04:54 PM
Subject: [EXTERNAL] [Hyperledger Fabric] How to cancel transactions on behalf of the user #fabric #fabric-questions
Sent by: fabric@...





Lets say I am running a hyperledger version of electronic garage sale -- a user puts up stuff for sale, and then someone else comes along later on and buys the item.
But lets say I decide that a particular seller is not trustworthy -- I want to cancel all of his outstanding sale items, and prevent him from submitting anything else in the future.
I was told that since I dont have access to the user's private key, there is nothing I can do with the user's orders. But what if I want to bring everything down in order to upgrade the software or fix some technical issue? How so I perform admin actions where I need to cancel stuff? Notice that I am not asking to break a transaction between 2 users, I simply want to cancel an "outstanding advertisement" that no one had accepted yet.
Thank you




How to cancel transactions on behalf of the user #fabric #fabric-questions

alerner@...
 

Lets say I am running a hyperledger version of electronic garage sale -- a user puts up stuff for sale, and then someone else comes along later on and buys the item.
But lets say I decide that a particular seller is not trustworthy -- I want to cancel all of his outstanding sale items, and prevent him from submitting anything else in the future.
I was told that since I dont have access to the user's private key, there is nothing I can do with the user's orders.  But what if I want to bring everything down in order to upgrade the software or fix some technical issue?  How so I perform admin actions where I need to cancel stuff?  Notice that I am not asking to break a transaction between 2 users, I simply want to cancel an "outstanding advertisement" that no one had accepted yet.
Thank you


Re: how to create and manage credentials for an app based on fabric?

Sijo Cherian
 

Hi Si,

You can expose a REST admin api like this function to manage a user & keys:

The keys can be kept in the REST server wallet like the app.js is doing, and client app calls can be mapped to ca user.

Regards,
/sijo

On Thu, Sep 3, 2020 at 8:50 PM Si Chen <sichen@...> wrote:
Hello everybody,

Could we get your advice on how to create and manage credentials for an app which interacts with a Hyperledger fabric ledger?

This is all from our last Climate Accounting WG call:

We're planning to have a REST interface interact with the ledger.  Then a user-facing app would connect to the REST interface.

So should we have
1. a REST api which creates credential (security key) from a certificate authority which the app is allowed to interact with
2. the REST api return the security key to the client app
3.  the client app stores the security key for the user
4.  the client app allows the user to call ledger chain code using the stored security key?

Thank you for your advice.

-----
Si Chen
Open Source Strategies, Inc.

Join our Hyperledger Open Source Carbon Accounting & Certification Working Group - Video


Hyperledger Fabric Documentation Workgroup call - Western hemisphere - Fri, 09/11/2020 #cal-notice

fabric@lists.hyperledger.org Calendar <noreply@...>
 

Hyperledger Fabric Documentation Workgroup call - Western hemisphere

When:
Friday, 11 September 2020
4:00pm to 5:00pm
(GMT+01:00) Europe/London

Where:
https://zoom.us/my/hyperledger.community.backup

Organizer:
a_o-dowd@... +441962816761

Description:
https://zoom.us/my/hyperledger.community.backup
Documentation workgroup call.
Agenda, minutes and recordings :https://wiki.hyperledger.org/display/fabric/Documentation+Working+Group