383 Commits

Author SHA1 Message Date
78bdcc2e13 update ProcessState tests 2025-08-27 13:57:56 +02:00
5cc5eaa4a2 Update ProcessState 2025-08-27 13:57:56 +02:00
2ee37599ed Update pcd tests 2025-08-27 13:57:56 +02:00
d37c0829f0 Add ciborium_serialize helper functions 2025-08-27 13:57:55 +02:00
b5c1c1ea79 Pcd is BTreeMap<String, Vec<u8>> 2025-08-27 13:57:55 +02:00
4f758d981c Add ciborium 2025-08-27 13:57:55 +02:00
ec66bf7ce8 SpWallet in Device 2025-08-27 13:57:55 +02:00
8e7bc05e76 Add SpWallet 2025-08-27 13:57:55 +02:00
db3db3a497 create_transaction deep refactoring 2025-08-27 13:57:55 +02:00
a433400dd4 Don't only look last output for commitments 2025-08-27 13:57:55 +02:00
9ffd5229fc Rm obsolete tests 2025-08-27 13:57:54 +02:00
dada38ba0e [bug] actually handle demiurge case 2025-08-27 13:57:54 +02:00
45b2dc1e43 Add TsUnsignedTransaction (wrapper type) 2025-08-27 13:57:54 +02:00
b61cc90ede Add get_balance to Device 2025-08-27 13:57:54 +02:00
6a2be13b7c Add outputs to Device 2025-08-27 13:57:54 +02:00
8eb3baaf9f Upgrade to latest sp_client 2025-08-27 13:57:54 +02:00
a3de9e4666 OutPointProcessMap PcdCommitments serialization 2025-08-27 13:57:54 +02:00
7403f9261a Update process tests 2025-08-27 13:57:53 +02:00
f3da088698 ProcessState new slight refactor 2025-08-27 13:57:53 +02:00
b848b3bf78 Update dependencies 2025-08-27 13:57:53 +02:00
8ee6a8e80f Add extract_paired_addresses 2025-08-27 13:57:53 +02:00
bbd7e2a2be Refactor ProcessState validation logic 2025-08-27 13:57:53 +02:00
416d409fb9 Add handle_pairing 2025-08-27 13:57:53 +02:00
c59a89fecd Refactor handle_obliteration 2025-08-27 13:57:53 +02:00
c89eb6ad35 Rm list_modified_states 2025-08-27 13:57:52 +02:00
1f9192a8e0 Update tests 2025-08-27 13:57:52 +02:00
bde7900562 Implement get_mut for Roles 2025-08-27 13:57:52 +02:00
80853ba4bd More check on quorum for ValidationRule 2025-08-27 13:57:52 +02:00
f88bae7354 Implement contains_key for PcdCommitments + change keys() return value 2025-08-27 13:57:52 +02:00
6fc0a9b1ff derive from_wasm_abi for Pcd 2025-08-27 13:57:52 +02:00
84ba054632 PcdCommitments new refactor 2025-08-27 13:57:52 +02:00
2e64835142 Add pairing special role + some refactor 2025-08-27 13:57:52 +02:00
87891a5017 Define constants for special roles 2025-08-27 13:57:51 +02:00
5434c8f9a0 Derive from_wasm_abi for OutPointMemberMap 2025-08-27 13:57:51 +02:00
f4bfc6dda6 Update tests 2025-08-27 13:57:51 +02:00
857dce9704 Remove dead code 2025-08-27 13:57:51 +02:00
70616dfc94 Replace Member with Outpoint in RoleDefinition 2025-08-27 13:57:51 +02:00
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