Verify logic
Last updated
Last updated
We use Merkle tree verification to put product information on the blockchain. The root of the Merkle tree are pre-stored in the brand's smart contract. During the verification process, the system first hashes the user's verification code to generate a leaf node of the Merkle tree, then calculates the corresponding Merkle tree proof array. These data are inputted as parameters into the smart contract, completing the verification process and ensuring accuracy and immutability.
The architecture of the SHA256 project eliminates the possibility of re-verifying codes, effectively curbing the circulation of counterfeit products. This significantly reduces the possibility of manufacturing and circulating counterfeits for our partner brands, providing strong protection for both brands and consumers.