read and write the quantus-cli keystore file format #15
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Parent: #2
Scope
A
Keystoreport inwallet-coreand an implementation inwallet-datathat reads and writes quantus-cli'sEncryptedWalletJSON: Argon2id with the stored PHC params (never the digest), AES-256-GCM, thekyber_*reserved fields preserved,encryption_versionhonoured,schemedefaulting to ML-DSA-87 when absent (legacy files). On open, re-derive the address from the decrypted key and refuse the file if it differs, as the CLI does. Wallet files live under the platform app-data directory; import from and export to~/.quantus/walletspaths.Acceptance
Round trip against real files: a wallet written here lists in
quantus wallet list(CLI 2.x) with the right address, scheme and checkphrase; a CLI-created wallet of each scheme opens here. A file with a tampered address is refused with a clear error. No plaintext key or mnemonic is ever written to disk, verified by a test that greps the app-data directory after every operation.Depends on
The ML-DSA key schemes child.