Digest in requests
So are you parsing the body as JSON, then converting it back to a string? That’s not guaranteed to give you a result that’s identical to the original body. Try hashing the original body that you received from the wire, before you parse it.
socialhub.activitypub.rocks · SocialHub