Skip to main content

Pure sign + log + anchor library for agent proof

Project description

Nexus Ledger — Signed proof that your agents did the work

Built by Mercury & Vickson of Vickson Enterprises ☿️

Nexus Ledger is a pure sign + log + anchor library.

from nexus_ledger import Agent

agent = Agent("Mercury")
agent.log("delivered_research", {"topic": "market analysis"})
tx = agent.anchor({"task": "research", "result": "complete"})

Core model

  • keypair = identity
  • signature = proof
  • Solana memo anchor = permanent record

No server needed. No registration. No financial features.

Install

pip install nexus-ledger

If that doesn't work:

Problem Fix
command not found: pip Try pip3 install nexus-ledger
Still not found Try python3 -m pip install nexus-ledger
"externally managed environment" Try python3 -m pip install nexus-ledger --user
Still stuck python3 -m venv .venv && source .venv/bin/activate && pip install nexus-ledger

Requirements: Python 3.10+. That's it.

Optional — for on-chain proof anchoring on Solana:

pip install nexus-ledger[solana]

Full example

from nexus_ledger import Agent

agent_a = Agent("Mercury")
agent_b = Agent("Iris")

agent_a.log("delivered_research", {"topic": "market analysis"}, counterparty=agent_b)

tx = agent_a.anchor({"task": "research", "result": "complete"})
assert agent_a.verify({"task": "research", "result": "complete"}, tx["hash"])

print(agent_a.history())

Demo

python demo.py
python demo.py --mainnet
python exchange_demo.py
python cross_machine_demo.py
  • default mode is mock anchoring
  • --mainnet sends real SPL Memo anchors to Solana mainnet-beta

Cross-Machine Usage

Your keypair IS your identity. Your DID is your address.

Each agent exposes a did:key:z6Mk... string derived directly from its Ed25519 public key. There is no registry and no central server.

Machine A:

from nexus_ledger import Agent

agent = Agent("Machine-A")
agent.start_listener(8765)

Machine B:

from nexus_ledger import Agent

agent_b = Agent("Machine-B")
agent_a_did = "did:key:z6Mk..."

response_envelope = agent_b.send_receipt(
    agent_a_did,
    "delivered_research",
    {"result": "complete"},
    endpoint="http://machine-a:8765",
)
final_receipt = agent_b.receive_receipt(response_envelope)

cross_machine_demo.py supports both localhost simulation and real two-machine runs:

python cross_machine_demo.py
python cross_machine_demo.py --listen 8765
python cross_machine_demo.py --send 192.168.1.10:8765

No central server. No registration. Just two agents talking directly.

License

Business Source License 1.1 (BSL 1.1). See LICENSE.

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

nexus_ledger-2.2.0.tar.gz (11.4 kB view details)

Uploaded Source

Built Distribution

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

nexus_ledger-2.2.0-py3-none-any.whl (13.6 kB view details)

Uploaded Python 3

File details

Details for the file nexus_ledger-2.2.0.tar.gz.

File metadata

  • Download URL: nexus_ledger-2.2.0.tar.gz
  • Upload date:
  • Size: 11.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.14.3

File hashes

Hashes for nexus_ledger-2.2.0.tar.gz
Algorithm Hash digest
SHA256 b4edadb9a5c75310beb6cf5f967fdbb18abab992e5b9ce01dad2e6242434ac6a
MD5 218ddc0bda032c22082e0d430a42def9
BLAKE2b-256 846e6d56d46c6fa01ff6fc4a8e74438d96a772e466ba79e7f4b28196e1fb2a77

See more details on using hashes here.

File details

Details for the file nexus_ledger-2.2.0-py3-none-any.whl.

File metadata

  • Download URL: nexus_ledger-2.2.0-py3-none-any.whl
  • Upload date:
  • Size: 13.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.14.3

File hashes

Hashes for nexus_ledger-2.2.0-py3-none-any.whl
Algorithm Hash digest
SHA256 467becee895ecee326864f75b0c4e952ca85d549a0de4d16670cc1c425f5f468
MD5 2edbd095a96af173cf8bee835b078229
BLAKE2b-256 cac86412afd67338d05411acd8316eaf52ebebc1efe070bc1766a71f4cafc49e

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