Coder Social home page Coder Social logo

cacao-zcap's People

Contributors

clehner avatar

Stargazers

 avatar

Watchers

 avatar  avatar  avatar  avatar

cacao-zcap's Issues

Separate invocationTarget from root zcap id

As noticed by @cobward,

The first value of the CACAO payload resources array is used as the invocation target URI, that is the value of the zcap delegation's invocationTarget property. The invocation target URI is encoded into a root zcap URN to become the root capability id.

In a delegation where the invocation target is attenuated by path or query, the invocationTarget value will be different (attenuated) from that of the parent delegation, but the root zcap id (first value of the capabilityChain array proof.capabilityChain[0]) must still be the same. Therefore, the first value of the CACAO payload resources array (p.resources[0]) cannot be used directly in a secondary delegation for both the invocationTarget value and the root zcap id (proof.capabilityChain[0]). To handle this, the first resource (p.resources[0]) could be split into two (p.resources[0] and p.resources[1]) - one for the invocationTarget and the other for the root zcap id (or, equivalently for the root zcap's invocationTarget).

Need better namespace/URIs

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.