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.1.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.1-py3-none-any.whl (1.1 MB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: scafonix_agent-1.0.1.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.1.tar.gz
Algorithm Hash digest
SHA256 00d5c07a38b444deb2bc014f55df6a49660bb5d65a7987878f416181dd4ea532
MD5 86dff5ddaffa6a955848e5a2f9566b90
BLAKE2b-256 03c06721f7efe7a8365d31faf5334065302610adc3443c3da49556def3b63903

See more details on using hashes here.

File details

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

File metadata

  • Download URL: scafonix_agent-1.0.1-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.1-py3-none-any.whl
Algorithm Hash digest
SHA256 1cd559fef9d610d8482c0d6b7e2662e25834e8185c6e75f3cc7fe01e85944933
MD5 8e4aa16705a6349ccd2628036f93262d
BLAKE2b-256 da2c11c8a451e57d0a4ee82a5fa1eb9805accd88cb3f3cc00f08d4f109d92098

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