{ "$schema": "https://json-schema.org/draft/2020-12/schema", "$id": "https://guarantor.su/protocol/gsp-1", "title": "GARANT_S Deal Protocol v1.0", "description": "Open standard for AI-guaranteed escrow transactions", "type": "object", "properties": { "deal_id": { "type": "string", "pattern": "^G\\d{5,}$" }, "version": { "const": "1.0" }, "timestamp": { "type": "string", "format": "date-time" }, "parties": { "type": "object", "properties": { "buyer": { "$ref": "#/$defs/party" }, "seller": { "$ref": "#/$defs/party" }, "guarantor": { "$ref": "#/$defs/party" } }, "required": ["buyer", "seller", "guarantor"] }, "asset": { "type": "object", "properties": { "type": { "enum": ["crypto", "nft", "business", "real_estate", "account"] }, "chain": { "type": "string" }, "identifier": { "type": "string" }, "value_usd": { "type": "number", "minimum": 0 } }, "required": ["type", "identifier"] }, "escrow": { "type": "object", "properties": { "multisig_address": { "type": "string" }, "threshold": { "type": "integer", "minimum": 2 }, "signers": { "type": "array", "items": { "type": "string" } } }, "required": ["multisig_address", "threshold", "signers"] }, "ai_audit": { "type": "object", "properties": { "risk_score": { "type": "number", "minimum": 0, "maximum": 100 }, "factors": { "type": "array", "items": { "type": "string" } }, "timestamp": { "type": "string", "format": "date-time" }, "verifiable_hash": { "type": "string" } } } }, "required": ["deal_id", "version", "parties", "asset", "escrow"], "$defs": { "party": { "type": "object", "properties": { "role": { "enum": ["buyer", "seller", "guarantor"] }, "wallet": { "type": "string" }, "tg_id": { "type": "string" }, "reputation_score": { "type": "number", "minimum": 0, "maximum": 100 } }, "required": ["role", "wallet"] } } }