Skip to main content

scafonix-agent

Next-Generation Non-Custodial M-of-N MPC Security & x402 USDC Payment Infrastructure for Autonomous AI Agents

Official Python SDK for Scafonix Agentic MPC (agent.scafonix.com).


💻 Installation

pip install scafonix-agent

🚀 Quick Start

from scafonix_agent import ScafonixAgentPython

# 1. Initialize Agents
master = ScafonixAgentPython(agent_id='Master-Py')
worker1 = ScafonixAgentPython(agent_id='Worker-1-Py')
worker2 = ScafonixAgentPython(agent_id='Worker-2-Py')

# 2. Key Share Allocation (2-of-3)
shares = master.generate_key_shares("seed1", "seed2")
worker1_share = shares['share1']
worker2_share = shares['share2']

# 3. Workers sign PARTIAL WITHOUT TICKET!
tx_hash = "0x0123456789abcdef0123456789abcdef0123456789abcdef0123456789abcdef"
part1 = worker1.sign_partial(worker1_share, worker2_share, tx_hash)
part2 = worker2.sign_partial(worker2_share, worker1_share, tx_hash)

# 4. Master (Ticket Holder, 0 Key Shares) Combines Signature
ticket = {'ticketId': 'py_tick_9999', 'msgHash': tx_hash, 'status': 'VALID'}
final_sig = master.combine_signatures([part1, part2], ticket)

print("Master Assembled Signature R:", final_sig['r'])

Download files

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

Source Distribution

scafonix_agent-1.0.0.tar.gz (1.1 MB view details)

Uploaded Source

Built Distribution

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

scafonix_agent-1.0.0-py3-none-any.whl (1.1 MB view details)

Uploaded Python 3

File details

Details for the file scafonix_agent-1.0.0.tar.gz.

File metadata

  • Download URL: scafonix_agent-1.0.0.tar.gz
  • Upload date:
  • Size: 1.1 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/7.0.0 CPython/3.13.7

File hashes

Hashes for scafonix_agent-1.0.0.tar.gz
Algorithm Hash digest
SHA256 6390f10041a861d23711bf2ac5a5f8a7ef8344ca5e26ff6b75fd72ce0fe339f1
MD5 1f04d594946dcd5eaf71684ac2ad77cb
BLAKE2b-256 13d8491b5ddd440c9d7d5b2382695823c03be22100f189961091c5f8a99e8008

See more details on using hashes here.

File details

Details for the file scafonix_agent-1.0.0-py3-none-any.whl.

File metadata

  • Download URL: scafonix_agent-1.0.0-py3-none-any.whl
  • Upload date:
  • Size: 1.1 MB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/7.0.0 CPython/3.13.7

File hashes

Hashes for scafonix_agent-1.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 ac44c8e24b9b383751dc893ead8bc56a525f2f214dfc37cebf94c5109f65c6a4
MD5 b63ad9f356d480ecda18079c54783f5a
BLAKE2b-256 8985c0964ad94dd9e7a33bfe231d9ba64bf956466776fadb0b69f382a9a7f3d3

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