signedshot 0.1.4__cp312-cp312-win_amd64.whl → 0.1.5__cp312-cp312-win_amd64.whl

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.
Binary file
@@ -0,0 +1,133 @@
1
+ Metadata-Version: 2.4
2
+ Name: signedshot
3
+ Version: 0.1.5
4
+ Classifier: Development Status :: 4 - Beta
5
+ Classifier: Intended Audience :: Developers
6
+ Classifier: License :: OSI Approved :: MIT License
7
+ Classifier: Programming Language :: Python :: 3
8
+ Classifier: Programming Language :: Python :: 3.8
9
+ Classifier: Programming Language :: Python :: 3.9
10
+ Classifier: Programming Language :: Python :: 3.10
11
+ Classifier: Programming Language :: Python :: 3.11
12
+ Classifier: Programming Language :: Python :: 3.12
13
+ Classifier: Programming Language :: Rust
14
+ Classifier: Topic :: Security :: Cryptography
15
+ License-File: LICENSE
16
+ Summary: Validator for SignedShot media authenticity proofs
17
+ Keywords: signedshot,media,authenticity,validation,cryptography
18
+ License: MIT
19
+ Requires-Python: >=3.8
20
+ Description-Content-Type: text/markdown; charset=UTF-8; variant=GFM
21
+ Project-URL: Homepage, https://signedshot.io
22
+ Project-URL: Repository, https://github.com/SignedShot/signedshot-validator
23
+
24
+ # SignedShot
25
+
26
+ Verify SignedShot media authenticity proofs in Python.
27
+
28
+ [![PyPI](https://img.shields.io/pypi/v/signedshot)](https://pypi.org/project/signedshot/)
29
+
30
+ ## Installation
31
+
32
+ ```bash
33
+ pip install signedshot
34
+ ```
35
+
36
+ ## Quick Start
37
+
38
+ ```python
39
+ import signedshot
40
+
41
+ # Validate from files
42
+ result = signedshot.validate_files("photo.sidecar.json", "photo.jpg")
43
+
44
+ print(result.valid) # True if all checks pass
45
+ print(result.error) # Error message if validation failed
46
+ ```
47
+
48
+ ## Usage
49
+
50
+ ### Validate from Files
51
+
52
+ ```python
53
+ result = signedshot.validate_files("photo.sidecar.json", "photo.jpg")
54
+ ```
55
+
56
+ ### Validate from Bytes
57
+
58
+ ```python
59
+ with open("photo.sidecar.json") as f:
60
+ sidecar_json = f.read()
61
+ with open("photo.jpg", "rb") as f:
62
+ media_bytes = f.read()
63
+
64
+ result = signedshot.validate(sidecar_json, media_bytes)
65
+ ```
66
+
67
+ ### Validate with Pre-loaded JWKS
68
+
69
+ Avoid HTTP calls by providing JWKS directly:
70
+
71
+ ```python
72
+ import requests
73
+
74
+ jwks = requests.get("https://api.signedshot.io/.well-known/jwks.json").text
75
+ result = signedshot.validate_with_jwks(sidecar_json, media_bytes, jwks)
76
+ ```
77
+
78
+ ## Validation Result
79
+
80
+ ```python
81
+ result = signedshot.validate_files("photo.sidecar.json", "photo.jpg")
82
+
83
+ # Overall result
84
+ result.valid # True/False
85
+ result.version # Sidecar format version
86
+ result.error # Error message (if any)
87
+
88
+ # Capture trust (JWT verification)
89
+ trust = result.capture_trust
90
+ trust["signature_valid"] # JWT signature verified
91
+ trust["issuer"] # API that issued the token
92
+ trust["publisher_id"] # Publisher ID
93
+ trust["device_id"] # Device ID
94
+ trust["capture_id"] # Capture session ID
95
+ trust["method"] # "sandbox", "app_check", or "app_attest"
96
+ trust["app_id"] # App bundle ID (if attested)
97
+ trust["issued_at"] # Unix timestamp
98
+
99
+ # Media integrity (content verification)
100
+ integrity = result.media_integrity
101
+ integrity["content_hash_valid"] # SHA-256 hash matches
102
+ integrity["signature_valid"] # ECDSA signature verified
103
+ integrity["capture_id_match"] # Capture IDs match
104
+ integrity["content_hash"] # SHA-256 of media
105
+ integrity["captured_at"] # ISO8601 timestamp
106
+
107
+ # Export
108
+ result.to_dict() # Convert to dictionary
109
+ result.to_json() # Convert to JSON string
110
+ ```
111
+
112
+ ## What It Validates
113
+
114
+ 1. **Capture Trust (JWT)**
115
+ - Fetches JWKS from issuer
116
+ - Verifies ES256 signature
117
+ - Extracts attestation claims
118
+
119
+ 2. **Media Integrity**
120
+ - Computes SHA-256 of media
121
+ - Verifies ECDSA signature
122
+ - Confirms capture_id matches
123
+
124
+ ## Links
125
+
126
+ - [Documentation](https://signedshot.io/docs)
127
+ - [GitHub](https://github.com/SignedShot/signedshot-validator)
128
+ - [Website](https://signedshot.io)
129
+
130
+ ## License
131
+
132
+ MIT
133
+
@@ -0,0 +1,7 @@
1
+ signedshot\__init__.py,sha256=ww6iw6i1gj2f3bQRml7ic45xkfgo-DHCnWCXbiDU0II,269
2
+ signedshot\__init__.pyi,sha256=X4_tPFq7p75rvVXGvlWE7rah2TzX3fdMWPZuGJy9_kY,3988
3
+ signedshot\signedshot.cp312-win_amd64.pyd,sha256=TB2leWrEFmJQ6fSNIqCNRVbcnvl3UQu-cqgBIBe9a_E,4018176
4
+ signedshot-0.1.5.dist-info\METADATA,sha256=gHL5iNX0pMcwRLz2Z3MGYIlWeL4YX0Pm5Bo5ZWMNUZw,3730
5
+ signedshot-0.1.5.dist-info\WHEEL,sha256=xGRyMfC2nQGcuDMHm_QfSkv2HVaAAAo1DvjuUmalQqw,97
6
+ signedshot-0.1.5.dist-info\licenses\LICENSE,sha256=qf58wn5uBsNIROEw25KXIoi6nVHFwAppSVKVds1hXEo,1088
7
+ signedshot-0.1.5.dist-info\RECORD,,
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2025 SignedShot
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
@@ -1,63 +0,0 @@
1
- Metadata-Version: 2.4
2
- Name: signedshot
3
- Version: 0.1.4
4
- Classifier: Development Status :: 4 - Beta
5
- Classifier: Intended Audience :: Developers
6
- Classifier: License :: OSI Approved :: MIT License
7
- Classifier: Programming Language :: Python :: 3
8
- Classifier: Programming Language :: Python :: 3.8
9
- Classifier: Programming Language :: Python :: 3.9
10
- Classifier: Programming Language :: Python :: 3.10
11
- Classifier: Programming Language :: Python :: 3.11
12
- Classifier: Programming Language :: Python :: 3.12
13
- Classifier: Programming Language :: Rust
14
- Classifier: Topic :: Security :: Cryptography
15
- Summary: Validator for SignedShot media authenticity proofs
16
- Keywords: signedshot,media,authenticity,validation,cryptography
17
- License: MIT
18
- Requires-Python: >=3.8
19
- Description-Content-Type: text/markdown; charset=UTF-8; variant=GFM
20
- Project-URL: Homepage, https://signedshot.io
21
- Project-URL: Repository, https://github.com/SignedShot/signedshot-validator
22
-
23
- # SignedShot Validator
24
-
25
- Validator for SignedShot media authenticity proofs.
26
-
27
- ## Overview
28
-
29
- SignedShot is a media authenticity verification system. This validator checks cryptographic proofs (sidecars) that verify media was captured on a legitimate device.
30
-
31
- ## Installation
32
-
33
- ```bash
34
- cargo install signedshot-validator
35
- ```
36
-
37
- ## Usage
38
-
39
- ```bash
40
- signedshot validate photo.sidecar.json
41
- ```
42
-
43
- ## Development
44
-
45
- Run these checks locally before pushing (same as CI):
46
-
47
- ```bash
48
- cargo fmt --check # Check formatting
49
- cargo clippy -- -D warnings # Lint
50
- cargo test # Run tests
51
- cargo build --release # Build
52
- ```
53
-
54
- To fix formatting automatically:
55
-
56
- ```bash
57
- cargo fmt
58
- ```
59
-
60
- ## License
61
-
62
- MIT
63
-
@@ -1,6 +0,0 @@
1
- signedshot\__init__.py,sha256=ww6iw6i1gj2f3bQRml7ic45xkfgo-DHCnWCXbiDU0II,269
2
- signedshot\__init__.pyi,sha256=X4_tPFq7p75rvVXGvlWE7rah2TzX3fdMWPZuGJy9_kY,3988
3
- signedshot\signedshot.cp312-win_amd64.pyd,sha256=82SP6v_G3yksMAaUAzjD-E6maS3wtsWL3De-mxlb9qQ,4018176
4
- signedshot-0.1.4.dist-info\METADATA,sha256=EhuRDUAwFXK-QgEqTVPckI87AWlk1a6bsbcNBM1XpGA,1644
5
- signedshot-0.1.4.dist-info\WHEEL,sha256=xGRyMfC2nQGcuDMHm_QfSkv2HVaAAAo1DvjuUmalQqw,97
6
- signedshot-0.1.4.dist-info\RECORD,,