You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@@ -288,8 +299,18 @@ Configuration is stored in `~/.sequence-builder/config.json`:
288
299
289
300
- JWT token for authentication
290
301
- Environment settings
302
+
- Encrypted private key (if `SEQUENCE_PASSPHRASE` is set)
303
+
304
+
### Encrypted Key Storage
305
+
306
+
When `SEQUENCE_PASSPHRASE` is set as an environment variable, the CLI will:
307
+
308
+
1.**On `create-wallet` / `login`**: Encrypt the private key with AES-256-GCM and store it in config
309
+
2.**On all other commands**: Automatically decrypt and use the stored key (no `-k` flag needed)
310
+
311
+
The private key is encrypted using a key derived from `SEQUENCE_PASSPHRASE` via scrypt. Only the encrypted ciphertext, salt, and IV are stored -- never the raw key.
291
312
292
-
**Note**: Private keys are NOT stored. You must provide them with each command that requires signing.
313
+
To disable encrypted storage, simply unset the env var. You can always override with an explicit `-k` flag.
0 commit comments