38 Commits

Author SHA1 Message Date
355be1e434 Rename merkle_root to state_id 2025-08-27 13:57:46 +02:00
5716dabbd9 Check if we don't have the roles already in clear when validating a state 2025-08-27 13:57:45 +02:00
Sosthene
401cc35fe7 Various minor fixes 2025-08-27 13:57:45 +02:00
Sosthene
029bd6be32 [bug] Fix get_state_for_commitments_root 2025-08-27 13:57:45 +02:00
Sosthene
d135b8a66f Modify ts type for ProcessState fields 2025-08-27 13:57:45 +02:00
Sosthene
f1ba34eddd Remove impending_requests from Process 2025-08-27 13:57:45 +02:00
Sosthene
09ec91c243 Add descriptions field in ProcessState 2025-08-27 13:57:45 +02:00
Sosthene
18dd726cce Add Process::get_process_id() 2025-08-27 13:57:44 +02:00
Sosthene
66536eaa00 Update process tests 2025-08-27 13:57:44 +02:00
Sosthene
746821bb98 get_state_for_commitments_root mut and immut version 2025-08-27 13:57:44 +02:00
Sosthene
ce0e5f7b73 Update decrypt_pcd to return Map 2025-08-27 13:57:44 +02:00
Sosthene
d24abe967e Add merkle_root to ProcessState and update new() 2025-08-27 13:57:44 +02:00
Sosthene
21ab8723e0 Fix process tests 2025-08-27 13:57:44 +02:00
Sosthene
37f27c1382 Update some calls 2025-08-27 13:57:44 +02:00
Sosthene
0d8aaefd12 Add new and update_value to ProcessState 2025-08-27 13:57:44 +02:00
Sosthene
928a3d5946 [bug] correct hash construction 2025-08-27 13:57:42 +02:00
Sosthene
7a8f3c056a Update dependendies in process.rs 2025-08-27 13:57:41 +02:00
Sosthene
820e6c7a88 Tsify Process 2025-08-27 13:57:41 +02:00
Sosthene
76eb1ffc3f Add get_fields_to_validate_for_member() 2025-08-27 13:57:41 +02:00
Sosthene
efa0b8fe69 Refactor ProcessState is_valid() 2025-08-27 13:57:41 +02:00
Sosthene
5834646af6 Refactor decrypt_pcd() 2025-08-27 13:57:41 +02:00
Sosthene
b205e7ecda Rename compute->list_modified_fields, and slight refactor 2025-08-27 13:57:41 +02:00
Sosthene
66b6ca90c5 [bug] ProcessState compute_modified_fields compare hashes instead of ciphers 2025-08-27 13:57:41 +02:00
Sosthene
9c52241e90 Add get_state_for_commitment_root 2025-08-27 13:57:40 +02:00
Sosthene
6cf9752b4c Process::new() creates Process with empty state 2025-08-27 13:57:40 +02:00
Sosthene
eb1ce0bfc9 Refactor states update 2025-08-27 13:57:40 +02:00
Sosthene
1f154ce4e6 Update prd/pcd to keep commitments of each field 2025-08-27 13:57:39 +02:00
Sosthene
fe06327114 Remove shared_secrets from Process 2025-08-27 13:57:38 +02:00
Sosthene
61af1d0c10 Add get_latest_commited_state method to Process 2025-08-27 13:57:38 +02:00
Sosthene
9be870549b ProcessState validation tests + bug fixes 2025-08-27 13:57:37 +02:00
Sosthene
88fc785dee Update process states validation logic 2025-08-27 13:57:37 +02:00
Sosthene
8e42596184 Format 2025-08-27 13:57:37 +02:00
Sosthene
617c73a3de Add validation logic to ProcessState 2025-08-27 13:57:36 +02:00
Sosthene
9158efc547 Update Process api 2025-08-27 13:57:36 +02:00
Sosthene
4801be3b2f Complete Process implementation 2025-08-27 13:57:35 +02:00
Sosthene
ab63551645 Update prd/pcd 2025-08-27 13:57:35 +02:00
Sosthene
88b606bf47 Implement prd/pcd logic 2025-08-27 13:57:34 +02:00
Sosthene
c9f62dc3de Implement Process 2025-08-27 13:57:34 +02:00