0xPolygonMiden / miden-client

Client library that facilitates interaction with the Miden rollup
MIT License
32 stars 28 forks source link

Implement `miden export` for accounts #365

Closed igamigo closed 1 month ago

igamigo commented 4 months ago

What should be done?

Implement a way to export accounts from the CLI. Before the last release, we were not able to do this easily because the auth_seed was not available. Now that AuthData contains the final AuthScheme key, we can implement a command for exporting account state.

How should it be done?

The CLI command should get the account state and create an AccountData object to export into a file.

When is this task done?

When the CLI has a miden export --account <id> or similar to export accounts.

Additional context

No response