45 Commits

Author SHA1 Message Date
Daniil Polyakov
a714e3c563 feat: enhance rustfmt config 2025-11-26 00:33:09 +03:00
Sergio Chouhy
d99fbde101 Merge branch 'main' into schouhy/code-cleanup 2025-10-21 09:27:19 -03:00
Sergio Chouhy
e1085e1907 fmt 2025-10-17 16:20:31 -03:00
Sergio Chouhy
b93c0aa390 rename TreeHashType to HashType 2025-10-17 16:04:09 -03:00
Sergio Chouhy
e0fd94152a remove outdated common/sec/nullifier.rs file 2025-10-17 15:35:06 -03:00
Sergio Chouhy
0b44afa4f6 remove unused code 2025-10-17 15:29:09 -03:00
Sergio Chouhy
6b18168c3c remove unused type alias 2025-10-16 17:03:01 -03:00
Sergio Chouhy
942e90ae2a add sequencer methods 2025-10-15 20:14:19 -03:00
Sergio Chouhy
bfde33d78d add add canonical serialization for program deployment txs 2025-10-15 18:00:35 -03:00
Oleksandr Pravdyvyi
c58ef27224
feat: first db update 2025-09-25 11:53:42 +03:00
Oleksandr Pravdyvyi
0e1905ad22
fix: suggestions fix 2025-09-08 10:11:04 +03:00
Oleksandr Pravdyvyi
5747070e39
fix: merge fixes 2025-09-08 09:09:32 +03:00
Oleksandr Pravdyvyi
8ceb27421e
Merge branch 'main' into Pravdyvy/sequencer-update 2025-09-08 09:03:39 +03:00
Oleksandr Pravdyvyi
7052bccfbc
fix: try edition 2024 2025-09-04 14:38:41 +03:00
Oleksandr Pravdyvyi
b4f21b2f09
fix: checks added 2025-09-03 10:29:51 +03:00
Oleksandr Pravdyvyi
6efac43210
fix: block interfix 2025-09-02 11:06:41 +03:00
Oleksandr Pravdyvyi
fbcc9cf3e2
fix: encoding updates 2025-09-02 10:17:00 +03:00
Oleksandr Pravdyvyi
ca131b2c26
fix: block structs update 2025-08-28 12:00:04 +03:00
Oleksandr Pravdyvyi
17b6851d00
fix: cleanup 2025-08-07 14:07:34 +03:00
Sergio Chouhy
e9b11af986 move nonce to public execution input 2025-07-29 16:09:21 -03:00
Sergio Chouhy
966a5c9a04 Merge branch 'Pravdyvy/state-transition-token-transfer' into schouhy/prevent-replay-attacks-with-nonces
fix test
2025-07-29 12:50:30 -03:00
Sergio Chouhy
f21c0df652 wip: added nonces and test 2025-07-28 16:09:03 -03:00
Oleksandr Pravdyvyi
d232cecbb0
fix: comments fix 2 2025-07-25 10:00:27 +03:00
Sergio Chouhy
5de28c062e remove usage of prehash sinc it is hazard material. Prefer use of secure api 2025-07-21 21:07:16 -03:00
Sergio Chouhy
361e3b6f76 fmt 2025-07-21 19:08:47 -03:00
Sergio Chouhy
b3323c78cf clippy 2025-07-21 18:46:50 -03:00
Sergio Chouhy
39b4c866a1 fix double-hashing bug 2025-07-21 17:50:08 -03:00
Sergio Chouhy
c60c7235c1 add getter for transaction body and test it 2025-07-16 13:30:30 -03:00
Sergio Chouhy
b6ea00daa4 add transactions tests 2025-07-16 13:30:30 -03:00
Sergio Chouhy
8b1d3b478c minor refactor 2025-07-16 13:30:30 -03:00
Sergio Chouhy
b1724ec235 move mempool checks outside transaction check function 2025-07-16 13:30:30 -03:00
Sergio Chouhy
1ef7be0af6 add pem feature to k256 and remove manual impls of Serialize and Deserialize 2025-07-16 13:30:28 -03:00
Sergio Chouhy
e7b727c0ba make sequencer validate transaction signatures before adding transactions to blocks 2025-07-16 13:30:28 -03:00
Sergio Chouhy
6e48bcfd9e sign transactions from node's end 2025-07-16 13:30:24 -03:00
Sergio Chouhy
f02c97e622 rename structs. Implement serde for AuthenticatedTransaction 2025-07-16 13:30:24 -03:00
Sergio Chouhy
a174eb4b85 add un/verified signed transaction structs 2025-07-16 13:30:18 -03:00
Sergio Chouhy
e286108bb5 add TODO to remove unwrap 2025-07-10 13:00:27 -03:00
Sergio Chouhy
81b6d34693 add Transaction::hash inline docs 2025-07-10 12:52:48 -03:00
Sergio Chouhy
b16575b407 fmt 2025-07-10 12:16:05 -03:00
Sergio Chouhy
f01be72d8f move impl of hash to existing impl Transaction block 2025-07-10 12:15:37 -03:00
Sergio Chouhy
e1e018fcfc remove redundant TransactionPayload struct 2025-07-10 12:13:36 -03:00
Sergio Chouhy
16e3a682fe add test for hash function 2025-07-10 12:09:01 -03:00
Sergio Chouhy
789dec673e remove hash attribute from Transaction and use a method instead 2025-07-10 11:35:46 -03:00
Oleksandr Pravdyvyi
825e80a5a0 fix: issue fix 2025-04-24 15:51:34 +03:00
Oleksandr Pravdyvyi
8e4956891c fix: refactor 1 2025-04-16 16:17:53 +03:00