How to "verify" that an author created a specific post #3341
-
I'm building an application which will verify that a specific author actually published a post. To achieve this, given a post, I want to check that the author's public key was indeed used to publish. My understanding is that this requires a few things:
Is this the correct approach? Would anyone be able to provide a bit more details for each of these steps? Thanks for your precious help! |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 1 reply
-
pdsls is an example of an app that implements this (via the https://github.com/goeo-/public-transport library) |
Beta Was this translation helpful? Give feedback.
-
In general, since the signature is attached to the root of the hash tree, it is necessary not only to verify the signature but also to ensure that it is linked to the desired record. You can use com.atproto.sync.getRecord to get the path from the record to the root. That's what public-transport does. In addition, Bluesky's |
Beta Was this translation helpful? Give feedback.
-
I think I was able to build what I was looking for! Thanks @yamarten ! |
Beta Was this translation helpful? Give feedback.
In general, since the signature is attached to the root of the hash tree, it is necessary not only to verify the signature but also to ensure that it is linked to the desired record. You can use com.atproto.sync.getRecord to get the path from the record to the root.
That's what public-transport does. In addition, Bluesky's
verifyProofs
is also helpful.