Elthel Mario

Elthel Mario

1548816990

peer endorsement policy not working hyperledger fabric

I am trying to enforce simple endorsement policy for 2 org network. Here is my crypto-config.yaml

OrdererOrgs:
  - Name: Orderer
    Domain: example.com
    Specs:
      - Hostname: orderer
PeerOrgs:
  - Name: Org1
    Domain: org1.example.com
    EnableNodeOUs: true
    # CA:
    #   OrganizationalUnit: peer
    Template:
      Count: 1
    Users:
      Count: 1
  - Name: Org2
    Domain: org2.example.com
    EnableNodeOUs: true
    # CA:
    #   OrganizationalUnit: peer
    Template:
      Count: 1
    Users:
      Count: 1

And i can see OU as peer in both peers.

peer0.org2.example.com  
Identity: peer0.org2.example.com  
Verified by: ca.org2.example.com  
Expires: Saturday 23 December 2028 

Subject Name

C (Country):    US  
ST (State): California  
L (Locality):   San Francisco  
OU (Organizational Unit):   peer  
CN (Common Name):   peer0.org2.example.com 

endorsement policy for member check works

peer chaincode instantiate -o orderer.example.com:7050 -C mychannel -n chaincode -l node -v v0 -c '{"args":["init"]}' -P "AND('Org1MSP.member', 'Org2MSP.member')"  

but endorsement policy for peer check not working

peer chaincode instantiate -o orderer.example.com:7050 -C mychannel -n chaincode -l node -v v0 -c '{"args":["init"]}' -P "AND('Org1MSP.peer', 'Org2MSP.peer')"  

When i invoke any function.

Transaction failed to be committed to the ledger due to ::ENDORSEMENT_POLICY_FAILURE

even "OR('Org1MSP.peer', 'Org2MSP.peer')" not working

#blockchain #hyperledger

What is GEEK

Buddha Community

Elthel Mario

Elthel Mario

1548816990

peer endorsement policy not working hyperledger fabric

I am trying to enforce simple endorsement policy for 2 org network. Here is my crypto-config.yaml

OrdererOrgs:
  - Name: Orderer
    Domain: example.com
    Specs:
      - Hostname: orderer
PeerOrgs:
  - Name: Org1
    Domain: org1.example.com
    EnableNodeOUs: true
    # CA:
    #   OrganizationalUnit: peer
    Template:
      Count: 1
    Users:
      Count: 1
  - Name: Org2
    Domain: org2.example.com
    EnableNodeOUs: true
    # CA:
    #   OrganizationalUnit: peer
    Template:
      Count: 1
    Users:
      Count: 1

And i can see OU as peer in both peers.

peer0.org2.example.com  
Identity: peer0.org2.example.com  
Verified by: ca.org2.example.com  
Expires: Saturday 23 December 2028 

Subject Name

C (Country):    US  
ST (State): California  
L (Locality):   San Francisco  
OU (Organizational Unit):   peer  
CN (Common Name):   peer0.org2.example.com 

endorsement policy for member check works

peer chaincode instantiate -o orderer.example.com:7050 -C mychannel -n chaincode -l node -v v0 -c '{"args":["init"]}' -P "AND('Org1MSP.member', 'Org2MSP.member')"  

but endorsement policy for peer check not working

peer chaincode instantiate -o orderer.example.com:7050 -C mychannel -n chaincode -l node -v v0 -c '{"args":["init"]}' -P "AND('Org1MSP.peer', 'Org2MSP.peer')"  

When i invoke any function.

Transaction failed to be committed to the ledger due to ::ENDORSEMENT_POLICY_FAILURE

even "OR('Org1MSP.peer', 'Org2MSP.peer')" not working

#blockchain #hyperledger

Devin Pinto

1615281046

How does Hyperledger Fabric Blockchain Work?

Blockchain is a revolutionary technology that has ushered in a new age. This distributed ledger technology is the foundation for Bitcoin trading, but it has evolved into a mainstream technology with a wide range of applications. Blockchain developers are in high demand across a wide range of industries; from food to banking, Blockchain technology has a wide range of applications.

Despite the fact that Blockchain technology has been steadily growing, there are some concerns about its use. The lack of governance and scalability, as well as privacy, are major concerns that must be addressed. But the truth is that we have both public and private Blockchains. While the public Blockchain is available to everyone, businesses are more interested in the private Blockchain. The private Blockchain, on the other hand, is much more stable.

The Hyperledger Fabric:

Hyperledger Fabric comes to mind when we talk about permissioned Blockchain. This Blockchain platform provides a solution for businesses. It is also used by businesses for transactions and knowledge exchange. Members are the organisations that are a part of this consortium.

Now comes the Hyperledger fabric’s operation. Each member of the Blockchain network who wishes to participate in the network must first set up their peers. All of the members are cryptographically configured to look like they have access to the Certificate Authority and other information.

Clients submit transaction requests to the members of the member organisation. To connect with the Hyperledger Fabric network, this client programme uses the Hyperledger Fabric SDK or REST web service.

Hyperledger Fabric differs from Blockchain in that it is a permissioned network in which representatives of participating organisations grant permission, enhancing the platform’s protection. As a result, it is completely safe and stable.

Hyperledger fabric’s main features include:

1. Permissioned membership- Unlike public Blockchains, where identities are anonymous, all Hyperledger fabric participants have identities.

2. Scalability and performance- Hyperledger fabric is based on a modular architecture and consists of the following components:

• Chain code (distributed logic processing and agreement)
• Putting the transaction in order
• As well as transaction confirmation and dedication.

It improves scalability and efficiency by allowing for verification across various node types.

3. Data security— Another benefit of using Hyperledger Fabric is that it ensures data security. For key generation, the user receives both modified and unmodified PKCS11, which adds to the protection.

These are some of the advantages that Hyperledger fabric provides, and this is why so many businesses are interested in using it. These characteristics of Blockchain would increase its popularity and expand its scope.

As a result of this development, there will be a greater demand for Hyperledger experts who can help with the implementation of this technology. If you want to advance your career in this field, you should enrol in the Blockchain Council’s Hyperledger certification programme.

#hyperledger certification #hyperledger training #what is hyperledger #blockchain council

Alice Cook

Alice Cook

1614329473

Fix: G Suite not Working | G Suite Email not Working | Google Business

G Suite is one of the Google products, developed form of Google Apps. It is a single platform to hold cloud computing, collaboration tools, productivity, software, and products. While using it, many a time, it’s not working, and users have a question– How to fix G Suite not working on iPhone? It can be resolved easily by restarting the device, and if unable to do so, you can reach our specialists whenever you want.
For more details: https://contactforhelp.com/blog/how-to-fix-the-g-suite-email-not-working-issue/

#g suite email not working #g suite email not working on iphone #g suite email not working on android #suite email not working on windows 10 #g suite email not working on mac #g suite email not syncing

Xfinity Stream Not Working?

Xfinity, the tradename of Comcast Cable Communications, LLC, is the first rate supplier of Internet, satellite TV, phone, and remote administrations in the United States. Presented in 2010, previously these administrations were given under the Comcast brand umbrella. Xfinity makes a universe of mind boggling amusement and innovation benefits that joins a great many individuals to the encounters and minutes that issue them the most. Since Xfinity is the greatest supplier of link administrations and home Internet in the United States, it isn’t amazing that the organization gets a ton of investigating and inquiry goal demands on its telephone based Xfinity Customer Service.

#my internet is not working comcast #comcast tv remote not working #my xfinity internet is not working #xfinity stream not working #xfinity wifi hotspot not working

DAML on Hyperledger Fabric

In our last blog, DAML on Hyperledger Sawtooth, we deployed our DAML application on a single node Hyperledger Sawtooth ecosystem, a blockchain platform which is part of the Hyperledger project by the Linux Foundation. We also learned about Sextant for DAML which is a blockchain management platform and combines DAML with the enterprise-grade Hyperledger Sawtooth.

In this blog, we will continue moving forward in our DAML journey and deploy our application on another blockchain platform which is Hyperledger Fabric.

Let’s get started by getting to know Hyperledger Fabric.

Hyperledger Fabric

Hyperledger Fabric is one of the distributed ledger frameworks under the Hyperledger project. It is a framework for permissioned networks, where all participants have known identities.

Hyperledger is an open-source community focused on developing a suite of stable frameworks, tools, and libraries for enterprise-grade blockchain deployments.

Now if you are new to the blockchain world you may think what do we mean by enterprise-grade blockchain and how Hyperledger fabric can be considered an enterprise blockchain.

So just to make things easy, enterprise blockchain platforms are the platforms that can be used by businesses who want to use blockchain technology to grow their business. To make it more simple, the difference between enterprise blockchain and normal blockchain networks also known as public blockchains is that enterprise blockchains can be private and the participants in the network can be decided by the business owner contrary to this in public blockchain networks anyone can be a participant. To know more you can check out this blog on Blockchain for business.

So let’s continue with Hyperledger Fabric and see what are the features it provides us with :

  1. Permissioned Network: Hyperledger Fabric is a framework for permissioned networks, where all participants have known identities. Many use cases — in the financial sector and healthcare industry, in particular — are subject to data protection laws that require knowing who the members of the network are and who is accessing specific data.
  2. Performance, scalability, and levels of trust: Hyperledger Fabric stores various transactions happening in different aspects. It also focuses on reducing several layers of trust. Also, it has got a huge number of verification done on the transactions. It is very useful when you need to make speedy transactions without any hassle. It provides low latency and high throughput. It is very flexible and scalable at the enterprise level.
  3. Data on a need-to-know basis: The confidentiality of personal data is very important in a business blockchain network. Hyperledger Fabric allows for data to go to only the parties that need to know.
  4. Modular architecture supporting plug-in components: The modularity of Hyperledger Fabric architecture enables network designers to plug in their preferred implementations for components, which is an advantage. It allows the company to use its already existing identity management system, increasing reusability, and reducing cost.

If you are looking for a blockchain platform for your business use case Hyperledger Fabric is something you would want to consider.

So now that we understood why should we use Hyperledger Fabric, let’s move on and see how we can use DAML and Hyperledger Fabric together.

#scala #blockchain #daml #hyperledger #hyperledger-fabric #smart contract