tba-bases-signing 0.4.0.dev2__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
Metadata-Version: 2.4
|
|
2
|
+
Name: tba-bases-signing
|
|
3
|
+
Version: 0.4.0.dev2
|
|
4
|
+
Summary: Reusable signing and signature-verification bases.
|
|
5
|
+
License-Expression: Apache-2.0
|
|
6
|
+
Requires-Python: >=3.10,<3.15
|
|
7
|
+
Classifier: Programming Language :: Python :: 3
|
|
8
|
+
Classifier: Programming Language :: Python :: 3.10
|
|
9
|
+
Classifier: Programming Language :: Python :: 3.11
|
|
10
|
+
Classifier: Programming Language :: Python :: 3.12
|
|
11
|
+
Classifier: Programming Language :: Python :: 3.13
|
|
12
|
+
Classifier: Programming Language :: Python :: 3.14
|
|
13
|
+
Requires-Dist: tba-bases-protected-artifact (==0.4.0.dev2)
|
|
14
|
+
Requires-Dist: tba-contracts-security-trust (==0.1.0)
|
|
15
|
+
Description-Content-Type: text/markdown
|
|
16
|
+
|
|
17
|
+
# tba-bases-signing
|
|
18
|
+
|
|
19
|
+
Reusable signing and signature-verification behavior.
|
|
20
|
+
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
[project]
|
|
2
|
+
name = "tba-bases-signing"
|
|
3
|
+
version = "0.4.0.dev2"
|
|
4
|
+
description = "Reusable signing and signature-verification bases."
|
|
5
|
+
readme = "README.md"
|
|
6
|
+
requires-python = ">=3.10,<3.15"
|
|
7
|
+
license = "Apache-2.0"
|
|
8
|
+
dependencies = ["tba-bases-protected-artifact==0.4.0.dev2", "tba-contracts-security-trust==0.1.0"]
|
|
9
|
+
[build-system]
|
|
10
|
+
requires = ["poetry-core>=1.0.0"]
|
|
11
|
+
build-backend = "poetry.core.masonry.api"
|
|
12
|
+
[tool.poetry]
|
|
13
|
+
packages = [{ include = "tba_bases_signing", from = "src" }]
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
"""Reusable signing bases."""
|
|
2
|
+
|
|
3
|
+
from abc import ABC
|
|
4
|
+
|
|
5
|
+
from tba_bases_protected_artifact import (
|
|
6
|
+
ProtectedArtifactVerifierBase,
|
|
7
|
+
SecurityArtifactCodecBase,
|
|
8
|
+
SecurityArtifactIssuerBase,
|
|
9
|
+
)
|
|
10
|
+
from tba_contracts_security_trust import (
|
|
11
|
+
ICapabilityProvider,
|
|
12
|
+
ISigningProvider,
|
|
13
|
+
SignRequest,
|
|
14
|
+
SignResult,
|
|
15
|
+
VerifySignatureRequest,
|
|
16
|
+
VerifySignatureResult,
|
|
17
|
+
)
|
|
18
|
+
|
|
19
|
+
|
|
20
|
+
class SigningProviderBase(ISigningProvider, ICapabilityProvider, ABC):
|
|
21
|
+
async def sign(self, request: SignRequest) -> SignResult:
|
|
22
|
+
raise NotImplementedError
|
|
23
|
+
|
|
24
|
+
async def verify_signature(self, request: VerifySignatureRequest) -> VerifySignatureResult:
|
|
25
|
+
raise NotImplementedError
|
|
26
|
+
|
|
27
|
+
|
|
28
|
+
class SigningDomainBase(
|
|
29
|
+
ICapabilityProvider,
|
|
30
|
+
SecurityArtifactIssuerBase,
|
|
31
|
+
ProtectedArtifactVerifierBase,
|
|
32
|
+
SecurityArtifactCodecBase,
|
|
33
|
+
ABC,
|
|
34
|
+
):
|
|
35
|
+
"""Composite signing surface for artifact-oriented implementations."""
|
|
36
|
+
|
|
37
|
+
|
|
38
|
+
__all__ = ["SigningDomainBase", "SigningProviderBase"]
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
|