Skip to content

Commit caf24e8

Browse files
docs: add ln_trust_attest to README, bump to v0.5.1
Phase 5.1: Community reputation with live NIP-85 trust attestation sync. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
1 parent 90be934 commit caf24e8

3 files changed

Lines changed: 15 additions & 3 deletions

File tree

README.md

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -189,9 +189,20 @@ ln_preflight(vendor="bitrefill.com", amount_sats=500)
189189
# → {decision: {verdict: "approve", budget_remaining_today: 4500, trust_score: 0.89}}
190190
```
191191

192+
### `ln_trust_attest`
193+
194+
Publish a trust attestation for a vendor to Nostr relays (NIP-85).
195+
196+
```
197+
ln_trust_attest(vendor="bitrefill.com")
198+
# → {status: "attested", vendor: "bitrefill.com", score: 0.85, pushed: 1}
199+
```
200+
201+
Score is auto-calculated from local reputation if not provided. Other agents pull these attestations via `memory_sync` to build community trust scores.
202+
192203
### `memory_sync`
193204

194-
Sync memories with Nostr relays (push and/or pull).
205+
Sync memories with Nostr relays (push and/or pull). Also pulls NIP-85 trust assertions for vendors in local transaction history.
195206

196207
```
197208
memory_sync(direction="both") # "push", "pull", or "both"
@@ -356,6 +367,7 @@ All data is stored locally:
356367
- [x] Phase 3: Nostr relay sync (NIP-78 events, Schnorr signing, bidirectional sync)
357368
- [x] Phase 4: L402 payment gateway (macaroons, Phoenixd, Starlette HTTP gateway)
358369
- [x] Phase 5: Compliance & trust layer (budget enforcement, vendor KYC, community reputation, payment pre-flight gate)
370+
- [x] Phase 5.1: Community reputation — live NIP-85 trust attestation sync
359371

360372
## Star History
361373

lightning_memory/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
"""Lightning Memory: Decentralized agent memory for the Lightning economy."""
22

3-
__version__ = "0.5.0"
3+
__version__ = "0.5.1"

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ build-backend = "hatchling.build"
44

55
[project]
66
name = "lightning-memory"
7-
version = "0.5.0"
7+
version = "0.5.1"
88
description = "Decentralized agent memory for the Lightning economy. Nostr identity, L402 payments, semantic search."
99
readme = "README.md"
1010
license = "MIT"

0 commit comments

Comments
 (0)