{"id":38608377,"url":"https://github.com/pyauth/tsp-client","last_synced_at":"2026-01-17T08:41:32.118Z","repository":{"id":63737620,"uuid":"570327272","full_name":"pyauth/tsp-client","owner":"pyauth","description":"A Python IETF Time-Stamp Protocol (TSP) (RFC 3161) client","archived":false,"fork":false,"pushed_at":"2024-12-01T18:47:11.000Z","size":53,"stargazers_count":7,"open_issues_count":3,"forks_count":1,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-09-03T08:20:14.358Z","etag":null,"topics":["rfc-3161","rfc3161","time-stamp-protocol","tsa","tsp"],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/pyauth.png","metadata":{"files":{"readme":"README.rst","changelog":"Changes.rst","contributing":null,"funding":".github/FUNDING.yml","license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null},"funding":{"github":["kislyuk"]}},"created_at":"2022-11-24T22:55:03.000Z","updated_at":"2025-04-29T13:50:51.000Z","dependencies_parsed_at":"2024-12-02T02:04:44.521Z","dependency_job_id":null,"html_url":"https://github.com/pyauth/tsp-client","commit_stats":null,"previous_names":[],"tags_count":8,"template":false,"template_full_name":null,"purl":"pkg:github/pyauth/tsp-client","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pyauth%2Ftsp-client","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pyauth%2Ftsp-client/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pyauth%2Ftsp-client/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pyauth%2Ftsp-client/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/pyauth","download_url":"https://codeload.github.com/pyauth/tsp-client/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pyauth%2Ftsp-client/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28504370,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-17T06:57:29.758Z","status":"ssl_error","status_checked_at":"2026-01-17T06:56:03.931Z","response_time":85,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["rfc-3161","rfc3161","time-stamp-protocol","tsa","tsp"],"created_at":"2026-01-17T08:41:31.425Z","updated_at":"2026-01-17T08:41:32.111Z","avatar_url":"https://github.com/pyauth.png","language":"Python","funding_links":["https://github.com/sponsors/kislyuk"],"categories":[],"sub_categories":[],"readme":"tsp-client: An IETF Time-Stamp Protocol (TSP) (RFC 3161) client\n===============================================================\ntsp-client is an implementation of the `RFC 3161 \u003chttps://www.rfc-editor.org/rfc/rfc3161.html\u003e`_ TSP protocol in Python.\n\nTSP is used for point-in-time attestation and non-repudiation as part of various electronic signature and code signing\nschemes, including `eIDAS \u003chttps://en.wikipedia.org/wiki/EIDAS\u003e`_ `XAdES \u003chttps://en.wikipedia.org/wiki/XAdES\u003e`_\n(tsp-client is used by `SignXML \u003chttps://github.com/XML-Security/signxml\u003e`_ to implement XAdES).\n\nInstallation\n------------\n::\n\n    pip install tsp-client\n\nSynopsis\n--------\n\n.. code-block:: python\n\n    from tsp_client import TSPSigner, TSPVerifier\n\n    # Sign a message online by transmitting its digest to the timestamp authority\n    message = b\"abc\"\n    signer = TSPSigner()\n    signed = signer.sign(message)  # Returns raw bytes of the verified timestamp token.\n\n    # Verify a presented timestamp token offline using the original message\n    verified = TSPVerifier().verify(signed, message=message)\n\n    # Or sign and verify using the message digest (digest algorithm may vary)\n    import hashlib\n\n    digest = hashlib.sha512(message).digest()\n    \n    signer.sign(message_digest=digest)\n    verified = TSPVerifier().verify(signed, message_digest=digest)\n\n    print(verified.tst_info)  # Parsed TSTInfo (CMS SignedData) structure\n    print(verified.signed_attrs)  # Parsed CMS SignedAttributes structure\n\nSpecifying a custom TSA\n~~~~~~~~~~~~~~~~~~~~~~~\nTo provide a timestamped signature with non-repudiation verifiable via a chain of trust, TSP requires the use of a TSA\n(time-stamp authority) server when generating timestamp tokens. TSA servers can be thought of as digital notaries.\nVerification of tokens can be done offline using your system's certificate authority (CA) trust store.\n\nBy default, tsp-client uses the `DigiCert TSA server\n\u003chttps://knowledge.digicert.com/generalinformation/INFO4231.html\u003e`_ when signing tokens. To use a different TSA, set the\n``SigningSettings.tsp_server`` attribute as follows:\n\n.. code-block:: python\n\n    from tsp_client import TSPSigner, TSPVerifier, SigningSettings\n    signing_settings = SigningSettings(tsp_server=\"http://timestamp.identrust.com\")\n    signer = TSPSigner()\n    signed = signer.sign(message, signing_settings=signing_settings)\n\nThere is currently no credible public TSA that offers HTTPS transport security and does not apply throttling. DigiCert\nprovides a relatively high throughput public TSA endpoint, but your message digests and tokens will be transmitted\nunencrypted over the network. As an alternative, Sectigo offers an HTTPS TSA (``https://timestamp.sectigo.com``) but\napplies throttling so is only suitable for low throughput applications.\n\nThe European Union maintains a list of trusted TSAs as part of the `eIDAS dashboard\n\u003chttps://esignature.ec.europa.eu/efda/tl-browser/\u003e`_, however this list only serves as a root of trust and does not link\ndirectly to the TSA endpoints of listed providers.\n\nAuthors\n-------\n* Andrey Kislyuk\n\nLinks\n-----\n* `Project home page (GitHub) \u003chttps://github.com/pyauth/tsp-client\u003e`_\n* `Documentation \u003chttps://pyauth.github.io/tsp-client/\u003e`_\n* `Package distribution (PyPI) \u003chttps://pypi.python.org/pypi/tsp-client\u003e`_\n* `Change log \u003chttps://github.com/pyauth/tsp-client/blob/master/Changes.rst\u003e`_\n* `IETF RFC 3161: Time-Stamp Protocol (TSP) \u003chttps://www.rfc-editor.org/rfc/rfc3161.html\u003e`_\n\nBugs\n~~~~\nPlease report bugs, issues, feature requests, etc. on `GitHub \u003chttps://github.com/pyauth/tsp-client/issues\u003e`_.\n\nLicense\n-------\nCopyright 2022-2023, Andrey Kislyuk and tsp-client contributors. Licensed under the terms of the\n`Apache License, Version 2.0 \u003chttp://www.apache.org/licenses/LICENSE-2.0\u003e`_. Distribution of the LICENSE and NOTICE\nfiles with source copies of this package and derivative works is **REQUIRED** as specified by the Apache License.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpyauth%2Ftsp-client","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fpyauth%2Ftsp-client","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpyauth%2Ftsp-client/lists"}