# Patent

## Title
Method and apparatus for providing a universal deterministically reproducible cryptographic key-pair representation for all SKUs, shipping cartons, and items

## Abstract

A cryptographic representation of value is adapted to goods in production and products at various stages through a supply chain as represented by their stock keeping units or SKU's that refer to a unique identifier or code for the particular stock keeping unit. Embodiments of the invention disclose the generation of a universal unique, yet deterministic, key-pair for all SKUs, shipping cartons, and items, i.e. for every single SKU, shipping carton and item on the globe.

## Background
FIELD
Various of the disclosed embodiments concern providing a universal, deterministically reproducible; cryptographic key-pair representation for all SKUs, shipping cartons, and items.
BACKGROUND
Public-Key Cryptography
Public-key cryptography, also known as asymmetric cryptography, is a class of cryptographic algorithms which requires two separate keys, one of which is secret (or private) and one of which is public. Although different, the two parts of this key pair are mathematically linked. The public key is used to encrypt plaintext or to verify a digital signature; whereas the private key is used to decrypt ciphertext or to create a digital signature. The term “asymmetric” stems from the use of different keys to perform these opposite functions, each the inverse of the other—as contrasted with conventional (“symmetric”) cryptography which relies on the same key to perform both.
Public-key algorithms are based on mathematical problems which currently admit no efficient solution that are inherent in certain integer factorization, discrete logarithm, and elliptic curve relationships. It is computationally easy for a user to generate their own public and private key-pair and to use them for encryption and decryption. The strength lies in the fact that it is “impossible” (computationally infeasible) for a properly generated private key to be determined from its corresponding public key. Thus the public key may be published without compromising security, whereas the private key must not be revealed to anyone not authorized to read messages or perform digital signatures. Public key algorithms, unlike symmetric key algorithms, do not require a secure initial exchange of one (or more) secret keys between the parties.
Message authentication involves processing a message with a private key to produce a digital signature. Thereafter anyone can verify this signature by processing the signature value with the signer's corresponding public key and comparing that result with the message. Success confirms the message is unmodified since it was signed, and—presuming the signer's private key has remained secret to the signer—that the signer, and no one else, intentionally performed the signature operation. In practice, typically only a hash or digest of the message, and not the message itself, is encrypted as the signature.
Public-key algorithms are fundamental security ingredients in cryptosystems, applications and protocols. They underpin various Internet standards, such as Transport Layer Security (TLS), PGP, and GPG. Some public key algorithms provide key distribution and secrecy, e.g. Diffie-Hellman key exchange, some provide digital signatures, e.g. Digital Signature Algorithm, and some provide both, e.g. RSA.
Public-key cryptography finds application in, amongst others, the IT security discipline information security. Information security (IS) is concerned with all aspects of protecting electronic information assets against security threats. Public-key cryptography is used as a method of assuring the confidentiality, authenticity and non-repudiability of electronic communications and data storage.
Bitcoin
In bitcoin, ownership of a bitcoin is established through digital keys, bitcoin addresses, and digital signatures. The digital keys are not actually stored in the network, but are instead created and stored by users in a file, or simple database, called a wallet. The digital keys in a user's wallet are completely independent of the bitcoin protocol and can be generated and managed by the user's wallet software without reference to the blockchain or access to the Internet. Keys enable many of the interesting properties of bitcoin, including de-centralized trust and control, ownership attestation, and the cryptographic-proof security model.
Every bitcoin transaction requires a valid signature to be included in the blockchain, which can only be generated with valid digital keys; therefore, anyone with a copy of those keys has control of the bitcoin in that account. Keys come in pairs consisting of a private (secret) key and a public key. The public key is similar to a bank account number and the private key is similar to the secret PIN, or signature on a check that provides control over the account. These digital keys are very rarely seen by the users of bitcoin. For the most part, they are stored inside the wallet file and managed by the bitcoin wallet software.
In the payment portion of a bitcoin transaction, the recipient's public key is represented by its digital fingerprint, called a bitcoin address, which is used in the same way as the beneficiary name on a check, i.e. “Pay to the order of.” In most cases, a bitcoin address is generated from, and corresponds to, a public key. However, not all bitcoin addresses represent public keys; they can also represent other beneficiaries such as scripts. This way, bitcoin addresses abstract the recipient of funds, making transaction destinations flexible, similar to paper checks: a single payment instrument that can be used to pay into people's accounts, pay into company accounts, pay for bills, or pay to cash. The bitcoin address is the only representation of the keys that users routinely see, because this is the part they need to share with the world.
It is problematic to associate a unique cryptographic address with each and every item in a large group of associated items in a scalable manner. This is particularly true because keys are typically generated randomly in a cryptographic system, such as bitcoin, while associated items are often thought of sequentially, e.g. as with serial numbers. It would be advantageous if the non-repudiability aspect of public-key cryptography, for example as applied in bitcoin, could applied to maintaining a trusted audit trail for sequential items, such as SKUs, shipping cartons, and other items, for example to assure the provenance of, and lack of tampering with, associated items at all levels and at various forms of consolidation or distribution within a supply chain.
SUMMARY
A cryptographic representation of value is adapted to goods in production and products at various stages through a supply chain as represented by their stock keeping units or SKU's that refer to a unique identifier or code for the particular stock keeping unit. Embodiments of the invention disclose the generation of a universal unique, yet deterministic, key-pair for all SKUs, shipping cartons, and items, i.e. for every single SKU, shipping carton and item on the globe.



DRAWINGS
FIG. 1 is a flow diagram showing deterministic key generation to derive private popcodes according to the invention;
FIG. 2 is a further flow diagram showing deterministic key generation to derive private popcodes according to the invention;
FIG. 3 is a flow diagram showing deterministic key generation to derive public popcodes according to the invention;
FIG. 4 is a further flow diagram showing deterministic key generation to derive public popcodes according to the invention;
FIG. 5 is a an elliptic curve diagram that highlights the generation of a public-private key-pair according to the invention;
FIG. 6 is a block schematic diagram showing an association of a sequence of addresses to a group of similar items according to the invention; and
FIG. 7 shows a diagrammatic representation of a machine in the example form of a computer system within which a set of instructions for causing the machine to perform one or more of the methodologies discussed herein may be executed.



DETAILED DESCRIPTION
A Universal, Deterministacally Reproducible, Cryptographic Key-Pair Representation for all SKUs, Shipping Cartons, and Items
Various embodiments are directed at using one or more cryptographic methods of key-pair representation for items throughout a supply network. This disclosure relates to U.S. patent application Ser. No. 14/562,303, filed on Dec. 5, 2014 and Ser. No. 14/632,99, filed on Feb. 26, 2015, each of which is incorporated herein in its entirety by this reference thereto.
Various embodiments of the invention are directed at the use of one or more cryptographic methods in connection with provenance tracking and serialization. Provenance refers to an authentic identity of the origin of a quantity of goods. Provenance tracking can be enabled by a computer system, e.g. one or more computer servers or other computing devices, hereinafter referred to as a provenance management system. The provenance management system can maintain one or more profiles of one or more participant entities that participate in its logistic platform. Each profile can include at least a public identity key, e.g. a public key for asymmetric cryptography, corresponding to a participant entity. The public identity key is used to verify any cryptographic signature made by the participant entity.
When a first company manufactures a first quantity of goods, a first computing device controlled by the first company can report the ownership of the first quantity of goods via a logistic transaction record to a public ledger database. The public ledger database can store logistic transaction records in a distributed manner. The first computing device can report the logistic transaction record to the public ledger database via the provenance management system. The first computing device can cryptographically sign this logistic transaction with its private cryptographic key.
When the first company prepares to deliver the first quantity of goods to its various customers, the first computing device can request a proof of provenance code (hereinafter a “popcode”) label from the provenance management system or an agent thereof. The popcode label encodes a private popcode key used to cryptographically sign a logistic transaction record. The provenance management system can store a public popcode key corresponding to the private popcode key in its trusted storage, such that it can verify the signature made by the private popcode key, e.g. hence establishing a proof-of-possession.
In some embodiments of the invention, the provenance management system can store the popcode key pair in its trusted storage. For example, a popcode label can be a 32 bit barcode, such as a two-dimensional barcode. In some embodiments, the first computing device can request a batch of popcode labels to label its goods. The first computing device can report a logistic transaction record that assigns a second quantity of goods to a popcode address onto the public ledger database.
The second quantity of goods can overlap at least partially with the first quantity of goods.
The provenance management system can maintain the public ledger database by interfacing with a distributed consensus system comprising multiple delegation nodes, e.g. computing devices. For example, the public ledger database can be maintained in a distributed manner as a block chain. The block chain keeps track of all confirmed logistic transactions that occur within the logistics platform maintained by the provenance management system. A logistic transaction is an inventory record of quantified goods that occurs within a company or between companies. A logistic transaction can define a quantity of one or more items associated with one or more types of items. The logistic transaction can define a source of the items, such as by referencing one or more previous logistic transactions that source at least a subset of the quantity of items described in the current logistic transaction. The logistic transaction can define a destination address, e.g. an identity address or a popcode address, of where the items are assigned to.
In several embodiments of the invention, the block chain confirms to the logistic transactions via the distributed consensus system. The distributed consensus system confirms waiting logistic transactions by including them in the block chain. The distributed consensus system enforces a chronological order in the block chain and hence protects the neutrality of a network of computing devices that implements the public ledger database.
The invention herein described relies upon the block chain keeping track of multiple logistic transactions. Any consumer or company can access the block chain to verify the provenance associated with a set of items by access the block chain. For example, any popcode label consistent with the logistics platform can be scanned to check against the public ledger database represented by the block chain.
Embodiments of the invention adapt a cryptographic representation of value to goods in production and products at various stages through the supply chain as represented by their stock keeping units or SKU's. In the field of inventory management, a stock keeping unit or SKU is a distinct item for sale, such as a product or service, and all attributes associated with the item that distinguish it from other items. For a product, these attributes include, but are not limited to, manufacturer, product description, material, size, color, packaging, and warranty terms. When a business takes an inventory, it counts the quantity of each SKU.
SKU can also refer to a unique identifier or code that refers to the particular stock keeping unit. These codes are not regulated nor standardized. Thus, in embodiments of the invention, when one company receives items from another vendor, it has a choice of maintaining the vendor's SKU or creating its own. Other entity tracking methods, with varying regulations, are Universal Product Code (UPC), International Article Number (EAN), Global Trade Item Number (GTIN), and Australian Product Number (APN). Embodiments of the invention disclose the generation of a universal unique, yet deterministic, key-pair for all SKUs, shipping cartons, and items, i.e. for every single SKU, shipping carton and item on the globe.
Definitions
For purposes of the disclosure herein, the following terms will have their associated meanings.
Elliptic Curve Cryptography: Uses arithmetic on coordinates that satisfy the elliptic curve equation on y2=x3+ax+b on a subset of the integers to construct a trap door function suitable for cryptography. In embodiments of the invention, the subset of integers should be at least all 32-byte integers to maintain the minimum security guarantees of the herein disclosed system. Examples of an appropriate curve include secp256k used by Bitcoin and ed25519 (see Daniel J. Bernstein, Niels Duif, Tanja Lange, Peter Schwabe, BoYin Yang, High-speed high-security signatures, Journal of Cryptographic Engineering 2 (2012), 77-89).
Private Key: A private key is coordinate on the elliptic curve. An example of such a private key is:

    
    
        QX1R9sgBKgvbhEvxvibUqE8fGVQMzL7n8dgzACuufuP3ptUxDJmS.
    
    


Public Key: A public key is a coordinate generated by multiplying a private key curve coordinate with the point G in the curve definition. An example of such a public key is:

    
    
        DDAaRzdpz6pTz5qmvR7eQhWyzsWiKB1qgF.

What are Deterministic Addresses?

    
    


Elliptic curve mathematics permit schemes where one can calculate the public keys without revealing the private keys. In embodiments of the invention, this permits, for example, the generation of fresh addresses for each and every item and shipping carton on the globe. These addresses can be represented as bar-codes, QR-codes, or written into RFID tags of different types, i.e. UHF, NFC, etc.
In Bitcoin BIP325, the Bitcoin reference client uses randomly generated keys. To avoid the necessity for a backup after every transaction, (by default) 100 keys are cached in a pool of reserve keys. Still, these wallets are not intended to be shared and used on several systems simultaneously. They support hiding their private keys by using the wallet encrypt feature and not sharing the password, but such neutered wallets lose the power to generate public keys as well.
Deterministic wallets do not require such frequent backups, and elliptic curve mathematics permit schemes where one can calculate the public keys without revealing the private keys. This permits for example a webshop business to let its webserver generate fresh addresses (public key hashes) for each order or for each customer, without giving the webserver access to the corresponding private keys (which are required for spending the received funds).
However, deterministic wallets typically consist of a single chain of keypairs. The fact that there is only one chain means that sharing a wallet happens on an all-or-nothing basis. However, in some cases one only wants some (public) keys to be shared and recoverable. In the example of a webshop, the webserver does not need access to all public keys of the merchant's wallet; only to those addresses which are used to receive customer's payments, and not for example the change addresses that are generated when the merchant spends money. Hierarchical deterministic wallets allow such selective sharing by supporting multiple keypair chains, derived from a single root.
In embodiments of the invention, with regard to deterministic key generation, the derivation can use one chain or, in a hierarchical deterministic mechanism, can allow for multiple chains, each derived from a single root.
In cryptography, a key derivation function (or KDF) derives one or more secret keys from a secret value, such as a master key or other known information, such as a password or passphrase using a pseudo-random function. Key derivation functions are often used in conjunction with non-secret parameters to derive one or more keys from a common secret value, which is sometimes also referred to as key diversification. Such use may prevent an attacker who obtains a derived key from learning useful information about either the input secret value or any of the other derived keys. A KDF may also be used to ensure that derived keys have other desirable properties, such as avoiding weak keys in some specific encryption systems.
The most common use of KDFs is the password hashing approach to password verification, as used by the passwd file or shadow password file. The non-secret parameters are called salt in this context.
Key derivation functions are often used as components of multiparty key-agreement protocols. Examples of such key derivation functions include KDF1, defined in IEEE Std 1363-2000, and similar functions in ANSI X9.42. Key derivation functions are also used to derive keys from secret passwords or passphrases. The HMAC-based Extract-and-Expand Key Derivation Function (HKDF) specified in RFC 5869 is a simple HMAC-based KDF, which can be used as a building block in various protocols and applications.
In embodiments of the invention, HKDF is used in connection with the private key and security data, e.g. a serial number, to produce a private popcode for each sequential item in a lot or collection of associated items.
Popcodes can be derived from a sequence of identifiers through two approaches. The first approach applies if physical popcodes that encode the cryptographic information are manufactured by a provider, such as skuchain. The provider generates private cryptographic information. As a result, the provider can facilitate bulk operations against a range within the sequence of identifiers. The second approach allows a customer to privately manage the private popcodes but allows the provider to conduct operations on a range of identifiers.
When popcodes are produced by the provider, the provider derives the popcodes through the following process. The provider generates a secret key value. The size of this key value is determined by the choice of hash function. HMACSHA512 would use a 512 bit key. HMAC SHA512 run on the sequential identifier and key produces a 512 bit pseudorandom value. The 256 most significant bits can be extracted in the creation of elliptic curve key pair. By convention, one treats these bits as a 32 byte integer value and solves the curve equation with 32 bytes representing the x value. Now you have Xpriv,Ypriv. (Xpriv,Ypriv*G(the generator point)=(Xpub,Ypub). 0x01∥64 public bytes and hash them with Sha256 and shorten the hash to 160 bytes with RIPE160.
The 33 byte compressed private key is a private popcode that can be used to cryptographically prove possession. The 160 byte identifier is a unique non-sequential identifier that can be used to look up the provenance and tokens associated with the item.
If a customer wishes to produce popcodes where the secret popcode is not known to the provider, the provider can offer an alternative key derivation sequence. The customer securely generates a private point and a public point using the algorithm above. Take the public point(Xpub) and another 32 bytes of entropy and use this to key a HMAC(HMACSHA512) function that takes a sequential identifier and returns a pseudorandom 512 bit value. Take the most significant 256 bits and generate an intermediate curve point via solving the curve equation. Add the intermediate point to the customer private point to generate a new point that is a private popcode used to prove possession. Add the point to the customer public key and generate a new public point, where the SHA156 and RIPE160 can be used to look up the provenance of the item.
FIG. 1, which is a flow diagram showing the deterministic key generation according to the invention, shows the linking of a sequential number to a random number such that a user can perform a sequence of cryptographically secure transaction on an item-by-item basis without managing the underlying cryptography. In this case, a central, trusted authority (as discussed above) generates a series of private popcodes 12a, 12b, 12n, for each item in a lot of similar items. This is accomplished by concatenating a trusted party public key 10, security data 11, i.e. a master seed, and a serial number, for example by hashing with a key derivation function. The trusted party can apply a private key to verify any private popcode.
FIG. 2 is a further flow diagram showing deterministic key generation to derive private popcodes according to the invention. FIG. 2 shows popcode key derivation type 1 that is used to derive private popcodes. This permits prepoduction of popcodes in printed and RFID form. In FIG. 2, the key is a trusted authority secret key. The length of the key is determined by a hash function, i.e. a cryptographic hash function such as SHA 256, SHA 512, BLAKE2, etc. HMAC combines a key, a hash, and contents to produce a deterministic collision resistant value. An elliptic curve is shown, in which the curve equation of a finite field is suitable for cryptography, where the field size is less than or equal to the hash output.
FIG. 3 is a flow diagram showing deterministic key generation to derive public popcodes according to the invention.
FIG. 4 is a further flow diagram showing deterministic key generation to derive public popcodes according to the invention. FIG. 4 shows popcode key derivation type 2 with which a provider, such as skuchain, derives only public popcodes. Production of popcodes is the responsibility of the customers. In FIG. 4, Xpriv, Ypriv and Xpub, Ypub and the derivation code are used by the customer to generate an elliptic curve keypair, consisting of a private point and a derived public point on the curve. The customer generates a derivation code if additional data is required by the HMAC key. The hash is a cryptographic hash function, such as SHA 256, SHA 512, BLAKE2, etc. HMAC combines a key, a hash, and contents to produce a deterministic collision resistant value. An elliptic curve is shown, in which the curve equation of a finite field is suitable for cryptography, where the field size is less than or equal to the hash output.
The following discussion provide further details on each step of the invention.
Master Key Generation
In embodiments of the invention, the total number of possible extended key-pairs is almost 2^512, but the produced keys are only 256 bits long, and offer about half of that in terms of security. Therefore, master keys are not generated directly, but instead from a potentially short seed value. In an embodiment of the invention, this proceeds as follows:

    
    
        1. Generate a seed byte sequence S of a chosen length, e.g. between 128 and 512 bits (256 bits is advised) from a (P)RNG.
        2. Calculate a hash-based message authentication code (HMAC) using the SHA512 hash function, e.g. I=HMACSHA512(Key=“Bitcoin seed”, Data=S)
        3. Split I into two 32-byte sequences, IL and IR.
        4. Use parse256(IL) as master secret key, and IR as master chain code.
    
    


In case IL is 0 or ≧n, the master key is invalid.
Composition of Master Seed for Items, SKUs, and Shipping Cartons
The following differences are to be noted for how the master seed is generated for deterministic addresses used for every SKU and shipping carton on the globe:

    1. One of the fields (up to 32 bytes long) comprising the master seed is a public address that identifies the manufacturer, shipper, or relevant owning authority.
    2. This is followed by a sequence number that is up to 13 bytes long.
    3. This is followed by a seed byte sequence S of up to 19 bytes from a (P)RNG

Generation of Deterministic Addresses



FIG. 4 is a an elliptic curve diagram that highlights the generation of a public-private key-pair according to the invention. Elliptic curve cryptography is a type of asymmetric or public-key cryptography based on the discrete logarithm problem as expressed by addition and multiplication on the points of an elliptic curve. For example, bitcoin uses a specific elliptic curve and set of mathematical constants, as defined in a standard called secp256k1, established by the National Institute of Standards and Technology (NIST). The secp256k1 curve is defined by the following function, which produces an elliptic curve:

    
    
        \begin{equation} {y^2=(x^3+7)} ̃\text{over} ̃(\mathbb{f}_p) \end{equation}
    
    


or

    
    
        \begin{equation} {y^2\ mod p=(x^3+7)\ mod p} \end{equation}
    
    


The mod p (modulo prime number p) indicates that this curve is over a finite field of prime order p, also written as

    
    
        latexmath:[\(\mathbb{f}_p\)],

where p=2256-232-29-28-27-26-24-1, a very large prime number.

    
    


In embodiments of the invention, an elliptic curve is similar to that used by bitcoin. where:

    
    
        Given k=private key, K=public Key, and G=a point (x, y) on the curve; and
        kG=K.
    
    


In elliptic curves, adding a point to itself is the equivalent of drawing a tangent line on the point and finding where it intersects the curve again, then reflecting that point on the x-axis.
Now, given a sequential number (n1) a new point G1 can be derived that is at n1G1 and its associated key-pair.
Association of a Sequence of Addresses to a Group of Similar Items
It is problematic to associate a unique cryptographic address with each and every item in a group of similar items in a scalable manner. For example, how would a shipment of 1,000 boxes each be associated with a unique number?
FIG. 6 is a block schematic diagram showing an association of a sequence of addresses to a group of similar items according to the invention. Embodiments of the invention do this is by pre-generating a roll of labels, each having two fields, i.e. for each item in a collection of items, such as 1000 Tylenol® 500 mg capsules a unique cryptographic code is generated. The invention allows the code to be generated with sequential numbers, e.g. genesis-65-000069, genesis-65-00070. This makes labeling easy and allows the items to be sub-divided, e.g. the 1000 capsules can be divided into a subset comprising 300 Tylenol® 500 mg capsules. Each item or group of items is cryptographically secure and verifiable and, as well, each item or group of items is sequentially identified relative to each other item or group of items within the lot of associated items.
Thus, embodiments of the invention provide:

    1. A unique cryptographic address that is deterministically generated; and
    2. A sequence number that provides a pointer to the deterministic path on a cryptographic chain when associated with the original master seed and entropy used.


Thus, a pre-generated roll of, for example, a 1,000 labels is associated with a given product shipment. The labels are affixed one to each box in the shipment. In this manner, every box, every shipment, and every SKU is provided with a unique cryptographic address, whilst ensuring that the workflow to affix them is not onerous.
By generating a master seed that comprises a unique address for each lot/batch, manufacturer, distributor, shipper, or originating entity, and associating them with a sequential number, embodiments of the invention take advantage of the properties of elliptic curve mathematics to deterministically generate unique cryptographic key-pairs with a potential maximum of 2^512. This number is so large that it is possible to accommodate every single SKU, item, and shipment for the foreseeable future.
Computer System
FIG. 7 is a block diagram of a computer system as may be used to implement certain features of some of the embodiments. The computer system may be a server computer, a client computer, a personal computer (PC), a user device, a tablet PC, a laptop computer, a personal digital assistant (PDA), a cellular telephone, an iPhone, an iPad, a Blackberry, a processor, a telephone, a web appliance, a network router, switch or bridge, a console, a hand-held console, a (hand-held) gaming device, a music player, any portable, mobile, hand-held device, wearable device, or any machine capable of executing a set of instructions (sequential or otherwise) that specify actions to be taken by that machine.
The computing system 300 may include one or more central processing units (“processors”) 305, memory 310, input/output devices 325, e.g. keyboard and pointing devices, touch devices, display devices), storage devices 320, e.g. disk drives, and network adapters 330, e.g. network interfaces, that are connected to an interconnect 315. The interconnect 315 is illustrated as an abstraction that represents any one or more separate physical buses, point to point connections, or both connected by appropriate bridges, adapters, or controllers. The interconnect 315, therefore, may include, for example, a system bus, a Peripheral Component Interconnect (PCI) bus or PCI-Express bus, a HyperTransport or industry standard architecture (ISA) bus, a small computer system interface (SCSI) bus, a universal serial bus (USB), IIC (I2C) bus, or an Institute of Electrical and Electronics Engineers (IEEE) standard 1394 bus, also called Firewire.
The memory 310 and storage devices 320 arc computer-readable storage media that may store instructions that implement at least portions of the various embodiments. In addition, the data structures and message structures may be stored or transmitted via a data transmission medium, e.g. a signal on a communications link. Various communications links may be used, e.g. the Internet, a local area network, a wide area network, or a point-to-point dial-up connection. Thus, computer readable media can include computer-readable storage media, e.g. non-transitory media, and computer-readable transmission media.
The instructions stored in memory 310 can be implemented as software and/or firmware to program the processor 305 to carry out actions described above. In some embodiments, such software or firmware may be initially provided to the processing system 300 by downloading it from a remote system through the computing system 300, e.g. via network adapter 330.
The various embodiments introduced herein can be implemented by, for example, programmable circuitry, e.g. one or more microprocessors) programmed with software and/or firmware, or entirely in special-purpose hardwired (non-programmable) circuitry, or in a combination of such forms. Special-purpose hardwired circuitry may be in the form of, for example, one or more ASICs, PLDs, FPGAs, etc.
Although the invention is described herein with reference to the preferred embodiment, one skilled in the art will readily appreciate that other applications may be substituted for those set forth herein without departing from the spirit and scope of the present invention. Accordingly, the invention should only be limited by the claims included below.

## Claims

1. A computer implemented method for deterministically reproducible, cryptographic key-pair representation for a group of all associated items in a lot of similar items throughout a distribution chain, comprising:
with a processor, generating a master key, wherein generating the master key comprises:
generating a seed byte sequence of a chosen length from a pseudorandom number generator;
hashing a key and said seed byte sequence;
calculating a hash-based message authentication code by using said hashed key and seed byte sequence;
splitting said. hash-based message authentication code into two sequences; and
using one of said sequences as a master secret key and the other of said sequences as a master chain code;
with said processor, generating a plurality of deterministic addresses by using said master secret key;
with said processor, serially associating a deterministic address in a sequence of said deterministic addresses with respective each of the items in said lot of similar items on an item-by-item basis;
with said processor storing said deterministic address from said sequence of deterministic addresses for each of said items in said lot in a public ledger database that is maintained. in a distributed. manner as a blockchain;
with said processor, dynamically updating said public ledger to keep track of each logistic transaction throughout said distribution chain for each of said items in said group; and
with said processor by using said master chain code accessing said public ledger to verify logistic transactions throughout said distribution chain; said public ledger comprising a provenance management system in which said logistic transactions tracked within said public ledger verify provenance tracking and execute serialization of said items throughout said distribution chain.

2. The method of claim 1, further comprising:
using said seed byte sequence as a public address that identifies any of a manufacturer, shipper, or relevant owning authority;
adding a sequence number to said public address; and adding a seed byte sequence of a chosen length from a pseudorandom number generator to said public address and said sequence number.

3. The method of claim 1, comprising:
deterministically generating a unique cryptographic address comprising a sequence number; and
using a generated sequence number as a pointer to a deterministic path on a cryptographic chain when associated with an original master seed.