Ryan Barrett
c2b51d278f
atproto: add MST Walker and Diff classes
...
test is passing with trivial data but failing with larger data, eg 1k initial elements. hrm.
2023-04-30 12:24:02 -07:00
Ryan Barrett
ff7f52fb5a
bluesky: move a few utils to new atproto_util module
2023-04-28 15:29:40 -07:00
Ryan Barrett
412f3416a4
big steps toward getting getRepo working
...
* generate commits
* sign commits
* serialize and include MST after each commit, not just at the end
phew!
2023-04-27 16:48:25 -07:00
Ryan Barrett
3493aafca8
Bluesky: implement com.atproto.sync.getRepo
...
first com.atproto.sync XRPC! 🎉
2023-04-20 19:28:39 -07:00
Ryan Barrett
4f21d190cb
Bluesky MST: test_is_order_independent works
2023-04-16 16:32:48 -07:00
Ryan Barrett
86144ba50f
Bluesky MST: fix bug in create_parent, add __unicode__ and __repr__
2023-04-16 16:32:48 -07:00
Ryan Barrett
ca22120110
Bluesky MST: fix bug in append_merge
2023-04-16 16:32:48 -07:00
Ryan Barrett
4f4647327d
Bluesky MST: fix bug in split_around
2023-04-16 16:32:48 -07:00
Ryan Barrett
ee7e4fa555
Bluesky MST: more implementation and tests
2023-04-16 16:32:48 -07:00
Ryan Barrett
52a479b8c4
Bluesky MST: fixed trivial tree test!
2023-04-16 16:32:48 -07:00
Ryan Barrett
96c6f9808f
Bluesky MST tests: fix base 32 decoding, other tweaks
2023-04-16 16:32:48 -07:00
Ryan Barrett
7b7b3f2cd1
more Bluesky MST. test_add works for 10 leaves!
2023-04-16 16:32:48 -07:00
Ryan Barrett
a8380c2cbf
lots more translating, implement DAG-CBOR encoding and CID generation
...
...in serialize_node_data and cid_for_entries
2023-04-16 16:32:47 -07:00
Ryan Barrett
ecde015c2a
Bluesky MST: start to define types, MST methods, test data
2023-04-16 16:32:47 -07:00
Ryan Barrett
1b5961f129
start on AT Protocol PDS, specifically their MST
...
largely translating this from their reference TypeScript implementation, not writing from scratch, but still hoo boy, this will take a bit of work. thank god for their test cases. very grateful for you both @dholms @devinivy!
2023-04-16 16:32:47 -07:00