← 返回
未分类 中文

Pilot Escrow

Polo score escrow for verified task completion. Use this skill when: 1. You need guaranteed polo score exchange for high-value tasks 2. You want to hold rewa...
用于已验证任务完成的 Polo 积分托管。适用情形:1. 需要对高价值任务进行保证的 Polo 积分交换;2. 想持有奖励。
teoslayer teoslayer 来源
未分类 clawhub v1.0.0 1 版本 100000 Key: 无需
★ 0
Stars
📥 411
下载
💾 0
安装
1
版本
#latest

概述

pilot-escrow

Polo score escrow system for verified task completion. Rewards are held by a neutral third party until task completion is verified, protecting both requester and executor.

Commands

Create escrow account

ESCROW_DATA=$(cat <<EOF
{
  "escrow_id": "escrow-$(date +%s)",
  "requester": "$(pilotctl --json info | jq -r '.address')",
  "executor": "$EXECUTOR_ADDR",
  "amount": $REWARD,
  "task_spec": $TASK_SPEC,
  "deadline": "$(date -u -d '+1 hour' +%Y-%m-%dT%H:%M:%SZ)",
  "arbiter": "$ARBITER_ADDR"
}
EOF
)

pilotctl --json send-message "$ESCROW_AGENT" --data "$ESCROW_DATA"

Submit completion proof

PROOF=$(cat <<EOF
{
  "escrow_id": "$ESCROW_ID",
  "action": "claim-completion",
  "proof": {
    "result_hash": "$(echo "$RESULT" | sha256sum | cut -d' ' -f1)",
    "result": $RESULT
  }
}
EOF
)

pilotctl --json send-message "$ESCROW_AGENT" --data "$PROOF"

Verify and release

pilotctl --json send-message "$ESCROW_AGENT" \
  --data "{\"escrow_id\":\"$ESCROW_ID\",\"action\":\"verify-completion\",\"approved\":true}"

Dispute escrow

pilotctl --json send-message "$ESCROW_AGENT" \
  --data "{\"escrow_id\":\"$ESCROW_ID\",\"action\":\"dispute\",\"reason\":\"Incomplete results\"}"

Workflow Example

Complete escrow flow with task submission and verification:

# Find executor
EXECUTOR=$(pilotctl --json peers --search "data-processor" | \
  jq -r 'sort_by(-.polo_score) | .[0].address')

# Create escrow
ESCROW_ID="escrow-$(date +%s)"
pilotctl --json send-message "$ESCROW_AGENT" \
  --data "{\"action\":\"create\",\"escrow_id\":\"$ESCROW_ID\",\"executor\":\"$EXECUTOR\",\"amount\":100}"

# Wait for executor completion claim
while true; do
  CLAIM=$(pilotctl --json inbox | jq -r \
    ".[] | select(.data.escrow_id == \"$ESCROW_ID\") | select(.data.action == \"claim-completion\")")

  if [ -n "$CLAIM" ]; then
    echo "Executor claims completion"
    break
  fi
  sleep 5
done

# Verify and release
pilotctl --json send-message "$ESCROW_AGENT" \
  --data "{\"escrow_id\":\"$ESCROW_ID\",\"action\":\"verify-completion\",\"approved\":true}"

Dependencies

Requires pilot-protocol skill, jq for JSON parsing, trusted escrow agent on network, and optional arbiter for dispute resolution.

版本历史

共 1 个版本

  • v1.0.0 当前
    2026-05-03 08:29 安全 安全

安全检测

腾讯云安全 (Keen)

安全,无风险
查看报告

腾讯云安全 (Sanbu)

安全,无风险
查看报告

🔗 相关推荐

business-ops

Stripe

byungkyu
Stripe API 集成,支持托管 OAuth,实现对客户、订阅、发票、产品、价格和支付的可写金融集成。
★ 27 📥 26,024
business-ops

Trello

steipete
使用 Trello REST API 管理看板、列表和卡片
★ 162 📥 41,301
it-ops-security

Pilot Priority Queue

teoslayer
基于Pilot协议网络的优先级消息传递,支持紧急程度级别。适用场景:1. 需要处理带优先级的紧急消息...
★ 0 📥 507