Commit Graph

  • 95451b517e Add Init Flag Sosthene 2024-12-17 13:26:19 +01:00
  • 58578450f3 Add descriptions field in ProcessState Sosthene 2024-12-12 16:03:21 +01:00
  • fff051b12c Add Process::get_process_id() Sosthene 2024-12-12 15:50:15 +01:00
  • 8a5beeacc7 Update process tests Sosthene 2024-12-11 23:28:07 +01:00
  • e0647610db get_state_for_commitments_root mut and immut version Sosthene 2024-12-11 23:27:52 +01:00
  • d2d586f996 Update decrypt_pcd to return Map Sosthene 2024-12-11 23:27:18 +01:00
  • 2db9b29e6b Add merkle_root to ProcessState and update new() Sosthene 2024-12-11 23:25:11 +01:00
  • 5be3340aad Add Pcd::to_sorted_key_values, and hash values with a counter Sosthene 2024-12-11 23:23:14 +01:00
  • 1068340c09 AnkPcdHash from_value_with_outpoint takes &[u8] Sosthene 2024-12-11 23:20:25 +01:00
  • 0f47588e8d Fix process tests Sosthene 2024-12-06 15:27:53 +01:00
  • 1789f95761 Update some calls Sosthene 2024-12-06 15:27:44 +01:00
  • 2e8652453d Add new and update_value to ProcessState Sosthene 2024-12-06 15:27:05 +01:00
  • adc1fbfabd Fix pcd tests Sosthene 2024-12-06 15:26:38 +01:00
  • 103586570f Refactor is_hex_string Sosthene 2024-12-06 15:26:30 +01:00
  • 348e509ddc decrypt_all check is the value is clear or a commitment Sosthene 2024-12-06 15:26:07 +01:00
  • adeb5e6537 Encrypt_fields check for existing keys and don't overwrite values Sosthene 2024-12-06 15:24:54 +01:00
  • f409671d3a Use commited_in instead of root_commitment as salt Sosthene 2024-12-06 15:23:54 +01:00
  • 46625984f3 Remove dead code Sosthene 2024-12-06 15:22:43 +01:00
  • 1619222fb3 Add storages to RoleDefinition Sosthene 2024-12-06 15:22:00 +01:00
  • baaee6d31d fix pcd tests Sosthene 2024-12-03 22:54:03 +01:00
  • a2b969b72e [bug] correct hash construction Sosthene 2024-12-03 22:34:36 +01:00
  • e47059668d [bug] implement a from_merkle_root method for ValidationHash instead of from_byte_array Sosthene 2024-12-03 22:33:24 +01:00
  • 72a3230952 Add is_hexstring to Pcd trait Sosthene 2024-11-30 20:05:47 +01:00
  • a786eb8fe0 Remove is_linked() and is_linking() from device Sosthene 2024-11-30 20:04:06 +01:00
  • 614bdcedd2 create_merkle_tree() sorts leaves Sosthene 2024-11-29 11:50:32 +01:00
  • e2d8e0eb77 Add RoleDefinition is_member_validation_needed() Sosthene 2024-11-29 09:51:10 +01:00
  • da4c752df0 Update ValidationRule is_satisfied() Sosthene 2024-11-29 09:50:41 +01:00
  • 0ad63d347b Add ValidationRule::allows_modification() Sosthene 2024-11-29 09:10:54 +01:00
  • b38189beca Make Pcd::decrypt_fields() replace encrypted by commitments Sosthene 2024-11-29 09:09:54 +01:00
  • 64908496eb Update dependendies in process.rs Sosthene 2024-11-29 09:09:14 +01:00
  • 2c5ed2c94a Tsify Process Sosthene 2024-11-29 09:08:55 +01:00
  • 541ad36d13 Add get_fields_to_validate_for_member() Sosthene 2024-11-29 09:08:19 +01:00
  • eda2dd687d Refactor ProcessState is_valid() Sosthene 2024-11-29 09:07:48 +01:00
  • 391ca02186 Refactor decrypt_pcd() Sosthene 2024-11-29 09:07:15 +01:00
  • 43459fa0bb Rename compute->list_modified_fields, and slight refactor Sosthene 2024-11-29 08:43:43 +01:00
  • 2fadc2e39c Update create_merkle_tree Sosthene 2024-11-29 01:11:43 +01:00
  • d19abaf653 [bug] ProcessState compute_modified_fields compare hashes instead of ciphers Sosthene 2024-11-26 22:04:31 +01:00
  • 00327b2e46 Add get_state_for_commitment_root Sosthene 2024-11-25 23:24:05 +01:00
  • 0fc6a2a939 Process::new() creates Process with empty state Sosthene 2024-11-25 22:27:43 +01:00
  • d459d608ed Add SecretsStore methods Sosthene 2024-11-25 22:27:09 +01:00
  • 8845942f32 confirm_secret_for_address returns the previous secret Sosthene 2024-11-25 22:26:50 +01:00
  • 49c125f085 Change Proof message to byte array Sosthene 2024-11-25 22:26:09 +01:00
  • d10382f121 Add env_logger and reexport Sosthene 2024-11-19 13:07:15 +01:00
  • 06f3485361 Derive into_wasm_abi for SecretsStore Sosthene 2024-11-13 10:35:50 +01:00
  • 4e7dd4e0b4 Refactor states update Sosthene 2024-11-12 23:22:20 +01:00
  • c2fde13e95 Update prd/pcd to keep commitments of each field Sosthene 2024-11-12 20:52:28 +01:00
  • 4885066bd2 Update device Sosthene 2024-11-12 20:51:56 +01:00
  • ae807c3857 Add rs_merkle dependency Sosthene 2024-11-12 20:51:30 +01:00
  • 12da1740e2 Optimise to_network_msg: no need to clone to_sign Sosthene 2024-10-29 13:02:27 +01:00
  • b858c68ae0 PrdConnect takes a secret hash as payload and previous proof Sosthene 2024-10-29 12:59:53 +01:00
  • c3a7a3570b Add get_address_for_key to Member Sosthene 2024-10-29 12:59:03 +01:00
  • 9c9e50bcdb key_is_part_of_member takes PublicKey Sosthene 2024-10-29 12:58:32 +01:00
  • c191d53769 Proof keeps the compressed PublicKey, not x only Sosthene 2024-10-29 12:58:00 +01:00
  • a84d1d0508 Derive Default for Member Sosthene 2024-10-29 12:57:25 +01:00
  • b2ad5ee227 Remove shared_secrets from Process Sosthene 2024-10-29 12:57:03 +01:00
  • d275fc5bc0 Add SecretsStore Sosthene 2024-10-29 12:56:14 +01:00
  • 838149982e Correct error message for prd signed by ourselves Sosthene 2024-10-28 21:43:45 +01:00
  • ccd5e398b0 Add Prd Connect Sosthene 2024-10-28 16:03:13 +01:00
  • 775119cdf6 Check a prd is not signed by ourselves when extracting from message NicolasCantu 2024-10-21 13:01:17 +02:00
  • 9fd463b592 Fix bug with set_fees returning insufficient amount Sosthene 2024-10-12 16:28:50 +02:00
  • 4eda758b64 Add get_latest_commited_state method to Process Sosthene 2024-10-10 16:57:56 +02:00
  • ef556fddaa Choice of inputs in create_transaction adds 10% to the amount Sosthene 2024-10-10 16:57:35 +02:00
  • aa14c69bdf Prd commitment doesn't take validation_tokens Sosthene 2024-10-10 16:57:03 +02:00
  • 21dccde051 ProcessState validation tests + bug fixes Sosthene 2024-10-08 11:02:59 +02:00
  • 4744740303 Update process states validation logic Sosthene 2024-10-07 11:16:35 +02:00
  • 7a4344608e Modify fields encryption, can selectively encrypt and fields that are not decrypted stay as they are Sosthene 2024-10-07 11:15:22 +02:00
  • 3c15b41699 Format Sosthene 2024-10-06 10:40:29 +02:00
  • 4809459da5 Add RoleDefinition tests Sosthene 2024-10-06 10:38:48 +02:00
  • 3f633cf594 Add ValidationRule tests + some fixes Sosthene 2024-10-04 11:45:04 +02:00
  • 9ff9176498 Modify create_transaction mandatory_inputs argument Sosthene 2024-10-04 09:26:47 +02:00
  • 1d9a994543 Add get_message to Proof Sosthene 2024-10-04 09:26:19 +02:00
  • 3ebf4f7899 Add validation logic to ProcessState Sosthene 2024-10-04 09:25:58 +02:00
  • 319da6b1a3 New_response takes multiple Proof Sosthene 2024-10-04 09:25:33 +02:00
  • 70bd927077 Add validation logic to ValidationRules and RuleDefinition Sosthene 2024-10-04 09:25:05 +02:00
  • 432dc4b8ea Add key_is_part_of_member to Member Sosthene 2024-10-04 09:24:23 +02:00
  • 185a014de1 Update Device api Sosthene 2024-10-04 09:23:13 +02:00
  • 9632ef24e3 Update Process api Sosthene 2024-10-04 09:22:58 +02:00
  • 8d4238f531 Add CommitMessage Sosthene 2024-10-03 16:20:14 +02:00
  • bb82a0b760 Simplify CachedMessage Sosthene 2024-10-03 16:19:43 +02:00
  • d91a4a67eb Update Cargo.toml Omar Oughriss 2024-10-02 13:42:26 +00:00
  • 15eda2c4b1 Impl PartialEq for NewTxMessage Sosthene 2024-09-26 10:46:01 +02:00
  • f3ab3525a3 Merge branch 'minimal_prd_pcd' into dev Sosthene 2024-09-25 10:11:29 +02:00
  • 959f8a3058 Rm uuid dependency Sosthene 2024-09-23 16:14:58 +02:00
  • f3aa1bc2d0 Functional prd/pcd Sosthene 2024-09-23 16:11:46 +02:00
  • 62b2137c77 Complete Process implementation Sosthene 2024-09-23 16:10:59 +02:00
  • bbc9eaa962 cleanup crypto Sosthene 2024-09-23 16:03:41 +02:00
  • 3cbe77c143 Add MutexExt trait Sosthene 2024-09-23 12:43:56 +02:00
  • 97df8ea13d Update prd/pcd Sosthene 2024-08-30 19:57:17 +02:00
  • 0ea4c5f118 Implement prd/pcd logic Sosthene 2024-08-28 09:40:19 +02:00
  • 665d95554d Add basic signature Sosthene 2024-08-21 13:17:34 +02:00
  • b2c070642e Implement Process Sosthene 2024-08-20 12:21:15 +02:00
  • 8688b6ed79 Update create_transaction test Sosthene 2024-08-15 16:15:40 +02:00
  • dd797bd981 Update Pcd/Prd Sosthene 2024-08-15 16:15:26 +02:00
  • 95ed1e1f1c Rename AnkNetworkMsg to Envelope Sosthene 2024-06-04 12:09:14 +02:00
  • 41743ab3e7 Replace CipherMessage with Prd and put data in Pcd Sosthene 2024-06-04 11:56:32 +02:00
  • d61b210dda [bug] FaucetMessage commitment is 32B long Sosthene 2024-08-13 15:04:59 +02:00
  • 38fa6e6239 Add to_string() to Faucet and NewTxMessage Sosthene 2024-08-13 14:21:07 +02:00
  • 9017f7651b new_login Sosthene 2024-08-01 12:25:49 +02:00
  • d871b326c8 Merge branch 'new_login' into dev Sosthene 2024-07-19 22:51:01 +02:00
  • b5881d63b0 Add TrustedChannel Sosthene 2024-07-19 22:48:57 +02:00