METHOD FOR TRACING AGRICULTURAL PRODUCT BASED ON META-UNIVERSE
20250335554 ยท 2025-10-30
Inventors
- Zhicai LIU (Chengdu, CN)
- Xu FENG (Chengdu, CN)
- Ling XIONG (Chengdu, CN)
- Qin FU (Chengdu, CN)
- Xiaoluo FU (Chengdu, CN)
- Jiale WU (Chengdu, CN)
- Xianhua NIU (Chengdu, CN)
Cpc classification
G06F16/27
PHYSICS
H04L9/32
ELECTRICITY
G06F21/64
PHYSICS
H04L67/12
ELECTRICITY
G06F11/14
PHYSICS
G06F21/62
PHYSICS
Y02P90/30
GENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
International classification
Abstract
A method for tracing an agricultural product based on meta-universe, including the following steps: collecting, by a terminal data collecting apparatus, agricultural product data, and generating an uplinking application; verifying the legitimacy and authenticity of the uplinking application when the uplinking application is received by a blockchain network, and uplinking the uplinking application; verifying the uplinked agricultural product data, triggering a growth function of the agricultural product in a smart contract using the agricultural product data, a virtual agricultural product of a meta-universe visualization platform starting to grow; selling the agricultural product on a trading platform, and generating, by a blockchain network, a traceability code after a consumer purchases the agricultural product; verifying the legitimacy of identities and data of the meta-universe visualization platform and the consumer. The present method can retrieve data, and recover the data.
Claims
1. A method for tracing an agricultural product based on meta-universe, comprising the following steps: Step 1, an initialization phase of a system, generating, by a trusted node, system parameters, and generating, by a trusted third party, a node secret key; Step 2, an uplinking phase of data, collecting, by a terminal data collecting apparatus, agricultural product data in one period T, and generating an uplinking application; when a blockchain network receives the uplinking application, verifying legitimacy and authenticity of the uplinking application, and completing uplinking after it is verified that there is no error; Step 3, a phase of growth of a virtual agricultural product and circulation of the agricultural product, verifying uplinked agricultural product data, triggering a growth function of the agricultural product in a smart contract using the agricultural product data after the verification is successful, a virtual agricultural product of a meta-universe visualization platform starting to grow, and updating a circulation trajectory of the agricultural product after the agricultural product grows to mature; Step 4, a trading phase of the agricultural product, selling the agricultural product on a trading platform, generating, by the blockchain network, a traceability code after a consumer purchases the agricultural product successfully, pasting, by an agricultural product producer, the traceability code, and mailing the agricultural product to the consumer; Step 5, a phase of traceability of the agricultural product, verifying legitimacy of identities and data of the meta-universe visualization platform and the consumer, and then determining a permission to open up a traceability process of the meta-universe visualization platform for viewing based on verified results.
2. The method for tracing the agricultural product based on the meta-universe according to claim 1, wherein the step 1 specifically comprises the following steps: selecting, by the trusted node in the blockchain network, one q-order multiplicative cyclic group G, and two generators v and p of the multiplicative cyclic group G; selecting, by the trusted node, one hash function H:{0,1}*.fwdarw.{0,1}.sup.1, wherein 1 is the number of bits output by H, and H converts an input binary string with an arbitrary length into an output binary string with a fixed length; selecting, by the trusted node, a public key encryption algorithm E.sub.PK(.Math.) and a private key decryption algorithm D.sub.SK(.Math.), wherein the public key encryption algorithm E.sub.PK(.Math.) is configured to generate a public key PK, and the private key decryption algorithm D.sub.SK(.Math.) is configured to generate a private key SK; generating and publicizing, by the trusted node, the system parameters {G,q,v,p,H,E.sub.PK(.Math.),D.sub.SK(.Math.)}.
3. The method for tracing the agricultural product based on the meta-universe according to claim 1, wherein the step 2 specifically comprises the following steps: collecting, by the terminal data collecting apparatus S.sub.f, the agricultural product data in a period T, wherein f denotes a f-th terminal data collecting apparatus, f=1, 2, . . . , F, for collecting the agricultural product data from a j-th agricultural product producer AP.sub.j in the period T, j=1, 2, . . . , m, collecting t agricultural product data sequentially in the period T, which are D.sub.1, D.sub.2, . . . , D.sub.t, generating roots of the t agricultural product data by a hash chain, uplinking a root of the hash chain, and letting an initial value ho of the hash chain be 0; when the terminal data collecting apparatus S.sub.f collects the agricultural product data D.sub.i, i=1, 2, . . . , t, calculating the corresponding hash chain h.sub.i=H(h.sub.i1D.sub.i), and sending meta-information {D.sub.i,h.sub.i} to a cloud server through a safe channel; when the period T is cut-off, obtaining, by the terminal data collecting apparatus S.sub.f, the root h.sub.t of the hash chain; if the agricultural product producer does not register a digitized identity in the blockchain network, sending, by the agricultural product producer AP.sub.j, a registered digitized identity application ReqInfo=(.sub.jPK.sub.jCheckInfoTS) to the blockchain network, wherein CheckInfo is agricultural product related information, PK.sub.j is a public key of the agricultural product producer AP.sub.j, SK.sub.j is a private key of the agricultural product producer AP.sub.j, .sub.j is the signature of the agricultural product producer AP.sub.j on the registered digitized identity application ReqInfo using the private key SK.sub.j, TS is a current timestamp, and is a connection character; after receiving the registered digitized identity application ReqInfo, checking, by the blockchain network, freshness of the current timestamp TS, if TS is expired, rejecting, by the blockchain network, the registered digitized identity application ReqInfo; otherwise, verifying, by an issuing node, the signature .sub.j using the public key PK.sub.j and checking CheckInfo information, after verification passes, applying, by the issuing node, a signature .sub.jk to k-th agricultural product related information of the agricultural product producer Ap.sub.j, k=1, 2, . . . , K; mapping the registered digitized identity application ReqInfo as H (ReqInfo) using a hash function H, and using H (ReqInfo) as the digitized identity ID.sub.jk of the k-th agricultural product of the agricultural product producer AP.sub.j; uploading, by the issuing node, the agricultural product digitized identity ID.sub.jk, the signature .sub.jk, and CheckInfo information to the blockchain network, uplinking the agricultural product digitized identity ID.sub.jk through consensus of the blockchain network to obtain a blockchain network transaction number FID.sub.jk; sending, by the issuing node, the agricultural product digitized identity ID.sub.jk, the signature .sub.jk, and the blockchain network transaction number FID.sub.jk to the agricultural product producer AP.sub.j; calculating, by the terminal data collecting apparatus S.sub.f, a signature .sub.f=Sign(SK.sub.fID.sub.fID.sub.jkh.sub.tTS), and sending the uplinking application (SK.sub.fID.sub.fID.sub.jkh.sub.tTS.sub.f) to the blockchain network, wherein ID.sub.f is a digitized identity of the terminal data collecting apparatus S.sub.f, the SK.sub.f is a private key of the terminal data collecting apparatus S.sub.f, and the TS is a current timestamp; after receiving the uplinking application (SK.sub.fID.sub.fID.sub.jkh.sub.tTS.sub.f), checking, by the blockchain network, whether the timestamp TS' exceeds stipulated legal time; if so, rejecting uplinking application of the terminal data collecting apparatus S.sub.f, otherwise, retrieving a public key certificate corresponding to ID.sub.f from a blockchain node; if the public key certificate does not exist, rejecting the uplinking application of the terminal data collecting apparatus S.sub.f, if the public key certificate exists, verifying, by the blockchain network, the signature .sub.f using the public key PK.sub.f in the public key certificate, PK.sub.f being the public key of the terminal data collecting apparatus S.sub.f; if the verification fails, rejecting the uplinking application of the terminal data collecting apparatus S.sub.f; otherwise, uplinking, by the blockchain network, transaction information (ID.sub.fID.sub.jkh.sub.tTS.sub.f).
4. The method for tracing the agricultural product based on the meta-universe according to claim 3, wherein the step 3 specifically comprises the following steps: after a root h.sub.t of a hash chain of the agricultural product data D.sub.i is successfully uplinked, sending, by the blockchain network, the digitized identity ID.sub.jk of the agricultural product to the meta-universe visualization platform, and obtaining, by the meta-universe visualization platform, the agricultural product data D.sub.1, D.sub.2, . . . , D.sub.t and a value of the corresponding hash chain from the cloud server based on the digitized identity ID.sub.jk of the agricultural product; after the meta-universe visualization platform receives the produce data D.sub.i from the cloud server, calculating the value h.sub.i=H(h.sub.i1D.sub.i) of the hash chain, after calculating for t times, obtaining, by the meta-universe visualization platform, the root h.sub.t of the recalculated hash chain; removing, by the meta-universe visualization platform, the root h.sub.t of the originally uplinked hash chain from the blockchain network, if the h.sub.t is not equal to the h.sub.t, sending to the cloud server an error message that the data have an error, failing to verify the uplinked product data, and rejecting growth information of a virtual product for this time; otherwise, updating the growth information of a virtual product for this time; after the uplinked product data is successfully verified, updating, by the meta-universe visualization platform, the current growing status of the virtual product using D.sub.1, D.sub.2, . . . , D.sub.t.
5. The method for tracing the agricultural product based on the meta-universe according to claim 4, wherein the step 4 specifically comprises the following steps: selecting and purchasing, by a consumer P, the agricultural product on a trading platform, if the consumer P purchases n agricultural products from the agricultural product producer, nm, randomly selecting the n random numbers satisfying
6. The method for tracing the agricultural product based on the meta-universe according to claim 5, wherein the step 5 specifically comprises the following steps: scanning, by the consumer P, the traceability code on the agricultural product to obtain (ID.sub.jkFID.sub.jkAP.sub.j), selecting the random number x as a temporary private key, calculating Y=g.sup.x, calculating a shared key Key=(PK.sub.meta).sup.x, wherein PK.sub.meta is the public key of the meta-universe visualization platform; calculating the traceability request TrackReq=(AP.sub.jr.sub.jID.sub.jks.sub.j)H(KeyTS.sub.0), wherein TS.sub.0 is the current timestamp; and sending, by the consumer P, a traceability request (TrackReqXTS.sub.0) to the meta-universe visualization platform; after the meta-universe visualization platform receives the traceability application (TrackReqXTS.sub.0), checking whether the timestamp TS.sub.0 is expired, if so, rejecting the traceability application; otherwise, calculating the shared key, wherein SK.sub.meta is the private key of the meta-universe visualization platform, obtaining (AP.sub.j|r.sub.jID.sub.jks.sub.j)=TrackReqH(KeyTS.sub.0) by calculation, and calculating C=g.sup.r.sup.
Description
BRIEF DESCRIPTION OF THE DRAWINGS
[0023] In order to more clearly describe the technical solutions of embodiments of the present invention, the following briefly introduce the drawings that need to be used in the embodiments of the present invention. It should be understood that the following drawings only show certain embodiments of the present invention and should not be regarded as a limitation of the scope. The person skilled in the art can obtain other related drawings based on these drawings without creative work.
[0024]
[0025]
DETAILED DESCRIPTION
[0026] The following clearly and completely describes the technical solutions in embodiments of the present invention in conjunction with the drawings in the embodiments of the present invention. Obviously, the described embodiments are only a part the embodiments of the present invention, rather than all embodiments. The components of the embodiments of the present invention generally described and illustrated in the drawings herein can be arranged and designed in various different configurations. Therefore, the following detailed description of the embodiments of the present invention provided in the drawings is not intended to limit the scope of the claimed invention, but merely represents selected embodiments of the present invention. Based on the embodiments of the present invention, all other embodiments obtained by the person skilled in the art without inventive work shall fall within the scope of protection of the present invention.
[0027] It should be noted that similar reference numerals and letters indicate similar items in the following drawings. Therefore, once a certain item is defined in one drawing, the item does not need to be further defined and explained in the subsequent drawings. In addition, in the description of the present invention, the terms first, second and so on are only used to distinguish the description, and cannot be understood as indicating or implying relative importance or to imply the existence of any such actual relationship or order between these entities or operations. In addition, the terms interconnected, connected, etc. may be a direct connection between elements or an indirect connection via other elements.
Embodiment 1
[0028] The present invention is realized by the following technical solution, which is applied in a scenario based on meta-universe as shown in
[0029] An agricultural product producer AP.sub.j is used to produce the agricultural product. AP.sub.j denotes the j-th agricultural product producer (1jm). There are a total of m agricultural product producers in the scenario. If it is assumed that any agricultural product producer AP.sub.j can produce a total of K agricultural products, IDjk denotes the digitized identity of the k-th agricultural product produced by the agricultural product producer AP.sub.j (1kK).
[0030] A terminal data collecting apparatus Sf is configured to collect agricultural product data Di (1it) produced by the agricultural product producer AP.sub.j. D.sub.i denotes the agricultural product data collected by the terminal data collecting apparatus Sf at an i-th moment, with a total of t moments. Sf denotes the f-th terminal data collecting apparatus (1fF). There are a total of F terminal data collecting apparatuses in the scenario. However, one agricultural product producer AP.sub.j may use at least one terminal data collecting apparatus, e.g., the three terminal data collecting apparatuses are used to collect the three agricultural product data produced by the agricultural product producer AP.sub.j.
[0031] The blockchain network is configured to uplink the data and provide a consumer P with the traceability of the product.
[0032] A meta-universe visualization platform is configured to produce a virtual agricultural product.
[0033] A trading platform is configured to provide the consumer P with a platform for purchasing the agricultural product.
[0034] As shown in
[0035] Step 1, an initialization phase of a system, generating, by a trusted node, system parameters, and generating, by a trusted third party, a node secret key.
[0036] The trusted node selects one q-order multiplicative cyclic group G, and two generators v and p of the multiplicative cyclic group G. The trusted node selects one hash function H:{0,1}*.fwdarw.{0,1}.sup.1, where 1 is the number of bits output by H, and H converts an input binary string with an arbitrary length into an output binary string with a fixed length.
[0037] The trusted node selects a public key encryption algorithm E.sub.PK(.Math.) and a private key decryption algorithm D.sub.SK(.Math.). The trusted node generates and publicizes the system parameters {G,q,v,q,H,E.sub.PK(.Math.),D.sub.SK(.Math.)}. The public key encryption algorithm E.sub.PK(.Math.) is configured to generate a public key PK. The private key decryption algorithm D.sub.SK(.Math.) is configured to generate a private key SK;
[0038] Step 2, an uplinking phase of data, collecting, by a terminal data collecting apparatus, agricultural product data in one period T, and generating an uplinking application; when a blockchain network receives the uplinking application, verifying the legitimacy and authenticity of the uplinking application, and completing uplinking after it is verified that there is no error.
[0039] It is assumed that the terminal data collecting apparatus Sf collects the agricultural product data in a period T, where f denotes a f-th terminal data collecting apparatus (f=1, 2, . . . , F). The f-th terminal data collecting apparatus is configured to collect the agricultural product data from a j-th agricultural product producer AP.sub.j in the period T (j=1, 2, . . . , M), that is, agricultural product information. t agricultural product data may be collected sequentially in the period T, which are D.sub.1, D.sub.2, . . . , D.sub.t, (t agricultural product data belong to agricultural product information). The roots of the t agricultural product data are generated by a hash chain. A root of the hash chain is uplinked. Let an initial value ho of the hash chain be 0.
[0040] When the terminal data collecting apparatus Sf collects the agricultural product data D.sub.i, i=1, 2, . . . , t, the hash chain h.sub.i=H(h.sub.i1D.sub.i) is calculated. Meta-information {D.sub.i,h.sub.i} is sent to a cloud server through a safe channel. When the period T is cut-off, the terminal data collecting apparatus Sf obtains the root h.sub.t of the hash chain.
[0041] If the agricultural product producer does not register a digitized identity in the blockchain network, the agricultural product producer APj.sub.j sends a registered digitized identity application ReqInfo=(.sub.jPK.sub.jCheckInfoTS) to the blockchain network, where CheckInfo is an agricultural product related detection certificate, a brand certificate and other information. PK.sub.j is a public key of the agricultural product producer AP.sub.j. SK.sub.j is a private key of the agricultural product producer AP.sub.j. .sub.j is the signature of the agricultural product producer AP.sub.j on the registered digitized identity application ReqInfo using the private key SK.sub.j. TS is a current timestamp, and is a connection character.
[0042] After receiving the registered digitized identity application ReqInfo, the blockchain network first checks the freshness of the current timestamp TS. If TS is expired, the blockchain network rejects the registered digitized identity application ReqInfo. Otherwise, an issuing node verifies the signature .sub.j using the public key PK.sub.j and checks CheckInfo information. After verification passes, the issuing node applies a signature .sub.jk to k-th agricultural product related information of the agricultural product producer Ap.sub.j (k=1, 2, . . . , K). The registered digitized identity application ReqInfo is mapped as a result H (ReqInfo) with a fixed digit number using a hash function H. The result is used as the digitized identity of the k-th agricultural product of the agricultural product producer AP.sub.j; i.e., the agricultural product digitized identity ID.sub.jk=H (ReqInfo).
[0043] The issuing node uploads the agricultural product digitized identity ID.sub.jk, the signature .sub.jk, and CheckInfo information to the blockchain network, the agricultural product digitalized identity ID.sub.jk is uplinked through the consensus of the blockchain network to obtain a blockchain network transaction number FID.sub.jk. Finally, the issuing node sends the agricultural product digitized identity ID.sub.jk, the signature .sub.jk, and the blockchain network transaction number FID.sub.jk to the agricultural product producer AP.sub.j and other information.
[0044] The terminal data collecting apparatus Sf calculates a signature .sub.f=Sign(SK.sub.fID.sub.fID.sub.jkh.sub.tTS), and then sends the uplinking application (SK.sub.fID.sub.fID.sub.jkh.sub.tTS.sub.f) to the blockchain network, where ID.sub.f is a digitized identity of the terminal data collecting apparatus S.sub.f. SK.sub.f is a private key of the terminal data collecting apparatus S.sub.f. TS is a current timestamp.
[0045] After receiving the uplinking application (SK.sub.fID.sub.fID.sub.jkh.sub.tTS.sub.f), the blockchain network first checks whether the timestamp TS exceeds stipulated legal time. If so, uplinking application of the terminal data collecting apparatus S.sub.f is rejected. Otherwise, a public key certificate corresponding to ID.sub.f is retrieved from a blockchain node. If the public key certificate does not exist, the uplinking application of the terminal data collecting apparatus S.sub.f is rejected. If the public key certificate exists, the blockchain network verifies the signature .sub.f using the public key PK.sub.f in the public key certificate. PK.sub.f is the public key of the terminal data collecting apparatus S.sub.f. If the verification fails, the uplinking application of the terminal data collecting apparatus S.sub.f is rejected. Otherwise, the blockchain network uplinks transaction information (ID.sub.fID.sub.jkh.sub.tTS.sub.f). That is, a virtual agricultural product may be planted in the meta-universe visualisation platform.
[0046] Step 3, a phase of growth of the virtual agricultural product and circulation of the agricultural product, verifying uplinked agricultural product data, triggering a growth function of the agricultural product in a smart contract using the agricultural product data after the verification is successful, the virtual agricultural product of the meta-universe visualization platform starting to grow, and updating a circulation trajectory of the agricultural product after the agricultural product grows to mature.
[0047] The meta-universe visualization platform is also a node of the blockchain network. After a root h.sub.t of a hash chain of the agricultural product data D.sub.i is successfully uplinked, the blockchain network sends the digitized identity ID.sub.jk of the agricultural product to the meta-universe visualization platform. The meta-universe visualization platform obtains the agricultural product data D.sub.1, D.sub.2, . . . , D.sub.t and a value of the corresponding hash chain from the cloud server based on the digitized identity ID.sub.jk of the agricultural product. It should be noted that before the uplinking in step 2, a unique digitized identity ID.sub.jk of the agricultural product (uniqueness is guaranteed by ReqInfo) is generated. During uplinking, ID.sub.jk is used as a primary key for storing data in the cloud server to store D.sub.1, D.sub.2, . . . , D.sub.t. When the blockchain network sends ID.sub.jk to the meta-universe visualization platform, D.sub.1, D.sub.2, . . . , D.sub.t are obtained from the cloud server with ID.sub.jk.
[0048] After receiving the produce data D.sub.i from the cloud server, the meta-universe visualization platform calculates the value h.sub.i=H(h.sub.i1D.sub.i) of the hash chain. After calculating for t times, the meta-universe visualization platform obtains the root h.sub.t of the recalculated hash chain. Then, the meta-universe visualization platform removes the root h.sub.t of the originally uplinked hash chain from the blockchain network. If the h.sub.t is not equal to the h.sub.t, an error message that the data have an error is sent to the cloud server. The uplinked product data fails to verify. the growth information of a virtual product for this time is rejected. Otherwise, the growth information of a virtual product for this time is updated.
[0049] After the uplinked product data is successfully verified, the meta-universe visualization platform updates the current growing status of the virtual product using D.sub.1, D.sub.2, . . . , D.sub.t. An updating algorithm of a growing status is as follows:
TABLE-US-00001 (1) input: D[t], curState[t] (2) Output: newState[t] (3) Algorithm description: for i1 to t do isSuccessUpdateState(D[i],curState[i],newState[i]) if isSuccess = False then Panic(i) end if end for return newState [0050] (4) Variable explanation: D is growth information of the collected virtual agricultural product. curState is the current growth state of the virtual agricultural product. newState is the new growth state of the virtual agricultural product. UpdateState is configured to update the growth state of the virtual agricultural product. Panic is configured to report the updating abnormality of a certain growth state of the meta-universe visualization platform.
[0051] When the product is matured and circulated, the root of the hash chain is calculated and verified using the same approach for the collected data and then updated into the circulation trajectory.
[0052] Step 4, a trading phase of the agricultural product, selling the agricultural product on a trading platform, generating, by the blockchain network, a traceability code after a consumer purchases the agricultural product successfully, pasting, by an agricultural product producer, the traceability code, and mailing the agricultural product to the consumer.
[0053] To protect the privacy of a consumer and the rights and interests of the agricultural product producer, in this solution, a dynamic anonymity and a commitment mechanism with homomorphic properties are used to protect transaction information. The ciphertext of the transaction amount based on the strong binding and the homomorphic addition property of the discrete logarithmic difficult problem is stored in the blockchain network.
[0054] The consumer P selects and purchases the agricultural product on the trading platform. It is assumed that the consumer P purchases the n agricultural products from the agricultural product producer, nm. After the consumer P selects the agricultural product, the n random numbers that satisfy
are randomly selected to generate a commitment value about a purchase amount. r.sub.j is the random number of the j-th agricultural product producer AP.sub.j. Regarding the j-th agricultural product producer AP.sub.j, the consumer P calculates the commitment value C.sub.j=g.sup.r.sup.
is sent to a trusted node of the blockchain network via transfer of an account, Alipay and other transaction modes.
[0055] After the blockchain network receives the transaction uplinking application (PIDC.sub.1 . . . C.sub.nR.sub.1 . . . R.sub.nS), the trusted node calculates a total commitment value C.sub.j=
If C.sub.j is not equal to C.sub.j, the transaction uplinking application is rejected. The total consumption amount S of the consumer P is returned. Otherwise, the agricultural product producer Ap.sub.j decrypts the transaction amount ciphertext R.sub.j using the private key Skj.sub.j to obtain (r.sub.js.sub.j)=D.sub.SK.sub.
[0056] If it is verified that g.sup.r.sup.
[0057] The agricultural product producer AP.sub.j sends (r.sub.js.sub.j) to the trusted node via the safe channel. The trusted node C.sub.j=g.sup.r.sup.
[0058] Step 5, a phase of traceability of the agricultural product, verifying legitimacy of identities and data of the meta-universe visualization platform and the consumer, and then determining a permission to open up a traceability process of the meta-universe visualization platform for viewing based on verified results.
[0059] Once receiving the product, the consumer can scan the traceability code on the agricultural product to obtain basic information necessary for traceability, and propose a traceability application to the meta-universe visualization platform. Identity and data legitimacy verification is required between the meta-universe visualization platform and the consumer to ensure that the consumer is connected to a real meta-universe visualization platform and that the meta-universe visualization platform allows a legitimate consumer to access agricultural product-related information. Upon successful verification, the meta-universe visualization platform authorizes the consumer to access the growth process of the agricultural product, enabling the consumer's traceability on the product.
[0060] The consumer P scans the traceability code on the agricultural product to obtain (ID.sub.jkFID.sub.jkAP.sub.j), selects one random number x as the temporary private key, calculates Y=gx, and calculates the shared key Key=(PK.sub.meta).sup.x.
[0061] The generation mode of the shared key: Key.sub.1=(PK.sub.meta).sup.x=(g.sup.SK.sup.
[0062] Obviously, Key.sub.1=Key.sub.2 and SK.sub.meta is only mastered to be able to obtain the correct shared key Key, where PK.sub.meta is the public key of the meta-universe visualization platform;
[0063] A traceability request TrackReq=(AP.sub.jr.sub.jID.sub.jks.sub.j)H(KeyTS.sub.0) is calculated, where TS.sub.0 is the current timestamp. The consumer P sends the traceability application (TrackReqXTS.sub.0) to the meta-universe visualization platform.
[0064] After the meta-universe visualization platform receives the traceability application (TrackReqXTS.sub.0), it is first checked whether the timestamp TS.sub.0 is expired. If so, the traceability application is rejected. Otherwise, the shared key is calculated, where SK.sub.meta is the private key of the meta-universe visualization platform. (AP.sub.j|r.sub.jID.sub.jks.sub.j)=TrackReqH(KeyTS.sub.0) is obtained by calculation. C.sub.j=g.sup.r.sup.
[0065] Then the meta-universe visualization platform calculates the signature =Sign(Sk.sub.meta,H(Data)) to calculate traceability information TrackMsg= (Data)H(KeyTS.sub.1), where TS.sub.1 is the current timestamp. Finally, the meta-universe visualization platform sends (TrackMsgTS.sub.1) to the consumer P.
[0066] After the consumer P receives (TrackMsgTS.sub.1), it is first checked whether the timestamp TS.sub.1 is expired. If so, the traceability information TrackMsg is discarded. Otherwise, (Data) is deciphered using the shared key Key and TS.sub.1 and the signature is verified using the public key Pk.sub.meta. If verification fails, the agricultural product data Data are refused to receive. If the verification succeeds, the value h.sub.t of the hash chain is calculated using the agricultural product data Data. The value h.sub.t of the hash chain is inquired from the blockchain network. If the data are consistent, it is indicated that the traceability information is true and complete.
[0067] The forgoing are only specific embodiments of the present invention, but the protection scope of the present invention is not limited thereto. A person skilled in the art can easily think of changes or substitutions within the technical scope disclosed by the present invention, which should be covered within the protection scope of the present invention. Therefore, the protection scope of the present invention should be subject to the protection scope of the claims.