commerce_ingress.v1.json (4011B)
1 { 2 "schema": "radroots.nostr.commerce_ingress.v1", 3 "contract_version": 1, 4 "state": "protected_authenticated_carrier_and_record_admission", 5 "features": { 6 "radroots_protocol": [ 7 "private_rumor", 8 "commerce" 9 ], 10 "radroots_nostr": [ 11 "private_ingress", 12 "commerce" 13 ] 14 }, 15 "content_max_utf8_bytes": 16384, 16 "rumor_max_utf8_bytes": 24576, 17 "signed_max_utf8_bytes": 65536, 18 "json_max_depth": 16, 19 "carrier": { 20 "outer_kind": 1059, 21 "seal_kind": 13, 22 "rumor_kind": 8890, 23 "seal_tags": [], 24 "known_rumor_tags": [], 25 "outer_recipient": "Exactly one canonical p tag matching the captured provider identity; optional relay hint and unrelated bounded tags remain permitted.", 26 "signed_fields": [ 27 "id", 28 "pubkey", 29 "created_at", 30 "kind", 31 "tags", 32 "content", 33 "sig" 34 ], 35 "unsigned_fields": [ 36 "id", 37 "pubkey", 38 "created_at", 39 "kind", 40 "tags", 41 "content" 42 ], 43 "signed_reader": "One shared exact bounded raw JSON reader verifies ID/signature before upstream conversion or private callbacks.", 44 "unsigned_reader": "Closed borrowed object, raw u16 kind, canonical keys/ID, bounded protected decoded text/tags and original NIP01 identity recomputation.", 45 "encryption": "NIP44 v2 bounded short-length profile; provider custody, MAC validation and per-call deadline/cancellation remain required. No extended multi-gigabyte profile is claimed." 46 }, 47 "admission": [ 48 "Admit original outer JSON, ID/signature, kind and actual recipient before provider callbacks.", 49 "Validate encryption framing and provider identity/support before decrypting the seal; recheck identity afterwards.", 50 "Admit raw seal ID/signature, kind13 and empty tags before decrypting the rumor; recheck identity afterwards.", 51 "Decode closed bounded rumor, recompute original identity and bind seal author to rumor author.", 52 "Retain authentic unsupported carrier kind before interpreting known commerce content.", 53 "Probe profile/version/type; retain authentic future content as unsupported rather than partial known data.", 54 "For known records verify complete closed data/hash, empty rumor tags, exact author/time/kind and actual recipient equal to buyer or seller." 55 ], 56 "retention": { 57 "original_outer_seal_and_rumor": true, 58 "decoded_private_text_and_tags_zeroizing": true, 59 "automatic_private_serialize_or_clone": false, 60 "debug": "redacted", 61 "unsupported_and_rejected": "Protected authenticated carrier evidence remains retained; no known record or business capability is minted.", 62 "provider_failure": "Returns a fixed source-redacted failure; original caller-owned encrypted outer remains available. No authenticated record is inferred." 63 }, 64 "limits": { 65 "structured_execution_enabled": false, 66 "business_history_stock_consent_or_physical_truth": false, 67 "durable_storage_or_issuance": false, 68 "raw_transport_caller_disposition_complete": false, 69 "unsupported_listing_or_capability_heads_complete": false, 70 "provider_qualification": "A provider observation does not prove honest cryptography; each actual supported host provider requires execution qualification." 71 }, 72 "independent_vectors": { 73 "path": "crates/nostr/tests/fixtures/commerce_envelopes.v1.json", 74 "sha256": "bd59710bedc337b5e4bdcb1c0753de06a74927027b76a0202b251b0e45d02565", 75 "producer_path": "tools/protocol_oracle/commerce_envelopes.mjs", 76 "producer_sha256": "7ed553fd68dc0df896a481f16eb1db3132d8bd23b23cee7c1f4fbf39eab02bcf", 77 "package_lock_path": "tools/protocol_oracle/package-lock.json", 78 "package_lock_sha256": "bd23a2b631ddd90c91ce044187e4feaaf27fb1f4590da2e203afc28d8ea6cd22", 79 "provenance_path": "tools/protocol_oracle/provenance.v1.json", 80 "provenance_sha256": "145d2cb14377bf67c0e65c452ed07ba10577a1e8ea1db3979d2d2780cb31a7a6", 81 "positives": 80, 82 "negative_or_unsupported": 36, 83 "primary_nip44_reference_equal": true 84 } 85 }