302 Commits

Author SHA1 Message Date
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
1e8a51f37a Fix pcd to_sorted_key_values to sort recursively 2024-12-17 22:34:58 +01:00
Sosthene
8a682b0a7c Modify prd update to take the roles map as payload 2024-12-17 22:34:00 +01:00
Sosthene
95451b517e Add Init Flag 2024-12-17 13:26:19 +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
5be3340aad Add Pcd::to_sorted_key_values, and hash values with a counter 2024-12-11 23:23:14 +01:00
Sosthene
1068340c09 AnkPcdHash from_value_with_outpoint takes &[u8] 2024-12-11 23:20:25 +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
adc1fbfabd Fix pcd tests 2024-12-06 15:26:38 +01:00
Sosthene
103586570f Refactor is_hex_string 2024-12-06 15:26:30 +01:00
Sosthene
348e509ddc decrypt_all check is the value is clear or a commitment 2024-12-06 15:26:07 +01:00
Sosthene
adeb5e6537 Encrypt_fields check for existing keys and don't overwrite values 2024-12-06 15:24:54 +01:00
Sosthene
f409671d3a Use commited_in instead of root_commitment as salt 2024-12-06 15:23:54 +01:00
Sosthene
46625984f3 Remove dead code 2024-12-06 15:22:43 +01:00
Sosthene
1619222fb3 Add storages to RoleDefinition 2024-12-06 15:22:00 +01:00
Sosthene
baaee6d31d fix pcd tests 2024-12-03 22:54:03 +01:00
Sosthene
a2b969b72e [bug] correct hash construction 2024-12-03 22:34:36 +01:00
Sosthene
e47059668d [bug] implement a from_merkle_root method for ValidationHash instead of from_byte_array 2024-12-03 22:33:24 +01:00
Sosthene
72a3230952 Add is_hexstring to Pcd trait 2024-12-03 10:36:13 +01:00
Sosthene
a786eb8fe0 Remove is_linked() and is_linking() from device 2024-12-03 10:36:13 +01:00
Sosthene
614bdcedd2 create_merkle_tree() sorts leaves 2024-12-03 10:36:13 +01:00
Sosthene
e2d8e0eb77 Add RoleDefinition is_member_validation_needed() 2024-12-03 10:36:13 +01:00
Sosthene
da4c752df0 Update ValidationRule is_satisfied() 2024-12-03 10:36:10 +01:00
Sosthene
0ad63d347b Add ValidationRule::allows_modification() 2024-11-29 09:10:54 +01:00
Sosthene
b38189beca Make Pcd::decrypt_fields() replace encrypted by commitments 2024-11-29 09:09:54 +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
2fadc2e39c Update create_merkle_tree 2024-11-29 01:11: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
d459d608ed Add SecretsStore methods 2024-11-25 22:27:09 +01:00
Sosthene
8845942f32 confirm_secret_for_address returns the previous secret 2024-11-25 22:26:50 +01:00
Sosthene
49c125f085 Change Proof message to byte array 2024-11-25 22:26:09 +01:00
Sosthene
d10382f121 Add env_logger and reexport 2024-11-19 13:08:03 +01:00
Sosthene
06f3485361 Derive into_wasm_abi for SecretsStore 2024-11-13 10:35:50 +01:00