397 Commits

Author SHA1 Message Date
Sosthene
132565e0b5 Define and implement PcdSerializable trait 2025-08-27 13:57:58 +02:00
Sosthene
f2a51aa6af Add const PCD_VERSION and ZSTD_COMPRESSION_LEVEL 2025-08-27 13:57:57 +02:00
Sosthene
04735183b4 Replace ciborium with zstd 2025-08-27 13:57:57 +02:00
Sosthene
338d62b126 Don't force ProcessState::public_data type to Record<string, string> 2025-08-27 13:57:57 +02:00
Sosthene
b656531dd1 Add verify_merkle_proof() 2025-08-27 13:57:57 +02:00
Sosthene
8868529963 Various minor fixes 2025-08-27 13:57:57 +02:00
Sosthene
cadc098883 Make FileBlob pub and reexport js_sys 2025-08-27 13:57:57 +02:00
2fc10321f2 Make ciborium serialize generic 2025-08-27 13:57:57 +02:00
eab279acab Move hashing into hash mod and refactor hash code 2025-08-27 13:57:57 +02:00
e6ec17158e Add const ROLESLABEL 2025-08-27 13:57:57 +02:00
b4491d6d60 Add hash mod 2025-08-27 13:57:56 +02:00
1929153e8c Add is_empty method to Roles 2025-08-27 13:57:56 +02:00
8a95dbffda Separate handling of the files data when encoding pcd 2025-08-27 13:57:56 +02:00
f905d8c6b5 reexport dependencies 2025-08-27 13:57:56 +02:00
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