424 Commits

Author SHA1 Message Date
12d8923ea3 Derive Eq, PartialOrd, Ord for Proof 2025-08-27 13:57:48 +02:00
ca933ef6d9 Update to latest CommitMessage 2025-08-27 13:57:48 +02:00
e82cb82039 More explicit error in case of Mutex poisoning 2025-08-27 13:57:48 +02:00
370e0746dd fee_provision is not a fraction of sent amount but some fixed value 2025-08-27 13:57:48 +02:00
a1713ed8f9 filter_keys takes &HashSet 2025-08-27 13:57:48 +02:00
56e7025288 Replace commitment_tx with process_id 2025-08-27 13:57:48 +02:00
d55cba4d9f [bug] remove_all_concurrent_states won't panic if there's no concurrent states 2025-08-27 13:57:48 +02:00
d09f2d5f63 Replace MemberOutpointMap with OutPointMemberMap 2025-08-27 13:57:47 +02:00
1d96f68e0b Add check_tx_for_process_updates 2025-08-27 13:57:47 +02:00
467992eb94 Reduce log verbosity 2025-08-27 13:57:47 +02:00
b63caa6090 Remove the revokation output 2025-08-27 13:57:47 +02:00
3ab9ef69bf Add serialization mod, with custom serialization logic 2025-08-27 13:57:47 +02:00
0e9121e604 Implement Display for Member 2025-08-27 13:57:47 +02:00
df05a1919e Custom implement of Serialize for HandshakeMessage 2025-08-27 13:57:47 +02:00
ef4fc02598 Improve Process impl 2025-08-27 13:57:47 +02:00
0231c6a92b Update Member 2025-08-27 13:57:46 +02:00
03c24e4eed Replace Init with Handshake 2025-08-27 13:57:46 +02:00
618b976339 All Prd constructors takes sender as a Member 2025-08-27 13:57:46 +02:00
6365c2ccdd Reimplement PartialEq, Eq and Hash for Member 2025-08-27 13:57:46 +02:00
129f957214 Add new_request 2025-08-27 13:57:46 +02:00
bfd7c6bcda Add InitMessage 2025-08-27 13:57:46 +02:00
7f096ddc62 Rm CachedMessage 2025-08-27 13:57:46 +02:00
a7245f3083 [bug] correctly handle the case available funds are equal or just above target 2025-08-27 13:57:46 +02:00
355be1e434 Rename merkle_root to state_id 2025-08-27 13:57:46 +02:00
5716dabbd9 Check if we don't have the roles already in clear when validating a state 2025-08-27 13:57:45 +02:00
Sosthene
401cc35fe7 Various minor fixes 2025-08-27 13:57:45 +02:00
Sosthene
029bd6be32 [bug] Fix get_state_for_commitments_root 2025-08-27 13:57:45 +02:00
Sosthene
d135b8a66f Modify ts type for ProcessState fields 2025-08-27 13:57:45 +02:00
Sosthene
f1ba34eddd Remove impending_requests from Process 2025-08-27 13:57:45 +02:00
Sosthene
eda4b18770 Fix pcd to_sorted_key_values to sort recursively 2025-08-27 13:57:45 +02:00
Sosthene
433326f3f6 Modify prd update to take the roles map as payload 2025-08-27 13:57:45 +02:00
Sosthene
6ec31edc55 Add Init Flag 2025-08-27 13:57:45 +02:00
Sosthene
09ec91c243 Add descriptions field in ProcessState 2025-08-27 13:57:45 +02:00
Sosthene
18dd726cce Add Process::get_process_id() 2025-08-27 13:57:44 +02:00
Sosthene
66536eaa00 Update process tests 2025-08-27 13:57:44 +02:00
Sosthene
746821bb98 get_state_for_commitments_root mut and immut version 2025-08-27 13:57:44 +02:00
Sosthene
ce0e5f7b73 Update decrypt_pcd to return Map 2025-08-27 13:57:44 +02:00
Sosthene
d24abe967e Add merkle_root to ProcessState and update new() 2025-08-27 13:57:44 +02:00
Sosthene
60ff6c1aba Add Pcd::to_sorted_key_values, and hash values with a counter 2025-08-27 13:57:44 +02:00
Sosthene
f03b1594af AnkPcdHash from_value_with_outpoint takes &[u8] 2025-08-27 13:57:44 +02:00
Sosthene
21ab8723e0 Fix process tests 2025-08-27 13:57:44 +02:00
Sosthene
37f27c1382 Update some calls 2025-08-27 13:57:44 +02:00
Sosthene
0d8aaefd12 Add new and update_value to ProcessState 2025-08-27 13:57:44 +02:00
Sosthene
de93b1e568 Fix pcd tests 2025-08-27 13:57:43 +02:00
Sosthene
da2cd5d62a Refactor is_hex_string 2025-08-27 13:57:43 +02:00
Sosthene
eef48ce834 decrypt_all check is the value is clear or a commitment 2025-08-27 13:57:43 +02:00
Sosthene
6fbc3f6f4a Encrypt_fields check for existing keys and don't overwrite values 2025-08-27 13:57:43 +02:00
Sosthene
e9261c0d62 Use commited_in instead of root_commitment as salt 2025-08-27 13:57:43 +02:00
Sosthene
46dc67839d Remove dead code 2025-08-27 13:57:43 +02:00
Sosthene
f44751f7d7 Add storages to RoleDefinition 2025-08-27 13:57:43 +02:00