In order to deal with the increasing number of counterfeit and shoddy products, which brings trust crisis to consumers and manufacturers, a traceability method of packaging anti-counterfeiting information based on blockchain traceability is proposed. This method uses the immutable, distributed consensus and transparency of blockchain technology to realize the full traceability and anti-counterfeiting protection of the product life cycle. In order to verify the feasibility and effect of this method, a series of simulation experiments are carried out. The experimental results show that the optimized algorithm is better than PBFT in three aspects of communication cost, throughput and delay. The packaging anti-counterfeiting information tracing method using the optimized algorithm can effectively prevent the circulation of fake and shoddy products and improve consumers" trust in products. With further research and practice, the method can be optimized to drive sustainable development of the business ecosystem.