Commit Graph
20 Commits
Author SHA1 Message Date
Kyle Altendorf 7a6e9b3d12 Merge commit '329ce24c89e29f8c7f0d4a8bb4d04fc2b0438d95' into catchup/long_lived_datalayer_merkle_blob_from_main_329ce24c89e29f8c7f0d4a8bb4d04fc2b0438d95 2025-03-04 16:43:20 -05:00
Kyle AltendorfandGitHub d50b6e0883 use chia_rs directly for sized bytes (#19326) 2025-02-28 09:35:25 -08:00
Florin Chirica 55cae838de Use custom exception. 2024-11-20 22:01:29 +02:00
Kyle AltendorfandGitHub 9c8557a1f8 Remove Python 3.8 support and update source to 3.9 standards (#18687)
* manual python 3.8 removals

* poetry

* pyupgrade

* black

* isort

* manually tidy imports

* work around shadowed type

* catch up build network protocol files for pyupgrade changes

* placate pylint

* re-enable 20.04

* placate flake8
2024-10-16 14:21:15 -07:00
Kyle AltendorfandGitHub 98df4ce222 change datalayer python and logging from tree id to store id (#17864)
* change python and logging from tree id to store id

* always more

* oops

* again

* and...

* comment

* more
2024-05-10 13:45:45 -07:00
63417e765a Add support for generating and verifying DataLayer Proofs of Inclusions (#16845)
* initial implementaion of get_proof and verify_proof for datalayer

* Add wallet RPC and stop using offer blobs

* Don't require DL wallet to validate DL proof

* Convert to dl_verify_proof to free function

* More updates to DL proofs get/verify

* More updates to DL proofs get/verify

* More updates to DL proofs get/verify

* remove some unused verification functions

* oops deleted some important things

* fix type

* Add tests for DL proofs

* WIP using streamable classes for RPC

* Tests pass with new serializable classes

* use clvm tree hash calls instead of magic numbers and std_hash

* expanded tests to include more ways to call the same thing

* minor tests updates from feedback

* add in CLI tests

* Add separate create_multiple_keys_option

* Add helper and fixup key option

* Update tests/core/data_layer/test_data_rpc.py

Co-authored-by: Kyle Altendorf <sda@fstab.net>

* Add layer of indirection for the proof response

---------

Co-authored-by: Kyle Altendorf <sda@fstab.net>
2024-02-05 08:35:28 -08:00
Earle LoweandGitHub c55be8e163 Check all peers when subscribing/tracking to new DL singleton (#15427) 2023-06-05 11:26:56 -05:00
Kyle AltendorfandGitHub 3b084a165b configure isort to add the future annotations import (#13327)
* configure isort to add the future annotations import

* apply the new isort setting

* remove type ignores for new mypy (#13539)

https://pypi.org/project/mypy/0.981/

* another
2022-09-30 03:40:22 -05:00
Kyle Altendorf 4d2a278c48 add verify_offer route 2022-08-17 22:35:32 -04:00
Kyle Altendorf d5674f7128 faster and better 2022-08-17 16:49:54 -04:00
Kyle Altendorf 5b54c128c1 some store id/root checking of the actual offer vs. the reference data 2022-08-17 11:32:52 -04:00
Kyle Altendorf ea50701457 Merge branch 'long_lived/atari' into atari-blobs 2022-08-16 19:08:20 -04:00
Kyle Altendorf d8fb847c0f automatic no-op/insert/upsert for offer inclusions 2022-08-15 22:28:01 -04:00
Kyle Altendorf 39219c2040 preliminary replacement of TEXT with BLOB 2022-08-15 20:15:23 -04:00
Kyle Altendorf 86ae361a2f apply isort to atari 2022-07-31 21:10:56 -07:00
Kyle Altendorf d51ec3be7c hints and related 2021-12-08 22:25:30 -05:00
Kyle Altendorf 32965b8087 data layer keys and values are opaque bytes 2021-10-18 16:11:35 -04:00
Kyle Altendorf 5b86d02c10 add DataStore._check_hashes() 2021-10-15 16:12:23 -04:00
Kyle Altendorf 4d55b9f8b8 add DataStore._check_roots_are_incrementing() 2021-10-15 10:50:42 -04:00
Kyle Altendorf 71ac17e86f Add some initial DataStore integrity checks 2021-10-14 23:42:50 -04:00