DSPIP uses cryptographic signatures, privacy-preserving encryption, and DNS-based key distribution to authenticate packages in shipping and logistics. Here's a complete walkthrough of the protocol flow.
DSPIP follows a "digital envelope" paradigm for shipping labels. The envelope exterior (sender identity, last mile provider destination, tracking number) is publicly readable for routing. A cryptographic signature proves the label was created by the claimed sender and hasn't been tampered with. The actual recipient address and delivery instructions are encrypted for the last mile provider only.
This model protects recipient privacy while maintaining package routability. The encrypted recipient information can only be decrypted by the designated last mile provider using their private key.
DSPIP|version|SHIP|keyLocator|payload|signature
warehouse._dspip.example.com)
to retrieve the sender's public key. For split-key mode, this step is skipped.
DSPIP data is serialized using pipe (|) delimiters for efficient encoding:
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.
Traditional shipping with full recipient information visible in the payload. Best for business-to-business shipments where transparency is required.
Recipient information is encrypted with the last mile provider's public key using ECIES (Elliptic Curve Integrated Encryption Scheme) with AES-256-GCM. Only the designated provider can decrypt the actual delivery address.
Physical anti-cloning protection using special labels with Ed25519 key pairs printed under scratch-off zones. The private key (Zone A) is revealed by the sender to sign, and the public key (Zone B) is revealed by the recipient to verify.
DSPIP uses DNS TXT records for public key distribution, following the proven model established by DKIM (DomainKeys Identified Mail) for email authentication. This approach provides several benefits:
Organizations register as last mile providers by publishing DSPIP keys in DNS. Recipients can then select their preferred provider at checkout.
omaha-main._dspip.usps.govmailroom._dspip.acmecorp.comomaha._dspip.fedex.com