56 Commits

Author SHA1 Message Date
78dfebd71a Update dependencies 2025-03-26 12:38:03 +01:00
2d226392dc Add extract_paired_addresses 2025-03-26 12:37:37 +01:00
afc40b4395 Refactor ProcessState validation logic 2025-03-26 12:37:12 +01:00
491f260374 Add handle_pairing 2025-03-26 12:36:26 +01:00
d2a3147120 Refactor handle_obliteration 2025-03-26 12:36:06 +01:00
614849db78 Rm list_modified_states 2025-03-26 12:35:24 +01:00
dd13423c2b Update tests 2025-03-19 11:47:19 +01:00
df5d40ce96 Replace Member with Outpoint in RoleDefinition 2025-03-19 11:46:47 +01:00
b5bd076f1e Update tests for obliteration 2025-03-13 14:39:33 +01:00
4429564974 Add process obliteration code 2025-03-13 14:39:13 +01:00
6f786c5cc9 Add a special case in ProcessState::is_valid() for demiurge role 2025-03-12 13:03:50 +01:00
bd8ae9183a Complete overhaul of the pcd/process logic, with sensible custom types and less serialization 2025-03-12 10:24:20 +01:00
131ee8c55b Rename process descriptions to public_data 2025-03-03 23:19:10 +01:00
17ad1a0319 Roles is now part of ProcessState out of the pcd 2025-02-07 23:05:11 +01:00
855cd948ef [bug] update_value also update the state_id 2025-02-07 22:38:18 +01:00
079156d86a [bug] remove_all_concurrent_states won't panic if there's no concurrent states 2025-01-24 16:00:21 +01:00
51531a0f44 Add check_tx_for_process_updates 2025-01-17 18:08:18 +01:00
0a6bc4e970 Improve Process impl 2025-01-09 17:29:14 +01:00
326eb56b62 Rename merkle_root to state_id 2025-01-02 12:00:34 +01:00
26495e973e Check if we don't have the roles already in clear when validating a state 2024-12-19 14:06:38 +01:00
Sosthene
ac17d28f08 Various minor fixes 2024-12-17 22:37:47 +01:00
Sosthene
0be1065c5e [bug] Fix get_state_for_commitments_root 2024-12-17 22:37:38 +01:00
Sosthene
27ee79f31d Modify ts type for ProcessState fields 2024-12-17 22:37:15 +01:00
Sosthene
123c6946f2 Remove impending_requests from Process 2024-12-17 22:36:33 +01:00
Sosthene
58578450f3 Add descriptions field in ProcessState 2024-12-12 16:03:21 +01:00
Sosthene
fff051b12c Add Process::get_process_id() 2024-12-12 15:50:15 +01:00
Sosthene
8a5beeacc7 Update process tests 2024-12-11 23:28:07 +01:00
Sosthene
e0647610db get_state_for_commitments_root mut and immut version 2024-12-11 23:27:52 +01:00
Sosthene
d2d586f996 Update decrypt_pcd to return Map 2024-12-11 23:27:18 +01:00
Sosthene
2db9b29e6b Add merkle_root to ProcessState and update new() 2024-12-11 23:25:11 +01:00
Sosthene
0f47588e8d Fix process tests 2024-12-06 15:27:53 +01:00
Sosthene
1789f95761 Update some calls 2024-12-06 15:27:44 +01:00
Sosthene
2e8652453d Add new and update_value to ProcessState 2024-12-06 15:27:05 +01:00
Sosthene
a2b969b72e [bug] correct hash construction 2024-12-03 22:34:36 +01:00
Sosthene
64908496eb Update dependendies in process.rs 2024-11-29 09:09:14 +01:00
Sosthene
2c5ed2c94a Tsify Process 2024-11-29 09:08:55 +01:00
Sosthene
541ad36d13 Add get_fields_to_validate_for_member() 2024-11-29 09:08:19 +01:00
Sosthene
eda2dd687d Refactor ProcessState is_valid() 2024-11-29 09:07:48 +01:00
Sosthene
391ca02186 Refactor decrypt_pcd() 2024-11-29 09:07:15 +01:00
Sosthene
43459fa0bb Rename compute->list_modified_fields, and slight refactor 2024-11-29 08:43:43 +01:00
Sosthene
d19abaf653 [bug] ProcessState compute_modified_fields compare hashes instead of ciphers 2024-11-26 22:04:31 +01:00
Sosthene
00327b2e46 Add get_state_for_commitment_root 2024-11-25 23:24:05 +01:00
Sosthene
0fc6a2a939 Process::new() creates Process with empty state 2024-11-25 22:27:43 +01:00
Sosthene
4e7dd4e0b4 Refactor states update 2024-11-12 23:22:20 +01:00
Sosthene
c2fde13e95 Update prd/pcd to keep commitments of each field 2024-11-12 20:52:28 +01:00
Sosthene
b2ad5ee227 Remove shared_secrets from Process 2024-10-29 12:57:03 +01:00
Sosthene
4eda758b64 Add get_latest_commited_state method to Process 2024-10-10 16:57:56 +02:00
Sosthene
21dccde051 ProcessState validation tests + bug fixes 2024-10-08 11:02:59 +02:00
Sosthene
4744740303 Update process states validation logic 2024-10-07 11:16:35 +02:00
Sosthene
3c15b41699 Format 2024-10-06 10:40:29 +02:00