Moudy
0183eac5cc
refactor: unify PDA AccountId construction via AccountId::for_{public,private}_pda
...
Addresses the following review comment:
- "I think this should be a constructor `AccountId::for_private_pda`.
Consider also removing the existing `impl From<(ProgramId, Seed)> for
AccountId` for public pdas in favor of a `AccountId::for_public_pda`
to have a unified way of constructing pdas"
I replaced `impl From<(&ProgramId, &PdaSeed)> for AccountId` with
`AccountId::for_public_pda(program_id: &ProgramId, seed: &PdaSeed) ->
Self` and replaced the free function `private_pda_account_id(...)`
with `AccountId::for_private_pda(program_id: &ProgramId, seed:
&PdaSeed, npk: &NullifierPublicKey) -> Self`. Both live in an inherent
`impl AccountId` block in nssa/core/src/program.rs next to the PDA
derivation logic. Migrated all call sites across nssa/core,
nssa/src/state.rs, nssa/src/validated_state_diff.rs,
program_methods/guest/src/bin/privacy_preserving_circuit.rs,
programs/amm/core, programs/associated_token_account/core, the example
tail-call binary, and the ATA tutorial doc. Test function names that
referenced the old free function were also renamed
(private_pda_account_id_* to for_private_pda_*).
2026-04-21 12:35:19 +02:00
Moudy
d3577f02bc
fix: reject multiple family members under same (program, seed) in one tx
2026-04-17 15:36:20 +02:00
Moudy
f9a5a7635e
refactor: make programs privacy-agnostic in the privacy circuit
2026-04-17 07:29:40 +02:00
Moudy
93c6921eaf
Merge remote-tracking branch 'origin/main' into moudy/feat-private-pdas
...
# Conflicts:
# artifacts/program_methods/amm.bin
# artifacts/program_methods/associated_token_account.bin
# artifacts/program_methods/authenticated_transfer.bin
# artifacts/program_methods/clock.bin
# artifacts/program_methods/pinata.bin
# artifacts/program_methods/pinata_token.bin
# artifacts/program_methods/privacy_preserving_circuit.bin
# artifacts/program_methods/token.bin
# artifacts/test_program_methods/burner.bin
# artifacts/test_program_methods/chain_caller.bin
# artifacts/test_program_methods/changer_claimer.bin
# artifacts/test_program_methods/claimer.bin
# artifacts/test_program_methods/clock_chain_caller.bin
# artifacts/test_program_methods/data_changer.bin
# artifacts/test_program_methods/extra_output.bin
# artifacts/test_program_methods/flash_swap_callback.bin
# artifacts/test_program_methods/flash_swap_initiator.bin
# artifacts/test_program_methods/malicious_authorization_changer.bin
# artifacts/test_program_methods/malicious_caller_program_id.bin
# artifacts/test_program_methods/malicious_self_program_id.bin
# artifacts/test_program_methods/minter.bin
# artifacts/test_program_methods/missing_output.bin
# artifacts/test_program_methods/modified_transfer.bin
# artifacts/test_program_methods/nonce_changer.bin
# artifacts/test_program_methods/noop.bin
# artifacts/test_program_methods/pinata_cooldown.bin
# artifacts/test_program_methods/program_owner_changer.bin
# artifacts/test_program_methods/simple_balance_transfer.bin
# artifacts/test_program_methods/time_locked_transfer.bin
# artifacts/test_program_methods/validity_window.bin
# artifacts/test_program_methods/validity_window_chain_caller.bin
# nssa/core/src/program.rs
# nssa/src/state.rs
2026-04-16 18:25:57 +02:00
Moudy
f1b2c04f3d
fix: rebuild artifacts
2026-04-16 17:38:41 +02:00
Moudy
4bdb1e7a22
fix: rebuild artifacts for CI
2026-04-15 21:31:33 +02:00
Moudy
b0c10ee5a2
fix: cargo fmt, add #[must_use] to private_pda_account_id, rebuild artifacts
2026-04-15 21:10:22 +02:00
Daniil Polyakov
699e91363e
feat: introduce more descriptive error messages for public execution
2026-04-13 21:25:18 +03:00
Moudy
56ee93b5b7
merge main into feat-caller-program-id-and-flash-swap
2026-04-07 19:44:55 +02:00
Sergio Chouhy
015999b3a5
add clock usage example programs
2026-04-04 00:23:43 -03:00
Moudy
74e16db68f
fix: apply formatting and rebuild artifacts
2026-04-03 01:17:42 +02:00
Moudy
88e3b368c3
fix: rebuild artifacts
2026-04-03 00:58:11 +02:00
Moudy
d105a51c04
fix: rebuild artifacts
2026-04-03 00:58:11 +02:00
Moudy
65166e8fcc
fix: rebuild artifacts
2026-04-03 00:58:11 +02:00
Moudy
67bb1809de
fix: rebuild artifacts
2026-04-02 20:38:02 +02:00
Moudy
be2b2db1f5
rebuild artifacts after rebase onto main
2026-03-31 13:58:53 +02:00
Moudy
d861f2018c
rebuild artifacts with validity_window field in ProgramOutput
2026-03-31 13:47:03 +02:00
Daniil Polyakov
6780f1c9a4
feat: protect from public pda griefing attacks
2026-03-28 01:23:57 +03:00
Sergio Chouhy
73fdc1d70c
artifacts
2026-03-26 18:30:03 -03:00
Sergio Chouhy
c5cbfa375b
artifacts
2026-03-25 20:58:55 -03:00
Sergio Chouhy
356a84132a
build artifacts
2026-03-25 18:02:38 -03:00
Sergio Chouhy
79d70b3a66
add test for empty intersection in circuit
2026-03-25 17:33:27 -03:00
Sergio Chouhy
414abe32ba
artifacts
2026-03-20 15:53:05 -03:00
Sergio Chouhy
a7779f7816
artifacts
2026-03-20 14:11:09 -03:00
Sergio Chouhy
646fcc5390
push artifacts
2026-03-19 20:14:07 -03:00
Sergio Chouhy
7bbd2dd5d7
add public validity window checks
2026-03-19 15:03:45 -03:00
Sergio Chouhy
895dd942cf
add validity range to program output
2026-03-19 12:10:02 -03:00
jonesmarvin8
2cecf71c93
additional lint fixes
2026-03-18 14:06:56 -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
jonesmarvin8
ba8fdf4f29
fix conflicts from merging main
2026-03-17 19:16:09 -04:00
jonesmarvin8
b44e066e84
fix constructor
2026-03-17 09:29:00 -04:00
fryorcraken
55c930d784
update artifacts
2026-03-16 14:35:29 +11:00
Daniil Polyakov
72ce3ff1e4
chore: rebuild artifacts
2026-02-26 16:35:07 +03:00
Pravdyvy
f11d374ae7
Merge branch 'main' into Pravdyvy/indexer-state-management
2026-02-17 08:06:16 +02:00
jonesmarvin8
70a2f9ce4e
artifact fixes
2026-02-16 20:13:47 -05:00
jonesmarvin8
08e65d8332
update artifacts
2026-02-16 08:11:34 -05:00
Pravdyvy
a4fc1dd570
fix: ci fix 1
2026-02-16 10:34:41 +02:00
Daniil Polyakov
85d2a13148
chore: update keccak
2026-02-14 00:48:39 +03:00
Daniil Polyakov
6d7ca887e3
chore: rebuild artifacts
2026-02-12 16:35:58 +03:00
Daniil Polyakov
975cfb9ec6
feat: fully integrate Sequencer, Indexer and Explorer with Bedrock
2026-02-12 16:31:13 +03:00
Daniil Polyakov
72c45be083
feat: implement Explorer
2026-02-11 02:06:40 +03:00
Daniil Polyakov
9909f02803
refactor: split token program into crates
2026-02-06 00:08:43 +03:00
David Rusu
a939ceecad
chore(artifacts): rebuild artifacts
2026-02-01 00:28:41 +04:00
Sergio Chouhy
81921c3406
build artifacts
2026-01-29 09:54:01 -03:00
Daniil Polyakov
2288a725d2
feat: implement indexer service skeleton
2026-01-26 23:31:28 +03:00
Daniil Polyakov
2b2a52d0b8
feat: error on unclaimed modified accounts
2026-01-19 17:29:59 +03:00
Daniil Polyakov
67d5a3e9f4
fix: check public account authorization in privacy preserving circuit
2026-01-17 02:28:31 +03:00
Daniil Polyakov
a097ff9d49
chore: rebuild artifacts
2026-01-17 02:28:31 +03:00
Daniil Polyakov
2d1ee4b279
Merge branch 'main' into Pravdyvy/amm-wallet-integration
2025-12-26 23:07:48 +03:00