jonesmarvin8
08bae6fa82
troubleshooting
2026-04-09 18:13:37 -04:00
jonesmarvin8
455bda3fbf
Merge branch 'main' into marvin/private_transfer_simplified
2026-04-07 17:45:52 -04:00
jonesmarvin8
f179d41f08
add identifier logic and fix unit tests
2026-04-07 17:37:38 -04:00
Moudy
a87e8d93dc
fix: cargo fmt
2026-04-07 20:16:42 +02:00
Moudy
56ee93b5b7
merge main into feat-caller-program-id-and-flash-swap
2026-04-07 19:44:55 +02:00
Moudy
b22a989fbc
merge main into feat-caller-program-id-and-flash-swap
2026-04-07 19:27:27 +02:00
Moudy
7d465dded7
fix: verify caller_program_id in program output
2026-04-07 19:03:06 +02:00
jonesmarvin8
5df494ac08
fixed tests
2026-04-03 19:02:03 -04:00
Sergio Chouhy
deae71b09f
handle comments
2026-04-03 18:13:24 -03:00
jonesmarvin8
7b0eac6a3f
identifiers added to privacy circuit
2026-04-02 19:24:01 -04:00
Moudy
74e16db68f
fix: apply formatting and rebuild artifacts
2026-04-03 01:17:42 +02:00
moudyellaz
087baebcca
feat: add caller_program_id to ProgramInput
2026-04-03 00:58:11 +02:00
Sergio Chouhy
4d5010f044
Merge branch 'main' into schouhy/add-block-context-system-accounts
2026-04-02 19:48:55 -03:00
jonesmarvin8
e15b078640
Merge branch 'main' into marvin/private_transfer_simplified
2026-04-02 17:23:47 -04:00
jonesmarvin8
c3c26b6c23
clean up
...
Added public account id changes
update tests (public account id and private account id)
nullifier fixes
2026-04-02 17:20:52 -04:00
Sergio Chouhy
6a467da3b1
fmt and clippy
2026-04-02 17:48:02 -03:00
Moudy
531381e023
Update program_methods/guest/src/bin/privacy_preserving_circuit.rs
...
Co-authored-by: Daniil Polyakov <arjentix@gmail.com>
2026-04-02 20:30:52 +02:00
Moudy
702ef4a46f
fix: cargo fmt
2026-04-02 20:30:27 +02:00
moudyellaz
58b72dd77c
refactor: pass self_program_id to ProgramOutput in production guest programs
2026-04-02 20:30:16 +02:00
moudyellaz
85cc323649
feat: verify self_program_id in privacy circuit
2026-04-02 20:30:16 +02:00
Moudy
59d3d38448
fix: serialize write_inputs fields separately to match guest deserialization
2026-04-02 20:29:12 +02:00
moudyellaz
9ecf186851
refactor: update all guest programs to handle self_program_id field
2026-04-02 20:29:10 +02:00
jonesmarvin8
a4af07bc6d
nullifier fixes
2026-04-02 13:36:13 -04:00
jonesmarvin8
de6a9f6c59
Merge branch 'main' into marvin/private_transfer_simplified
2026-04-02 13:11:53 -04:00
jonesmarvin8
15a41375e4
update nullifiers and tags
2026-04-02 13:09:20 -04:00
Andrea Franz
7d75eb2d59
chore(programs/amm): rename Swap to SwapExactInput
2026-04-02 16:10:12 +02:00
Andrea Franz
9a6ec0018b
feat(programs/amm): add swap exact output functionality
2026-04-02 16:10:12 +02:00
Sergio Chouhy
fa2fd857a9
minor refactor
2026-04-01 00:01:11 -03:00
Sergio Chouhy
3c5a1c9d0a
Merge branch 'main' into schouhy/add-block-context-system-accounts
2026-03-31 20:53:10 -03:00
Sergio Chouhy
99f0ed03dc
add type aliases
2026-03-31 13:50:06 +02:00
Sergio Chouhy
9aa7caf3bf
refactor validity window with generic
2026-03-31 13:49:12 +02:00
moudyellaz
c4567d163d
style: apply cargo fmt
2026-03-31 13:46:25 +02:00
moudyellaz
5c592312f9
feat: extend ValidityWindow with Unix timestamp bounds
2026-03-31 13:46:08 +02:00
Sergio Chouhy
67baefeaee
fmt and clippy
2026-03-31 01:45:07 -03:00
Sergio Chouhy
d8ffa22b81
add more clock accounts
2026-03-31 01:39:02 -03:00
Sergio Chouhy
7078e403ed
add timestamp to clock
2026-03-30 23:50:54 -03:00
jonesmarvin8
daf9de33cd
Merge branch 'main' into marvin/private_transfer_simplified
2026-03-27 19:33:23 -04:00
Daniil Polyakov
6780f1c9a4
feat: protect from public pda griefing attacks
2026-03-28 01:23:57 +03:00
jonesmarvin8
150c69e7d3
update commitment logic
2026-03-27 15:21:57 -04:00
Sergio Chouhy
acf609ecc8
Merge branch 'main' into schouhy/add-block-context
2026-03-26 13:24:46 -03:00
r4bbit
0ed91e869e
feat(programs): add Associated Token Account program with wallet CLI and tutorial
...
Introduce the ATA program, which derives deterministic per-token holding
accounts from (owner, token_definition) via SHA256, eliminating the need
to manually create and track holding account IDs.
Program (programs/associated_token_account/):
- Create, Transfer, and Burn instructions with PDA-based authorization
- Deterministic address derivation: SHA256(owner || definition) → seed → AccountId
- Idempotent Create (no-op if ATA already exists)
Wallet CLI (`wallet ata`):
- `address` — derive ATA address locally (no network call)
- `create` — initialize an ATA on-chain
- `send` — transfer tokens from owner's ATA to a recipient
- `burn` — burn tokens from owner's ATA
- `list` — query ATAs across multiple token definitions
Usage:
wallet deploy-program artifacts/program_methods/associated_token_account.bin
wallet ata address --owner <ID> --token-definition <DEF_ID>
wallet ata create --owner Public/<ID> --token-definition <DEF_ID>
wallet ata send --from Public/<ID> --token-definition <DEF_ID> --to <RECIPIENT> --amount 100
wallet ata burn --holder Public/<ID> --token-definition <DEF_ID> --amount 50
wallet ata list --owner <ID> --token-definition <DEF1> <DEF2>
Includes tutorial: docs/LEZ testnet v0.1 tutorials/associated-token-accounts.md
2026-03-26 13:19:29 +01:00
Sergio Chouhy
d7b0c42255
clippy
2026-03-25 20:26:04 -03:00
Sergio Chouhy
abc30c0ce0
remove old program output constructors
2026-03-25 16:56:04 -03:00
Sergio Chouhy
90f20a7040
wip
2026-03-20 18:05:48 -03:00
Sergio Chouhy
3257440448
enforce valid window construction
2026-03-20 13:49:17 -03:00
Sergio Chouhy
aeddb56978
fmt
2026-03-19 18:55:19 -03:00
Sergio Chouhy
a069004451
add validity window checks on privacy preserving transactions
2026-03-19 18:32:54 -03: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