feat: ensure that both the account and public key get inserted successfully in the CLI
- Lingua principale
- Rust
- Stelle
- 78
- Fork
- 129
- Merge medio
- 4g 14h
- PR unite (30g)
- 52
Descrizione
In #718 we separated the secret key storage from the `Client`. The CLI now has the responsibility of adding new keys to the keystore, but there could be a case where the key is inserted but the new account can be added to the client.
>This is fine for now but maybe we could add a `TODO` here to address potential cases where adding the secret key succeeds, but adding the account fails.
>
>Alternatively, maybe in the future we want to have some sort of "keystore" command that adds/removes keys separately from accounts.
_Originally posted by @igamigo in https://github.com/0xPolygonMiden/miden-client/pull/718#discussion_r1949770347_
Guida per i contributori
Apri la guida per i contributori
Direzione di ricerca
Esamina il codice CLI dove le chiavi vengono aggiunte al keystore e gli account al client, probabilmente in un gestore di comandi. Comprendi le interfacce del keystore e del client per garantire l'atomicità. Controlla la gestione degli errori esistente e considera di aggiungere un rollback o un commit in due fasi. Verifica eseguendo il flusso di creazione dell'account della CLI.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Valutazione
- Stack tecnologico
- rust
- Ambito
- cli
- Tipo di issue
- Funzionalità
- Difficoltà
- 3/5
- Tempo stimato
- 1-2 giorni
- Stato di attività
- Ferma
- Chiarezza
- Abbastanza chiara
- Idoneità per principianti
- 45/100