MCPcopy Create free account
hub / github.com/adobe/Marinus / fetch_sth

Function fetch_sth

python3_cron_scripts/get_original_ct_logs.py:125–133  ·  view source on GitHub ↗

Fetch the initial STH record from the CT Log.

(logger, url, jobs_manager)

Source from the content-addressed store, hash-verified

123
124
125def fetch_sth(logger, url, jobs_manager):
126 """
127 Fetch the initial STH record from the CT Log.
128 """
129 result = make_https_request(logger, url + "/ct/v1/get-sth", jobs_manager)
130 if result is None:
131 return None
132 else:
133 return json.loads(result)
134
135
136def set_last_index(last_index_collection, source, index, job_number):

Callers 1

mainFunction · 0.85

Calls 1

make_https_requestFunction · 0.70

Tested by

no test coverage detected