Blockchain-based interior decoration material traceability management system
By using a blockchain-based traceability management system, characteristic hash values and data of decorative materials are generated and analyzed, enabling full traceability management from warehousing to the construction site. This solves the problems of responsibility positioning and data authenticity in the circulation process, and improves the accuracy and credibility of traceability management.
Patent Information
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- FUJIAN AGRI & FORESTRY UNIV
- Filing Date
- 2026-03-09
- Publication Date
- 2026-05-08
AI Technical Summary
The current circulation process of interior decoration materials lacks precise management, resulting in poor traceability management and difficulty in tracing problems in the circulation process.
The blockchain-based traceability management system generates source feature hash values through the identification management unit, the circulation management unit collects and analyzes the attendance data in real time to generate circulation hash strings, and the verification management unit generates verification feature hash values. The system integrates all nodes to form a traceability management chain, achieving precise and dynamic control and responsibility positioning throughout the entire process.
It enables precise and dynamic control over the transportation process of interior decoration materials, allowing for accurate tracing of issues in the circulation process, ensuring consistent and authentic delivery, and improving the accuracy and credibility of traceability management.
Smart Images

Figure CN121810317B_ABST
Abstract
Description
Technical Field
[0001] This invention relates to the field of traceability management technology, specifically to a blockchain-based traceability management system for interior decoration materials. Background Technology
[0002] Currently, the traceability management of interior decoration materials is often carried out at the entry and exit points of the warehouse. For example, when materials enter and leave the warehouse, electronic tags are used to record the quantity of materials, the date of entry and exit, and the person in charge, thus forming a traceable record chain, which facilitates the traceability and management of interior decoration materials in the later stages.
[0003] However, the above-mentioned traceability management method still has the following defects in practical application: At present, although the entry and exit of interior decoration materials are recorded, the circulation process of interior decoration materials from the warehouse to the construction site often lacks precise management. This makes it difficult to trace back and find out which circulation link the problem occurred if damage occurs during circulation, resulting in a poorer traceability management effect. Summary of the Invention
[0004] To address the shortcomings of existing technologies, this invention provides a blockchain-based traceability management system for interior decoration materials, which solves the aforementioned problems.
[0005] The above-mentioned technical objective of the present invention is achieved through the following technical solution:
[0006] A blockchain-based traceability management system for interior decoration materials includes:
[0007] The identification management unit is used to obtain the basic data and unique identifier of the target management object when it leaves the warehouse, merge the basic data and unique identifier to generate the source feature hash value, and upload the source feature hash value to the blockchain node as an immutable traceability initial node. The target management object is the board material in the interior decoration materials.
[0008] The circulation management unit is used to acquire the check-in data of the target managed object during transportation in real time every half hour, analyze the check-in data and the original feature hash value, generate the circulation hash string, use the circulation hash string as a new node in the blockchain, establish an irreversible association with the traceability initial node, and synchronize it to the full blockchain node for chain storage.
[0009] The verification management unit is used to obtain verification data of the target management object arriving at the construction site, extract the verification data, generate a verification feature hash value, match the verification feature hash value with the original feature hash value, generate a verification certificate, and synchronize the verification certificate to the blockchain node for storage.
[0010] The traceability management unit integrates the various nodes of the blockchain to obtain the traceability management chain.
[0011] Furthermore, the basic data and unique identifiers are merged to generate the original feature hash value, including:
[0012] The batch number in the basic data is converted to generate a batch management code, and the features of the outbound packaging images in the basic data are extracted to obtain the initial visual feature code.
[0013] The batch management code, initial visual feature code, and unique identifier are aggregated to generate a management identifier fusion value;
[0014] The outbound time, outbound location and management identifier in the basic data are combined and bound to generate a spatiotemporal binding management voucher.
[0015] Furthermore, the basic data and unique identifiers are fused to generate the original feature hash value, which also includes:
[0016] Analyze the spatiotemporal binding management credentials and generate a management process summary value;
[0017] The management process summary value and the unique identifier are used to jointly calculate and generate a self-verifying reinforcement factor;
[0018] Perform a hash operation on the self-verification reinforcement factor to obtain the original feature hash value.
[0019] Furthermore, the attendance data and the original feature hash value are analyzed to generate a circulating hash string, including:
[0020] Analyze the images of transport packaging in this check-in data to generate a flow status monitoring vector that represents the status changes of the target management object during transportation;
[0021] The names of those who clocked in and out in the clock-in data are associated with the clock-in time to generate performance behavior analysis values;
[0022] The current circulation status monitoring vector is compared with the circulation status monitoring vector of the previous check-in time to generate anomaly deviation.
[0023] Furthermore, the analysis of attendance data and original feature hash values generates a circulating hash string, which also includes:
[0024] The flow status monitoring vector, performance behavior analysis value and abnormal deviation degree are fused and encoded to generate a transportation segment management certificate representing the management facts of the transportation segment;
[0025] The transportation segment management certificate is associated with the original feature hash value on the blockchain to generate a time-series chain-style rights and responsibilities binding code.
[0026] Furthermore, the analysis of attendance data and original feature hash values generates a circulating hash string, which also includes:
[0027] Using the current block hash of the blockchain network as the on-chain real-time state anchor, the time-series chain-style responsibility binding code and the on-chain real-time state anchor are calculated to generate a dual on-chain state anchor code.
[0028] A hash operation is performed on the double anchor code of the chain state to obtain the flowing hash string.
[0029] Furthermore, the verification data is extracted to generate a verification feature hash value. This verification feature hash value is then matched with the original feature hash value to generate a verification credential, including:
[0030] The on-site packaging images in the verification data are analyzed, their visual features are extracted, and they are fused and encoded with the verification time, the name of the community at the construction site, and the floor number to generate a delivery consistency judgment vector.
[0031] The current block hash of the blockchain network is used as the on-chain final state anchor point. The delivery consistency judgment vector is bound to the on-chain final state anchor point to generate a counterfeit-proof spatiotemporal delivery stamp.
[0032] Calculate the anti-counterfeiting spatiotemporal delivery stamp to generate a verification feature hash value.
[0033] Furthermore, the verification data is extracted to generate a verification feature hash value. This verification feature hash value is then matched with the original feature hash value to generate a verification credential. This process also includes:
[0034] The delivery consistency determination vector is matched with the original feature hash value to generate a determination identifier;
[0035] The judgment identifier is combined with the name of the verifier in the verification data to obtain the performance status signature code;
[0036] The verification feature hash value, judgment identifier, performance status signature code, and on-chain final state anchor point are integrated to generate a verification credential.
[0037] Furthermore, by integrating the various nodes of the blockchain, a traceability management chain is obtained, including:
[0038] Data from each node in the blockchain is aggregated to generate a full-link association feature code.
[0039] Furthermore, by integrating the various nodes of the blockchain to obtain a traceability management chain, it also includes:
[0040] Using the full-link association feature code as the core index, the data of each node is reorganized and irreversibly linked to generate a traceability management chain with association mapping.
[0041] In summary, the present invention has the following main beneficial effects:
[0042] The identification management unit integrates basic data with unique identifiers to generate source feature hash values, which are then uploaded to the blockchain as the initial node for traceability. Simultaneously, the circulation management unit collects transportation check-in data every half hour in real time, combining it with the source feature hash values to generate circulation status monitoring vectors, performance analysis values, and abnormal deviations. Through fusion encoding and correlation calculations, a circulation hash string is generated, establishing an irreversible association between the circulation hash string and the initial node. This achieves precise and dynamic control over the entire transportation circulation process, accurately capturing changes in the status of the target managed object during transportation. If damage occurs, the specific circulation stage can be accurately traced back using a time-series chain-based responsibility binding code, clarifying the responsible party. This solves the problem of difficulty in tracing issues in the circulation process in traditional solutions. Furthermore, the verification management unit generates verification credentials by extracting verification data and matching it with the source feature hash values, ensuring delivery consistency and authenticity. Finally, the traceability management unit integrates various blockchain nodes to form a traceability management chain with correlation mappings. The data in the traceability management chain is tamper-proof, ensuring the credibility and integrity of traceability information and improving the accuracy of traceability management for interior decoration materials. Attached Figure Description
[0043] Figure 1 This is a schematic diagram of the blockchain-based traceability management system for interior decoration materials according to the present invention. Detailed Implementation
[0044] The technical solutions of the embodiments of the present invention will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only some embodiments of the present invention, and not all embodiments. Based on the embodiments of the present invention, all other embodiments obtained by those skilled in the art without creative effort are within the scope of protection of the present invention.
[0045] refer to Figure 1 A blockchain-based traceability management system for interior decoration materials includes:
[0046] The identification management unit is used to obtain the basic data and unique identifier of the target management object when it leaves the warehouse, merge the basic data and unique identifier to generate the source feature hash value, and upload the source feature hash value to the blockchain node as an immutable traceability initial node. The target management object is the board material in the interior decoration materials.
[0047] Among them, the unique identifier is the coded information of the RFID electronic tag;
[0048] Basic data includes: batch number of the board, image of the board's outbound packaging, outbound time, outbound location, etc.
[0049] The circulation management unit is used to acquire the check-in data of the target managed object during transportation in real time every half hour, analyze the check-in data and the original feature hash value, generate the circulation hash string, use the circulation hash string as a new node in the blockchain, establish an irreversible association with the traceability initial node, and synchronize it to the full blockchain node for chain storage.
[0050] The attendance data includes: images of the transport packaging of the boards, attendance time, and names of the personnel who attended the attendance check-in.
[0051] The verification management unit is used to obtain verification data of the target management object arriving at the construction site, extract the verification data, generate a verification feature hash value, match the verification feature hash value with the original feature hash value, generate a verification certificate, and synchronize the verification certificate to the blockchain node for storage.
[0052] The verification data includes: on-site packaging images of the boards, verification time, name of the residential area, floor number, and name of the verification personnel at the construction site;
[0053] The traceability management unit is used to merge the nodes of the blockchain to obtain the traceability management chain.
[0054] In one embodiment, the basic data and unique identifier are fused to generate an original feature hash value, including:
[0055] The batch number in the basic data is converted to generate a batch management code. Features are extracted from the outbound packaging images in the basic data to obtain the initial visual feature code. Specifically, the batch number and the outbound time are concatenated into a string in the format [batch number]-[time]. The SHA-256 hash value of the concatenated string is calculated to obtain a 64-bit hexadecimal hash string. Starting from the beginning of the hash string, the first 12 bytes, i.e., the first 24 hexadecimal characters, are extracted and used directly as the batch management code. The batch management code is a unique time identifier for the board batch. In traceability management, its role is to accurately distinguish between different batches of the same type of board and avoid traceability errors caused by batch confusion.
[0056] The outbound packaging image is scaled proportionally and centered to a uniform size of 512 pixels × 512 pixels. The image is converted from the RGB color space to the YCbCr color space, retaining only the blue and red difference components. Each component of the image is evenly divided into 64 sub-blocks of 8×8. For each sub-block, a discrete Haar wavelet transform is applied to extract the 4×4 coefficient matrix of its low-frequency sub-band.
[0057] For each coefficient matrix, calculate the ratio of the sum of its main diagonal elements to the absolute value of the determinant to obtain a floating-point value; multiply the floating-point value by 1000 and round it down to obtain the quantized value.
[0058] The 128 quantized values of all sub-blocks of the blue difference and red difference components are converted into 6-bit binary codes in sequence and concatenated to form a total of 768-bit binary sequence. The SHA-256 hash value of the binary sequence is calculated, and the resulting 256-bit (32-byte) hexadecimal string is the initial visual feature code. The initial visual feature code is used to record the packaging status of the board when it leaves the warehouse, which is convenient for comparison with subsequent images to determine whether the packaging has been damaged or replaced.
[0059] The batch management code, initial visual feature code, and unique identifier are aggregated to generate a management identifier fusion value. Specifically, this includes: concatenating the batch management code, initial visual feature code, and RFID code information into an intermediate string in sequence; calculating the MD5 hash value of the intermediate string to obtain a 128-bit digest; and converting the digest into decimal values in groups of two characters to form a sequence of 64 values.
[0060] For this sequence, the values are grouped into groups of 8 in order. The sum of the values in each group is divided by 256 and the remainder is taken. The remainder is one byte, thus obtaining 8 aggregated bytes.
[0061] After converting the aggregated bytes to hexadecimal format, an XOR operation is performed with the first 8 characters of the batch management code to obtain a new 8-character string, which is the verification code. The middle string is then concatenated with the verification code to obtain the complete concatenated string. The SHA-256 hash value of the complete string is calculated, and the resulting 256-bit (64-character) hexadecimal string is the management identifier fusion value. The management identifier fusion value is used to achieve triple binding of batch information, packaging visual features, and electronic tag identification, solving the problem that a single RFID tag is easily tampered with or replaced, and ensuring the authenticity of the starting point of the traceability chain.
[0062] The system binds the outbound time, outbound location, and management identifier value in the basic data to generate a spatiotemporal binding management voucher. Specifically, this includes: converting the outbound time into a standard format string, accurate to milliseconds; concatenating all numeric characters in the standard format string into a number sequence in their order; for the number sequence, starting from the second digit, taking out every other digit and multiplying it by 2; if the result is greater than 9, subtracting 9; then adding the result to the remaining digits and the first digit to obtain the sum; and using the last four digits of the sum as the time factor.
[0063] The latitude and longitude coordinates of the departure location are converted into integer seconds, and then concatenated into a location code in the format of longitude seconds - latitude seconds. For example, for a longitude of 116.4086 degrees, its integer part (116 degrees) is multiplied by 3600 to get 417600 seconds; its decimal part (0.4086 degrees) is multiplied by 3600 to get approximately 1470.96 seconds; these two parts of seconds are added together to get approximately 419070.96 seconds, and then rounded to the nearest integer to get 419071 seconds as the integer second value of the longitude.
[0064] The first 16 characters of the management identifier fusion value are concatenated with the time factor and location code, and the SHA-256 hash value of the concatenation result is calculated. The last 48 characters of the calculated result are used as the spatiotemporal binding management credential. The spatiotemporal binding management credential is used to record the physical location and time of the outbound shipment to prevent data fraud.
[0065] In one embodiment, fusing basic data and unique identifiers to generate an original feature hash value further includes:
[0066] The spatiotemporal binding management voucher is analyzed to generate a management process summary value. Specifically, the 48-bit hexadecimal spatiotemporal binding management voucher is converted into 24 decimal values in groups of two characters each. These 24 values are then divided into three groups of eight values each. The first group of values is sorted in ascending order, the second group is sorted in descending order, and the order of the third group remains unchanged.
[0067] Then, these three sets of processed values are reassembled in order to form a new sequence containing 24 values. The sum of all values in the new sequence is calculated and converted into an 8-character hexadecimal string, which serves as the middle key. The spatiotemporal binding management certificate is concatenated with the middle key, and the SHA-256 hash value of the concatenation result is calculated again. The resulting complete 64-bit hash value is the management process digest value. In traceability management, the management process digest value serves to reduce the storage pressure on the blockchain while ensuring the integrity of the outbound data. At the same time, the uniqueness of the digest prevents the outbound data from being tampered with, ensuring that the initial data retrieved during traceability is authentic and valid.
[0068] The management process summary value and the unique identifier are jointly calculated to generate a self-verifying reinforcement factor. Specifically, the 64 characters of the management process summary value and the unique identifier are interleaved and embedded according to the length ratio to form a mixed string. Starting from the first character of the management process summary value, characters are extracted sequentially. After every 3 characters are extracted, the next character of the unique identifier is inserted until all characters of the unique identifier are inserted. The remaining characters of the management process summary value are then appended.
[0069] Calculate the SHA-256 hash value of the mixed string, taking its first 16 characters as the base value; convert each character of the mixed string to its corresponding ASCII code value, add all the ASCII code values together, divide the sum by the prime number 10007, and get the remainder. Format the remainder into a 4-digit number. If it is less than four digits, add leading zeros to obtain the checksum.
[0070] The base value is concatenated with the checksum, and the SHA-256 hash value of the concatenated string is calculated again. The last 32 characters of the calculation result are used as the self-verification enhancement factor. The self-verification enhancement factor mainly gives the initial traceability node the ability to verify itself. Subsequent circulation and verification processes can use this factor to verify the authenticity of the original feature hash value, prevent the initial node from being maliciously forged, and ensure that the baseline of the whole-chain traceability is not destroyed.
[0071] The self-verification enhancement factor is hashed to obtain the original feature hash value. Specifically, this involves: repeating the 32-character self-verification enhancement factor once to form a 64-character repeating string; calculating the SHA-512 hash value of the repeating string to obtain 128 characters; performing a character-by-character XOR operation on the first 24 and last 24 characters of the 128 characters to generate 24 new characters; concatenating the self-verification enhancement factor and the 24 new characters in order to form a final string of 56 characters; and calculating the SHA-384 hash value of the final string, with all 96 characters being the original feature hash value.
[0072] By generating source feature hash values, the problem of missing management in the circulation of interior decoration materials is effectively solved. Among them, batch management codes enable accurate differentiation of different batches of the same type of interior decoration materials, initial visual feature codes can verify the damage and replacement status of board packaging in real time, management identification fusion values complete triple binding to prevent tampering, spatiotemporal binding management vouchers accurately record the spatiotemporal information of the warehouse to prevent counterfeiting, and self-verification enhancement factors give the initial node self-verification capabilities, forming a complete traceability link. It can accurately trace back the problems in each link of circulation, improve the traceability management effect, and ensure the authenticity and accuracy of the traceability of interior decoration materials from the warehouse to the construction site.
[0073] In one embodiment, the attendance data and the original feature hash value are analyzed to generate a circulating hash string, including:
[0074] Analyze the transport packaging images in this check-in data to generate a flow status monitoring vector representing the status changes of the target management object during transportation. Specifically, this includes: scaling the transport packaging images to a width of 512 pixels while maintaining the original aspect ratio, converting the scaled transport packaging images from the RGB color space to the HSV color space, separating and retaining only the saturation component to obtain a saturation image.
[0075] The saturation image is divided into three equal parts in both the horizontal and vertical directions. The dividing lines intersect to form nine intersection points, which are then used as fixed grid nodes.
[0076] For each grid node, a local image with a side length of 41 pixels is cropped centered on it; for the local image, three Gabor filter banks with different directions are used, with their center frequency set to 0.3 cycles / pixel and their directions precisely set to 15 degrees, 45 degrees and 75 degrees respectively; each filter is convolved with the local image to obtain three corresponding filter response maps.
[0077] For the filtered response map in each direction, the sum of the standard deviation and the mean absolute deviation of the pixel intensity is calculated to obtain a scalar value representing the strength of the texture energy in that direction.
[0078] When analyzing changes in transportation status, the three scalar values calculated from the current check-in image are compared with the corresponding scalar values calculated from the previous check-in image at the same node location; the relative rate of change for each pair of scalar values is calculated, and this relative rate of change is the deformation response intensity value of the node in a specific direction.
[0079] All 9 node positions are concatenated in 3 directions to generate a total of 27 deformation response intensity values, which are then linked together in node order and angle order. This generates a 27-dimensional flow status monitoring vector representing the overall deformation state of the packaging during the transportation of the target management object.
[0080] The system associates the names of those who clock in with the clock-in time in the clock-in data to generate performance behavior analysis values. Specifically, it involves looking up the first letter of the pinyin of each character in the name of the person who clocked in in the standard ASCII encoding table, converting it into its ASCII code value, and then adding them together to get the sum.
[0081] Convert the check-in time into a pure number string in the format of year, month, day, hour, minute, and second. Calculate the absolute value of the difference between each pair of adjacent number characters in the check-in string, and concatenate these absolute values in order to form a new number string.
[0082] Divide the value of the new numeric string by 1009 and take the remainder as the time remainder value. Multiply the sum by the time remainder value, convert the product into a decimal numeric string, calculate the sum of all values in the decimal numeric string, and then multiply the sum by the length of the check-in time string to obtain the performance behavior analysis value. In traceability management, the performance behavior analysis value is used to bind the operating entity and time of each flow check-in link and clarify the responsible personnel of each flow node.
[0083] The current flow status monitoring vector is compared with the flow status monitoring vector of the previous check-in time to generate anomaly deviation. Specifically, this includes: for the current check-in flow status monitoring vector and the corresponding flow status monitoring vector of the previous check-in, the flow status monitoring vector is divided into three 9-dimensional sub-vectors according to the texture direction, corresponding to the 15-degree, 45-degree and 75-degree directions respectively; for each direction sub-vector, the absolute difference between the current value and the previous value of each corresponding element is calculated and summed to obtain the difference sum value in that direction.
[0084] For the second value of the current check-in string, multiply it by the fixed length of the flow status monitoring vector, 27, divide the product by the prime number 101 and take the remainder to obtain the baseline value; calculate the absolute cosine value of the difference between each direction angle and the right angle 90 degrees, and normalize the three absolute cosine values so that their sum equals 1, thereby obtaining the weights of the three basic directions.
[0085] Multiply the weight of each basic direction by the baseline value and then divide by 100 to obtain three weighting coefficients; multiply the weighting coefficients by the sum of the differences in the corresponding directions to obtain the weighted difference value; sum the weighted difference values of the three directions to obtain the total difference measure, and normalize this total difference measure to the 0-1 range to obtain the abnormal deviation degree of this check-in. The abnormal deviation degree is mainly used to reflect the degree of difference in the packaging status of a single circulation segment.
[0086] In one embodiment, analyzing the attendance data and the original feature hash value to generate a circulating hash string further includes:
[0087] The flow status monitoring vector, performance behavior analysis value, and abnormal deviation degree are fused and encoded to generate a transport segment management certificate representing the management facts of the transport segment. Specifically, the flow status monitoring vector is rearranged into a 3x9 matrix, and the singular value decomposition of the matrix is calculated to extract the three largest singular values. These three singular values are then multiplied by 1000 and rounded to obtain three integers.
[0088] The performance behavior analysis value is multiplied by these three integers in sequence, and then the three product results and the abnormal deviation degree, a total of four values, are converted into 32-bit binary codes respectively.
[0089] Then, these four groups of 32-bit binary codes are written into the four cells of a 2x2 grid in a fixed order: the first group is written to the top left position, the second group to the top right position, the third group to the bottom left position, and the fourth group to the bottom right position; then, the binary codes in the grid are read from left to right and from top to bottom, and concatenated to form a 128-bit binary sequence.
[0090] Calculate the Keccak-384 hash value of the sequence, and the resulting 96-character hexadecimal string is the transport segment management certificate representing the transport segment management fact.
[0091] The transportation segment management certificate is associated with the original feature hash value on the blockchain to generate a time-series chain-style rights and responsibilities binding code. Specifically, the following steps are taken: the 96-character transportation segment management certificate is denoted as A, and the 96-character original feature hash value is denoted as B. A and B are split separately. A is divided into groups of 4 characters in sequence, resulting in 24 groups. B is divided into groups of 3 characters in sequence, resulting in 32 groups.
[0092] The remainder of the ASCII code value of the first character of the original feature hash value divided by 3 is used as a control signal to determine the reassembly order. The remainder is 0, 1, or 2: if the remainder is 0, then groups A and B are merged alternately; if the remainder is 1, then groups A and B are merged in a cyclical manner; if the remainder is 2, then groups A and B are merged in a cyclical manner. When all groups are used up, the remaining groups are concatenated in order to form a new intermediate string.
[0093] Extract the minute portion of the attendance string, convert it to an integer M, and then perform three rounds of iteration. Each round of operations is fixed: cyclically shift the middle string to the left by M bits, then calculate its SHA-256 hash value, and use the result as the input string for the next round. After three rounds of iteration, the final hash value is obtained.
[0094] The first 40 characters of the final hash value are used as a prefix, and the last 32 characters are used as a suffix. The hour and minute values in the attendance time string are concatenated, for example, if the hour is 14 and the minute is 05, then 1405 is concatenated as a 4-digit connector. The prefix, connector, and suffix are concatenated in sequence to form a string with a total length of 76 characters. This string is the time-series chained responsibility binding code. In traceability management, the time-series chained responsibility binding code is used to realize the irreversible chained binding between the data in the circulation stage and the initial traceability benchmark, to prevent the circulation data from being tampered with or deleted individually, and at the same time to strengthen the time sequence of the circulation links, ensuring that the traceability chain is continuous and traceable in chronological order.
[0095] In one embodiment, analyzing the attendance data and the original feature hash value to generate a circulating hash string further includes:
[0096] Using the current block hash of the blockchain network as the on-chain real-time state anchor, the on-chain state dual anchor code is generated by calculating the time-series chain-style responsibility binding code and the on-chain real-time state anchor, specifically including:
[0097] The latest block hash of the blockchain network is used as the on-chain real-time state anchor. The last 16 characters of the on-chain real-time state anchor are used as the anchor suffix, and the first 32 characters of the time-series chain-style responsibility binding code are used as the binding code prefix. The anchor suffix and the binding code prefix are directly concatenated to obtain an initial string of 48 characters.
[0098] For the two-digit second part of the check-in string, if the number is less than 38, then take this number as the starting position and perform a circular extraction on the initial string: take 36 consecutive characters from this position, and if the end is reached, continue from the beginning; if the number is greater than or equal to 38, then swap the beginning and end of the initial string and extract 36 characters starting from the 10th position.
[0099] The extracted 36-character fragment is combined with the complete time-series chained responsibility binding code: the former is placed at the beginning and the latter at the end, forming a very long combined string; a double hash operation is performed on the combined string: first, its SHA3-512 hash value is calculated, resulting in 128 characters, and then the BLAKE2s hash value is calculated on the result of the 128 characters, resulting in 64 characters;
[0100] Extracting the 40 characters between the 10th and 49th positions from the 64 characters yields the on-chain state double anchor code. The purpose of the on-chain state double anchor code is to anchor the flowing data to the real-time state of the blockchain, preventing the flowing nodes from being maliciously deleted or tampered with.
[0101] The on-chain state double anchor code is hashed to obtain the flow hash string. Specifically, the 40-character on-chain state double anchor code is split into odd and even positions, resulting in 20-character odd-position character substrings and 20-character even-position character substrings. These substrings are then concatenated in the order of even-position character substrings first and odd-position character substrings last to form a 40-character recombined string. The recombined string is then hashed using the SM3 hash algorithm, and the first 32 characters of the hash result are extracted to form the flow hash string. In traceability management, the flow hash string records the flow status of each half-hour check-in cycle and establishes a connection with the initial traceability node to form a chain record, ensuring that every step of the flow process is traceable.
[0102] By accurately capturing transport packaging deformation through circulation status monitoring vectors, binding the rights and responsibilities of each circulation node with the performance behavior analysis value, and using the abnormal deviation degree to reflect the differences in the packaging status of the boards, the time-series chain-based rights and responsibilities binding code realizes the irreversible chain binding of circulation data with the initial benchmark, and the dual anchoring code of the chain status strengthens the anti-tampering capability. The circulation hash string forms a full-cycle chain record, covering the entire link from warehouse to construction site, which can accurately trace back the circulation links of problems such as damage, and improve the accuracy of traceability management.
[0103] In one embodiment, the verification data is extracted to generate a verification feature hash value. The verification feature hash value is then matched with the original feature hash value to generate a verification credential, including:
[0104] The on-site packaging images in the verification data are analyzed, their visual features are extracted, and they are fused and encoded with the verification time, the name of the community at the construction site and the floor number to generate a delivery consistency judgment vector. Specifically, the size of the on-site packaging images is uniformly adjusted to 512 pixels × 512 pixels and converted to the HSV color space. The saturation channel is extracted separately, and the standard deviation of the pixel values of the channel image in 16 evenly spaced areas in the horizontal and vertical directions is calculated to obtain 32 basic texture feature values.
[0105] Convert the hour, minute, and second portions of the verification time to integers, add them together, and take the last 4 digits of the sum as the time code.
[0106] For the name of the community at the construction site, look up the ASCII code value of the first letter of the pinyin of each character in the name in the standard ASCII encoding table, add up the ASCII code values of all characters, convert the sum into an 8-digit hexadecimal string, and then use the ASCII code value of each character in this string as an 8-digit location code.
[0107] For the floor number, add a constant of 1000 to the floor number value, square the result, and use the middle 4 digits of the squared value as the floor feature code.
[0108] The 32 texture feature values, 4-bit time code, 8-digit location code, and 4-digit floor feature code are concatenated in sequence to form a sequence containing 48 numerical elements.
[0109] Extract the first 64 hexadecimal characters from the original feature hash value, convert every 4 characters into a decimal integer, and obtain a total of 16 integers as weight coefficients;
[0110] The normalized sequence containing 48 elements is divided into 16 subsequences in order, each containing 3 elements. For each subsequence, the sum of all its elements is multiplied by the corresponding weight coefficient. The product is then divided by the prime number 10007 and the remainder is taken. The 16 remainder values are arranged in order to form the delivery consistency judgment vector. The delivery consistency judgment vector is mainly used to compare the consistency between on-site packaging and outbound packaging to determine whether the board packaging is damaged.
[0111] The current block hash of the blockchain network is used as the on-chain final state anchor point. The delivery consistency judgment vector is bound to the on-chain final state anchor point for calculation to generate a counterfeit-proof spatiotemporal delivery stamp. Specifically, the last 32 characters of the latest block hash of the blockchain network are used as the on-chain final state anchor point. These 32 characters are converted into 16 decimal numbers in groups of 2 characters to form the anchor point number sequence.
[0112] For the 16 elements of the delivery consistency determination vector, the elements are divided into groups of 2 in order, for a total of 8 groups. The product of the two elements in each group is divided by the prime number 1013 and the remainder is taken to obtain 8 binding values. The first 8 numbers of the anchor number sequence are added to the 8 binding values in turn, and each sum is converted into a 4-digit hexadecimal string, for a total of 8 strings. These 8 strings are concatenated in order into a 64-character composite string. The SHA3-256 hash value of the composite string is calculated, and all 64 characters are taken as the anti-counterfeiting spatiotemporal delivery stamp. The anti-counterfeiting spatiotemporal delivery stamp is used to strengthen the anti-counterfeiting of the verification data and ensure the authenticity of the traceability closed loop.
[0113] The anti-counterfeiting time-space delivery stamp is calculated to generate a verification feature hash value. Specifically, this includes: extracting the odd-numbered characters from the 64-character anti-counterfeiting time-space delivery stamp to form a first substring, and extracting the even-numbered characters from the 64-character anti-counterfeiting time-space delivery stamp to form a second substring; converting the 32 characters of the first substring to their respective ASCII values and summing them to obtain a first sum; converting the 32 characters of the second substring to their respective ASCII values and summing them to obtain a second sum; multiplying the first sum by the second sum, and adding all the digits in the decimal string of the product result to obtain the initial base.
[0114] Using the initial base as the input value for the first round of iteration, a total of five rounds of iterative calculations are performed. In each round of iteration, the following operations are performed: multiply the input value of this round by a fixed prime number 137, and add the current round number (1 for the first round, 2 for the second round, and so on) to obtain an intermediate value. Divide the intermediate value by 20 and take the remainder to obtain the output value of this round of iteration, which is then used directly as the input value for the next round of iteration.
[0115] After five rounds of iteration, the five output values are converted into 6-digit hexadecimal strings and concatenated in the order of iteration to form an intermediate result string of 30 characters. The SHA-384 hash value of the intermediate result string is calculated, and the resulting 96-character hash string is the verification feature hash value. The verification feature hash value is used to determine whether there are any abnormalities in the entire board material supply chain by matching it with the original feature hash value.
[0116] In one embodiment, the verification data is extracted to generate a verification feature hash value, and the verification feature hash value is matched with the original feature hash value to generate a verification credential. The method further includes:
[0117] The delivery consistency determination vector is matched with the original feature hash value to generate a determination identifier. Specifically, this involves: extracting 64 characters from the 17th to the 80th position of the original feature hash value, dividing them evenly into 8 groups of 8 characters each; converting and summing the hexadecimal values of each group of characters, dividing the sum by the prime number 1009 and taking the remainder to obtain 8 index values; using these 8 index values, selecting 8 elements at corresponding positions from the 16 elements of the delivery consistency determination vector to form the first comparison sequence.
[0118] For the last 16 characters of the original feature hash value, divide them into groups of two characters in order to get 8 groups of hexadecimal numbers; convert each group of two characters into a decimal number, then add the two decimal numbers together, divide by the prime number 101 and take the remainder. The 8 remainders are the 8 base values.
[0119] Calculate the absolute value of the positional difference between the 8 elements of the first comparison sequence and the 8 benchmark values, and add these 8 absolute values to obtain the cumulative difference value. If the cumulative difference value is ≤5, generate a judgment mark of 1, indicating that the board material has not experienced any abnormality in the current chain of outbound, transportation and verification, so it is completely consistent; otherwise, generate a judgment mark of 0, indicating that there is an abnormality.
[0120] The judgment identifier is combined with the name of the verifier in the verification data to obtain the performance status signature code. Specifically, this includes: calculating the Unicode code point value of each character in the name of the verifier, adding the code point values of all odd characters to get the odd sum, adding the code point values of all even characters to get the even sum; multiplying the odd sum and the even sum, and using the absolute value of the product as the name feature value.
[0121] Next, the judgment indicator is converted into an angle: if the indicator is 1, the angle is 30 degrees; if the indicator is 0, the angle is 60 degrees.
[0122] Calculate the sine value of the angle, multiply the sine value by the name feature value, and take the integer part to obtain the basic code;
[0123] Perform an XOR operation on the second part of the verification time and the basic code, and concatenate the XOR result twice to form a long string; calculate the number of all numeric characters in the long string, use this number as the number of bits for the circular left shift, and perform a circular left shift operation on the long string once.
[0124] The long string after the circular left shift is Base64 encoded once. Then, the 5th to 12th characters are extracted from the encoded result and converted into the corresponding ASCII code value sequence. All the values in the ASCII code value sequence are added together and divided by 4096. The remainder is formatted into a 3-digit hexadecimal string, which is the performance status signature code. The performance status signature code is used to bind the responsible party in the on-site verification process and clarify the rights and responsibilities of the final acceptance personnel.
[0125] The verification feature hash value, judgment identifier, performance status signature code, and on-chain final state anchor are integrated to generate a verification credential. Specifically, this includes: converting the value of the judgment identifier into an ASCII character to obtain the converted judgment identifier character; extracting the 10th to 25th characters (16 characters in total) of the verification feature hash value to form a feature substring; and concatenating the feature substring, judgment identifier character, performance status signature code, and the last 8 characters of the on-chain final state anchor in this order to form a temporary combined string.
[0126] Calculate the SHA-256 hash value of the temporary combined string to obtain a 64-bit hexadecimal hash string; concatenate the hash string with the judgment identifier character again, with the hash string first and the identifier character last. The resulting string is the verification certificate. In traceability management, the verification certificate serves to form a closed-loop certificate for full-chain traceability, ensuring the integrity of the traceability chain from the warehouse to the site.
[0127] By using the flow hash string to form a full-cycle chain record based on the flow status monitoring vector and the time-series chained responsibility binding code, the responsibility for damage in the flow process can be accurately traced. In the verification process, the delivery consistency judgment vector is used to compare the packaging consistency, and the verification feature hash value is matched with the original feature hash value to judge the full-chain anomaly, thereby obtaining the verification certificate to form a closed loop. The entire process realizes responsibility binding, anti-tampering and consistency verification, and improves the accuracy of traceability of interior decoration materials.
[0128] In one embodiment, the nodes of the blockchain are merged to obtain a traceability management chain, including:
[0129] The data from each node in the blockchain is aggregated to generate a full-link association feature code, specifically including:
[0130] Extract all relevant node data from the blockchain in chronological order, including an original feature hash value, at least one circulating hash string, and a verification credential; extract the first 24 characters from the original feature hash value, which is recorded as the first feature fragment; extract the last 12 characters from each circulating hash string, which is recorded as a second feature fragment; extract the 17th to 32nd characters from the verification credential, which is recorded as the third feature fragment;
[0131] Arrange all second feature fragments in chronological order according to their corresponding nodes. Concatenate the first feature fragment, all the second feature fragments arranged in sequence, and the third feature fragment in sequence to form a long combined feature string. Calculate the SHA-384 hash value of the long combined feature string to obtain a 96-bit hexadecimal hash string. Append the total number of fragments constituting the long combined feature string as a 2-digit decimal number to the end of the hexadecimal hash string. The resulting 98-character string is the full-link association feature code, which is used to generate a unique index for the full-link data.
[0132] In one embodiment, the nodes of the blockchain are merged to obtain a traceability management chain, which further includes:
[0133] Using the full-link association feature code as the core index, the data of each node is reorganized and irreversibly linked to generate a traceability management chain with association mapping. Specifically, this includes: extracting the four characters at the 10th, 20th, 30th and 40th positions of the full-link association feature code, converting them into their ASCII code values, adding these four values together, dividing the sum by 4 and taking the remainder, with the remainder ranging from 0 to 3.
[0134] Based on the value of the remainder, one of the four preset rules is selected to determine the order of all node data in the final chain. The node data here is uniformly divided into three categories: the original feature hash value, all circulating hash strings, and verification credentials.
[0135] The four rules are as follows: If the remainder is 0, the nodes are arranged in chronological order, i.e., the original feature hash value, the circulating hash string (in order of check-in time), and the verification credential; if the remainder is 1, the verification credential is moved after the original feature hash value and before all circulating hash strings; if the remainder is 2, all circulating hash strings are arranged in reverse order and then placed after the original feature hash value and before the verification credential; if the remainder is 3, the original feature hash value is placed at the end, and the order becomes circulating hash string (in order of check-in time), verification credential, and original feature hash value.
[0136] After selecting the rules, the full-link association feature code is used as the head of the chain, and the node data ordered according to the rules are used as the links to form an ordered data chain. All data blocks are uniformly encoded as UTF-8 strings. Next, three rounds of iterative binding operations are performed, specifically: starting from the head of the chain, each pair of adjacent data blocks is processed in turn, concatenating the current data block and the next data block, and calculating the SHA-256 hash value of the concatenated string; if the length of the next data block is ≥ 8 bits, the first 8 characters of the next data block are replaced with the first 8 characters of this hash value; if the length of the next data block is less than 8 bits, the first few characters of this data block are replaced with the first few characters of the hash value to obtain the updated data block, where the first few characters are the same as the length of the data block. For example, if the length of the next data block is 5, then the first few characters are 5 characters. This completes one traversal and update of all adjacent data blocks, which is considered one round of iteration. Then, the updated complete data chain is used as the initial data chain for the next round of iteration, and the above operations are repeated until three rounds of iteration are completed.
[0137] After three rounds of iteration, all data blocks in the final data chain are concatenated into a complete string in sequence. The Whirlpool hash value of the complete string is calculated to obtain a 128-character final digest. Finally, the full-link association feature code is placed first, and the final digest is placed last. The two are concatenated together to generate a string that is the traceability management chain with association mapping.
[0138] By integrating data from various blockchain nodes to generate a full-link association feature code, and using this feature code as a unique index to reorganize node data, an ordered data chain is formed after sorting according to four preset rules. After three rounds of iterative binding operations, the data chain is updated and the Whirlpool hash value is calculated, ultimately generating a traceability management chain. This enables precise association of all circulation stages of interior decoration materials from warehousing to the construction site. In case of damage, the specific stage can be traced back, improving traceability accuracy and management efficiency, and solving the problem of poor management in the existing circulation process.
[0139] Although embodiments of the invention have been shown and described, it will be understood by those skilled in the art that various changes, modifications, substitutions and alterations can be made to these embodiments without departing from the principles and spirit of the invention, the scope of which is defined by the appended claims and their equivalents.
Claims
1. A blockchain-based traceability management system for interior decoration materials, characterized in that, include: The identification management unit is used to obtain the basic data and unique identifier of the target management object when it leaves the warehouse, merge the basic data and unique identifier to generate the source feature hash value, and upload the source feature hash value to the blockchain node as an immutable traceability initial node. The target management object is the board material in the interior decoration materials. The circulation management unit is used to acquire check-in data of the target managed object during transportation in real time every half hour, analyze the check-in data and the original feature hash value, and generate a circulation hash string, including: Analyze the images of transport packaging in this check-in data to generate a flow status monitoring vector that represents the status changes of the target management object during transportation; The names of those who clocked in and out in the clock-in data are associated with the clock-in time to generate performance behavior analysis values; The current circulation status monitoring vector is compared with the circulation status monitoring vector of the previous check-in time to generate an abnormal deviation. The flow status monitoring vector, performance behavior analysis value, and abnormal deviation degree are fused and encoded to generate a transportation segment management certificate representing the facts of transportation segment management; The transportation segment management certificate is associated with the original feature hash value on the blockchain to generate a time-series chain-style rights and responsibilities binding code; The circulating hash string is used as a new node in the blockchain and an irreversible connection is established with the initial node for tracing the source. It is then synchronized to all nodes in the blockchain for chain-like storage. The verification management unit is used to acquire verification data of the target managed object arriving at the construction site, extract the verification data, generate a verification feature hash value, match the verification feature hash value with the original feature hash value, and generate a verification credential, including: The on-site packaging images in the verification data are analyzed, their visual features are extracted, and they are fused and encoded with the verification time, the name of the community at the construction site, and the floor number to generate a delivery consistency judgment vector. The current block hash of the blockchain network is used as the on-chain final state anchor point. The delivery consistency judgment vector is bound to the on-chain final state anchor point to generate a counterfeit-proof spatiotemporal delivery stamp. Calculate the anti-counterfeiting spatiotemporal delivery stamp to generate a verification feature hash value; The delivery consistency determination vector is matched with the original feature hash value to generate a determination identifier; The judgment identifier is combined with the name of the verifier in the verification data to obtain the performance status signature code; The verification feature hash value, judgment identifier, performance status signature code and on-chain final state anchor point are integrated to generate verification credentials; The verification credentials are synchronized to the nodes of the blockchain for storage; The traceability management unit integrates the various nodes of the blockchain to obtain the traceability management chain.
2. The blockchain-based traceability management system for interior decoration materials according to claim 1, characterized in that, The basic data and unique identifiers are merged to generate the original feature hash value, including: The batch number in the basic data is converted to generate a batch management code, and the features of the outbound packaging images in the basic data are extracted to obtain the initial visual feature code. The batch management code, initial visual feature code, and unique identifier are aggregated to generate a management identifier fusion value; The outbound time, outbound location and management identifier in the basic data are combined and bound to generate a spatiotemporal binding management voucher.
3. The blockchain-based traceability management system for interior decoration materials according to claim 2, characterized in that, The basic data and unique identifiers are merged to generate the original feature hash value, which also includes: Analyze the spatiotemporal binding management credentials and generate a management process summary value; The management process summary value and the unique identifier are used to jointly calculate and generate a self-verifying reinforcement factor; Perform a hash operation on the self-verification reinforcement factor to obtain the original feature hash value.
4. The blockchain-based traceability management system for interior decoration materials according to claim 1, characterized in that, The system analyzes attendance data and original feature hash values to generate a circulating hash string, and also includes: Using the current block hash of the blockchain network as the on-chain real-time state anchor, the time-series chain-style responsibility binding code and the on-chain real-time state anchor are calculated to generate a dual on-chain state anchor code. A hash operation is performed on the double anchor code of the chain state to obtain the flowing hash string.
5. The blockchain-based traceability management system for interior decoration materials according to claim 1, characterized in that, By integrating the nodes of the blockchain, a traceability management chain is obtained, including: Data from each node in the blockchain is aggregated to generate a full-link association feature code.
6. The blockchain-based traceability management system for interior decoration materials according to claim 5, characterized in that, By integrating the nodes of the blockchain, a traceability management chain is obtained, which also includes: Using the full-link association feature code as the core index, the data of each node is reorganized and irreversibly linked to generate a traceability management chain with association mapping.
Citation Information
Patent Citations
Supply chain carbon data credible management method based on block chain
CN120069336A
Construction resource management method and device based on block chain and Internet of Things
CN120850314A