ucan-wg / invocation

UCAN Invocation & Pipelining
Other
12 stars 5 forks source link

Feed-forward tasks #29

Open expede opened 11 months ago

expede commented 11 months ago

Something that came up with @zeeshanlakhani and earlier in the process with @Gozala is if it's possible to produce a complete Invocation from a return value. I don't think we need to ship this in the v1.0, but could easily be extended to do this in a v1.x.

A rough sketch of the idea looks roughly like this:

In this world, the inner Action has all of the data it needs to construct a complete Invocation down to the cryptographic signature. This is dicey if you don't have a way to keep the cryptogtraphic material off of the network (i.e. don't put it in an argument to the function, so it's inherently effectful).

Fission has plans to handle this case safely, but I don't want to ship something that can inadvertently leak cryptographic material in the meantime.