Email or username:

Password:

Forgot your password?
Ben Ramsey

What is a #CID?

It’s some kind of identifier that AT Protocol appears to use, but I can’t find a definitive resource on what it is or how it’s defined, and it appears to be related somehow to cryptocurrency (maybe?).

To make matters worse, there doesn’t appear to be any #PHP libraries that will parse or create CIDs.

There’s this one, but it doesn’t appear to support all CID codecs (not sure I understand that correctly)? github.com/danny50610/php-cid

2 comments
John Godsland

@ramsey The only reference I can find to it in the documentation is here: atproto.com/guides/application. Looks like it's a sha256 of content used to track whether something has been edited.

Ben Ramsey

@gozzy What they use to parse it is in this library, which seems to indicate it’s a much more involved thing than a sha256 hash. github.com/multiformats/js-mul

Go Up