rhi

Coordinated trade for connected markets
git clone https://radroots.dev/git/rhi.git
Log | Files | Refs | README | LICENSE

trade_ingest.v1.json (2715B)


      1 {
      2   "schema": "radroots.rhi.trade-ingest.v1",
      3   "contract_version": 1,
      4   "source": "validated_config_resource_limits_events",
      5   "wire": {
      6     "original_wire_cap_before_parse": true,
      7     "utf8": "required",
      8     "required_fields": ["id", "pubkey", "created_at", "kind", "tags", "content", "sig"],
      9     "duplicate_fields": "reject",
     10     "null_required_fields": "reject",
     11     "identifier_max_bytes": { "id": 64, "pubkey": 64, "sig": 128 },
     12     "configured_bounds": ["wire_bytes", "content_bytes", "tag_count", "tag_total_elements", "tag_element_bytes", "tag_total_bytes"],
     13     "extra_fields": {
     14       "maximum_count": 64,
     15       "maximum_aggregate_json_bytes": 65536,
     16       "measurement": "canonical_key_json_bytes_plus_colon_plus_original_value_json_bytes_per_field",
     17       "authority": "radroots_event_wire_v1",
     18       "semantic_authority": "none"
     19     }
     20   },
     21   "verification": {
     22     "event_id": "recomputed_and_exact",
     23     "signature": "bip340_schnorr_verified",
     24     "registered_kinds": [3470, 3471, 3472, 3473, 3474],
     25     "mutation_contract_family": "radroots.trade.mutation-index.v1",
     26     "author": "exact_mutation_author_and_party_binding",
     27     "content": "exact_canonical_trade_mutation_content_and_computed_mutation_id",
     28     "tags": "exact_ordered_derived_structural_tags",
     29     "duplicate_or_conflicting_structural_tags": "reject",
     30     "legacy_shape": "reject"
     31   },
     32   "authored_time": {
     33     "representation": "zero_through_i64_max_unix_seconds",
     34     "observation": "positive_injected_unix_seconds_through_i64_max",
     35     "policy": "explicit_caller_supplied_inclusive_maximum_future_seconds",
     36     "default": "none",
     37     "past_age_limit": "none_at_admission",
     38     "arithmetic": "saturating_upper_bound"
     39   },
     40   "accepted_value": {
     41     "original_bytes": "retained_exactly",
     42     "event_id": "verified",
     43     "mutation_id": "content_derived_and_verified",
     44     "mutation": "canonical_typed_envelope",
     45     "debug": "sizes_kind_time_and_redacted_identity_only",
     46     "construction": "sealed"
     47   },
     48   "conformance_vector": {
     49     "path": "contracts/conformance/vectors/trade_ingest_proposal.v1.json",
     50     "source": "radrootslabs/lib:contracts/conformance/vectors/event/authored_operations.v1.json#typed_trade_proposal_010",
     51     "sha256": "89fed4e1e73d917c2f083b5e1569f17952c3381a8691c0e0089e08ede2e8009a"
     52   },
     53   "errors": "crate_owned_source_free_redacted",
     54   "effects": { "filesystem": false, "sqlite": false, "clock_read": false, "network": false, "checkpoint": false, "dirty_generation": false },
     55   "persistence_contract": "contracts/services_hardening/trade_evidence_persistence.v1.json",
     56   "source_ingest_contract": "contracts/services_hardening/trade_source_ingest.v1.json",
     57   "deferred": ["reconciliation", "publication"]
     58 }