335 Commits

Author SHA1 Message Date
f74c9a324b Export serde_json et serde_wasm_bindgen 2025-03-12 10:17:56 +01:00
3cf653c280 Add serde-wasm-bindgen and remove serde-json preserve-order feature 2025-03-12 10:10:36 +01:00
4bcf31d311 Add roles and public_data to prd 2025-03-04 14:43:43 +01:00
dc77482cc6 Add public_data to CommitMsg 2025-03-03 23:19:32 +01:00
131ee8c55b Rename process descriptions to public_data 2025-03-03 23:19:10 +01:00
17ad1a0319 Roles is now part of ProcessState out of the pcd 2025-02-07 23:05:11 +01:00
855cd948ef [bug] update_value also update the state_id 2025-02-07 22:38:18 +01:00
5fc2764bbf Derive Eq, PartialOrd, Ord for Proof 2025-02-07 22:36:21 +01:00
f0db7a1f23 Update to latest CommitMessage 2025-02-04 16:23:00 +01:00
1fe174190f More explicit error in case of Mutex poisoning 2025-02-04 16:22:48 +01:00
4c0a034a16 fee_provision is not a fraction of sent amount but some fixed value 2025-02-04 16:22:25 +01:00
1bc61f9251 filter_keys takes &HashSet 2025-02-04 16:21:58 +01:00
4be53916b0 Replace commitment_tx with process_id 2025-01-29 17:25:36 +01:00
079156d86a [bug] remove_all_concurrent_states won't panic if there's no concurrent states 2025-01-24 16:00:21 +01:00
a4a81f42f1 Replace MemberOutpointMap with OutPointMemberMap 2025-01-21 11:05:18 +01:00
51531a0f44 Add check_tx_for_process_updates 2025-01-17 18:08:18 +01:00
12705aa737 Reduce log verbosity 2025-01-16 18:09:17 +01:00
57a196d3ed Remove the revokation output 2025-01-16 17:12:14 +01:00
b8a3042131 Add serialization mod, with custom serialization logic 2025-01-10 16:24:08 +01:00
c5a00aa845 Implement Display for Member 2025-01-10 16:23:38 +01:00
35a046f7e8 Custom implement of Serialize for HandshakeMessage 2025-01-09 17:54:28 +01:00
0a6bc4e970 Improve Process impl 2025-01-09 17:29:14 +01:00
cd1ab95a94 Update Member 2025-01-09 17:28:48 +01:00
09b0f7a794 Merge branch 'init-message' into dev 2025-01-09 17:27:53 +01:00
228ad8c0ec Replace Init with Handshake 2025-01-09 17:27:03 +01:00
4f9775526e Rm CachedMessage 2025-01-07 09:25:33 +01:00
a628da9e2a All Prd constructors takes sender as a Member 2025-01-07 09:25:33 +01:00
57ce288ca4 Reimplement PartialEq, Eq and Hash for Member 2025-01-07 09:25:33 +01:00
b6ffebf6c0 Add new_request 2025-01-07 09:25:33 +01:00
13957e3e1f Add InitMessage 2025-01-07 09:25:33 +01:00
8f1b4a9071 [bug] correctly handle the case available funds are equal or just above target 2025-01-06 15:35:32 +01:00
326eb56b62 Rename merkle_root to state_id 2025-01-02 12:00:34 +01:00
26495e973e Check if we don't have the roles already in clear when validating a state 2024-12-19 14:06:38 +01:00
Sosthene
ac17d28f08 Various minor fixes 2024-12-17 22:37:47 +01:00
Sosthene
0be1065c5e [bug] Fix get_state_for_commitments_root 2024-12-17 22:37:38 +01:00
Sosthene
27ee79f31d Modify ts type for ProcessState fields 2024-12-17 22:37:15 +01:00
Sosthene
123c6946f2 Remove impending_requests from Process 2024-12-17 22:36:33 +01:00
Sosthene
1e8a51f37a Fix pcd to_sorted_key_values to sort recursively 2024-12-17 22:34:58 +01:00
Sosthene
8a682b0a7c Modify prd update to take the roles map as payload 2024-12-17 22:34:00 +01:00
Sosthene
95451b517e Add Init Flag 2024-12-17 13:26:19 +01:00
Sosthene
58578450f3 Add descriptions field in ProcessState 2024-12-12 16:03:21 +01:00
Sosthene
fff051b12c Add Process::get_process_id() 2024-12-12 15:50:15 +01:00
Sosthene
8a5beeacc7 Update process tests 2024-12-11 23:28:07 +01:00
Sosthene
e0647610db get_state_for_commitments_root mut and immut version 2024-12-11 23:27:52 +01:00
Sosthene
d2d586f996 Update decrypt_pcd to return Map 2024-12-11 23:27:18 +01:00
Sosthene
2db9b29e6b Add merkle_root to ProcessState and update new() 2024-12-11 23:25:11 +01:00
Sosthene
5be3340aad Add Pcd::to_sorted_key_values, and hash values with a counter 2024-12-11 23:23:14 +01:00
Sosthene
1068340c09 AnkPcdHash from_value_with_outpoint takes &[u8] 2024-12-11 23:20:25 +01:00
Sosthene
0f47588e8d Fix process tests 2024-12-06 15:27:53 +01:00
Sosthene
1789f95761 Update some calls 2024-12-06 15:27:44 +01:00