Currently, https://github.com/rchain-community/rchain-api/blob/master/src/proxy.js only supports calls from off chain to the chain and back, not the other way.
To support CapTP, it should be split into a lower level that just does reliable messaging (with acknowledgements) in both direction.
For example, perhaps listenAtDeployId should be used for acknowledgements, not for the results of computation.
A design wrinkle:
cc @Bill-Kunj
Currently, https://github.com/rchain-community/rchain-api/blob/master/src/proxy.js only supports calls from off chain to the chain and back, not the other way.
To support CapTP, it should be split into a lower level that just does reliable messaging (with acknowledgements) in both direction.
For example, perhaps listenAtDeployId should be used for acknowledgements, not for the results of computation.
A design wrinkle:
listenAtDeployIdwould support a more concurrent approach. Should we take advantage of that? Or stick to the simpler vat model? I lean toward embedding the simpler approach for now.cc @Bill-Kunj