2877 Commits

Author SHA1 Message Date
Daniil Polyakov
d0aaddbec1 feat(test_fixtures): use prebuilt sequencer dp to speed up integration tests 2026-07-09 17:15:29 +03:00
Daniil Polyakov
2921438e93
Merge pull request #587 from logos-blockchain/arjentix/wallet-wait-for-tx-committed
feat!(wallet): wait for deploy tx inclusion in block
2026-07-09 17:03:15 +03:00
Daniil Polyakov
c062fab781 chore(lock): bump crossbeam-epoch to satisfy cargo deny 2026-07-09 16:19:24 +03:00
Daniil Polyakov
7408955f08 feat!(wallet): wait for deploy tx inclusion in block
Breaking:
  1. Now a lot of wallet commands return `TransactionExecuted`, instead of `Empty`.
  2. Sequencer's `getTransaction()` RPC response changed from `tx` to `(tx, block_id)`
2026-07-09 00:32:53 +03:00
Artem Gureev
1b4d8fbcf4
Merge pull request #550 from logos-blockchain/artem/viewing-key-binding
feat!: viewing key and ciphertext binding
2026-07-08 20:17:37 +04:00
Sergio Chouhy
a0ba6008c3
Merge pull request #593 from logos-blockchain/schouhy/main-dev-merging-conflicts
fix: solve merging conflicts with main
2026-07-03 23:45:00 -03:00
Sergio Chouhy
ae0705995f fix: solve merging conflicts with main 2026-07-03 15:07:35 -03:00
Artem Gureev
808cea737e fix(ci): drop reference to removed install-logos-blockchain-circuits
The action was deleted in 4d7e994e but bench-regression.yml still
referenced it, failing the crypto-primitives job with "Can't find
action.yml". The ML-KEM/hashing bench needs none of the circuits that
action installed.
2026-07-02 21:05:24 +04:00
agureev
49d3823a75 chore: remove unused deps 2026-07-02 20:43:34 +04:00
agureev
8e084e22d1 Merge remote-tracking branch 'origin/dev' into artem/viewing-key-binding 2026-07-02 20:04:30 +04:00
jonesmarvin8
571f35b384
refactor(integration_tests): cleaning up long functions (#533)
* refactoring integration_tests::keys

* refactor integration_tests: extract new_account/send/restored_private_account helpers

Move repeated account-creation and transfer boilerplate into four public
helpers in integration_tests/src/lib.rs (new_account, send,
restored_private_account, assert_public_account_restored), then apply them
across keys.rs, ata.rs, auth_transfer/public.rs, auth_transfer/private.rs,
token.rs, and amm.rs.  Net result: -816 lines of boilerplate.

* Additional refactors

* refactor(integration_tests): apply shared helpers to remaining test files

Use account_balance, get_account, new_account, send, and sync_private
helpers in public.rs, pinata.rs, private_pda.rs, program_deployment.rs,
and token.rs to reduce boilerplate and improve consistency.
2026-07-01 12:13:51 -04:00
jonesmarvin8
072ea3b066
refactor(lee::state_machine): clean up long functions and files (#535)
* refactor(lee): split large modules into directories and extract tests

Split state.rs, program.rs, circuit.rs, validated_state_diff.rs,
merkle_tree, and core/program.rs into module directories with separate
test files. State tests are further split into themed files (genesis,
authenticated_transfer, circuit, claiming, etc.). Extract
authenticate_public_transaction_signers helper in validated_state_diff
to remove duplicated authentication logic.

* chore: rebuild artifacts
2026-07-01 11:11:08 -04:00
jonesmarvin8
f786aca73e
refactor(lez): clean up long functions (#541)
* add helper functions

* CI fixes

* additional refactors

* fix: clarify doc comment on apply_mempool_transaction

* chore: apply nightly fmt

* fix: import missing ML_KEM_768_CIPHERTEXT_LEN in auth_transfer private test
2026-07-01 10:23:21 -04:00
jonesmarvin8
f8d859394b
refactor(privacy_preserving_circuit): introduce helper functions to shorten long functions (#545)
* refactor(privacy_preserving_circuit): extract functions for readability

* refactor(privacy_preserving_circuit): address PR review comments

Bundle shared handle_* arguments into PrivateOutputHandler struct in
output.rs and fix misplaced docstring on resolve_external_seed in
execution_state.rs.

* feat: update commitment mechanism for new private account (#546)

* refactor(privacy_preserving_circuit): extract functions for readability

* feat: update commitment mechanism for new private accounts

Allow init accounts to optionally use a real membership proof for
DUMMY_COMMITMENT instead of hardcoding DUMMY_COMMITMENT_HASH as the
CommitmentSetDigest. The wallet fetches the proof from the sequencer
and passes it through the circuit.

* fix: address clippy lints and fix integration test visibility

* add tests

* refactor: removed duplicated code

* refactor: simplify init nullifier mechanism

Replace Option<MembershipProof> with Option<CommitmentSetDigest> on init
variants (PrivateAuthorizedInit, PrivateUnauthorized, PrivatePdaInit).
The circuit now receives the commitment tree root directly instead of
recomputing it from a Merkle proof.

* refactor: use CommitmentSetDigest directly instead of Option for init commitment root

Address PR #546 review feedback: the circuit now accepts CommitmentSetDigest
directly on init variants (PrivateAuthorizedInit, PrivateUnauthorized,
PrivatePdaInit), with callers providing DUMMY_COMMITMENT_HASH as the default.
Also fixes duplicate resolve_external_seed from rebase and rebuilds artifacts.

* style: run cargo +nightly fmt
2026-07-01 10:14:32 -04:00
jonesmarvin8
3b3857594f
refactor(lee::key_protocol) - cleaned up duplicated logic (#532)
* Clean up key protocol

* added test for helper function

* address comment

* chore: apply nightly fmt
2026-07-01 10:11:08 -04:00
Pravdyvy
97aa85d123
Merge pull request #577 from logos-blockchain/Pravdyvy/wallet-ffi-labels
Wallet ffi labels
2026-07-01 15:32:16 +03:00
Pravdyvy
1582fc9745 fix(ci): CI and contributing update 2026-07-01 14:15:39 +03:00
Daniil Polyakov
a58fbce2ff
Merge pull request #583 from logos-blockchain/arjentix/fix-zero-deposits
fix(sequencer): don't accept zero deposits & remove unreachable
v0.2.0
2026-06-30 14:58:58 +03:00
Pravdyvy
1a94c8612f fix(artifacts): artifacts update 2026-06-30 13:52:19 +03:00
Daniil Polyakov
e428a6df71 chore(lock): update anyhow to 1.0.103 to satisfy cargo deny 2026-06-30 13:02:17 +03:00
Pravdyvy
082413eeee fix(demy): anyhow deny fix 2026-06-30 12:52:31 +03:00
Pravdyvy
53ae6dcfdd fix(wallet_ffi): asref suggestion 2026-06-30 12:46:52 +03:00
Daniil Polyakov
fc800a7151 fix(sequencer): don't accept zero deposits & remove unreachable 2026-06-30 12:38:22 +03:00
Artem Gureev
5a23b54a6f
Merge pull request #569 from logos-blockchain/marvin/chacha-aead
fix(encryption): strengthen esk generation logic
2026-06-29 17:25:41 +04:00
Marvin Jones
8bf53af58a chore: rebuild artifacts after rebase onto viewing-key-binding 2026-06-29 09:23:26 -04:00
Marvin Jones
6155bd9a37 fix(encryption): rename os_random to random_seed and fix ESK derivation in tests
Rename os_random field to random_seed per review feedback. Fix tests
that constructed SharedSecretKey with a hardcoded EphemeralSecretKey
instead of deriving it via EphemeralSecretKey::new.
2026-06-29 09:10:43 -04:00
Marvin Jones
060a83879b feat(encryption): derive esk from account state, remove chacha20poly1305 logic
Introduce EphemeralSecretKey as a proper struct with EphemeralSecretKey::new()
that derives esk from SHA256("/LEE/v0.3/esk/" || account_id || os_random || nonce).
Rename witness field from esk to os_random. Simplify encapsulate_deterministic
to accept pre-derived EphemeralSecretKey directly.
2026-06-29 09:10:43 -04:00
Artem Gureev
2a0595fbd6
Merge pull request #551 from logos-blockchain/artem/keccak-speedup
feat: keccak speedup
2026-06-29 14:42:33 +04:00
agureev
d31e614b84 Merge remote-tracking branch 'origin/artem/viewing-key-binding' into artem/keccak-speedup 2026-06-29 14:31:57 +04:00
Pravdyvy
fade3b488a feat(integration_tests): added integration tests for wallet ffi 2026-06-26 16:48:00 +03:00
Daniil Polyakov
e37876a640
Merge pull request #576 from logos-blockchain/arjentix/sequencer-get-channel-id
feat(sequencer): add `getChannelId` rpc endpoint
v0.2.0-rc6
2026-06-26 02:05:41 +03:00
Moudy
92e5b29923
Merge pull request #578 from logos-blockchain/schouhy/use-test-program-in-test
fix(lee): use test program in empty tx instead of authenticated tranfer
2026-06-25 21:37:08 +02:00
Sergio Chouhy
3c54bbf0b9 fix(lee): use test program in empty tx instead of authenticated tranfer 2026-06-25 14:47:22 -03:00
Pravdyvy
860746dac9 feat(wallet_ffi): labels added 2026-06-25 18:29:35 +03:00
Daniil Polyakov
d11b706756 feat(sequencer): add getChannelId rpc endpoint 2026-06-25 16:47:04 +03:00
Pravdyvy
217daff4a2 fix(main): fix of one test 2026-06-25 16:32:42 +03:00
agureev
027b7bc04b chore: regenerate artifacts 2026-06-25 15:02:09 +04:00
agureev
e4d55d8e37 chore: bump sponge fork, remove unstable flag 2026-06-25 15:00:57 +04:00
Daniil Polyakov
64f8444a67
Merge pull request #524 from logos-blockchain/arjentix/refactor-lee-lez
Decouple last parts of LEZ from LEE
2026-06-24 23:46:43 +03:00
agureev
74672266be chore: update artifacts 2026-06-24 21:57:45 +04:00
agureev
ecc5c3fc79 doc: add comment regarding view_tag computation 2026-06-24 21:41:59 +04:00
agureev
a815b50275 doc: update encapsulation documentation 2026-06-24 21:34:59 +04:00
jonesmarvin8
77af662ac6
fix: reject public transactions with empty account_ids (#552)
Closes #513
2026-06-24 13:33:51 -04:00
agureev
b31fe5e4a7 refactor: change message_hash to esk for encapsulation 2026-06-24 21:24:12 +04:00
Daniil Polyakov
9977cc5374 fix(ci, programs, privacy_preserving_circuit): properly check programs ci 2026-06-24 20:20:40 +03:00
Daniil Polyakov
96b28827f6 fix(tests): fix tests 2026-06-24 20:20:40 +03:00
Daniil Polyakov
c74b03582b refactor!(wallet): pass program_id instead of program in send_pub_tx() 2026-06-24 20:19:12 +03:00
agureev
01accb788c feat: add prefix to the ML KEM kdf 2026-06-24 21:17:43 +04:00
Daniil Polyakov
d3e507f25d refactor!(artifacts): keep lee and lez artifacts separated 2026-06-24 18:10:41 +03:00
Daniil Polyakov
066ffdd51a
Merge pull request #567 from logos-blockchain/arjentix/fix-ci-docker-build
fix(ci): fix publish images workflow
2026-06-24 18:10:09 +03:00