-
Notifications
You must be signed in to change notification settings - Fork 14
State migration between subnets and subnet migrations #166
Comments
Adding a proposal shared off-band in slack for completion:
|
Also, in order to avoid potential attacks over the migration protocol where a subnet tries to migrate state (or itself) to two different locations in the hierarchy (can we call it a replay migration attack?), we should not only bind the state to the deterministic discovery ID of a subnet (i.e. the This identifier be invariant to the location of the subnet. We can think of the discovery ID that we currently have as the file_path, and we need to come up with an identifier analogous to filesystem's inode. |
I don't know if the migration of state is a meaningful operation in the general case. Subnets are possibly special purpose vehicles, with their own actors that are only deployed on them, doing some work that can't easily be uprooted and continued on another subnet which has none of the supporting machinery. Or maybe they are part of a larger sharding scheme, based on some criteria that means a certain account is expected to reside in a certain shard, otherwise it won't be found by the application. Maybe like MMOG some accounts need to be migrated between subnets to balance out the load between them, but this could be the concern of the larger application managing the migration, rather than built into the consensus itself. |
Yes, you are right. We may not need to be able to migrate fine-grained state from a subnet (this is application-specific), but we may want to migrate the full-state (i.e. the whole network), to some other location in the hierarchy. An example use case that would need this feature (albeit futuristic) is the "inter-planetary migration of networks" mentioned in the following HC with VDF design doc. We may have a network operating on the earth whose parent is the (That being said, I don´t think we need this in the first version of IPC, we can probably ship something without it) |
We need to support for users to be able to migrate their state hosted in a subnet to some other subnet. If a subnet is dying, or its security guarantees are reduced, users will look to escape their subnet and keep operating somewhere else. This may not be straightforward and we'll need to narrow this down:
Maybe we could attach a succinct proof of all state changes so it can be easily verify that the state is valid.
It may also be the case that ahandle subnet wants to "migrate to some other parent", due to locality reasons, or because it no longer trusts its parent to orchestrate it system interactions.
The text was updated successfully, but these errors were encountered: