Skip to content

Extracting record keys from CAR files #477

Answered by MarshalX
cpfiffer asked this question in Questions
Discussion options

You must be logged in to vote

Hello, yeah, this is general question about AT Protocol. Speaking about Python SDK I can tell that I did not implement easy to use tree walker. So the only way for now is to implement it by yourself. The proper documentation lives here: https://atproto.com/specs/repository. And the official implementation is here: https://github.com/bluesky-social/atproto/blob/main/packages/repo/src/mst/walker.ts

  • v is CID. You can decode it using from atproto import CID; CID.decode(v)
  • k is record key which could be truncated and need to be restored from prev events. use p to understand how many chars you need to copy from prev k to restore it

Speaking of your example with repost record you should try to…

Replies: 2 comments 1 reply

Comment options

You must be logged in to vote
1 reply
@cpfiffer
Comment options

Answer selected by cpfiffer
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants
Converted from issue

This discussion was converted from issue #476 on December 01, 2024 19:06.