272 Commits

Author SHA1 Message Date
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
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
4885066bd2 Update device 2024-11-12 20:51:56 +01:00
Sosthene
ae807c3857 Add rs_merkle dependency 2024-11-12 20:51:30 +01:00
Sosthene
12da1740e2 Optimise to_network_msg: no need to clone to_sign 2024-10-29 13:03:03 +01:00
Sosthene
b858c68ae0 PrdConnect takes a secret hash as payload and previous proof 2024-10-29 13:03:03 +01:00
Sosthene
c3a7a3570b Add get_address_for_key to Member 2024-10-29 13:03:03 +01:00
Sosthene
9c9e50bcdb key_is_part_of_member takes PublicKey 2024-10-29 13:03:03 +01:00
Sosthene
c191d53769 Proof keeps the compressed PublicKey, not x only 2024-10-29 13:03:03 +01:00
Sosthene
a84d1d0508 Derive Default for Member 2024-10-29 12:57:25 +01:00
Sosthene
b2ad5ee227 Remove shared_secrets from Process 2024-10-29 12:57:03 +01:00
Sosthene
d275fc5bc0 Add SecretsStore 2024-10-29 12:56:14 +01:00
Sosthene
838149982e Correct error message for prd signed by ourselves 2024-10-28 21:43:45 +01:00
Sosthene
ccd5e398b0 Add Prd Connect 2024-10-28 16:03:13 +01:00
775119cdf6 Check a prd is not signed by ourselves when extracting from message 2024-10-21 13:01:17 +02:00
Sosthene
9fd463b592 Fix bug with set_fees returning insufficient amount 2024-10-12 16:28:50 +02:00
Sosthene
4eda758b64 Add get_latest_commited_state method to Process 2024-10-10 16:57:56 +02:00
Sosthene
ef556fddaa Choice of inputs in create_transaction adds 10% to the amount 2024-10-10 16:57:35 +02:00
Sosthene
aa14c69bdf Prd commitment doesn't take validation_tokens 2024-10-10 16:57:03 +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
7a4344608e Modify fields encryption, can selectively encrypt and fields that are not decrypted stay as they are 2024-10-07 11:15:22 +02:00
Sosthene
3c15b41699 Format 2024-10-06 10:40:29 +02:00
Sosthene
4809459da5 Add RoleDefinition tests 2024-10-06 10:38:48 +02:00
Sosthene
3f633cf594 Add ValidationRule tests + some fixes 2024-10-04 11:45:04 +02:00
Sosthene
9ff9176498 Modify create_transaction mandatory_inputs argument 2024-10-04 09:27:38 +02:00
Sosthene
1d9a994543 Add get_message to Proof 2024-10-04 09:27:38 +02:00
Sosthene
3ebf4f7899 Add validation logic to ProcessState 2024-10-04 09:27:38 +02:00
Sosthene
319da6b1a3 New_response takes multiple Proof 2024-10-04 09:27:38 +02:00
Sosthene
70bd927077 Add validation logic to ValidationRules and RuleDefinition 2024-10-04 09:27:38 +02:00