Skip to main content

Nostr Web of Trust integration for AgentMesh trust engine

Project description

Nostr Web of Trust Integration for AgentMesh

Trust scoring for AgentMesh agents using MaximumSats Nostr Web of Trust (NIP-85).

Features

  • WoT Trust Scores — Map Nostr pubkey trust scores to AgentMesh trust engine
  • Sybil Detection — Detect potential Sybil attacks on agent identities
  • Trust Circles — Discover direct trust connections for agents
  • Transitive Trust — Support depth 1-3 transitive trust scoring

Installation

pip install agentmesh-nostr-wot

Usage

from agentmesh.trust import TrustEngine
from agentmesh_nostr_wot import NostrWoTProvider

# Create provider pointing to WoT API
provider = NostrWoTProvider(
    wot_api="https://wot.klabo.world",
    # Optional: map agent IDs to Nostr pubkeys
    pubkey_resolver=my_resolver
)

# Register with AgentMesh trust engine
engine = TrustEngine(external_providers=[provider])

# Get composite trust score (AgentMesh verification + Nostr WoT)
score = await engine.get_trust_score("agent-123")

API Reference

NostrWoTProvider

Method Description
get_trust_score(agent_id) Returns WoT-derived trust score (0.0-1.0)
check_sybil(agent_id) Returns sybil risk assessment
get_trust_circle(agent_id) Returns direct trust connections
verify_identity(agent_id, credentials) Verifies agent via Nostr pubkey

Contributing

This integration is maintained by the community. PRs welcome!

See the MaximumSats API docs for endpoint details.

Credits

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

nostr_wot_agentmesh-3.4.0.tar.gz (4.5 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

nostr_wot_agentmesh-3.4.0-py3-none-any.whl (4.8 kB view details)

Uploaded Python 3

File details

Details for the file nostr_wot_agentmesh-3.4.0.tar.gz.

File metadata

  • Download URL: nostr_wot_agentmesh-3.4.0.tar.gz
  • Upload date:
  • Size: 4.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: RestSharp/106.13.0.0

File hashes

Hashes for nostr_wot_agentmesh-3.4.0.tar.gz
Algorithm Hash digest
SHA256 e97b5e549b0668b77259cb9cc0f922a182c083481b2c2657424076c0c5d8e5af
MD5 aa56eadeaae98d9ee16409797a609aa9
BLAKE2b-256 c561c19351dcaf95932ba7587f8cd5cb4055f3c79f59d4d40686c74b136f2f8a

See more details on using hashes here.

File details

Details for the file nostr_wot_agentmesh-3.4.0-py3-none-any.whl.

File metadata

File hashes

Hashes for nostr_wot_agentmesh-3.4.0-py3-none-any.whl
Algorithm Hash digest
SHA256 6ebeb60e00319730308f0f7ca2e6060fcc1aa15788374d9f47199cd90dbac8b0
MD5 bf1d8d3de8efcd602f164090e5a8c1b8
BLAKE2b-256 2accd3ba9b6db92a0f5f5281787d1c5f7d01dd6c34fce421fcc03771e6ae976a

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page