buray
e3c58749d5
Merge 9a342732225c3b5c14a4635086f154b2de330f5b into 42a2f04cd52779b109750e86dcd2f5486ec3ec4f
2026-04-07 02:48:08 +00:00
Moudy
702ef4a46f
fix: cargo fmt
2026-04-02 20:30:27 +02:00
moudyellaz
eafc2969be
feat: add self_program_id to ProgramOutput struct
2026-04-02 20:30:16 +02:00
moudyellaz
27299e75cc
feat: add self_program_id to ProgramInput and read_nssa_inputs
2026-04-02 20:29:10 +02:00
Moudy
5f0f8a78d3
fix: use infallible .into() instead of .try_into() for ValidityWindow conversion
...
Clippy flagged unnecessary fallible conversion since RangeFrom<u64> to
ValidityWindow<u64> cannot fail.
2026-03-31 15:34:52 +02:00
Moudy
103198f981
remove .unwrap()
2026-03-31 14:58:52 +02:00
Moudy
5113b212d6
Update nssa/core/src/circuit_io.rs
...
Co-authored-by: Daniil Polyakov <arjentix@gmail.com>
2026-03-31 14:10:43 +02:00
Sergio Chouhy
eb14b8bf98
clippy
2026-03-31 13:51:12 +02:00
Sergio Chouhy
f627910468
fmt
2026-03-31 13:51:12 +02:00
Sergio Chouhy
8bfaf9ef4a
remove blockid from common
2026-03-31 13:50:47 +02:00
Sergio Chouhy
77c5032527
remove common TimeStamp
2026-03-31 13:50:30 +02: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
Moudy
6d690a8d25
fix: add backticks to doc comment for clippy doc_markdown
2026-03-31 13:47:21 +02:00
moudyellaz
0823461012
style: apply nightly cargo fmt
2026-03-31 13:46:43 +02:00
moudyellaz
5c592312f9
feat: extend ValidityWindow with Unix timestamp bounds
2026-03-31 13:46:08 +02:00
Daniil Polyakov
6780f1c9a4
feat: protect from public pda griefing attacks
2026-03-28 01:23:57 +03:00
ygd58
cc43721cac
feat: add owner_program_id field to AccountWithMetadata
...
Programs can now verify that input accounts are owned by themselves,
preventing spoofing attacks where malicious programs pass fake accounts
with matching data layouts.
Changes:
- Add optional owner_program_id field to AccountWithMetadata
- Add with_owner_program_id() builder method
- Backward compatible: serde(default) = None for existing data
Usage in programs:
if let Some(owner) = account.owner_program_id {
assert_eq!(owner, SELF_PROGRAM_ID, 'account not owned by this program');
}
Fixes #347
2026-03-27 22:51:01 +01:00
Sergio Chouhy
287b196569
remove redundant docstring
2026-03-26 18:16:18 -03:00
Sergio Chouhy
25a86d4bac
move standard derives to beginning
2026-03-26 15:27:37 -03:00
Sergio Chouhy
d7b0c42255
clippy
2026-03-25 20:26:04 -03:00
Sergio Chouhy
70ccb1befa
add constructors from ranges
2026-03-25 17:42:17 -03:00
Sergio Chouhy
953a1dacd3
clippy
2026-03-25 17:35:10 -03:00
Sergio Chouhy
79d70b3a66
add test for empty intersection in circuit
2026-03-25 17:33:27 -03:00
Sergio Chouhy
abc30c0ce0
remove old program output constructors
2026-03-25 16:56:04 -03:00
Sergio Chouhy
3356aef291
handle comments
2026-03-25 16:03:39 -03:00
Sergio Chouhy
4d5d767249
add tests. minor refactor
2026-03-25 14:55:23 -03:00
Sergio Chouhy
66e9881f38
Merge branch 'main' into schouhy/add-block-context
2026-03-20 14:14:11 -03:00
Sergio Chouhy
3257440448
enforce valid window construction
2026-03-20 13:49:17 -03: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
Sergio Chouhy
d9a1e56983
add docs
2026-03-19 19:41:02 -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
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
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
jonesmarvin8
a83725512d
Merge branch 'main' into marvin/nonce
2026-03-18 07:59:55 -04:00
jonesmarvin8
8dd5037e28
Merge branch 'main' into marvin/nonce
2026-03-17 16:45:08 -04:00
jonesmarvin8
f5ba922b70
Merge branch 'main' into marvin/refactor-amm-state-tests
2026-03-17 15:59:12 -04: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
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
jonesmarvin8
b44e066e84
fix constructor
2026-03-17 09:29:00 -04:00
Daniil Polyakov
756f2f4135
feat: add workspace lints to every crate
2026-03-17 15:13:44 +03:00
jonesmarvin8
dd64f0b1f8
Merge branch 'main' into marvin/nonce
2026-03-16 11:22:24 -04:00
jonesmarvin8
620dd3ad10
Merge branch 'main' into marvin/refactor-amm-state-tests
2026-03-16 09:37:24 -04:00