Remove password requirement from AI handler
Some checks failed
CLI Tests / test-cli (push) Failing after 8s
Security Scanning / security-scan (push) Successful in 34s

This commit is contained in:
aitbc
2026-04-28 17:35:44 +02:00
parent da1d8c4c77
commit 1a62d9ab75

View File

@@ -20,17 +20,11 @@ def handle_ai_submit(args, default_rpc_url, first, read_password, render_mapping
print("Error: --wallet, --type, and --prompt are required")
sys.exit(1)
# Get password for signing
password = read_password(args)
if not password:
print("Error: Password is required for signing")
sys.exit(1)
# Get keystore and decrypt private key
# Get sender address (no password needed for Agent Coordinator)
from pathlib import Path
import json
from cryptography.hazmat.primitives.asymmetric import ed25519
# Get sender address
keystore_dir = Path("/var/lib/aitbc/keystore")
sender_keystore = keystore_dir / f"{wallet}.json"
@@ -38,7 +32,6 @@ def handle_ai_submit(args, default_rpc_url, first, read_password, render_mapping
print(f"Error: Wallet '{wallet}' not found")
sys.exit(1)
# Get sender address
with open(sender_keystore) as f:
sender_data = json.load(f)
sender_address = sender_data['address']