2079 Commits

Author SHA1 Message Date
r4bbit
50ddbd597e
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-03-23 14:54:12 +01:00
jonesmarvin8
6f77c75b9c
Issue 257 - update ds and add ds to commitment (#397)
* initialize branch

* minor errors

* update artifacts and lint

* lint fix
2026-03-20 10:39:04 -04:00
Daniil Polyakov
fe368f2b48
Merge pull request #394 from logos-blockchain/arjentix/sequencer-rpc-server-refactor
Replace manual Sequencer RPC implementation with jsonrpsee
2026-03-20 01:53:28 +03:00
Daniil Polyakov
3913446cd2 fix: some wallet default config fixes after rebase 2026-03-20 01:21:50 +03:00
Daniil Polyakov
7b50c68550 chore: move nssa dependency of amm to dev-dependencies 2026-03-20 00:48:04 +03:00
Daniil Polyakov
05c2c3a56d fix: encode transactions with borsh in sequencer rpc 2026-03-20 00:48:04 +03:00
Daniil Polyakov
7b20a83379 fix: fixes after rebase & address comments 2026-03-20 00:48:04 +03:00
Daniil Polyakov
325960d696 feat: remove override_rust_log from wallet config 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
be94e133fa feat: refactor sequencer RPC server-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
jonesmarvin8
666353d7df
Merge pull request #356 from logos-blockchain/marvin/bip-32-comp
Key protocol compatibility with BIP-032/Keycard
2026-03-19 11:59:01 -04:00
Daniil Polyakov
c40c62a484 fix: satisfy clippy 2026-03-19 18:03:23 +03:00
jonesmarvin8
83ef789002 lint issues 2026-03-18 18:44:07 -04:00
jonesmarvin8
4fdefd3557 fix typo 2026-03-18 16:53:07 -04:00
jonesmarvin8
ce729f112d Merge branch 'main' into marvin/bip-32-comp 2026-03-18 16:47:39 -04:00
jonesmarvin8
be4f6c0c78
Merge pull request #334 from logos-blockchain/marvin/nonce
update nonce mechanism
2026-03-18 14:36:47 -04:00
jonesmarvin8
2cecf71c93 additional lint fixes 2026-03-18 14:06:56 -04:00
jonesmarvin8
b81b725bd1 fmt 2026-03-18 13:47:21 -04:00
jonesmarvin8
5d9980cf63 lint fixes 2026-03-18 13:10:36 -04:00
jonesmarvin8
0bcb626adc lint fixes 2026-03-18 10:28:52 -04:00
Moudy
0586e98c61
Merge pull request #388 from logos-blockchain/moudy/justfile 2026-03-18 15:12:19 +01:00
Moudy
82fb5781fe
Merge pull request #395 from logos-blockchain/moudyellaz-patch-3 2026-03-18 14:57:48 +01:00
Daniil Polyakov
e42c62fc21
Merge pull request #396 from logos-blockchain/arjentix/versioning
Add versioning docs & publish images on every version
2026-03-18 16:55:52 +03:00
jonesmarvin8
a83725512d Merge branch 'main' into marvin/nonce 2026-03-18 07:59:55 -04:00
Pravdyvy
821cb891d5
Merge pull request #374 from logos-blockchain/Pravdyvy/indexer-final-state
Final state caching
2026-03-18 09:49:28 +02:00
Pravdyvy
de3d17c7f8 fix: fmt 2026-03-18 09:16:36 +02:00
Pravdyvy
94faaa6d64 Merge branch 'main' into Pravdyvy/indexer-final-state 2026-03-18 09:15:45 +02:00
Pravdyvy
b94b58ceb1
Merge pull request #370 from logos-blockchain/Pravdyvy/matched-retry-on-inscription
Branched retry on inscriptions
2026-03-18 08:58:07 +02:00
Pravdyvy
d71805abb6 fix: merge updates 2026-03-18 08:24:39 +02:00
Pravdyvy
b3b5337b92 Merge branch 'main' into Pravdyvy/matched-retry-on-inscription 2026-03-18 08:12:30 +02:00
jonesmarvin8
82e8e8601d
Merge pull request #338 from logos-blockchain/marvin/refactor-amm-state-tests
Refactor AMM state tests
2026-03-17 19:24:42 -04:00
jonesmarvin8
bd79e982fd fix additional main merge errors 2026-03-17 19:23:27 -04:00
jonesmarvin8
ba8fdf4f29 fix conflicts from merging main 2026-03-17 19:16:09 -04:00
jonesmarvin8
1035893fd9 fix lint 2026-03-17 19:09:25 -04:00
jonesmarvin8
a12d1e5912 fixed merge issue with main 2026-03-17 18:01:00 -04:00
jonesmarvin8
8dd5037e28 Merge branch 'main' into marvin/nonce 2026-03-17 16:45:08 -04:00
jonesmarvin8
7481b54cf8 fixed lint and artifacts 2026-03-17 16:20:32 -04:00
Daniil Polyakov
2dbacdaff1 doc: add versioning documentation 2026-03-17 23:08:48 +03:00
Daniil Polyakov
dbc2e7c327 feat: run publish_images workflow on release tags 2026-03-17 23:08:33 +03:00
jonesmarvin8
f5ba922b70 Merge branch 'main' into marvin/refactor-amm-state-tests 2026-03-17 15:59:12 -04:00
jonesmarvin8
b544b919a6 combine test files 2026-03-17 15:51:25 -04:00
Daniil Polyakov
a304f3ad13
Merge pull request #391 from logos-blockchain/arjentix/new-clippy-lints
New clippy lints, dependecies & rust bump
2026-03-17 22:11:52 +03:00
jonesmarvin8
66d501e4d7 fixed tests 2026-03-17 14:50:21 -04:00
Daniil Polyakov
d79ac3f9a8 fix: formatting 2026-03-17 21:25:30 +03:00
Daniil Polyakov
65ce23b9e1 chore: rebuild artifacts 2026-03-17 21:25:30 +03:00
Daniil Polyakov
252848a145 feat: update rust to 1.94.0 2026-03-17 21:25:30 +03:00
Daniil Polyakov
3b0e842a42 feat: update dependencies 2026-03-17 21:25:30 +03:00