Block chain cross-chain supervision method based on notary group

By introducing the PageRank algorithm of the notary group and reputation value mechanism into the blockchain cross-chain technology, the security and interoperability issues of cross-chain transactions are solved, the credibility and decentralization of the system are improved, and the Efficient cross-chain transaction supervision.

CN118569868APending Publication Date: 2024-08-30CHONGQING UNIV OF POSTS & TELECOMM
View PDF 0 Cites 2 Cited by

Patent Information

Application Number
CN202410629420.X
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-05-21
Publication Date
2024-08-30

AI Technical Summary

Technical Problem

Blockchain cross-chain technology faces security risks, operational complexity, interoperability issues, delays, and performance bottlenecks. Existing technologies suffer from increased system complexity, high computing costs, and centralization risks when improving security and interoperability.

Method used

Adopting a blockchain cross-chain supervision method based on the notary group, the notary group is selected and managed through the PageRank algorithm integrating the reputation value mechanism to achieve self-regulation and interoperability of cross-chain transactions and improve the credibility and decentralization of the system. degree of ization.

Benefits of technology

It effectively solves the self-regulation and interoperability issues of cross-chain transactions, improves the security and efficiency of transactions, reduces centralization risks, and enhances the scalability and adaptive capabilities of the system.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118569868A
    Figure CN118569868A
Patent Text Reader

Abstract

The invention relates to a blockchain cross-chain supervision technology, in particular to a blockchain cross-chain supervision method based on a notarist group, which comprises the following steps: constructing a cross-chain supervision system based on the notarist group; the cross-chain supervision system comprises a block chain and a notarist group, and the notarist group comprises a plurality of supervision notarists and a plurality of transaction notarists. Designing a notarist management scheme of the notarist group; cross-chain supervision based on notary groups is realized; according to the method, the notarist group is elected and managed through the PageRank algorithm integrating the reputation value, so that the centralized risk problem existing in a notarist mode is solved, effective supervision of the cross-chain supervision transaction system is realized, and the security and transparency of transactions are ensured.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to blockchain cross-chain supervision technology, and in particular to a blockchain cross-chain supervision method based on a notary group. Background Art

[0002] The cross-chain technology of blockchain is developing towards enhancing interoperability, improving security, optimizing performance, enhancing decentralization and integrating smart contract functions, aiming to realize the transfer and interaction of assets and data between different blockchains while ensuring the security and transparency of transactions. However, cross-chain technology still faces many challenges, such as security risks, operational complexity, interoperability issues, and delay and performance bottlenecks. Existing technologies such as cross-chain bridges, multi-signatures, relay chains and zero-knowledge proofs have improved security and interoperability to a certain extent, but there are still problems such as increased system complexity, high computing costs, and centralization risks. In view of these defects, the present invention proposes a blockchain cross-chain supervision method based on a notary group, which effectively solves the self-regulation and interoperability problems of cross-chain transactions by electing and managing the notary group through the PageRank algorithm with an integrated reputation value mechanism, thereby improving the credibility and decentralization of the system and ensuring the security and efficiency of transactions. Summary of the invention

[0003] To solve the above problems, the present invention provides a blockchain cross-chain supervision method based on a notary group, comprising the following steps:

[0004] S1. Building a cross-chain supervision system based on a notary group; the cross-chain supervision system includes a blockchain and a notary group, and the notary group includes multiple supervision notaries and multiple transaction notaries;

[0005] In the cross-chain supervision system, a DID registration system is deployed on each supervision notary, and the DID registration system stores DID identifiers and DID documents; a DID method is deployed on each blockchain, and the blockchain issues DID identifiers to nodes on its own chain through the DID method; whenever a new blockchain joins the cross-chain supervision system, a supervision notary is randomly assigned to register a DID identifier for the new blockchain, and at the same time, the DID method and the encryption function common to the cross-chain supervision system are manually deployed for the new blockchain;

[0006] S2. Design a notary management plan for the notary group;

[0007] S3. Implement cross-chain supervision based on notary groups, including:

[0008] S31. Regulatory approval for cross-chain transactions;

[0009] S32. Transaction permission between the cross-chain transaction requester and the cross-chain transaction responder it requested;

[0010] S33. Execution of cross-chain transactions;

[0011] S34. Evaluation of cross-chain transactions.

[0012] Furthermore, step S2, the notary management scheme, includes:

[0013] S21. Determine whether the notary renewal conditions are met. If so, proceed to step S22;

[0014] S22. Calculate the relative credibility of each node in the cross-chain supervision system at the current moment, and calculate the credit value points of each node based on the relative credibility; where:

[0015] The calculation formula for relative credibility is:

[0016]

[0017] in, represents the relative credibility of node i at time t, is the number of honest behaviors of node i at time t-1, is the number of malicious behaviors of node i at time t-1;

[0018] If node i is a common node, its credit score calculation method at time t is:

[0019]

[0020] In the formula, represents the reputation score of node i at time t, λ is the reputation adjustment parameter of ordinary nodes, and λ>0;

[0021] If node i is a notary, its credit score at time t is calculated as follows:

[0022]

[0023] Where μ is the reputation adjustment parameter of the notary node, and μ>λ>0;

[0024] S23. Calculate the transaction value of each node;

[0025] S24. Based on the reputation points and transaction value, the PR value of each node is updated using the improved PageRank algorithm;

[0026] S25. Arrange all nodes in descending order according to the PR value and select the first n% of nodes, and make the first n / 2% of the nodes become regulatory notaries, and the last n / 2% of the nodes become transaction notaries.

[0027] Furthermore, the following two update rules are set in step S21:

[0028] a1. There is a node in the cross-chain supervision system whose latest PR value survival time exceeds the maximum survival time;

[0029] a2. There is a node in the cross-chain supervision system whose reputation score is less than the set threshold;

[0030] As long as an update rule is triggered, the notary update condition is met, the PR value update message is broadcast to all nodes in the cross-chain supervision system, and then step S22 is executed.

[0031] Furthermore, step S23 of calculating the transaction value of node i includes:

[0032] S231. Get the historical transaction table of node i Represents the historical transaction success probability value of node i, represents the historical transaction satisfaction value of node i, Represents the historical transaction processing efficiency value of node i; the specific calculation formula is as follows:

[0033]

[0034]

[0035]

[0036] Among them, N represents the number of transactions of node i, state in Indicates the status of the nth transaction of node i; grade in represents the transaction satisfaction score of the supervisory notary for the nth transaction of node i; time in Weight represents the time it takes for node i to process the nth transaction; success Indicates the probability weight of successful transaction, Weight assess Indicates the transaction satisfaction weight, Weight time Indicates the transaction processing efficiency weight;

[0037] S232. Obtain all nodes that have had transactions with node i to form a transaction node set F(i), and calculate the similarity between node i and each node in the transaction node set F(i). The calculation formula is as follows:

[0038]

[0039] Among them, P ij represents the similarity between node i and node j∈F(i), Represents the vector product of the three-dimensional historical transaction table of node i and node j, Represents the product of the lengths of the three-dimensional historical transaction table vectors of node i and node j;

[0040] S233. Calculate the transaction value VL(i) of node i, the formula is:

[0041]

[0042] Among them, PR(j) represents the current PR value of node j, F(j) represents the transaction node set of node j, and P ju Represents the similarity between node j and node u∈F(j).

[0043] Furthermore, based on the reputation points and transaction value, the improved PageRank algorithm is used to update the PR value of each node, which is expressed as:

[0044] If node i is a normal node, the PR value calculation formula is:

[0045]

[0046] If node i is a notary, the PR value calculation formula is:

[0047]

[0048] Among them, PR(i) represents the PR value of node i, d represents the damping coefficient, α i represents the average response time index of node i, d(t i ) represents the improved damping coefficient, β i It is a margin ratio indicator.

[0049] Furthermore, in step S25, if the node elected as the notary does not originally belong to the notary group, it is necessary to perform the notary group joining operation, including: the node submits a joining request to the notary group, and the joining request includes a deposit and a DID identifier; the notary group receives the joining request and performs identity verification. If the verification is successful, the deposit is deposited into the escrow account, and the notary authority is deployed for the node;

[0050] If the node that originally belonged to the notary group is not elected as a notary this time, it will exit the notary group normally, take back all the deposits, and revoke the notary authority.

[0051] Furthermore, step S31, the regulatory approval of cross-chain transactions, includes:

[0052] S311. After any node on any blockchain initiates a cross-chain transaction request as a cross-chain transaction initiator, the notary group assigns a transaction notary and a supervision notary for the cross-chain transaction;

[0053] S312. The supervision notary calls the supervision contract to initiate a supervision request to the cross-chain transaction requester, and the cross-chain transaction requester verifies the supervision request; if the verification is successful, the cross-chain transaction requester calls the supervision contract and returns a verification success confirmation message, otherwise it returns a verification failure confirmation message;

[0054] S313. The supervision notary calls the supervision contract to initiate a supervision request to the cross-chain transaction responder corresponding to the cross-chain transaction requester, and the cross-chain transaction responder verifies the supervision request; if the verification is successful, the cross-chain transaction responder calls the supervision contract and returns a verification success confirmation message, otherwise it returns a verification failure confirmation message;

[0055] S315. If the supervising notary receives verification success confirmation information from the cross-chain transaction requester and the cross-chain transaction responder, supervision begins and step S32 is executed; otherwise, return to step S312.

[0056] Furthermore, step S32, the transaction permission between the cross-chain transaction requester and the cross-chain transaction responder requested by the cross-chain transaction requester includes:

[0057] S321. The cross-chain transaction initiator initiates an identity authentication request and forwards the identity authentication request to the corresponding cross-chain transaction responder through the transaction notary;

[0058] S322. After receiving the identity authentication request, the cross-chain transaction responder returns an ACK confirmation message;

[0059] S323. After receiving the ACK confirmation message, the transaction notary sends a verification information request to the cross-chain transaction requester and the cross-chain transaction responder respectively;

[0060] S324. The cross-chain transaction requester and the cross-chain transaction responder respectively send their own identity authentication information to the regulatory notary, and the identity authentication information includes the DID identifier, the DID document and the verifiable expression VP;

[0061] S325. The supervisory notary verifies the identity authentication information of the cross-chain transaction requester and the cross-chain transaction responder respectively. If both identity authentications are passed, the cross-chain transaction will begin; if one of them fails the identity authentication, the number of malicious behaviors of the one who failed the identity authentication will be increased by one, and the cross-chain transaction will not be allowed; if both of them fail the identity authentication, the number of malicious behaviors of both will be increased by one, and the cross-chain transaction will not be allowed.

[0062] Furthermore, the execution of the cross-chain transaction in step S33 includes:

[0063] S331. The cross-chain transaction requester encrypts the data to be transmitted through the cross-chain router of its own blockchain to obtain ciphertext information, and then sends the ciphertext information to the transaction notary;

[0064] S332. The transaction notary receives the ciphertext information through the cross-chain router of its own blockchain, and then forwards it to the corresponding cross-chain transaction responder;

[0065] S333. The cross-chain transaction responder returns confirmation information after receiving the ciphertext information. The transaction notary receives the confirmation information and generates a transaction summary and sends it to the regulatory notary.

[0066] Furthermore, the evaluation of the cross-chain transaction in step S34 includes:

[0067] S341. The regulatory notary scores the transaction satisfaction of the cross-chain transaction based on the transaction summary, and sends the transaction satisfaction score to the transaction notary, the cross-chain transaction requester and the cross-chain transaction responder who conduct the cross-chain transaction. The transaction notary, the cross-chain transaction requester and the cross-chain transaction responder respectively record the satisfaction score in their own historical transaction tables;

[0068] S342. The transaction notary assesses the regulatory satisfaction score of the regulatory notary based on the response time of the regulatory notary returning the satisfaction score, and sends the regulatory satisfaction score value to the regulatory notary.

[0069] Beneficial effects of the present invention:

[0070] The present invention elects and manages the notary group through the PageRank algorithm that integrates the reputation value, solves the centralization risk problem existing in the notary model, realizes the effective supervision of the cross-chain regulatory transaction system, and ensures the security and transparency of the transaction. The present invention improves the management scheme of the notary, proposes a complete set of notary group election methods and supervision processes, obtains the best performing and most influential nodes through the PR value ranking calculated by factors such as reputation value, and dynamically adjusts and optimizes the composition of the notary group. The improvement of the present invention effectively improves the supervision efficiency of cross-chain transactions, enhances the system's adaptability and scalability, and ensures the security, credibility and reliability of cross-chain transactions. BRIEF DESCRIPTION OF THE DRAWINGS

[0071] Figure 1 is a flow chart of the method of the present invention;

[0072] Figure 2 A flowchart for supervising notaries in the present invention;

[0073] Figure 3 This is a workflow diagram of the transaction notary of the present invention. DETAILED DESCRIPTION

[0074] The following will be combined with the drawings in the embodiments of the present invention to clearly and completely describe the technical solutions in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.

[0075] The present invention provides a blockchain cross-chain supervision method based on a notary group, such as Figure 1 As shown, the following steps are included:

[0076] S1. Build a cross-chain supervision system based on a notary group, the cross-chain supervision system includes a blockchain and a notary group; the notary group includes multiple notaries, and the notaries are divided into supervision notaries and transaction notaries.

[0077] Specifically, in the cross-chain supervision system, a distributed digital identity registration system (i.e., DID registration system) is deployed on each supervisory notary, and the DID registration system stores the DID identifier and its corresponding DID document, and the corresponding DID document can be queried through the DID identifier. Since the number of notaries in the notary group is fixed, when the notary group undergoes a round of updates, if a new node joins the notary group as a notary, the original notary who does not meet the requirements will exit the notary group, and the newly joined notary will inherit the DID registration system of the exited notary. The DID registration system information of each notary in the notary group is shared.

[0078] In the cross-chain supervision system, each blockchain is assigned a unique DID identifier, and a DID method is deployed on the cross-chain. The blockchain issues a unique DID identifier to the nodes on its own chain through the DID method. Whenever a new blockchain joins the cross-chain supervision system, a regulatory notary is randomly assigned to register a DID identifier for the new blockchain as a unique identifier to send or receive message data; at the same time, the DID method and the common encryption function of the cross-chain supervision system are manually deployed for the new blockchain. For the convenience of explanation and to distinguish the identities of blockchains and nodes (such as requesters, responders, regulatory notaries, etc.), different names are used for the DID identifiers of blockchains and nodes. The "target chain identifier TDID" and "request chain identifier SCDID" mentioned later refer to the DID identifier of the blockchain, and the "transaction notary identifier NDID", "target node identifier TDID", and "request node identifier SDID" all refer to the DID identifier of the node; each DID identifier corresponds to a DID document.

[0079] The DID identification format of a node is: did:DID method:DID identification string; where did is a prefix, the DID method refers to the scheme for definition and operation, and the DID identification string refers to the unique identifier within the network. The example format of the DID identification of a regulatory notary is did:rnp:500200199900113322.

[0080] Specifically, after the node obtains the DID identifier, it will generate a DID document in JSON format, including: DID identifier, public key, timestamp, Proof field, etc.

[0081] After the DID document is generated, it will be stored on the chain for other members to view; the public key is used to authenticate the signature and retrieve the DID identifier when the user's private key is lost; the Proof field is the node using its own private key to sign the DID identifier. After the DID document is generated, the issuer issues a verifiable statement VC for the node, which is a descriptive statement that authenticates the identity of the node and endorses it on the chain, and is used for the notary group to verify the identity during transactions. The verifiable statement VC is a string in JSON format, which contains VC metadata (issuer, issue date, statement type, etc.), statement (description about the node), proof (issuer's signature), and Proof field.

[0082] There are relevant Proof fields in DID documents, verifiable declarations VCs, and verifiable expressions VPs.

[0083] S2. Design a notary management plan for the notary group.

[0084] Specifically, step S2, the notary management plan, includes:

[0085] S21. Determine whether the notary renewal conditions are met. If so, execute step S22; if not, maintain the existing notary members.

[0086] Specifically, the following two update rules are set in step S21:

[0087] 1) The survival time of the latest PR value of a node in the cross-chain supervision system exceeds the maximum survival time;

[0088] 2) There is a node in the cross-chain supervision system whose credit score is less than the set threshold.

[0089] As long as one of the above two update rules is triggered, the PR value update message will be broadcast to all nodes in the cross-chain supervision system, the notary will be re-elected, and step S22 will be continued.

[0090] S22. Calculate the relative credibility of each node in the cross-chain supervision system at the current moment, and calculate the credit value points of each node based on the relative credibility.

[0091] Specifically, the relative credibility is calculated based on the behavior of the node before a certain moment. The calculation formula of relative credibility is:

[0092]

[0093] in, represents the relative credibility of node i at time t, is the number of honest behaviors of node i at time t-1, is the number of malicious behaviors of node i at time t-1. Among them, honest behavior and malicious behavior are the performance of the node in the entire transaction process. The honesty of each transaction is regarded as one behavior. If the node forges or tampers with the DID document, the number of malicious behaviors will increase by 1.

[0094] Specifically, in order to motivate notary nodes to maintain good behavior and also motivate ordinary nodes to strive to become notaries, the present invention sets a reputation value integral value to intuitively reflect the behavioral reputation of the node.

[0095] If node i is a common node, its credit score calculation method at time t is as shown in formula (2):

[0096]

[0097] In the formula, represents the reputation score value of node i at time t, λ is the reputation value adjustment parameter of ordinary nodes, and λ>0.

[0098] In the present invention, the requirements for notaries are higher than those for ordinary nodes, so higher reputation adjustment parameters are given to them so that they lose higher reputation when committing evil deeds, and vice versa. If node i is a notary, its reputation integral calculation method at time t is as shown in formula (3):

[0099]

[0100] Where μ is the reputation adjustment parameter of the notary node, and μ>λ>0.

[0101] Specifically, for nodes newly added to the cross-chain supervision system, their relative credibility is initialized to 0.5, and their reputation integral is initialized to 50. Each time a node conducts a transaction, the number of its honest behaviors or malicious behaviors increases by 1, and the reputation integral changes accordingly.

[0102] S23. Calculate the transaction value of each node.

[0103] Specifically, the transaction value of a node refers to the relevance of the node to other nodes, that is, the value factor obtained through exchanges with other nodes. This value factor is a key element in the PageRank algorithm to calculate influence. The purpose of obtaining this value factor by introducing historical transaction data and setting the cosine similarity calculation method is to allow more honest nodes to perform better in PR value, thereby gaining higher influence, more network resource tilt and access rights, and at the same time encouraging other nodes to make honest cross-chain transactions.

[0104] Specifically, the transaction value of computing node i includes:

[0105] A1. Get the historical transaction table of node i Represents the historical transaction success probability value of node i, represents the historical transaction satisfaction value of node i, Represents the historical transaction processing efficiency value of node i. The specific calculation formula is as follows:

[0106]

[0107]

[0108]

[0109] Where N represents the number of transactions of node i (all transactions of node i consist of two parts, one is the transactions in which node i itself participates as a party to the transaction, and the other is the transactions in which node i participates as a notary). in Indicates the status of the nth transaction of node i; grade in Indicates the satisfaction score of node i's nth transaction (if the nth transaction is a transaction in which node i participates as a transaction party, or a transaction in which node i participates as a transaction notary, then grade in It refers to the transaction satisfaction score of the supervisory notary for this transaction; if the nth transaction is a transaction in which node i participates as a supervisory notary, then grade in refers to the transaction notary's supervision satisfaction score for the transaction); time in Indicates the time it takes for node i to process the nth transaction. success Indicates the probability weight of successful transaction, Weight assess Indicates the transaction satisfaction weight, Weight time Indicates the transaction processing efficiency weight. To ensure fairness, the transaction success probability weight of each node is success , Transaction Satisfaction Weight assess , Transaction processing efficiency weight timeIt's the same.

[0110] A2. Obtain all nodes that have traded with node i to form a transaction node set F(i), and calculate the similarity between node i and each node in the transaction node set F(i). The calculation formula is as follows:

[0111]

[0112] Among them, P ij represents the similarity between node i and node j∈F(i), Represents the vector product of the three-dimensional historical transaction table of node i and node j, represents the product of the length of the three-dimensional historical transaction table vector of node i and node j; P ij The value of is [-1,1], -1 means completely dissimilar, 1 means completely similar, and the cosine value is used to measure the similarity between two nodes.

[0113] A3. Calculate the transaction value VL(i) of node i using the formula:

[0114]

[0115] Among them, PR(j) represents the current PR value of node j.

[0116] S24. Based on the reputation points and transaction value, the improved PageRank algorithm is used to obtain and update the PR value of each node.

[0117] Specifically, in the improved PageRank algorithm of the present invention, different calculation methods are used to calculate the PR value based on the differences in the reputation score calculation methods before and after the node becomes a notary. As time goes by, the two reputation score calculation methods have different effects on the current node PR value, so different calculation methods are used to calculate the PR value.

[0118] If node i is a common node, the PR value calculation formula is:

[0119]

[0120] If node i is a notary, introduce the time decay function (0<ρ<1, ρ is the attenuation factor) to improve the damping coefficient d to obtain the improved damping coefficient d(t i ) = d × T i , alleviate the problem of traditional algorithms focusing on old nodes, T now Indicates the current time, T join Indicates the time when the node joined the notary group. The PR value calculation formula is:

[0121]

[0122] (10) Where α i is the average response time indicator of node i. The faster the node responds to messages and the richer the information forwarded, the stronger its ability to process transactions. In other words, α i The higher the value, the better the performance of the node in processing transactions; the sum of the average response time of all notary nodes is M is the number of notary nodes, t m is the average response time of node m, then the average response time index of node i is β i The margin ratio indicator is β. When each node joins the notary group, it will transfer a margin to the margin pool. The higher the margin, the greater the cost the node will bear after malicious behavior, and the possibility of malicious behavior is greatly reduced. The more deposits pledged, the higher the margin ratio indicator β. i The higher the security deposit of all notary nodes in the notary group is d m represents the margin amount of node m, and the margin ratio indicator of node i is

[0123] S25. Arrange all nodes in descending order according to the PR value and select the first n% of nodes, and make the first n / 2% of the nodes become regulatory notaries, and the last n / 2% of the nodes become transaction notaries.

[0124] Specifically, in step S25, if the node elected as the notary does not originally belong to the notary group, it is necessary to perform the notary group joining operation, including: the node submits a joining request to the notary group, and the joining request includes a deposit and the DID identifier of the node; the notary group receives the joining request and performs identity verification. If the verification is successful, the deposit is deposited into the escrow account, and the notary authority is deployed for the node (i.e., the DID registration system is deployed, etc.).

[0125] If the node that originally belonged to the notary group is not elected as a notary this time, it will exit the notary group normally, take back all the deposits, and revoke the notary authority.

[0126] Specifically, the notary's exit process includes:

[0127] If the notary exits normally (i.e. the notary applies for exit after completing all current transactions and obtains exit verification from other notaries), all the pledged margin can be recovered; if the verification fails, the notary will apply again or be judged as an abnormal exit based on the type of error log returned;

[0128] If the notary exits abnormally, he needs to wait for all transactions to be completed, and then the other notaries will conduct exit verification; if the verification is passed, the deposit can be withdrawn; if the verification fails, he will apply again based on the returned error log or be judged to have malicious behavior; if a notary applies to exit while a transaction is in progress, it is also an abnormal exit.

[0129] Except for the case where the notary voluntarily applies to withdraw, if the notary is found to have engaged in malicious behavior (such as forced withdrawal, tampering with data, forging identity, etc.) during the transaction, he will be directly kicked out of the notary group and all deposits will be confiscated; the supervising notary of the transaction will be given a low satisfaction rate in the evaluation process, and his malicious behavior will be broadcasted.

[0130] S3. Implement cross-chain supervision based on notary groups, including:

[0131] S31. Regulatory approval for cross-chain transactions.

[0132] Specifically, Figure 2 , Figure 3 As shown, step S31, the regulatory permission for cross-chain transactions, includes:

[0133] S311. After any node on any blockchain initiates a cross-chain transaction request as a cross-chain transaction initiator, the notary group assigns a transaction notary and a supervision notary for the cross-chain transaction;

[0134] S312. The regulatory notary calls the regulatory contract to initiate a regulatory request to the cross-chain transaction requester, and the cross-chain transaction requester verifies the regulatory request (mainly verifies the signature SS in the regulatory request and the verifiable expression VP of the regulatory notary); if the verification is successful, the cross-chain transaction requester calls the regulatory contract and returns a verification success confirmation message, otherwise it returns a verification failure confirmation message;

[0135] S313. The regulatory notary calls the regulatory contract to initiate a regulatory request to the cross-chain transaction responder corresponding to the cross-chain transaction requester. The cross-chain transaction responder verifies the regulatory request (mainly verifies the signature SS in the regulatory request and the verifiable expression VP of the regulatory notary); if the verification is successful, the cross-chain transaction responder calls the regulatory contract and returns a verification success confirmation message, otherwise it returns a verification failure confirmation message;

[0136] S315. If the supervising notary receives verification success confirmation information from the cross-chain transaction requester and the cross-chain transaction responder, supervision begins and step S32 is executed; otherwise, return to step S312.

[0137] There are two reasons why the supervision initiated by the supervisory notary fails. One is that the supervision request verification fails; the other is that the supervised party refuses the supervision of the supervisory notary. In this case, the supervisory notary will give a low satisfaction score to the transaction.

[0138] Specifically, the supervision request includes: target chain identifier TCDID, target node identifier TDID, supervision notary identifier RNDID, timestamp TS, signature SS, information type MT, and payload; the payload includes the verifiable expression VP of the supervision notary who initiated the supervision request.

[0139] Specifically, in step S312, the specific process of the supervision notary calling the supervision contract to initiate a supervision request to the cross-chain transaction requester includes:

[0140] The supervision notary sends the encrypted supervision request to the cross-chain router of the blockchain where the transaction notary is located through the cross-chain router of the blockchain where it is located;

[0141] The transaction notary receives the encrypted supervision request and forwards it to the cross-chain router of the target chain (here refers to the blockchain where the cross-chain transaction requester is located) through the cross-chain router of its own blockchain;

[0142] The target chain decrypts the encrypted supervision request, and then uses the public key to verify the signature SS to verify the identity of the supervision notary. If the verification is successful, it returns a successful verification confirmation message, otherwise it returns a failed verification confirmation message.

[0143] S32. Transaction permission between the cross-chain transaction requester and the cross-chain transaction responder it requested.

[0144] Specifically, step S32, the transaction permission between the cross-chain transaction requester and the cross-chain transaction responder it requested, includes:

[0145] S321. The cross-chain transaction initiator initiates an identity authentication request and forwards the identity authentication request to the corresponding cross-chain transaction responder through the transaction notary;

[0146] S322. After receiving the identity authentication request, the cross-chain transaction responder returns an ACK confirmation message;

[0147] S323. After receiving the ACK confirmation message, the transaction notary sends a verification information request to the cross-chain transaction requester and the cross-chain transaction responder respectively;

[0148] S324. The cross-chain transaction requester and the cross-chain transaction responder respectively send their own identity authentication information to the regulatory notary, and the identity authentication information includes the DID identifier, the DID document and the verifiable expression VP; the verifiable expression VP includes VP metadata, VC content, and Proof field (the holder's signature on VP);

[0149] S325. The supervisory notary verifies the identity authentication information of the cross-chain transaction requester and the cross-chain transaction responder respectively. If both identity authentications are passed, the cross-chain transaction will begin; if one of them fails the identity authentication, the number of malicious behaviors of the one who failed the identity authentication will be increased by one, and the cross-chain transaction will not be allowed; if both of them fail the identity authentication, the number of malicious behaviors of both will be increased by one, and the cross-chain transaction will not be allowed.

[0150] Specifically, the regulatory notary verifies the identity authentication information of the cross-chain transaction requester, including:

[0151] Verify the Proof field to ensure that the verifiable expression VP is sent by the node and has not been tampered with; then extract the VC content for verification to verify the issuer of the node's DID identifier and that the issuer's DID identifier is created by a trusted regulatory notary.

[0152] S33. Execution of cross-chain transactions.

[0153] Specifically, the execution of the cross-chain transaction in step S33 includes:

[0154] S331. The cross-chain transaction requester encrypts the data to be transmitted through the cross-chain router of the blockchain where it is located to obtain ciphertext information, and then sends the ciphertext information to the transaction notary; the ciphertext information includes the transaction notary identifier TNDID, the target chain identifier TCDID, the target node identifier TDID, the request chain identifier SCDID, the request node identifier SDID, the timestamp TS, the signature SS, the information type MT, and the payload;

[0155] S332. The transaction notary receives the ciphertext information through the cross-chain router of its own blockchain, decrypts the ciphertext information copy to obtain the target chain identifier TDID, and directly forwards the ciphertext information to the corresponding cross-chain transaction responder according to the target chain identifier TDID;

[0156] S333. The cross-chain transaction responder returns confirmation information after receiving the ciphertext information. The transaction notary receives the confirmation information and generates a transaction summary and sends it to the regulatory notary. The transaction summary includes: transaction notary identifier NDID, target chain identifier TCDID, target node identifier TDID, request chain identifier SCDID, request node identifier SDID, timestamp TS, signature SS, information type MT, and payload; wherein, the payload includes: transaction status, request node response time set, target node response time set, transaction notary response time set, information type, and error report (the error report can be empty).

[0157] S34. Evaluation of cross-chain transactions.

[0158] Specifically, the evaluation of cross-chain transactions in step S34 includes:

[0159] S341. The regulatory notary scores the transaction satisfaction of the cross-chain transaction based on the transaction summary, and sends the transaction satisfaction score to the transaction notary, the cross-chain transaction requester and the cross-chain transaction responder who conduct the cross-chain transaction. The transaction notary, the cross-chain transaction requester and the cross-chain transaction responder respectively record the transaction satisfaction score in their own historical transaction tables;

[0160] S342. The transaction notary assesses the regulatory satisfaction score of the regulatory notary based on the response time of the regulatory notary returning the satisfaction score, and sends the regulatory satisfaction score to the regulatory notary. The regulatory notary records the regulatory satisfaction score in its own historical transaction table.

[0161] Specifically, in a transaction, the relevant satisfaction score is calculated based on the transaction summary including:

[0162] The transaction satisfaction score for the cross-chain transaction requester is expressed as:

[0163]

[0164] in, Indicates the transaction status weight of the requesting node, It represents the weight of the average response time of the requesting node; S represents the transaction status, if the transaction fails, S=0, if the transaction succeeds, S=1; T1 represents the average response time of the requesting node, which is obtained by summing and averaging the elements in the requesting node response time set.

[0165] The transaction satisfaction score of the cross-chain transaction responder is expressed as:

[0166]

[0167] in, Indicates the transaction status weight of the target node, represents the weight of the target node's average response time; T2 represents the target node's average response time, which is obtained by summing and averaging the elements in the target node's response time set.

[0168] The transaction satisfaction score for the transaction notary is expressed as:

[0169]

[0170] in, Indicates the transaction status weight of the transaction notary. represents the weight of the average response time of the transaction notary; T3 represents the average response time of the transaction notary, which is obtained by summing up and averaging the elements in the transaction notary response time set.

[0171] The regulatory satisfaction rating for regulatory notaries is expressed as:

[0172]

[0173] in, Indicates the transaction status weight of the supervisory notary. represents the response time weight of the supervisory notary; T4 represents the response time of the supervisory notary, that is, the response time for the supervisory notary to return the transaction satisfaction score to the transaction notary

[0174] In the present invention, unless otherwise clearly stipulated and limited, the terms such as "installation", "setting", "connection", "fixation" and "rotation" should be understood in a broad sense. For example, it can be a fixed connection, a detachable connection, or an integral one; it can be a mechanical connection or an electrical connection; it can be directly connected or indirectly connected through an intermediate medium; it can be the internal connection of two elements or the interaction relationship between two elements. Unless otherwise clearly defined, ordinary technicians in this field can understand the specific meanings of the above terms in the present invention according to the specific circumstances.

[0175] Although embodiments of the present invention have been shown and described, it will be appreciated by those skilled in the art that various changes, modifications, substitutions and variations may be made to the embodiments without departing from the principles and spirit of the present invention, and that the scope of the present invention is defined by the appended claims and their equivalents.

Claims

1. A blockchain cross-chain supervision method based on a notary group, characterized in that: The following steps are involved: S1. Building a cross-chain supervision system based on a notary group; the cross-chain supervision system includes a blockchain and a notary group, and the notary group includes multiple supervision notaries and multiple transaction notaries; In the cross-chain supervision system, a DID registration system is deployed on each supervision notary, and the DID registration system stores DID identifiers and DID documents; a DID method is deployed on each blockchain, and the blockchain issues DID identifiers to nodes on its own chain through the DID method; whenever a new blockchain joins the cross-chain supervision system, a supervision notary is randomly assigned to register a DID identifier for the new blockchain, and at the same time, the DID method and the encryption function common to the cross-chain supervision system are manually deployed for the new blockchain; S2. Design a notary management plan for the notary group; S3. Implement cross-chain supervision based on notary groups, including: S31. Regulatory approval for cross-chain transactions; S32. Transaction permission between the cross-chain transaction requester and the cross-chain transaction responder it requested; S33. Execution of cross-chain transactions; S34. Evaluation of cross-chain transactions.

2. According to claim 1, a blockchain cross-chain supervision method based on a notary group is characterized in that: Step S2: Notary management plan, including: S21. Determine whether the notary renewal conditions are met. If so, proceed to step S22; S22. Calculate the relative credibility of each node in the cross-chain supervision system at the current moment, and calculate the credit value points of each node based on the relative credibility; where: The calculation formula for relative credibility is: in, represents the relative credibility of node i at time t, is the number of honest behaviors of node i at time t-1, is the number of malicious behaviors of node i at time t-1; If node i is a common node, its credit score calculation method at time t is: In the formula, represents the reputation score of node i at time t, λ is the reputation adjustment parameter of ordinary nodes, and λ>0; If node i is a notary, its credit score at time t is calculated as follows: Where μ is the reputation adjustment parameter of the notary node, and μ>λ>0; S23. Calculate the transaction value of each node; S24. Based on the reputation points and transaction value, the PR value of each node is updated using the improved PageRank algorithm; S25. Arrange all nodes in descending order according to the PR value and select the first n% of nodes, and make the first n / 2% of the nodes become regulatory notaries, and the last n / 2% of the nodes become transaction notaries.

3. A blockchain cross-chain supervision method based on a notary group according to claim 2, characterized in that: In step S21, the following two update rules are set: a1. There is a node in the cross-chain supervision system whose latest PR value survival time exceeds the maximum survival time; a2. There is a node in the cross-chain supervision system whose reputation score is less than the set threshold; As long as an update rule is triggered, the notary update condition is met, the PR value update message is broadcast to all nodes in the cross-chain supervision system, and then step S22 is executed.

4. According to claim 2, a blockchain cross-chain supervision method based on a notary group is characterized in that: Step S23 calculates the transaction value of node i including: S231. Get the historical transaction table of node i Represents the historical transaction success probability value of node i, represents the historical transaction satisfaction value of node i, Represents the historical transaction processing efficiency value of node i; the specific calculation formula is as follows: Among them, N represents the number of transactions of node i, state in Indicates the status of the nth transaction of node i; grade in represents the satisfaction score of the supervisory notary on the nth transaction of node i; time in Weight represents the time it takes for node i to process the nth transaction; success Indicates the probability weight of successful transaction, Weight assess Indicates the transaction satisfaction weight, Weight time Indicates the transaction processing efficiency weight; S232. Obtain all nodes that have had transactions with node i to form a transaction node set F(i), and calculate the similarity between node i and each node in the transaction node set F(i). The calculation formula is as follows: Among them, P ij represents the similarity between node i and node j∈F(i), Represents the vector product of the three-dimensional historical transaction table of node i and node j, Represents the product of the lengths of the three-dimensional historical transaction table vectors of node i and node j; S233. Calculate the transaction value VL(i) of node i, the formula is: Among them, PR(j) represents the current PR value of node j, F(j) represents the transaction node set of node j, and P ju Represents the similarity between node j and node u∈F(j).

5. According to claim 4, a blockchain cross-chain supervision method based on a notary group is characterized in that: Based on the reputation points and transaction value, the improved PageRank algorithm is used to update the PR value of each node, which is expressed as: If node i is a normal node, the PR value calculation formula is: PR(i)=d×(0.3CV i t +0.3VL(i)+α i ) If node i is a notary, the PR value calculation formula is: PR(i)=d(t i )×CV i t +(1-d(t i ))×(0.3CV i t +0.3VL(i)+0.2α i +0.2β i ) Among them, PR(i) represents the PR value of node i, d represents the damping coefficient, α i represents the average response time index of node i, d(t i ) represents the improved damping coefficient, β i It is a margin ratio indicator.

6. A blockchain cross-chain supervision method based on a notary group according to claim 2, characterized in that: In step S25, if the node elected as the notary does not belong to the notary group, it needs to perform the notary group joining operation, including: the node submits a joining request to the notary group, and the joining request includes a deposit and a DID identifier; the notary group receives the joining request and performs identity verification. If the verification is successful, the deposit is deposited into the escrow account and the notary authority is deployed for the node; If the node that originally belonged to the notary group is not elected as a notary this time, it will exit the notary group normally, take back all the deposits, and revoke the notary authority.

7. A blockchain cross-chain supervision method based on a notary group according to claim 1, characterized in that: Step S31 Regulatory approval for cross-chain transactions, including: S311. After any node on any blockchain initiates a cross-chain transaction request as a cross-chain transaction initiator, the notary group assigns a transaction notary and a supervision notary to the cross-chain transaction; S312. The supervision notary calls the supervision contract to initiate a supervision request to the cross-chain transaction requester, and the cross-chain transaction requester verifies the supervision request; if the verification is successful, the cross-chain transaction requester calls the supervision contract and returns a verification success confirmation message, otherwise it returns a verification failure confirmation message; S313. The supervision notary calls the supervision contract to initiate a supervision request to the cross-chain transaction responder corresponding to the cross-chain transaction requester, and the cross-chain transaction responder verifies the supervision request; if the verification is successful, the cross-chain transaction responder calls the supervision contract and returns a verification success confirmation message, otherwise it returns a verification failure confirmation message; S315. If the supervising notary receives verification success confirmation information from the cross-chain transaction requester and the cross-chain transaction responder, supervision begins and step S32 is executed; otherwise, return to step S312.

8. A blockchain cross-chain supervision method based on a notary group according to claim 1, characterized in that: Step S32: The transaction permission between the cross-chain transaction requester and the cross-chain transaction responder it requested includes: S321. The cross-chain transaction initiator initiates an identity authentication request and forwards the identity authentication request to the corresponding cross-chain transaction responder through the transaction notary; S322. After receiving the identity authentication request, the cross-chain transaction responder returns an ACK confirmation message; S323. After receiving the ACK confirmation message, the transaction notary sends a verification information request to the cross-chain transaction requester and the cross-chain transaction responder respectively; S324. The cross-chain transaction requester and the cross-chain transaction responder respectively send their own identity authentication information to the regulatory notary, and the identity authentication information includes the DID identifier, the DID document and the verifiable expression VP; S325. The supervisory notary verifies the identity authentication information of the cross-chain transaction requester and the cross-chain transaction responder respectively. If both identity authentications are passed, the cross-chain transaction will begin; if one of them fails the identity authentication, the number of malicious behaviors of the one who failed the identity authentication will be increased by one, and the cross-chain transaction will not be allowed; if both of them fail the identity authentication, the number of malicious behaviors of both will be increased by one, and the cross-chain transaction will not be allowed.

9. A blockchain cross-chain supervision method based on a notary group according to claim 1, characterized in that: Step S33: The execution of the cross-chain transaction includes: S331. The cross-chain transaction requester encrypts the data to be transmitted through the cross-chain router of its own blockchain to obtain ciphertext information, and then sends the ciphertext information to the transaction notary; S332. The transaction notary receives the ciphertext information through the cross-chain router of its own blockchain, and then forwards it to the corresponding cross-chain transaction responder; S333. The cross-chain transaction responder returns confirmation information after receiving the ciphertext information. The transaction notary receives the confirmation information and generates a transaction summary and sends it to the regulatory notary.

10. A blockchain cross-chain supervision method based on a notary group according to claim 1, characterized in that: Step S34: The evaluation of cross-chain transactions includes: S341. The regulatory notary scores the transaction satisfaction of the cross-chain transaction based on the transaction summary, and sends the transaction satisfaction score to the transaction notary, the cross-chain transaction requester and the cross-chain transaction responder who conduct the cross-chain transaction. The transaction notary, the cross-chain transaction requester and the cross-chain transaction responder respectively record the satisfaction score in their own historical transaction tables; S342. The transaction notary assesses the regulatory satisfaction score of the regulatory notary based on the response time of the regulatory notary returning the satisfaction score, and sends the regulatory satisfaction score to the regulatory notary. The regulatory notary records the regulatory satisfaction score in its own historical transaction table.

Citation Information

Cited By

  • Notary block chain cross-chain sharing method based on zero-knowledge proof

    CN120068124A

  • A Cross-chain Sharing Method for Notary Blockchains Based on Zero-Knowledge Proof

    CN120068124B