| Internet-Draft | DSPIP | January 2026 |
| Boell | Expires 17 July 2026 | [Page] |
This document specifies the Digital Signing of Physical Items Protocol (DSPIP), a cryptographic protocol for authenticating physical items using digitally signed QR codes. This specification focuses on the SHIP type for shipping and logistics applications, providing cryptographic authentication of packages with chain of custody tracking.¶
The protocol introduces privacy-preserving delivery mechanisms including encrypted recipient information, last mile provider selection, physical anti-cloning protections through split-key labels, and scalable revocation and delivery confirmation systems. DSPIP uses DNS-based public key distribution similar to DKIM and supports optional blockchain integration for immutable record keeping. While this specification focuses on shipping applications, the protocol includes a type field to enable future expansion to other use cases.¶
This Internet-Draft is submitted in full conformance with the provisions of BCP 78 and BCP 79.¶
Internet-Drafts are working documents of the Internet Engineering Task Force (IETF). Note that other groups may also distribute working documents as Internet-Drafts. The list of current Internet-Drafts is at https://datatracker.ietf.org/drafts/current/.¶
Internet-Drafts are draft documents valid for a maximum of six months and may be updated, replaced, or obsoleted by other documents at any time. It is inappropriate to use Internet-Drafts as reference material or to cite them other than as "work in progress."¶
This Internet-Draft will expire on 17 July 2026.¶
Copyright (c) 2026 IETF Trust and the persons identified as the document authors. All rights reserved.¶
This document is subject to BCP 78 and the IETF Trust's Legal Provisions Relating to IETF Documents (https://trustee.ietf.org/license-info) in effect on the date of publication of this document. Please review these documents carefully, as they describe your rights and restrictions with respect to this document. Code Components extracted from this document must include Revised BSD License text as described in Section 4.e of the Trust Legal Provisions and are provided without warranty as described in the Revised BSD License.¶
Supply chain logistics require verifiable proof of package authenticity, chain of custody, and delivery confirmation. Current shipping systems rely on proprietary tracking databases with varying security models and no cryptographic verification of package authenticity or delivery. QR codes on shipping labels can be easily copied, leading to fraud and misdirection of packages.¶
DSPIP provides a cryptographic protocol specifically designed for shipping and logistics, enabling verification of package origin, custody chain, and delivery while protecting recipient privacy. The protocol addresses the fundamental challenge of QR code cloning through physical binding mechanisms and provides privacy-preserving delivery that reveals recipient information only to authorized last mile providers.¶
By using the secp256k1 elliptic curve, DSPIP keys are compatible with major blockchain networks, allowing optional integration for immutable custody records while not requiring blockchain for basic operation. The protocol includes a type field set to "SHIP" for this specification, enabling future expansion to other applications.¶
The design goals for DSPIP shipping protocol are:¶
DSPIP follows a "digital envelope" paradigm for shipping labels:¶
This model protects recipient privacy while maintaining package routability and authenticity verification.¶
The key words "MUST", "MUST NOT", "REQUIRED", "SHALL", "SHALL NOT", "SHOULD", "SHOULD NOT", "RECOMMENDED", "MAY", and "OPTIONAL" in this document are to be interpreted as described in [RFC2119] [RFC8174] when, and only when, they appear in all capitals, as shown here.¶
DSPIP builds upon established standards while introducing novel shipping-specific features:¶
Standards This Document Builds Upon:¶
Related Shipping Standards:¶
Novel Contributions:¶
The DSPIP shipping protocol flow consists of the following steps:¶
+--------+ +----------+ +---------+
| Sender | | Carrier | |Recipient|
+--------+ +----------+ +---------+
| | |
| 1. Create Shipping Payload | |
| {sender, provider, | |
| trackingId, timestamp} | |
| | |
| 2. Select Privacy Mode | |
| 3. Encrypt Recipient | |
| 4. Base64 Encode | |
| 5. Sign with Private Key | |
| 6. Generate QR Code | |
| 7. Attach Label to Package | |
|==============================|========================|
| 8. Scan QR Code |
| 9. Parse Data |
| 10. DNS Lookup |
| 11. Verify Signature |
| 12. Check Revocation |
| 13. Decrypt Recipient |
| 14. Deliver Package |
| |=========================> |
| 15. Delivery Confirmation |
| |<======================== |
| 16. Record Proof |
The payload contains shipping information encoded as JSON. Country codes use [ISO3166] alpha-2 format:¶
{
"type": "SHIP", // REQUIRED: Fixed for shipping
"issuer": { // REQUIRED: Sender information
"name": "string",
"organization": "string",
"address": {
"street1": "string",
"city": "string",
"state": "string",
"postalCode": "string",
"country": "string" // REQUIRED: per ISO3166 alpha-2
}
},
"subject": { // REQUIRED: Recipient/Provider
"name": "string",
"lastMileProvider": "string",
"address": { ... }
},
"itemId": "string", // REQUIRED: Tracking number
"timestamp": number, // REQUIRED: Unix timestamp (ms)
"typeData": {} // SHIP-specific fields
}
¶
The typeData object contains shipping-specific information including privacy mode, carrier details, customs information, and delivery confirmation settings.¶
DSPIP supports three privacy modes for shipping:¶
Traditional shipping with full recipient information visible.¶
Privacy-preserving with encrypted recipient data. The recipient's address and delivery instructions are encrypted with the last mile provider's public key.¶
Maximum security with physical anti-cloning. Uses Ed25519 keys printed in separate scratch-off zones on the physical label.¶
The complete QR code data structure contains:¶
QR data MUST be serialized using pipe (|) delimiters:¶
DSPIP|<version>|<type>|<keyLocator>|<payload>|<sig>[|<msg>]¶
The pipe delimiter was chosen for its low frequency in Base64 and domain names. Implementations MUST validate that exactly 6 or 7 pipe-delimited fields are present.¶
DSPIP uses DNS TXT records for public key distribution, following the model established by DKIM [RFC6376].¶
Key locators MUST follow this pattern:¶
<selector>._dspip.<domain>¶
Where selector is a unique identifier for the specific key, _dspip is the fixed protocol subdomain (underscore prefix per [RFC8552]), and domain is the organization's domain name.¶
The DNS TXT record MUST contain a semicolon-separated list of tag=value pairs:¶
v=DSPIP1; k=ec; c=secp256k1; p=<base64_public_key>; [optional]¶
Required tags: v (protocol version), k (key type), c (curve identifier), p (public key in Base64).¶
Optional tags: t (creation timestamp), x (expiration), n (notes), types, auth, address, coverage.¶
The address field specifies the physical location of signing facilities using scheme prefixes:¶
If no scheme prefix is present, implementations MUST interpret the value as a Plus Code. See [PLUSCODE] for the Open Location Code specification.¶
Organizations MAY publish a discovery record at the base _dspip subdomain to enable discovery of available selectors.¶
DSPIP keys have a defined lifecycle to ensure security while maintaining verification capability for in-transit packages.¶
Keys transition through states: Active (can sign and verify), Verify-Only (can only verify), and Expired (invalid).¶
For shipping applications, the RECOMMENDED key lifetime is: Active signing period of 365 days, verify-only period of 365 additional days, for a total key lifetime of 730 days (2 years).¶
The rsig field provides cryptographic authentication of lifecycle metadata within the DNS record itself, protecting against unauthorized modification by intermediate DNS resolvers.¶
When a signing key is compromised or must be retired, organizations MUST have a mechanism to inform verifiers. The key revocation record provides a dedicated endpoint for key status.¶
Individual packages may need to be revoked due to loss, theft, or fraud. DSPIP provides individual revocation records and bulk revocation lists for scalability.¶
Lists MUST be served over HTTPS and SHOULD auto-prune entries older than 180 days. Lists MAY use [BLOOM] filters for privacy.¶
Last mile providers MAY publish delivery confirmations via DNS TXT records pointing to confirmation endpoints.¶
DSPIP uses the secp256k1 elliptic curve as specified in [SEC2]:¶
Standard signature using ECDSA:¶
Standard verification reconstructs signable content, calculates SHA-256 hash, retrieves public key from DNS, and verifies ECDSA signature.¶
Split-key verification requires Zone B reveal and uses Ed25519 verification without DNS lookup.¶
Input: QR code data string. Output: Verification result with validity status.¶
The privacy-preserving delivery protocol protects recipient information during transit through ECIES encryption with the last mile provider's public key.¶
Recipients are encrypted using ECIES over secp256k1 per [ECIES]:¶
Split-key labels provide physical anti-cloning through two scratch-off zones containing Ed25519 key material. Zone A contains the private key (revealed at label creation), Zone B contains the public key (revealed at delivery verification).¶
Cryptographic delivery confirmation uses challenge-response protocol where the recipient proves possession of their verification key.¶
DSPIP addresses the following shipping-specific threats:¶
Shipping keys SHOULD use hardware security modules. Last mile providers MUST secure decryption keys. Organizations SHOULD rotate keys annually.¶
Use encrypted mode for consumer deliveries. Limit address fields to necessary information. Comply with [GDPR] where applicable.¶
Package revocation for lost/stolen items through individual records or bulk lists. SHIP entries expire after 180 days.¶
Label manufacturing requires secure facilities, audit trails, no retention of private keys, and tamper-evident packaging.¶
This document requests IANA to register the following:¶
Private Key (hex):¶
e8f32e723decf4051aefac8e2c93c9c5b214313817cdb01a1494b917c8436b35¶
Public Key Compressed (hex):¶
0339a36013301597daef41fbe593a02cc513d0b55527ec2df1050e2e8ff49c85c2¶
Public Key Base64 (for DNS):¶
AzmjYBMwFZfa70H75ZOgLMUT0LVVJ+wt8QUOLo/0nIXC¶
Payload:¶
{
"type": "SHIP",
"issuer": {
"organization": "ACME Logistics",
"address": {"city": "Omaha", "state": "NE", "country": "US"}
},
"subject": {
"name": "Bob Jones",
"address": {
"street1": "456 Main Street",
"city": "Lincoln",
"state": "NE",
"postalCode": "68501",
"country": "US"
}
},
"itemId": "TRACK-2025-000123",
"timestamp": 1703548800000,
"typeData": {
"privacyMode": "standard",
"parcelId": "TRACK-2025-000123",
"carrier": "ACME",
"service": "Ground"
}
}
¶
Signature (DER-encoded ECDSA/secp256k1, hex):¶
30440220250f55bf60f3f82031677d17e6202fbf12e31b9ce8d1541e287e1fdd8 ce40a41022056ef5cd183a674c4f5fdc5e0cac1dcfd386de2e7d505681f83104e 2b1f53a315¶
Recipient data (to be encrypted):¶
{
"recipientName": "Bob Jones",
"address": {
"street1": "456 Main Street",
"apartment": "4B",
"city": "Lincoln",
"state": "NE",
"postalCode": "68501"
},
"deliveryInstructions": "Use back door, code 4321"
}
¶
Label Serial: LABEL-2025-ABC123¶
Zone A Private Key (Ed25519, hex):¶
9d61b19deffd5a60ba844af492ec2cc44449c5697b326919703bac031cae7f60¶
Zone B Public Key (Ed25519, hex):¶
d75a980182b10ab7d54bfed3c964073a0ee172f3daa62325af021a68f707511a¶
Signature (Ed25519, hex):¶
1fb94d499a504e201433d0e783906a013e26c21daca3ab8c5ad1e9fcf73a1c58 c9ed3abd60802f3abaac01d35bada76ab1bf571ca1641b8d3ea62f7468fbef0f¶
Warehouse:¶
warehouse._dspip.example.com. IN TXT "v=DSPIP1; k=ec; c=secp256k1; p=AzmjYBMwFZfa70H75ZOgLMUT0LVVJ+wt8QUOLo/0nIXC; types=SHIP"¶
{
"version": "1.0",
"issuer": "warehouse._dspip.example.com",
"updated": 1703548800,
"revoked": [
{
"itemId": "TRACK-2025-000123",
"revoked": 1703548900,
"reason": "lost"
}
],
"signature": "base64_signature"
}
¶
Recommended settings:¶
Expected operation times:¶
Key records follow standard DNS caching semantics with recommended TTL of 3600-86400 seconds.¶
Revocation lists require stricter freshness controls with recommended refresh interval of 5-15 minutes.¶
Large-scale logistics operations SHOULD implement centralized caching infrastructure.¶
Customer checkout flow with privacy-preserving delivery:¶
Split-key label flow for valuable items:¶
Internal routing with organizational keys:¶