<?xml version="1.0" encoding="UTF-8"?>
<rfc version="3" ipr="trust200902" docName="draft-jones-outerprise-paper-api-00" category="info" submissionType="IETF">
<front><title abbrev="Paper API">Paper API: Detached Binding of Printed Evidence to a Digital Source</title><author fullname="Vince Jones" surname="Jones" initials="V."><organization>Entercation Info Inc.</organization><address><email>vince@entercation.info</email></address></author><date year="2026" month="November" day="28"/><abstract><t>This document specifies two machine-readable markings for a printed evidence package, a relationship reference and an assertion about the exact digital source. A relying party can verify an authorized signature and source digest offline. The profile describes the limits of verification when the relying party has only paper.</t></abstract></front><middle>
<section><name>Introduction</name>
<t>This is an individual Internet-Draft and a work in progress. This profile specifies an offline check for the digital source of a printed evidence package. A scan recovers a claim about a digital artifact. The origin or integrity of a particular sheet requires additional evidence.</t>
<t>Aoki’s Object Binding draft <xref target="AOKI"/> Sections 5, 6, 8, and 17 describes generic bindings and leaves domain semantics to profiles. This profile supplies a payload and verifier for a print rendition of a PDF. A signed payload can describe the digital source in a SCITT Signed Statement <xref target="RFC9943"/>. Registration and receipt evaluation are separate operations.</t>
<t>The keywords MUST, MUST NOT, SHOULD, and MAY are to be interpreted as described in BCP 14 <xref target="RFC2119"/> <xref target="RFC8174"/> when, and only when, they appear in all capitals.</t>
</section>
<section><name>Physical Topology</name>
<t>The issuer is the party that asserts the binding. The relying party supplies trusted issuer keys and policy. The source object is an exact digital PDF byte string. The print rendition is paper derived from that object plus verification markings. The Pair Key is an opaque relationship reference, separate from a signing key. The payload is a signed assertion about the source, the relationship reference, and optional context.</t>
<t>The front cover SHOULD carry a QR code encoding a JCS object with exactly entity and pair_key. A print rendition conforming to this profile MUST carry a last-page QR code containing the complete COSE_Sign1 envelope in QR Byte mode, as raw octets without an ECI designator, text conversion, or base64. The scanner MUST expose the original octets. The issuer MUST ensure the envelope fits one symbol at the chosen error correction level. Compare both front fields with the signed payload if the front is present. A recipient can obtain the exact source PDF separately. The baseline verification requires no online lookup or standing connection.</t>
<t>Freeze the source PDF before generating the payload. Preserve the exact source as a detached file or an attachment to the distribution PDF. The front overlay and verification page in that distribution PDF are outside the source digest. A separate manifest MAY bind the final distribution PDF after all marks are added. A source digest embedded in a wrapper is never computed over that same wrapper.</t>
<t>In Aoki Section 8 terms, an illustrative projection for the digital source uses object_type "pdf-source" (local to this example), object_id "sha256:" followed by source_pdf_sha256, and object_digest with alg "sha-256" and value equal to the decoded 32 octets. The source object identity is scoped by the verifier policy. The Pair Key identifies a relationship and does not serve as object_id. Leave object_instance_id absent. The live status endpoint is not a locator for source bytes unless a separate profile explicitly defines that relation.</t>
<t>This profile places the authoritative binding in the signed payload under Aoki Section 17. The issuer-to-source check corresponds to Aoki Section 18, step 5. The expected object and intended issuer are selected by the relying party. This projection is informative and introduces no dependency on a graph manifest or global object registry.</t>
</section>
<section><name>Machine-Readable Payload</name>
<t>The payload MUST be an RFC 8785 <xref target="RFC8785"/> JSON object with exactly the members below. Producers MUST emit the canonical UTF-8 bytes without BOM or trailing newline. Verifiers MUST reject duplicate names, unexpected fields, invalid types, and noncanonical bytes. JSON member names and all string values are ASCII in this profile. Each object has exactly the named members.</t>
<t>schema is the string outerprise.paper_api.v1. identity_anchor contains entity and pair_key. entity is 1 to 64 characters from A-Z, 0-9 and underscore. pair_key is exactly 64 lowercase hexadecimal characters.</t>
<t>physical_object contains source_pdf_sha256, pages, and printed_at. The digest is exactly 64 lowercase hexadecimal characters representing SHA-256 of the exact source PDF byte string <xref target="FIPS180"/>. pages is a JSON integer from 1 to 1000000 counting source PDF pages. printed_at is null or a valid UTC Gregorian date and time in YYYY-MM-DDThh:mm:ssZ format, years 0001 through 9999 and seconds 00 through 59. It is an issuer assertion. A marker prepared before printing MUST use null unless a prior print event is the explicitly scoped subject.</t>
<t>context_and_state contains tal_sequence_pointer and live_verifier_url. The pointer is null or 1 to 64 characters from A-Z, a-z, 0-9, underscore, hyphen and period. It has meaning only within the issuer ledger context. The URL is null or an absolute HTTPS URI <xref target="RFC3986"/> of at most 512 ASCII characters, with a nonempty host and without userinfo or fragment. Neither field constitutes a verification result or a freshness proof.</t>
<t>JCS applies to the assertion. SHA-256 applies directly to the source PDF bytes. A Merkle root would require separately specified leaves, ordering, and tree construction, such as the algorithm in <xref target="RFC9162"/> Section 2.1.1. This profile defines no Merkle tree.</t>
</section>
<section><name>Issuer Procedure</name>
<t>For newly generated profile-specific references when both 32-octet inputs are available, the ordered inputs relationship_input_a and relationship_input_b are independently provisioned relationship identifiers from the issuer’s namespace. Compute lowercase hex of SHA-256(ASCII("OUTERPRISE_PAIR_KEY_V1") || relationship_input_a || relationship_input_b), with no delimiter or newline and with raw input octets. Use independent high-entropy values for new relationships. An existing public opaque 32-octet relationship reference MAY be carried without asserting this derivation. A verifier never infers identity or authority from knowledge of the reference.</t>
<t>Compute the source digest and place it in the payload. Freeze the canonical payload bytes. The base offline signature MUST be a CBOR tag 18 COSE_Sign1 <xref target="RFC9052"/> object with protected bytes a10132 (algorithm Ed25519, -19 <xref target="RFC9864"/>), empty unprotected map, embedded payload, and a 64-octet Ed25519 signature <xref target="RFC8032"/>. The signer MUST use deterministic CBOR <xref target="RFC8949"/> Section 4.2.1 and empty external AAD. Sign the deterministic CBOR array ["Signature1", h'a10132', h'', payload-bytes], with each of the last three entries a byte string.</t>
<t>A distribution can carry a separate SCITT Signed Statement containing the identical payload. That statement MUST satisfy RFC 9943 independently, including its protected-header requirements. The base offline COSE envelope alone does not assert SCITT registration. Verify an optional SCITT Receipt using the applicable proof profile and trusted log configuration <xref target="RFC9942"/>.</t>
<t>This is a proposed issuance procedure. Production equivalence with the Entercation app requires a deployed implementation and an export demonstrating byte-for-byte agreement under this profile.</t>
</section>
<section><name>Verification Procedure</name>
<t>Apply local resource limits to the scan, signature, and PDF. Decode the back QR to raw envelope octets and extract its embedded payload. Strictly validate the payload schema and canonical encoding. If a front code is provided, validate its schema and test exact equality of both identity fields. Report absent front evidence separately.</t>
<t>Validate the COSE structure and exact protected bytes. Verify the payload exactly as carried in the scanned envelope. Reconstruct the signing input and verify the signature with an independently trusted and authorized issuer key. A missing envelope or absence of any policy-authorized candidate key yields UNAVAILABLE unless a mandatory check independently fails. A present envelope with missing or malformed signature data is FAIL. If at least one authorized key is evaluated and every authorized candidate is conclusively rejected, report FAIL. If a candidate cannot be evaluated and no candidate passes, report UNAVAILABLE for signature verification. A malformed payload, conflicting front when supplied, or failed cryptographic check yields FAIL.</t>
<t>Obtain the exact digital source independently of the scan transport, hash its bytes, and compare all 32 digest octets. Treat pages as a signed issuer assertion and report any independent page-count review separately. Report source integrity as MATCH, MISMATCH, or UNAVAILABLE when required evidence is missing or cannot be processed. Report the front comparison, issuer authority, SCITT registration, live state, and physical-copy authenticity separately. A successful issuer and source check supports the issuer-to-digital-source binding.</t>
<t>For paper review, compare the printed content and ordering against a rendition of the verified source using a stated review procedure. Report the observed scope of that comparison. A phone image or photocopy does not reconstruct the exact PDF bytes. An optional live status result should be evaluated under separate issuer, scope, and freshness policy.</t>
<t>Authorized binding MUST be FAIL if any evaluated mandatory check fails. Otherwise it MUST be UNAVAILABLE when required evidence is missing or no issuer key is authorized by the locally selected policy. It MUST be PASS only when the payload, signature, authorized key, and source digest pass. A supplied front code also MUST pass schema and equality checks for PASS. Absence of an optional front code is reported separately. An unsupported parser or exhausted local resource limit MUST be reported as UNAVAILABLE for the affected check.</t>
<t>The verifier MUST consume exactly one COSE item and reject trailing bytes, alternate CBOR encodings, or an unprotected map with entries in the base envelope. The protected header is compared as bytes. When multiple issuer keys exist, the relying party MUST select the expected issuer and authorized candidate keys from its policy before evaluating signatures. A QR value cannot itself install a trust anchor or select a new institution.</t>
<t>If both codes from one issue are presented with a different digital source, the digest check reports MISMATCH. If those same codes and the correct digital source accompany substitute paper, digital checks can still pass and physical-copy authenticity remains unavailable from this profile.</t>
</section>
<section><name>Security and Privacy Considerations</name>
<t>Both QR codes can be copied. A copied authentic pair can appear on substituted pages. Cryptographic success over the source remains possible in that case. A relying party requiring unique physical-instance assurance needs a separately validated per-instance mechanism and custody assumptions. Public relationship references can enable correlation and MUST NOT be used as credentials, secrets, or proof of signer identity.</t>
<t>Treat URLs as untrusted until the signed payload and issuer authority have been checked. Apply destination and redirection policy before any connection. A signature authenticates the issuer’s stated context at issuance. It conveys no current status by itself. Freshness or transactional acceptance requires an independent policy input, such as a signed timely status response or a recipient-bound challenge. Keep sensitive source material and locator metadata out of public QR codes.</t>
<t>Report PDF byte integrity separately from safe rendering, print correspondence, factual accuracy, and institutional disposition. An optional receipt establishes only what its applicable proof and trust policy support. TEVV exercises can use the test vectors as component evidence. This profile makes no NIST assessment or certification claim.</t>
</section>
<section><name>IANA Considerations</name>
<t>This document requests no IANA actions. The schema string is local to this profile.</t>
</section>
</middle><back>
<references><name>Normative References</name>
<reference anchor="FIPS180" target="https://doi.org/10.6028/NIST.FIPS.180-4"><front><title>Secure Hash Standard</title><author surname="NIST"/><date year="2015"/></front><seriesInfo name="FIPS" value="180-4"/></reference>
<reference anchor="RFC2119" target="https://www.rfc-editor.org/rfc/rfc2119"><front><title>Key words for use in RFCs to Indicate Requirement Levels</title><author surname="Bradner"/><date year="1997"/></front><seriesInfo name="RFC" value="2119"/></reference>
<reference anchor="RFC8174" target="https://www.rfc-editor.org/rfc/rfc8174"><front><title>Ambiguity of Uppercase vs Lowercase in RFC 2119 Key Words</title><author surname="Leiba"/><date year="2017"/></front><seriesInfo name="RFC" value="8174"/></reference>
<reference anchor="RFC3986" target="https://www.rfc-editor.org/rfc/rfc3986"><front><title>Uniform Resource Identifier (URI): Generic Syntax</title><author surname="Berners-Lee"/><date year="2005"/></front><seriesInfo name="RFC" value="3986"/></reference>
<reference anchor="RFC8032" target="https://www.rfc-editor.org/rfc/rfc8032"><front><title>Edwards-Curve Digital Signature Algorithm (EdDSA)</title><author surname="Josefsson"/><date year="2017"/></front><seriesInfo name="RFC" value="8032"/></reference>
<reference anchor="RFC8785" target="https://www.rfc-editor.org/rfc/rfc8785"><front><title>JSON Canonicalization Scheme (JCS)</title><author surname="Rundgren"/><date year="2020"/></front><seriesInfo name="RFC" value="8785"/></reference>
<reference anchor="RFC8949" target="https://www.rfc-editor.org/rfc/rfc8949"><front><title>Concise Binary Object Representation (CBOR)</title><author surname="Bormann"/><date year="2020"/></front><seriesInfo name="RFC" value="8949"/></reference>
<reference anchor="RFC9052" target="https://www.rfc-editor.org/rfc/rfc9052"><front><title>CBOR Object Signing and Encryption (COSE): Structures and Process</title><author surname="Schaad"/><date year="2022"/></front><seriesInfo name="RFC" value="9052"/></reference>
<reference anchor="RFC9864" target="https://www.rfc-editor.org/rfc/rfc9864"><front><title>Fully-Specified Algorithms for JSON Object Signing and Encryption (JOSE) and CBOR Object Signing and Encryption (COSE)</title><author surname="Jones"/><date year="2025"/></front><seriesInfo name="RFC" value="9864"/></reference>
<reference anchor="RFC9942" target="https://www.rfc-editor.org/rfc/rfc9942"><front><title>CBOR Object Signing and Encryption (COSE) Receipts</title><author surname="Steele"/><date year="2026"/></front><seriesInfo name="RFC" value="9942"/></reference>
<reference anchor="RFC9943" target="https://www.rfc-editor.org/rfc/rfc9943"><front><title>An Architecture for Trustworthy and Transparent Digital Supply Chains</title><author surname="Birkholz"/><date year="2026"/></front><seriesInfo name="RFC" value="9943"/></reference>
</references>
<references><name>Informative References</name>
<reference anchor="AOKI" target="https://datatracker.ietf.org/doc/html/draft-nobuo-scitt-protected-object-binding-00"><front><title>SCITT Statement Relationship and Protected Object Binding</title><author surname="Aoki"/><date year="2026"/></front><seriesInfo name="Internet-Draft" value="draft-nobuo-scitt-protected-object-binding-00"/><annotation>Work in Progress.</annotation></reference>
<reference anchor="RFC9162" target="https://www.rfc-editor.org/rfc/rfc9162"><front><title>Certificate Transparency Version 2.0</title><author surname="Laurie"/><date year="2021"/></front><seriesInfo name="RFC" value="9162"/></reference>
</references>
<section><name>Synthetic Test Vectors</name><t>The source octets are ASCII abc (hex 616263). This fixture isolates the digest and signature operations. These bytes are not a PDF, so a complete document-format check is outside this vector. The page count and entity are synthetic. The seed is for testing only. Concatenate lines within each value with no added bytes.</t>
<figure><name>relationship input a hex</name><artwork><![CDATA[
0000000000000000000000000000000000000000000000000000000000000000
]]></artwork></figure>
<figure><name>relationship input b hex</name><artwork><![CDATA[
0101010101010101010101010101010101010101010101010101010101010101
]]></artwork></figure>
<figure><name>pair key</name><artwork><![CDATA[
dea13a6dbb463e311f41ff7aba889b2b1142ca5a96020a1dc4889f0071c6fcac
]]></artwork></figure>
<figure><name>source octets hex</name><artwork><![CDATA[
616263
]]></artwork></figure>
<figure><name>source pdf sha256</name><artwork><![CDATA[
ba7816bf8f01cfea414140de5dae2223b00361a396177a9cb410ff61f20015ad
]]></artwork></figure>
<figure><name>jcs utf8</name><artwork><![CDATA[
{"context_and_state":{"live_verifier_url":null,"tal_sequence_poi
nter":null},"identity_anchor":{"entity":"EXAMPLE","pair_key":"de
a13a6dbb463e311f41ff7aba889b2b1142ca5a96020a1dc4889f0071c6fcac"}
,"physical_object":{"pages":1,"printed_at":null,"source_pdf_sha2
56":"ba7816bf8f01cfea414140de5dae2223b00361a396177a9cb410ff61f20
015ad"},"schema":"outerprise.paper_api.v1"}
]]></artwork></figure>
<figure><name>jcs sha256</name><artwork><![CDATA[
515347301d6c6b7109d23391d1c8ef41e2b5108d68c4a7c3735afbfc5ba44fbb
]]></artwork></figure>
<figure><name>test seed hex</name><artwork><![CDATA[
0303030303030303030303030303030303030303030303030303030303030303
]]></artwork></figure>
<figure><name>public key hex</name><artwork><![CDATA[
ed4928c628d1c2c6eae90338905995612959273a5c63f93636c14614ac8737d1
]]></artwork></figure>
<figure><name>sig structure hex</name><artwork><![CDATA[
846a5369676e61747572653143a101324059016b7b22636f6e746578745f616e
645f7374617465223a7b226c6976655f76657269666965725f75726c223a6e75
6c6c2c2274616c5f73657175656e63655f706f696e746572223a6e756c6c7d2c
226964656e746974795f616e63686f72223a7b22656e74697479223a22455841
4d504c45222c22706169725f6b6579223a226465613133613664626234363365
3331316634316666376162613838396232623131343263613561393630323061
316463343838396630303731633666636163227d2c22706879736963616c5f6f
626a656374223a7b227061676573223a312c227072696e7465645f6174223a6e
756c6c2c22736f757263655f7064665f736861323536223a2262613738313662
6638663031636665613431343134306465356461653232323362303033363161
33393631373761396362343130666636316632303031356164227d2c22736368
656d61223a226f7574657270726973652e70617065725f6170692e7631227d
]]></artwork></figure>
<figure><name>signature hex</name><artwork><![CDATA[
ffe204423b5a20ec62ea62fd7dbd6947970539a01b81a6a34876254607f9982e
34c3ffe77e1756170d5ab28b63900dc608e89b1a5a260de6dac1bcc5d4a9c10f
]]></artwork></figure>
<figure><name>cose sign1 hex</name><artwork><![CDATA[
d28443a10132a059016b7b22636f6e746578745f616e645f7374617465223a7b
226c6976655f76657269666965725f75726c223a6e756c6c2c2274616c5f7365
7175656e63655f706f696e746572223a6e756c6c7d2c226964656e746974795f
616e63686f72223a7b22656e74697479223a224558414d504c45222c22706169
725f6b6579223a22646561313361366462623436336533313166343166663761
6261383839623262313134326361356139363032306131646334383839663030
3731633666636163227d2c22706879736963616c5f6f626a656374223a7b2270
61676573223a312c227072696e7465645f6174223a6e756c6c2c22736f757263
655f7064665f736861323536223a226261373831366266386630316366656134
3134313430646535646165323232336230303336316133393631373761396362
343130666636316632303031356164227d2c22736368656d61223a226f757465
7270726973652e70617065725f6170692e7631227d5840ffe204423b5a20ec62
ea62fd7dbd6947970539a01b81a6a34876254607f9982e34c3ffe77e1756170d
5ab28b63900dc608e89b1a5a260de6dac1bcc5d4a9c10f
]]></artwork></figure>
</section></back></rfc>
