App Store Certificate Checker Framework
Wil Shipley (tweet):
The framework was written to be a Swift-y way to validate App Store receipts.
This contains receipt verification code plus a semi-complete ASN.1 parser (but not emitter) because the ASN.1 reading functions that Apple ships actually cannot be used from Swift, due to badly annotated headers combined with an incredibly horrrifying API (which they may have inherited from the standards body, to be fair).
Note: This seems to be Mac-only, due to an API that iOS is missing.