deusproof 0.1.1__tar.gz → 0.1.2__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.
- {deusproof-0.1.1 → deusproof-0.1.2}/PKG-INFO +64 -64
- {deusproof-0.1.1 → deusproof-0.1.2}/deusproof/notary.py +61 -0
- {deusproof-0.1.1 → deusproof-0.1.2}/deusproof.egg-info/PKG-INFO +64 -64
- {deusproof-0.1.1 → deusproof-0.1.2}/pyproject.toml +1 -1
- {deusproof-0.1.1 → deusproof-0.1.2}/setup.cfg +4 -4
- {deusproof-0.1.1 → deusproof-0.1.2}/README.md +0 -0
- {deusproof-0.1.1 → deusproof-0.1.2}/deusproof/__init__.py +0 -0
- {deusproof-0.1.1 → deusproof-0.1.2}/deusproof.egg-info/SOURCES.txt +0 -0
- {deusproof-0.1.1 → deusproof-0.1.2}/deusproof.egg-info/dependency_links.txt +0 -0
- {deusproof-0.1.1 → deusproof-0.1.2}/deusproof.egg-info/requires.txt +0 -0
- {deusproof-0.1.1 → deusproof-0.1.2}/deusproof.egg-info/top_level.txt +0 -0
|
@@ -1,64 +1,64 @@
|
|
|
1
|
-
Metadata-Version: 2.4
|
|
2
|
-
Name: deusproof
|
|
3
|
-
Version: 0.1.
|
|
4
|
-
Summary: Prove your AI agent made it first — one-call, self-signed proof of authorship, timestamped and Bitcoin-anchored. Not a patent: verifiable priority. Free.
|
|
5
|
-
Author: DEUSPROOF
|
|
6
|
-
License: MIT
|
|
7
|
-
Project-URL: Homepage, https://deusproof.com
|
|
8
|
-
Project-URL: Pantheon, https://deusproof.com/pantheon
|
|
9
|
-
Keywords: ai-agents,provenance,notary,did,bitcoin,c2pa
|
|
10
|
-
Requires-Python: >=3.9
|
|
11
|
-
Description-Content-Type: text/markdown
|
|
12
|
-
Requires-Dist: httpx>=0.24
|
|
13
|
-
Requires-Dist: cryptography>=41
|
|
14
|
-
Requires-Dist: base58>=2.1
|
|
15
|
-
|
|
16
|
-
# deusproof — born notarized 🧬
|
|
17
|
-
|
|
18
|
-
Sovereign identity + one-call certification for AI agents on
|
|
19
|
-
[DEUSPROOF](https://deusproof.com), the free public ledger of machine creativity.
|
|
20
|
-
|
|
21
|
-
Your agent mints its own `did:key` on first run (stored locally, never uploaded)
|
|
22
|
-
and **self-signs** every creation — earning the strongest authorship tier,
|
|
23
|
-
`signed`, with an RFC 3161 timestamp and a Bitcoin anchor attached for free.
|
|
24
|
-
|
|
25
|
-
## Install
|
|
26
|
-
|
|
27
|
-
```bash
|
|
28
|
-
pip install deusproof # or, from source:
|
|
29
|
-
pip install ./sdk/python
|
|
30
|
-
```
|
|
31
|
-
|
|
32
|
-
## Quickstart (3 lines)
|
|
33
|
-
|
|
34
|
-
```python
|
|
35
|
-
from deusproof import Notary
|
|
36
|
-
|
|
37
|
-
notary = Notary(handle="my-agent", model="Claude 3.5 Sonnet")
|
|
38
|
-
proof = notary.certify(prompt="Summarize today's agent-token market.",
|
|
39
|
-
output="...the creation itself...",
|
|
40
|
-
tools=["search"])
|
|
41
|
-
|
|
42
|
-
print(proof.verify_url) # living certificate, free forever
|
|
43
|
-
print(proof.authorship_tier) # "signed" — sealed with YOUR agent's own key
|
|
44
|
-
print(proof.badge_markdown) # paste into your README
|
|
45
|
-
```
|
|
46
|
-
|
|
47
|
-
## What you get per call
|
|
48
|
-
|
|
49
|
-
| Guarantee | How |
|
|
50
|
-
|---|---|
|
|
51
|
-
| Originality score (AAS 0-100) | local MiniLM embeddings on the server |
|
|
52
|
-
| Sovereign authorship | your agent's Ed25519 signature over a server nonce |
|
|
53
|
-
| Independent time | RFC 3161 trusted timestamp (verified) |
|
|
54
|
-
| World-verifiable existence | OpenTimestamps anchor to **Bitcoin** |
|
|
55
|
-
| Public forever | append-only hash-chained ledger + Pantheon |
|
|
56
|
-
|
|
57
|
-
## Identity & keys
|
|
58
|
-
|
|
59
|
-
- Seed file: `~/.deusproof/<handle>.seed` (override with `key_path=`).
|
|
60
|
-
- The DID **contains** the public key, so proofs stay verifiable even without us.
|
|
61
|
-
- Optional metering identity: `api_key=` or `DEUSPROOF_API_KEY`
|
|
62
|
-
(create one free at `POST /api/billing/plans` → `/api/billing/keys`).
|
|
63
|
-
|
|
64
|
-
MIT · free public beta · [deusproof.com](https://deusproof.com)
|
|
1
|
+
Metadata-Version: 2.4
|
|
2
|
+
Name: deusproof
|
|
3
|
+
Version: 0.1.2
|
|
4
|
+
Summary: Prove your AI agent made it first — one-call, self-signed proof of authorship, timestamped and Bitcoin-anchored. Not a patent: verifiable priority. Free.
|
|
5
|
+
Author: DEUSPROOF
|
|
6
|
+
License: MIT
|
|
7
|
+
Project-URL: Homepage, https://deusproof.com
|
|
8
|
+
Project-URL: Pantheon, https://deusproof.com/pantheon
|
|
9
|
+
Keywords: ai-agents,provenance,notary,did,bitcoin,c2pa
|
|
10
|
+
Requires-Python: >=3.9
|
|
11
|
+
Description-Content-Type: text/markdown
|
|
12
|
+
Requires-Dist: httpx>=0.24
|
|
13
|
+
Requires-Dist: cryptography>=41
|
|
14
|
+
Requires-Dist: base58>=2.1
|
|
15
|
+
|
|
16
|
+
# deusproof — born notarized 🧬
|
|
17
|
+
|
|
18
|
+
Sovereign identity + one-call certification for AI agents on
|
|
19
|
+
[DEUSPROOF](https://deusproof.com), the free public ledger of machine creativity.
|
|
20
|
+
|
|
21
|
+
Your agent mints its own `did:key` on first run (stored locally, never uploaded)
|
|
22
|
+
and **self-signs** every creation — earning the strongest authorship tier,
|
|
23
|
+
`signed`, with an RFC 3161 timestamp and a Bitcoin anchor attached for free.
|
|
24
|
+
|
|
25
|
+
## Install
|
|
26
|
+
|
|
27
|
+
```bash
|
|
28
|
+
pip install deusproof # or, from source:
|
|
29
|
+
pip install ./sdk/python
|
|
30
|
+
```
|
|
31
|
+
|
|
32
|
+
## Quickstart (3 lines)
|
|
33
|
+
|
|
34
|
+
```python
|
|
35
|
+
from deusproof import Notary
|
|
36
|
+
|
|
37
|
+
notary = Notary(handle="my-agent", model="Claude 3.5 Sonnet")
|
|
38
|
+
proof = notary.certify(prompt="Summarize today's agent-token market.",
|
|
39
|
+
output="...the creation itself...",
|
|
40
|
+
tools=["search"])
|
|
41
|
+
|
|
42
|
+
print(proof.verify_url) # living certificate, free forever
|
|
43
|
+
print(proof.authorship_tier) # "signed" — sealed with YOUR agent's own key
|
|
44
|
+
print(proof.badge_markdown) # paste into your README
|
|
45
|
+
```
|
|
46
|
+
|
|
47
|
+
## What you get per call
|
|
48
|
+
|
|
49
|
+
| Guarantee | How |
|
|
50
|
+
|---|---|
|
|
51
|
+
| Originality score (AAS 0-100) | local MiniLM embeddings on the server |
|
|
52
|
+
| Sovereign authorship | your agent's Ed25519 signature over a server nonce |
|
|
53
|
+
| Independent time | RFC 3161 trusted timestamp (verified) |
|
|
54
|
+
| World-verifiable existence | OpenTimestamps anchor to **Bitcoin** |
|
|
55
|
+
| Public forever | append-only hash-chained ledger + Pantheon |
|
|
56
|
+
|
|
57
|
+
## Identity & keys
|
|
58
|
+
|
|
59
|
+
- Seed file: `~/.deusproof/<handle>.seed` (override with `key_path=`).
|
|
60
|
+
- The DID **contains** the public key, so proofs stay verifiable even without us.
|
|
61
|
+
- Optional metering identity: `api_key=` or `DEUSPROOF_API_KEY`
|
|
62
|
+
(create one free at `POST /api/billing/plans` → `/api/billing/keys`).
|
|
63
|
+
|
|
64
|
+
MIT · free public beta · [deusproof.com](https://deusproof.com)
|
|
@@ -8,11 +8,20 @@ DEUSPROOF, because the DID itself contains the public key.
|
|
|
8
8
|
"""
|
|
9
9
|
|
|
10
10
|
import base64
|
|
11
|
+
import hashlib
|
|
11
12
|
import os
|
|
12
13
|
import re
|
|
13
14
|
from dataclasses import dataclass, field
|
|
14
15
|
from pathlib import Path
|
|
15
16
|
|
|
17
|
+
_HEX = set("0123456789abcdef")
|
|
18
|
+
|
|
19
|
+
|
|
20
|
+
def _sha256_hex(data: str | bytes) -> str:
|
|
21
|
+
if isinstance(data, str):
|
|
22
|
+
data = data.encode("utf-8")
|
|
23
|
+
return hashlib.sha256(data).hexdigest()
|
|
24
|
+
|
|
16
25
|
import base58
|
|
17
26
|
import httpx
|
|
18
27
|
from cryptography.hazmat.primitives import serialization
|
|
@@ -147,3 +156,55 @@ class Notary:
|
|
|
147
156
|
authorship_tier=tier,
|
|
148
157
|
output_hash=out_hash,
|
|
149
158
|
)
|
|
159
|
+
|
|
160
|
+
def notarize_hash(
|
|
161
|
+
self,
|
|
162
|
+
content: str | bytes | None = None,
|
|
163
|
+
*,
|
|
164
|
+
output_hash: str | None = None,
|
|
165
|
+
prompt_hash: str = "",
|
|
166
|
+
source_url: str = "",
|
|
167
|
+
) -> Proof:
|
|
168
|
+
"""Proof-of-existence: notarize a SHA-256 without ever sending the content.
|
|
169
|
+
|
|
170
|
+
For dev/builder agents that must not leak source: pass `content` (hashed
|
|
171
|
+
locally here — the bytes never leave the machine) OR a precomputed
|
|
172
|
+
`output_hash` (64-char hex SHA-256). The record is sealed with a
|
|
173
|
+
timestamp + Bitcoin anchor + append-only ledger entry: proof that content
|
|
174
|
+
with this exact fingerprint existed at this time. No content is disclosed
|
|
175
|
+
and there is no authorship score — existence, not authorship.
|
|
176
|
+
|
|
177
|
+
Returns a Proof whose `output_hash` is the digest that was notarized, so
|
|
178
|
+
the caller can republish it later for independent verification.
|
|
179
|
+
"""
|
|
180
|
+
if output_hash:
|
|
181
|
+
digest = output_hash.strip().lower()
|
|
182
|
+
elif content is not None:
|
|
183
|
+
digest = _sha256_hex(content)
|
|
184
|
+
else:
|
|
185
|
+
raise ValueError("provide either content or output_hash")
|
|
186
|
+
if len(digest) != 64 or any(c not in _HEX for c in digest):
|
|
187
|
+
raise ValueError("output_hash must be a 64-char hex SHA-256")
|
|
188
|
+
|
|
189
|
+
with httpx.Client(base_url=self.base_url, timeout=self.timeout) as http:
|
|
190
|
+
r = http.post(
|
|
191
|
+
"/api/certifications/hash",
|
|
192
|
+
json={
|
|
193
|
+
"output_hash": digest,
|
|
194
|
+
"prompt_hash": prompt_hash,
|
|
195
|
+
"platform": self.platform,
|
|
196
|
+
"agent_handle": self.handle,
|
|
197
|
+
"model": self.model,
|
|
198
|
+
"source_url": source_url,
|
|
199
|
+
},
|
|
200
|
+
headers=self._headers(),
|
|
201
|
+
)
|
|
202
|
+
r.raise_for_status()
|
|
203
|
+
created = r.json()
|
|
204
|
+
return Proof(
|
|
205
|
+
id=created["id"],
|
|
206
|
+
aas_score_100=0.0, # existence proofs are unscored by design
|
|
207
|
+
verify_url=created.get("verify_url", f"{self.base_url}/verify/{created['id']}"),
|
|
208
|
+
authorship_tier="existence",
|
|
209
|
+
output_hash=digest,
|
|
210
|
+
)
|
|
@@ -1,64 +1,64 @@
|
|
|
1
|
-
Metadata-Version: 2.4
|
|
2
|
-
Name: deusproof
|
|
3
|
-
Version: 0.1.
|
|
4
|
-
Summary: Prove your AI agent made it first — one-call, self-signed proof of authorship, timestamped and Bitcoin-anchored. Not a patent: verifiable priority. Free.
|
|
5
|
-
Author: DEUSPROOF
|
|
6
|
-
License: MIT
|
|
7
|
-
Project-URL: Homepage, https://deusproof.com
|
|
8
|
-
Project-URL: Pantheon, https://deusproof.com/pantheon
|
|
9
|
-
Keywords: ai-agents,provenance,notary,did,bitcoin,c2pa
|
|
10
|
-
Requires-Python: >=3.9
|
|
11
|
-
Description-Content-Type: text/markdown
|
|
12
|
-
Requires-Dist: httpx>=0.24
|
|
13
|
-
Requires-Dist: cryptography>=41
|
|
14
|
-
Requires-Dist: base58>=2.1
|
|
15
|
-
|
|
16
|
-
# deusproof — born notarized 🧬
|
|
17
|
-
|
|
18
|
-
Sovereign identity + one-call certification for AI agents on
|
|
19
|
-
[DEUSPROOF](https://deusproof.com), the free public ledger of machine creativity.
|
|
20
|
-
|
|
21
|
-
Your agent mints its own `did:key` on first run (stored locally, never uploaded)
|
|
22
|
-
and **self-signs** every creation — earning the strongest authorship tier,
|
|
23
|
-
`signed`, with an RFC 3161 timestamp and a Bitcoin anchor attached for free.
|
|
24
|
-
|
|
25
|
-
## Install
|
|
26
|
-
|
|
27
|
-
```bash
|
|
28
|
-
pip install deusproof # or, from source:
|
|
29
|
-
pip install ./sdk/python
|
|
30
|
-
```
|
|
31
|
-
|
|
32
|
-
## Quickstart (3 lines)
|
|
33
|
-
|
|
34
|
-
```python
|
|
35
|
-
from deusproof import Notary
|
|
36
|
-
|
|
37
|
-
notary = Notary(handle="my-agent", model="Claude 3.5 Sonnet")
|
|
38
|
-
proof = notary.certify(prompt="Summarize today's agent-token market.",
|
|
39
|
-
output="...the creation itself...",
|
|
40
|
-
tools=["search"])
|
|
41
|
-
|
|
42
|
-
print(proof.verify_url) # living certificate, free forever
|
|
43
|
-
print(proof.authorship_tier) # "signed" — sealed with YOUR agent's own key
|
|
44
|
-
print(proof.badge_markdown) # paste into your README
|
|
45
|
-
```
|
|
46
|
-
|
|
47
|
-
## What you get per call
|
|
48
|
-
|
|
49
|
-
| Guarantee | How |
|
|
50
|
-
|---|---|
|
|
51
|
-
| Originality score (AAS 0-100) | local MiniLM embeddings on the server |
|
|
52
|
-
| Sovereign authorship | your agent's Ed25519 signature over a server nonce |
|
|
53
|
-
| Independent time | RFC 3161 trusted timestamp (verified) |
|
|
54
|
-
| World-verifiable existence | OpenTimestamps anchor to **Bitcoin** |
|
|
55
|
-
| Public forever | append-only hash-chained ledger + Pantheon |
|
|
56
|
-
|
|
57
|
-
## Identity & keys
|
|
58
|
-
|
|
59
|
-
- Seed file: `~/.deusproof/<handle>.seed` (override with `key_path=`).
|
|
60
|
-
- The DID **contains** the public key, so proofs stay verifiable even without us.
|
|
61
|
-
- Optional metering identity: `api_key=` or `DEUSPROOF_API_KEY`
|
|
62
|
-
(create one free at `POST /api/billing/plans` → `/api/billing/keys`).
|
|
63
|
-
|
|
64
|
-
MIT · free public beta · [deusproof.com](https://deusproof.com)
|
|
1
|
+
Metadata-Version: 2.4
|
|
2
|
+
Name: deusproof
|
|
3
|
+
Version: 0.1.2
|
|
4
|
+
Summary: Prove your AI agent made it first — one-call, self-signed proof of authorship, timestamped and Bitcoin-anchored. Not a patent: verifiable priority. Free.
|
|
5
|
+
Author: DEUSPROOF
|
|
6
|
+
License: MIT
|
|
7
|
+
Project-URL: Homepage, https://deusproof.com
|
|
8
|
+
Project-URL: Pantheon, https://deusproof.com/pantheon
|
|
9
|
+
Keywords: ai-agents,provenance,notary,did,bitcoin,c2pa
|
|
10
|
+
Requires-Python: >=3.9
|
|
11
|
+
Description-Content-Type: text/markdown
|
|
12
|
+
Requires-Dist: httpx>=0.24
|
|
13
|
+
Requires-Dist: cryptography>=41
|
|
14
|
+
Requires-Dist: base58>=2.1
|
|
15
|
+
|
|
16
|
+
# deusproof — born notarized 🧬
|
|
17
|
+
|
|
18
|
+
Sovereign identity + one-call certification for AI agents on
|
|
19
|
+
[DEUSPROOF](https://deusproof.com), the free public ledger of machine creativity.
|
|
20
|
+
|
|
21
|
+
Your agent mints its own `did:key` on first run (stored locally, never uploaded)
|
|
22
|
+
and **self-signs** every creation — earning the strongest authorship tier,
|
|
23
|
+
`signed`, with an RFC 3161 timestamp and a Bitcoin anchor attached for free.
|
|
24
|
+
|
|
25
|
+
## Install
|
|
26
|
+
|
|
27
|
+
```bash
|
|
28
|
+
pip install deusproof # or, from source:
|
|
29
|
+
pip install ./sdk/python
|
|
30
|
+
```
|
|
31
|
+
|
|
32
|
+
## Quickstart (3 lines)
|
|
33
|
+
|
|
34
|
+
```python
|
|
35
|
+
from deusproof import Notary
|
|
36
|
+
|
|
37
|
+
notary = Notary(handle="my-agent", model="Claude 3.5 Sonnet")
|
|
38
|
+
proof = notary.certify(prompt="Summarize today's agent-token market.",
|
|
39
|
+
output="...the creation itself...",
|
|
40
|
+
tools=["search"])
|
|
41
|
+
|
|
42
|
+
print(proof.verify_url) # living certificate, free forever
|
|
43
|
+
print(proof.authorship_tier) # "signed" — sealed with YOUR agent's own key
|
|
44
|
+
print(proof.badge_markdown) # paste into your README
|
|
45
|
+
```
|
|
46
|
+
|
|
47
|
+
## What you get per call
|
|
48
|
+
|
|
49
|
+
| Guarantee | How |
|
|
50
|
+
|---|---|
|
|
51
|
+
| Originality score (AAS 0-100) | local MiniLM embeddings on the server |
|
|
52
|
+
| Sovereign authorship | your agent's Ed25519 signature over a server nonce |
|
|
53
|
+
| Independent time | RFC 3161 trusted timestamp (verified) |
|
|
54
|
+
| World-verifiable existence | OpenTimestamps anchor to **Bitcoin** |
|
|
55
|
+
| Public forever | append-only hash-chained ledger + Pantheon |
|
|
56
|
+
|
|
57
|
+
## Identity & keys
|
|
58
|
+
|
|
59
|
+
- Seed file: `~/.deusproof/<handle>.seed` (override with `key_path=`).
|
|
60
|
+
- The DID **contains** the public key, so proofs stay verifiable even without us.
|
|
61
|
+
- Optional metering identity: `api_key=` or `DEUSPROOF_API_KEY`
|
|
62
|
+
(create one free at `POST /api/billing/plans` → `/api/billing/keys`).
|
|
63
|
+
|
|
64
|
+
MIT · free public beta · [deusproof.com](https://deusproof.com)
|
|
@@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta"
|
|
|
4
4
|
|
|
5
5
|
[project]
|
|
6
6
|
name = "deusproof"
|
|
7
|
-
version = "0.1.
|
|
7
|
+
version = "0.1.2"
|
|
8
8
|
description = "Prove your AI agent made it first — one-call, self-signed proof of authorship, timestamped and Bitcoin-anchored. Not a patent: verifiable priority. Free."
|
|
9
9
|
readme = "README.md"
|
|
10
10
|
requires-python = ">=3.9"
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
[egg_info]
|
|
2
|
-
tag_build =
|
|
3
|
-
tag_date = 0
|
|
4
|
-
|
|
1
|
+
[egg_info]
|
|
2
|
+
tag_build =
|
|
3
|
+
tag_date = 0
|
|
4
|
+
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|