holochain / holochain

The current, performant & industrial strength version of Holochain on Rust.
https://holochain.org
Other
1.16k stars 141 forks source link

Serving agent activity for updated and previous agent keys #4046

Open jost-s opened 2 months ago

jost-s commented 2 months ago

When an agent updates their key, agent authority will change to another peer. In turn an agent authority can only serve the segment of the source chain they're an authority for.

The coordination layer needs a way to request different segments of the complete source chain, of any key of the agent's key lineage.

The previous agent's key can be fetched by getting the previous action of the first action of the segment. Its author is the previous agent key that must be returned.

The next agent's key is in the entry of the last action of the current segment, which must be an Update action of the agent key.

AC:

jost-s commented 2 months ago

Convenience feature. Lowering priority because apps can achieve the same without this feature.

maackle commented 2 months ago

The workaround is that HDK would query the new chain to find the OpenChain action to get the prev cell ID, and CloseChain in the prev chain to get the next cell ID