holochain icon indicating copy to clipboard operation
holochain copied to clipboard

Provenance not found in `zome_info`

Open guillemcordoba opened this issue 3 years ago • 2 comments

The provenance of the caller of the function that is executing is not found in zome_info, or anywhere else as far as I can see.

guillemcordoba avatar Mar 19 '21 10:03 guillemcordoba

Hmm... yes... Good point, we should make the calling context available for the current zome call.

artbrock avatar Jun 18 '21 17:06 artbrock

And also, in a bridged call, it would be potentially very useful to know the hash of the "caller DNA", and I think this is possible as far as the conductor goes. What do you think?

guillemcordoba avatar Jun 18 '21 20:06 guillemcordoba

@guillemcordoba Is this issue still something that should be looked at?

ThetaSinner avatar Oct 03 '23 12:10 ThetaSinner

No, this is solved by call_info, although now that I see the docs they say "Trivial wrapper for __agent_info host function", and that alarms me. The provenance of who called the zome function is definitely not always the same as the agent info, for example in a bridge call across apps. So I would close this issue if:

  • If the docs are wrong, the docs are fixed.
  • If the docs are right and call_info is just a wrapper around agent_info, a proper way of getting the caller provenance is implemented.

guillemcordoba avatar Oct 03 '23 13:10 guillemcordoba

This item has been open for 30 days with no activity.

github-actions[bot] avatar Nov 05 '23 02:11 github-actions[bot]

This item has been open for 30 days with no activity.

github-actions[bot] avatar Dec 07 '23 02:12 github-actions[bot]

This item has been open for 30 days with no activity.

github-actions[bot] avatar Jan 08 '24 02:01 github-actions[bot]

This item has been open for 30 days with no activity.

github-actions[bot] avatar Feb 08 '24 02:02 github-actions[bot]

@guillemcordoba Looks like it's 1., the docs have been copy/pasted from agent_info() and it didn't get caught until here. I think the code is correct and tested, aside from a problem with bridged calls that will need fixing separately

ThetaSinner avatar Feb 16 '24 12:02 ThetaSinner