terms.v1.json (3405B)
1 { 2 "schema": "radroots.terms.codec.v1", 3 "contract_version": 1, 4 "state": "closed_bounded_terms_codec_contract", 5 "owner": "radroots_protocol::terms::{decode, EncodedTerms}", 6 "feature": "terms", 7 "input": "Validated complete radroots_domain::Terms; all source snapshots and supply commitments remain unauthenticated claims.", 8 "content_max_utf8_bytes": 16384, 9 "canonicalization": "RFC8785 subset with fixed ASCII schema keys, exact integer/quantity/time strings, safe unsigned numeric schema fields, unchanged Unicode and semantic array order.", 10 "required_fields": [ 11 "buyer", "cancellation", "fulfillment", "fulfillment_charge", "lines", 12 "maximum_total", "rounding", "seller", "supply" 13 ], 14 "digest": { 15 "algorithm": "SHA-256", 16 "domain_utf8_with_terminal_nul": "radroots.terms.v1\u0000", 17 "preimage": "domain || complete canonical Terms object", 18 "output": "radroots_domain::TermsDigest", 19 "is_record_or_rumor_id": false 20 }, 21 "independent_vectors": { 22 "path": "crates/protocol/tests/fixtures/terms_wire.v1.json", 23 "sha256": "f9a73f25cdb590d5e2edb1a960f449fa0d4dc85959369616d88f776ef0a5e0c7", 24 "producer_path": "crates/protocol/tests/support/terms_wire_oracle.mjs", 25 "producer_sha256": "787b84271e9439d04e1d7f7d3c42bbec84e8d6be4752edc1e13b8453ad43adc0", 26 "scope": "Nine synthetic complete Terms byte/hash vectors plus exact-limit-plus-one rejection; ECMAScript canonicalization and Node.js SHA-256, without Rust encoder output." 27 }, 28 "retention": { 29 "count_complete_output_before_private_allocation": true, 30 "private_output_zeroizing": true, 31 "automatic_private_serialize_or_clone": false, 32 "private_fields_in_temporary_json_trees": false, 33 "public_snapshot_serialization": "Only explicitly public product, option and listing-revision snapshots may enter a temporary serde_json Value. Private fulfillment, selected/agreed prices, lot labels and supply risk use the protected writer directly.", 34 "retained_bytes": "EncodedTerms fixed object plus retained output buffer capacity; caller input and outer record/rumor allocations remain separate." 35 }, 36 "decoding": { 37 "entry_point": "radroots_protocol::terms::decode", 38 "max_json_depth": 16, 39 "max_lines": 32, 40 "max_fulfillment_groups": 8, 41 "objects_only": true, 42 "unknown_duplicate_and_missing_fields_rejected": true, 43 "nullable_fields_must_be_present": true, 44 "public_keys_require_identity_owned_canonical_lowercase_spelling": true, 45 "private_fields_borrow_original_raw_json_until_protected_decoding": true, 46 "private_text_decoded_scratch": "Two-pass count then zeroizing UTF-8 output; explicit JSON escapes and paired UTF-16 surrogates, with no normalization.", 47 "domain_validation": "Every complete line, group, money, price, window, supply commitment and Terms constructor runs; no missing field or snapshot is synthesized.", 48 "caller_input_ownership": "The caller owns original private bytes and their protection; successful structural/domain decoding is not authenticated evidence." 49 }, 50 "limits": { 51 "record_header_cost_included": false, 52 "authenticated_admission_implemented_by_this_contract": false, 53 "structured_record_authoring_enabled": false, 54 "consent_or_stock_authority_created": false, 55 "runtime_clock_entropy_signer_or_network_allowed": false, 56 "source_publication_implies_release_qualification": false 57 } 58 }