396 Commits

Author SHA1 Message Date
2b511caa14 Remove empty member condition 2025-08-27 13:57:51 +02:00
feb7c36df2 Update tests for obliteration 2025-08-27 13:57:51 +02:00
5db6f31b57 Add process obliteration code 2025-08-27 13:57:51 +02:00
2cbbfa3eae Add PcdCommitments::is_empty() 2025-08-27 13:57:50 +02:00
875e328f36 Lift restriction on new CommitMessage that couldn't take validation tokens 2025-08-27 13:57:50 +02:00
c7c6a1b6a4 Rename PcdCommitments::emtpy() to new_empty() 2025-08-27 13:57:50 +02:00
dc55810e44 Add Apophis special role 2025-08-27 13:57:50 +02:00
174d52c8a9 Add a special case in ProcessState::is_valid() for demiurge role 2025-08-27 13:57:50 +02:00
a69fa75822 Add SpecialRoles with Demiurge 2025-08-27 13:57:50 +02:00
57182efbbc Complete overhaul of the pcd/process logic, with sensible custom types and less serialization 2025-08-27 13:57:50 +02:00
525d7f14a8 Add crypto generate_key function 2025-08-27 13:57:50 +02:00
f20a95ad56 Add serialization hex_array_btree 2025-08-27 13:57:49 +02:00
1f67eff723 Add serialization {de}serialize_hex 2025-08-27 13:57:49 +02:00
0b645d5384 Rationalize serialization imports 2025-08-27 13:57:49 +02:00
1f52353a9b [bug] don't filter out freezed outputs but ignore them when selecting 2025-08-27 13:57:49 +02:00
7b524ae80a Export serde_json et serde_wasm_bindgen 2025-08-27 13:57:49 +02:00
33830b7cea Add serde-wasm-bindgen and remove serde-json preserve-order feature 2025-08-27 13:57:49 +02:00
5ab1dc945c Add roles and public_data to prd 2025-08-27 13:57:49 +02:00
e073b45094 Add public_data to CommitMsg 2025-08-27 13:57:49 +02:00
58cc5081b2 Rename process descriptions to public_data 2025-08-27 13:57:49 +02:00
46d405f046 Roles is now part of ProcessState out of the pcd 2025-08-27 13:57:48 +02:00
ab1c16ff81 [bug] update_value also update the state_id 2025-08-27 13:57:48 +02:00
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