While researching various patterns to enable users to “pay” for content via ICP on canisters, we got to some interesting lifecycle ideas that aren’t yet clear to me, so I thought it would be prudent to ask first, before jumping in
-
Is it possible to ever “lose” a canister, and thus it’s ID? (except issuing a dfx canister delete command)
-
After issuing a dfx canister delete command, will that particular ID ever be re-used? In other words, can someone else gain control of a canister_id after it was used by someone else and deleted? Also, would it be possible for the original owner to re-issue the same ID after a delete, or is that ID lost forever?
-
Does re-installing a canister guarantee that the ID will not change?
-
Is there a way (now or planned) to “download” a canister’s private key so that one can ensure access to the ledger’s accounts for that canister? (example: some dapp requires a monthly transfer of 0.5 ICP to enable some functionality. Users setup their own flavor of recurrent payments. What happens if the canister gets deleted? Are the funds sent after the deletion of the canister irrecoverable?)
Please feel free to mention any other edge-cases in a canister’s life cycle that you can think of that would pose some problems with the ledger canister integration and ensuring proper access moving forward.