29 Commits

Author SHA1 Message Date
Sosthene
de93b1e568 Fix pcd tests 2025-08-27 13:57:43 +02:00
Sosthene
da2cd5d62a Refactor is_hex_string 2025-08-27 13:57:43 +02:00
Sosthene
eef48ce834 decrypt_all check is the value is clear or a commitment 2025-08-27 13:57:43 +02:00
Sosthene
6fbc3f6f4a Encrypt_fields check for existing keys and don't overwrite values 2025-08-27 13:57:43 +02:00
Sosthene
e9261c0d62 Use commited_in instead of root_commitment as salt 2025-08-27 13:57:43 +02:00
Sosthene
46dc67839d Remove dead code 2025-08-27 13:57:43 +02:00
Sosthene
f44751f7d7 Add storages to RoleDefinition 2025-08-27 13:57:43 +02:00
Sosthene
defc715275 fix pcd tests 2025-08-27 13:57:42 +02:00
Sosthene
928a3d5946 [bug] correct hash construction 2025-08-27 13:57:42 +02:00
Sosthene
13e8b827ec Add is_hexstring to Pcd trait 2025-08-27 13:57:42 +02:00
Sosthene
47eda1d26c create_merkle_tree() sorts leaves 2025-08-27 13:57:42 +02:00
Sosthene
6310ad158e Add RoleDefinition is_member_validation_needed() 2025-08-27 13:57:42 +02:00
Sosthene
2c92c9340c Update ValidationRule is_satisfied() 2025-08-27 13:57:42 +02:00
Sosthene
e60ef13133 Add ValidationRule::allows_modification() 2025-08-27 13:57:42 +02:00
Sosthene
ec447ca409 Make Pcd::decrypt_fields() replace encrypted by commitments 2025-08-27 13:57:41 +02:00
Sosthene
390b8d176f Update create_merkle_tree 2025-08-27 13:57:41 +02:00
Sosthene
1f154ce4e6 Update prd/pcd to keep commitments of each field 2025-08-27 13:57:39 +02:00
Sosthene
c921547eca Add get_address_for_key to Member 2025-08-27 13:57:39 +02:00
Sosthene
46d1d65c16 key_is_part_of_member takes PublicKey 2025-08-27 13:57:39 +02:00
Sosthene
aa8e4a1990 Derive Default for Member 2025-08-27 13:57:39 +02:00
Sosthene
c3c6549339 Modify fields encryption, can selectively encrypt and fields that are not decrypted stay as they are 2025-08-27 13:57:37 +02:00
Sosthene
8e42596184 Format 2025-08-27 13:57:37 +02:00
Sosthene
9e1c9b12cf Add RoleDefinition tests 2025-08-27 13:57:37 +02:00
Sosthene
36207c3403 Add ValidationRule tests + some fixes 2025-08-27 13:57:37 +02:00
Sosthene
233d7f979d Add validation logic to ValidationRules and RuleDefinition 2025-08-27 13:57:36 +02:00
Sosthene
4726c59861 Add key_is_part_of_member to Member 2025-08-27 13:57:36 +02:00
Sosthene
fbdcf1eb99 Functional prd/pcd 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