You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This is a python snippet to fetch the play integrity verdict response for an app.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
When performing canonization of a JSON-LD document, it is necessary to perform compact, expand and normalise operations. This would involve resolving multiple remote contexts. Since the contexts are located in a remote host, the availability of the resource cannot be garunteed. Fetching a remote resource adds significant latency if the remote server doesn't respond fast.
Solution
Implement a cache for remote contexts. This can be done by caching the responses from the document loader used by PyLD. A simple cache snippet using python dictionary for PyLD is given below.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters