Giter Site home page Giter Site logo

Comments (4)

mbrandenburger avatar mbrandenburger commented on June 1, 2024

Looking at Fabric v2 documentation, I don't see how the designated peer can be implemented using the provided primitives.

https://hyperledger-fabric.readthedocs.io/en/release-2.0/endorsement-policies.html?highlight=default%20endorsement%20policie#endorsement-policy-syntax

from fabric-private-chaincode.

mbrandenburger avatar mbrandenburger commented on June 1, 2024

I guess a OR('Org1.peer') is the closest what we can get, however, this policy does not express that we only want a single specific peer and therefore any peer or Org1 can endorse.

from fabric-private-chaincode.

mbrandenburger avatar mbrandenburger commented on June 1, 2024

I guess we have two options here.

  1. Just say endorsement policy is ignored for MVP and in Peer_CLI we set it to any org and enforce the designated peer/enclave through fpc-vscc and ERCC. We could restrict ERCC to register only a single enclave per chaincode. In fpc-vscc we invalidate every transaction from an enclave that is not registered. The documentation should mention that any endorsement policy is ignored for FPC_Chaincodes.

  2. Implement CCKeyImport/Export and support any form of `OR(...) endorsement policy.

from fabric-private-chaincode.

g2flyer avatar g2flyer commented on June 1, 2024

I guess a OR('Org1.peer') is the closest what we can get,

That would have been my take.

however, this policy does not express that we only want a single specific peer and therefore any peer or Org1 can endorse.

I don't think we have to implement it to the letter, we can further restrict it by saying only a single peer for that org will have createenclave called for it and the clients have to make sure that they call the correct peer ...

from fabric-private-chaincode.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.