A digital copy of the product is captured as the base-level product signature.
The signature of each product going into the next-level package is captured in the same way.
The code on the next-level package is scanned and locked to the aggregated codes from the first level signatures. This starts the blockchain.