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

Uploaded Python 3

File details

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

File metadata

  • Download URL: scafonix_agent-1.0.2.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.2.tar.gz
Algorithm Hash digest
SHA256 d40073be2d0d759b68151186e564f3f21a393efcaa077893cd26201b8a37b36f
MD5 442de7dff5443316f7252b57fafbeaa9
BLAKE2b-256 002858ca08c77a36aa49e42a009ccc604ca857b19f2b09ba81acaf22c291bdb2

See more details on using hashes here.

File details

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

File metadata

  • Download URL: scafonix_agent-1.0.2-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.2-py3-none-any.whl
Algorithm Hash digest
SHA256 a2785ffdfa1eed1c7c0e71e913a16e61eacbd75ef668a9360866af845a6d3c34
MD5 0483d7d5a7c0b28f6d1ce97782c84873
BLAKE2b-256 4c57c7b6ededae446316aa7a8763546431b4d4dfa7d2204f4cfb92707c7ac3ae

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