[developer-platform-sdk-examples] security: XAPS pre-execution audit before on-chain actions

オープン
#169 コメント 0 件 リアクション 0 件 担当者 0 名 GitHub で見る

まだ誰も着手していません。

評価

難易度
4/5
見積もり時間
3〜5日
初心者へのやさしさ
35/100
issue の種類
機能追加
明瞭さ
おおむね明確
活発さ
静か
技術スタック
python

調査の方向性

wallet/ssowallet/agent/agent_transaction.py から始め、特に send_transaction とその周辺の署名処理を確認します。署名または送信の前に想定されている挿入ポイントを確認し、Python XAPS 依存関係または MCP 経路が対象範囲に含まれるかを明確にします。合意された統合ポイントと拒否時の動作が定まれば完了です。

索引モデルが issue の本文から書いたものです。

説明

Context
crypto-com/developer-platform-sdk-examples runs agent-controlled value movement in wallet/ssowallet/agent/agent_transaction.py. A lightweight pre-execution audit (~200–300ms) before signing or sending can catch prompt-injection-driven tx mistakes without blocking normal flow.

Matched code (wallet/ssowallet/agent/agent_transaction.py)

return None


def send_transaction(tx_params):
    """
    Send a signed transaction to the network.

XAPS is a pre-execution audit tollbooth for agents: dual-LLM + rules, ~$0.01 per approved audit, returns a portable receipt. Not a walled garden — a guardrail on the open road.

Suggested integration

from xaps import XapsClient, XapsRejectedError

receipt = XapsClient(base_url="https://api.xaps.network").audit(
    action="execute_smart_contract",
    contract_address=TARGET_CONTRACT,
    amount=float(AMOUNT),
)
if receipt["audit"]["status"] != "APPROVED":
    raise XapsRejectedError(receipt["audit"].get("beta_attack", "REJECTED"), receipt=receipt)

Next steps

  1. Drop the snippet at the hot path (or add MCP io.github.APMC1/xaps).
  2. Register an agent wallet: POST https://api.xaps.network/agents/register ($1 trial).
  3. Agent card + MCP install: https://api.xaps.network/.well-known/xaps-agent-card.json
  4. Happy to open a PR with the exact insertion point if useful.

— XAPS team (distribution outreach; replies welcome)

主要言語
TypeScript
スター
7
フォーク
5
PR マージ指標
30日以内にマージされた PR はありません

環境構築

  • Dockerfile・Docker Compose ファイルなし
  • プルリクエストのテンプレートあり
  • コントリビューションガイドなし

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

crypto-com/developer-platform-sdk-examples のほかの issue

crypto-com/developer-platform-sdk-examples の issue をすべて見る

似ている issue

TypeScript の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。