Commit Graph

  • dc55810e44 Add Apophis special role NicolasCantu 2025-03-13 14:28:08 +01:00
  • 174d52c8a9 Add a special case in ProcessState::is_valid() for demiurge role NicolasCantu 2025-03-12 13:03:50 +01:00
  • a69fa75822 Add SpecialRoles with Demiurge NicolasCantu 2025-03-12 13:03:15 +01:00
  • 57182efbbc Complete overhaul of the pcd/process logic, with sensible custom types and less serialization NicolasCantu 2025-03-12 10:24:20 +01:00
  • 525d7f14a8 Add crypto generate_key function NicolasCantu 2025-03-12 10:20:30 +01:00
  • f20a95ad56 Add serialization hex_array_btree NicolasCantu 2025-03-12 10:20:10 +01:00
  • 1f67eff723 Add serialization {de}serialize_hex NicolasCantu 2025-03-12 10:19:55 +01:00
  • 0b645d5384 Rationalize serialization imports NicolasCantu 2025-03-12 10:19:36 +01:00
  • 1f52353a9b [bug] don't filter out freezed outputs but ignore them when selecting NicolasCantu 2025-03-12 10:18:54 +01:00
  • 7b524ae80a Export serde_json et serde_wasm_bindgen NicolasCantu 2025-03-12 10:17:56 +01:00
  • 33830b7cea Add serde-wasm-bindgen and remove serde-json preserve-order feature NicolasCantu 2025-03-12 10:10:36 +01:00
  • 5ab1dc945c Add roles and public_data to prd NicolasCantu 2025-03-04 14:43:43 +01:00
  • e073b45094 Add public_data to CommitMsg NicolasCantu 2025-03-03 23:19:32 +01:00
  • 58cc5081b2 Rename process descriptions to public_data NicolasCantu 2025-03-03 23:19:10 +01:00
  • 46d405f046 Roles is now part of ProcessState out of the pcd NicolasCantu 2025-02-07 22:44:14 +01:00
  • ab1c16ff81 [bug] update_value also update the state_id NicolasCantu 2025-02-07 22:38:18 +01:00
  • 12d8923ea3 Derive Eq, PartialOrd, Ord for Proof NicolasCantu 2025-02-07 22:36:21 +01:00
  • ca933ef6d9 Update to latest CommitMessage NicolasCantu 2025-02-04 16:23:00 +01:00
  • e82cb82039 More explicit error in case of Mutex poisoning NicolasCantu 2025-02-04 16:22:48 +01:00
  • 370e0746dd fee_provision is not a fraction of sent amount but some fixed value NicolasCantu 2025-02-04 16:22:25 +01:00
  • a1713ed8f9 filter_keys takes &HashSet NicolasCantu 2025-02-04 16:21:58 +01:00
  • 56e7025288 Replace commitment_tx with process_id NicolasCantu 2025-01-29 17:25:36 +01:00
  • d55cba4d9f [bug] remove_all_concurrent_states won't panic if there's no concurrent states NicolasCantu 2025-01-24 16:00:21 +01:00
  • d09f2d5f63 Replace MemberOutpointMap with OutPointMemberMap NicolasCantu 2025-01-21 11:05:18 +01:00
  • 1d96f68e0b Add check_tx_for_process_updates NicolasCantu 2025-01-17 18:08:18 +01:00
  • 467992eb94 Reduce log verbosity NicolasCantu 2025-01-16 18:09:17 +01:00
  • b63caa6090 Remove the revokation output NicolasCantu 2025-01-16 17:12:14 +01:00
  • 3ab9ef69bf Add serialization mod, with custom serialization logic NicolasCantu 2025-01-10 16:24:08 +01:00
  • 0e9121e604 Implement Display for Member NicolasCantu 2025-01-10 16:23:38 +01:00
  • df05a1919e Custom implement of Serialize for HandshakeMessage NicolasCantu 2025-01-09 17:54:28 +01:00
  • ef4fc02598 Improve Process impl NicolasCantu 2025-01-09 17:29:14 +01:00
  • 0231c6a92b Update Member NicolasCantu 2025-01-09 17:28:48 +01:00
  • 03c24e4eed Replace Init with Handshake NicolasCantu 2025-01-09 17:27:03 +01:00
  • 618b976339 All Prd constructors takes sender as a Member NicolasCantu 2025-01-02 13:50:44 +01:00
  • 6365c2ccdd Reimplement PartialEq, Eq and Hash for Member NicolasCantu 2025-01-02 13:27:29 +01:00
  • 129f957214 Add new_request NicolasCantu 2025-01-02 12:29:52 +01:00
  • bfd7c6bcda Add InitMessage NicolasCantu 2025-01-02 10:00:46 +01:00
  • 7f096ddc62 Rm CachedMessage NicolasCantu 2025-01-07 09:24:56 +01:00
  • a7245f3083 [bug] correctly handle the case available funds are equal or just above target NicolasCantu 2025-01-06 15:35:15 +01:00
  • 355be1e434 Rename merkle_root to state_id NicolasCantu 2025-01-02 12:00:06 +01:00
  • 5716dabbd9 Check if we don't have the roles already in clear when validating a state NicolasCantu 2024-12-19 14:06:38 +01:00
  • 401cc35fe7 Various minor fixes Sosthene 2024-12-17 22:37:47 +01:00
  • 029bd6be32 [bug] Fix get_state_for_commitments_root Sosthene 2024-12-17 22:37:38 +01:00
  • d135b8a66f Modify ts type for ProcessState fields Sosthene 2024-12-17 22:37:15 +01:00
  • f1ba34eddd Remove impending_requests from Process Sosthene 2024-12-17 22:36:33 +01:00
  • eda4b18770 Fix pcd to_sorted_key_values to sort recursively Sosthene 2024-12-17 22:34:58 +01:00
  • 433326f3f6 Modify prd update to take the roles map as payload Sosthene 2024-12-17 22:34:00 +01:00
  • 6ec31edc55 Add Init Flag Sosthene 2024-12-17 13:26:19 +01:00
  • 09ec91c243 Add descriptions field in ProcessState Sosthene 2024-12-12 16:03:21 +01:00
  • 18dd726cce Add Process::get_process_id() Sosthene 2024-12-12 15:50:15 +01:00
  • 66536eaa00 Update process tests Sosthene 2024-12-11 23:28:07 +01:00
  • 746821bb98 get_state_for_commitments_root mut and immut version Sosthene 2024-12-11 23:27:52 +01:00
  • ce0e5f7b73 Update decrypt_pcd to return Map Sosthene 2024-12-11 23:27:18 +01:00
  • d24abe967e Add merkle_root to ProcessState and update new() Sosthene 2024-12-11 23:25:11 +01:00
  • 60ff6c1aba Add Pcd::to_sorted_key_values, and hash values with a counter Sosthene 2024-12-11 23:23:14 +01:00
  • f03b1594af AnkPcdHash from_value_with_outpoint takes &[u8] Sosthene 2024-12-11 23:20:25 +01:00
  • 21ab8723e0 Fix process tests Sosthene 2024-12-06 15:27:53 +01:00
  • 37f27c1382 Update some calls Sosthene 2024-12-06 15:27:44 +01:00
  • 0d8aaefd12 Add new and update_value to ProcessState Sosthene 2024-12-06 15:27:05 +01:00
  • de93b1e568 Fix pcd tests Sosthene 2024-12-06 15:26:38 +01:00
  • da2cd5d62a Refactor is_hex_string Sosthene 2024-12-06 15:26:30 +01:00
  • eef48ce834 decrypt_all check is the value is clear or a commitment Sosthene 2024-12-06 15:26:07 +01:00
  • 6fbc3f6f4a Encrypt_fields check for existing keys and don't overwrite values Sosthene 2024-12-06 15:24:54 +01:00
  • e9261c0d62 Use commited_in instead of root_commitment as salt Sosthene 2024-12-06 15:23:54 +01:00
  • 46dc67839d Remove dead code Sosthene 2024-12-06 15:22:43 +01:00
  • f44751f7d7 Add storages to RoleDefinition Sosthene 2024-12-06 15:22:00 +01:00
  • defc715275 fix pcd tests Sosthene 2024-12-03 22:54:03 +01:00
  • 928a3d5946 [bug] correct hash construction Sosthene 2024-12-03 22:34:36 +01:00
  • 9ec05d2745 [bug] implement a from_merkle_root method for ValidationHash instead of from_byte_array Sosthene 2024-12-03 22:33:24 +01:00
  • 13e8b827ec Add is_hexstring to Pcd trait Sosthene 2024-11-30 20:05:47 +01:00
  • 44320fdcf7 Remove is_linked() and is_linking() from device Sosthene 2024-11-30 20:04:06 +01:00
  • 47eda1d26c create_merkle_tree() sorts leaves Sosthene 2024-11-29 11:50:32 +01:00
  • 6310ad158e Add RoleDefinition is_member_validation_needed() Sosthene 2024-11-29 09:51:10 +01:00
  • 2c92c9340c Update ValidationRule is_satisfied() Sosthene 2024-11-29 09:50:41 +01:00
  • e60ef13133 Add ValidationRule::allows_modification() Sosthene 2024-11-29 09:10:54 +01:00
  • ec447ca409 Make Pcd::decrypt_fields() replace encrypted by commitments Sosthene 2024-11-29 09:09:54 +01:00
  • 7a8f3c056a Update dependendies in process.rs Sosthene 2024-11-29 09:09:14 +01:00
  • 820e6c7a88 Tsify Process Sosthene 2024-11-29 09:08:55 +01:00
  • 76eb1ffc3f Add get_fields_to_validate_for_member() Sosthene 2024-11-29 09:08:19 +01:00
  • efa0b8fe69 Refactor ProcessState is_valid() Sosthene 2024-11-29 09:07:48 +01:00
  • 5834646af6 Refactor decrypt_pcd() Sosthene 2024-11-29 09:07:15 +01:00
  • b205e7ecda Rename compute->list_modified_fields, and slight refactor Sosthene 2024-11-29 08:43:43 +01:00
  • 390b8d176f Update create_merkle_tree Sosthene 2024-11-29 01:11:43 +01:00
  • 66b6ca90c5 [bug] ProcessState compute_modified_fields compare hashes instead of ciphers Sosthene 2024-11-26 22:04:31 +01:00
  • 9c52241e90 Add get_state_for_commitment_root Sosthene 2024-11-25 23:24:05 +01:00
  • 6cf9752b4c Process::new() creates Process with empty state Sosthene 2024-11-25 22:27:43 +01:00
  • faf2636680 Add SecretsStore methods Sosthene 2024-11-25 22:27:09 +01:00
  • 933c579366 confirm_secret_for_address returns the previous secret Sosthene 2024-11-25 22:26:50 +01:00
  • 4412cc00b2 Change Proof message to byte array Sosthene 2024-11-25 22:26:09 +01:00
  • fc46d831a7 Add env_logger and reexport Sosthene 2024-11-19 13:07:15 +01:00
  • af60768c85 Derive into_wasm_abi for SecretsStore Sosthene 2024-11-13 10:35:50 +01:00
  • eb1ce0bfc9 Refactor states update Sosthene 2024-11-12 23:22:20 +01:00
  • 1f154ce4e6 Update prd/pcd to keep commitments of each field Sosthene 2024-11-12 20:52:28 +01:00
  • ce960297f5 Update device Sosthene 2024-11-12 20:51:56 +01:00
  • 520a053af1 Add rs_merkle dependency Sosthene 2024-11-12 20:51:30 +01:00
  • 8c4e35f302 Optimise to_network_msg: no need to clone to_sign Sosthene 2024-10-29 13:02:27 +01:00
  • 6f5a8d778f PrdConnect takes a secret hash as payload and previous proof Sosthene 2024-10-29 12:59:53 +01:00
  • c921547eca Add get_address_for_key to Member Sosthene 2024-10-29 12:59:03 +01:00
  • 46d1d65c16 key_is_part_of_member takes PublicKey Sosthene 2024-10-29 12:58:32 +01:00
  • 8fc83c5770 Proof keeps the compressed PublicKey, not x only Sosthene 2024-10-29 12:58:00 +01:00