361 Commits

Author SHA1 Message Date
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
390b8d176f Update create_merkle_tree 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
faf2636680 Add SecretsStore methods 2025-08-27 13:57:40 +02:00
Sosthene
933c579366 confirm_secret_for_address returns the previous secret 2025-08-27 13:57:40 +02:00
Sosthene
4412cc00b2 Change Proof message to byte array 2025-08-27 13:57:40 +02:00
Sosthene
fc46d831a7 Add env_logger and reexport 2025-08-27 13:57:40 +02:00
Sosthene
af60768c85 Derive into_wasm_abi for SecretsStore 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
ce960297f5 Update device 2025-08-27 13:57:39 +02:00
Sosthene
520a053af1 Add rs_merkle dependency 2025-08-27 13:57:39 +02:00
Sosthene
8c4e35f302 Optimise to_network_msg: no need to clone to_sign 2025-08-27 13:57:39 +02:00
Sosthene
6f5a8d778f PrdConnect takes a secret hash as payload and previous proof 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
8fc83c5770 Proof keeps the compressed PublicKey, not x only 2025-08-27 13:57:39 +02:00
Sosthene
aa8e4a1990 Derive Default for Member 2025-08-27 13:57:39 +02:00
Sosthene
fe06327114 Remove shared_secrets from Process 2025-08-27 13:57:38 +02:00
Sosthene
f7998bed8d Add SecretsStore 2025-08-27 13:57:38 +02:00
Sosthene
cd681fcbc7 Correct error message for prd signed by ourselves 2025-08-27 13:57:38 +02:00
Sosthene
30da423536 Add Prd Connect 2025-08-27 13:57:38 +02:00
7608271c12 Check a prd is not signed by ourselves when extracting from message 2025-08-27 13:57:38 +02:00
Sosthene
5e6c447942 Fix bug with set_fees returning insufficient amount 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
27a9379e7c Choice of inputs in create_transaction adds 10% to the amount 2025-08-27 13:57:38 +02:00
Sosthene
5a664ea001 Prd commitment doesn't take validation_tokens 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
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
5cc894f67b Modify create_transaction mandatory_inputs argument 2025-08-27 13:57:37 +02:00
Sosthene
f577207e0d Add get_message to Proof 2025-08-27 13:57:37 +02:00
Sosthene
617c73a3de Add validation logic to ProcessState 2025-08-27 13:57:36 +02:00
Sosthene
9fe7daecb0 New_response takes multiple Proof 2025-08-27 13:57:36 +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
9a04bbad3e Update Device api 2025-08-27 13:57:36 +02:00
Sosthene
9158efc547 Update Process api 2025-08-27 13:57:36 +02:00
Sosthene
3931dc66ca Add CommitMessage 2025-08-27 13:57:36 +02:00
Sosthene
2b0eb64097 Simplify CachedMessage 2025-08-27 13:57:36 +02:00
Omar Oughriss
95b21b217e Update Cargo.toml 2025-08-27 13:57:36 +02:00
Sosthene
aca7f8f1fc Impl PartialEq for NewTxMessage 2025-08-27 13:57:35 +02:00
Sosthene
faf3dc283d Rm uuid dependency 2025-08-27 13:57:35 +02:00