MIMD-015: Account creation using native compression #806
GabrielePicco
started this conversation in
MIMD
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Summary
This MIMD specifies how account creation could be implemented using native compression.
A simpler workflow could be the following:
Accept the intent to create an account through an ER instruction. This instruction lives in the Magic program and accepts a PDA, validating the seeds. For example, this could be
magic_program::create_compressed_account(...). The account is marked as compressed via a dedicated flag.Under the hood, the validator creates the compressed account. This step could be deferred until the first time the account is either committed or undelegated. The committed compressed account should have a bump or seed that makes is uniques, so that multiple validators can commit a version of the same accounts
Accounts are committed in compressed form and delegated. The origin program can later decompress and undelegate the account using logic included in its smart contract. This logic can be standardized at the SDK level.
Beta Was this translation helpful? Give feedback.
All reactions