137 Commits

Author SHA1 Message Date
r4bbit
3e24ae2736 fix(wallet): use cryptographically secure entropy for mnemonic generation
The mnemonic/wallet generation was using a constant zero-byte array for entropy ([0u8; 32]), making all wallets deterministic based
solely on the password. This commit introduces proper random entropy using OsRng and enables users to back up their recovery phrase.

Changes:

- SeedHolder::new_mnemonic() now uses OsRng for 256-bit random entropy and returns the generated mnemonic
- Added SeedHolder::from_mnemonic() to recover a wallet from an existing mnemonic phrase
- WalletChainStore::new_storage() returns the mnemonic for user backup
- Added WalletChainStore::restore_storage() for recovery from a mnemonic
- WalletCore::new_init_storage() now returns the mnemonic
- Renamed reset_storage to restore_storage, which accepts a mnemonic for recovery
- CLI displays the recovery phrase when a new wallet is created
- RestoreKeys command now prompts for the mnemonic phrase via read_mnemonic_from_stdin()

Note: The password parameter is retained for future storage encryption but is no longer used in seed derivation (empty passphrase is used
 instead). This means the mnemonic alone is sufficient to recover accounts.

Usage:

On first wallet initialization, users will see:
IMPORTANT: Write down your recovery phrase and store it securely.
This is the only way to recover your wallet if you lose access.

Recovery phrase:
  word1 word2 word3 ... word24

To restore keys:
wallet restore-keys --depth 5
Input recovery phrase: <24 words>
Input password: <password>
2026-04-01 16:04:47 +02:00
Daniil Polyakov
7b20a83379 fix: fixes after rebase & address comments 2026-03-20 00:48:04 +03:00
Daniil Polyakov
b631ef02c6 fix: final fixes & polishing 2026-03-20 00:47:37 +03:00
Daniil Polyakov
9d87e3b046 fix: fix lints 2026-03-20 00:41:05 +03:00
Daniil Polyakov
b254ebb185 feat: refactor sequencer RPC client-side 2026-03-20 00:41:05 +03:00
Daniil Polyakov
bffc711470 refactor: move sequencer_ directories into sequencer 2026-03-20 00:36:07 +03:00
Daniil Polyakov
252848a145 feat: update rust to 1.94.0 2026-03-17 21:25:30 +03:00
Daniil Polyakov
aa462b66eb feat: add nursery clippy lints 2026-03-17 21:25:30 +03:00
Daniil Polyakov
e3b93b6e9a feat: add restriction clippy lints 2026-03-17 21:25:30 +03:00
Daniil Polyakov
efe8393ba0 feat: add pedantic clippy lints 2026-03-17 21:25:30 +03:00
Daniil Polyakov
8b5524901c feat: configurable block size limit 2026-02-26 16:21:43 +03:00
Sergio Chouhy
487027d98f
Merge pull request #308 from logos-blockchain/Pravdyvy/indexer-state-management
Indexer state management
2026-02-26 09:53:46 -03:00
Daniil Polyakov
e71f2fe16a feat: add useful just commands 2026-02-23 17:57:56 +03:00
Pravdyvy
5d228c6d80 Merge branch 'arjentix/fix-sequencer-msg-id' into Pravdyvy/indexer-state-management 2026-02-13 13:37:10 +02:00
Daniil Polyakov
d2ce0cd51b fix: run async runtime when dropping TestContext in BlockingTestContext 2026-02-12 19:35:07 +03:00
Daniil Polyakov
09debfa74f feat: implement all-in-one docker compose 2026-02-12 16:31:13 +03:00
Daniil Polyakov
975cfb9ec6 feat: fully integrate Sequencer, Indexer and Explorer with Bedrock 2026-02-12 16:31:13 +03:00
jonesmarvin8
f891f57cab Merge branch 'main' into marvin/public_keys 2026-02-10 09:19:45 -05:00
Pravdyvy
56ff66ccc1 feat: first indexer integration test 2026-02-10 14:03:56 +02:00
Pravdyvy
36407c1d43 Merge branch 'arjentix/full-bedrock-integration' into Pravdyvy/indexer-state-management 2026-02-10 09:14:24 +02:00
Daniil Polyakov
f248cf2ae0 feat: implement all-in-one docker compose 2026-02-10 00:27:47 +03:00
Pravdyvy
4afe687e4c Merge branch 'main' into Pravdyvy/indexer-state-management 2026-02-06 17:42:32 +02:00
Daniil Polyakov
fdb2979f66 feat: fully integrate Sequencer, Indexer and Explorer with Bedrock 2026-02-06 16:24:35 +03:00
Sergio Chouhy
2fc1ec0fdc Merge branch 'main' into schouhy/add-wallet-ffi-tests 2026-02-04 20:48:36 -03:00
Sergio Chouhy
b1840ca68a add test wallet ffi auth-transfer init call 2026-02-04 20:24:57 -03:00
Sergio Chouhy
50b253fa00 move ffi tests to integration tests 2026-02-03 19:07:13 -03:00
Pravdyvy
efac8639c3 fix: merge fix 2026-02-03 11:36:07 +02:00
Pravdyvy
e1df915357 Merge branch 'arjentix/full-bedrock-integration' into Pravdyvy/indexer-state-management 2026-02-03 11:11:19 +02:00
Daniil Polyakov
71a7905a58 Integrate Indexer Service into integration tests 2026-02-02 19:07:24 +03:00
Sergio Chouhy
6ca020d547 fix deadlock in subscriptions 2026-01-31 19:05:27 -03:00
Daniil Polyakov
71787a70f7 Implement block subscription 2026-01-30 21:53:01 +03:00
Daniil Polyakov
e0729a1725 Integrate indexer client into sequencer 2026-01-30 21:53:01 +03:00
Pravdyvy
8fa8cc33d8 fix: config fix 2026-01-30 14:58:41 +02:00
Pravdyvy
0efc522837 feat: full integration try 1 2026-01-30 12:51:18 +02:00
Sergio Chouhy
2e071b538f drop retry pending block handle on Drop 2026-01-29 15:56:06 -03:00
Sergio Chouhy
476dc50482 handle comments 2026-01-29 13:47:39 -03:00
Sergio Chouhy
22258435ff Merge branch 'main' into schouhy/sequencer-retries-pending-blocks 2026-01-29 10:13:22 -03:00
Sergio Chouhy
e78d6a59a0 add tokio task to retry pending blocks in bedrock 2026-01-27 13:27:52 -03:00
Pravdyvy
c0e879edae fix: suggestions fix 1 2026-01-27 09:46:31 +02:00
jonesmarvin8
9a92aa1553 updates and fmt 2026-01-26 18:38:41 -05:00
Pravdyvy
9896cd3767 fix: updates, added test 2026-01-23 10:39:34 +02:00
Pravdyvy
2a2fe1347a fix: new model rewrite 2026-01-22 14:44:48 +02:00
Pravdyvy
b96865ab89 fix: indexer update 2026-01-16 16:15:21 +02:00
Pravdyvy
c2e09031e1 fix: integration updates 2026-01-15 15:44:48 +02:00
Daniil Polyakov
529ca9a643 feat: introduce parallel integration tests, wallet without global vars and etc 2026-01-14 23:25:18 -03:00
Pravdyvy
de5201e212 feat: ci test 1 2026-01-14 16:16:45 +02:00
Daniil Polyakov
7296088005 feat: introduce parallel integration tests, wallet without global vars and etc 2025-12-31 04:30:22 +03:00
Sergio Chouhy
cc08e0a614 add deploy program command 2025-12-05 17:54:51 -03:00
Daniil Polyakov
aee6f45a8b refactor: move some stuff to a more suitable place 2025-12-01 17:08:07 +03:00
Pravdyvy
6c409b6fb1 Merge branch 'main' into Pravdyvy/deterministic-key-derivation 2025-11-27 13:46:35 +02:00