The invention belongs to the technical field of block chains, and particularly relates to a notarist group cross-chain strategy based on a two-stage protocol, and the strategy comprises the following steps: 1, constructing a cross-chain transaction
system model composed of a source chain, a target chain and a notarist group, respectively setting public accounts in the source chain and the target chain, and a transaction
pool for managing
transaction data is established by the notarist group. 2, a request stage: after a transaction failure is detected, a
system enters the request stage, key indexes such as
network delay, chain load, a notarist response state, exchange rate fluctuation and a historical
failure rate are collected, and a feasibility
score value of transaction
rollback is calculated through normalization
processing and
a weighting function; the
system generates a dynamic
rollback threshold value according to the current environment and compares the dynamic
rollback threshold value with the
score value, if the
score value is lower than the threshold value, it is judged that rollback can be executed, and a rollback stage is entered; otherwise, directly turning to the compensation process. 3, the system constructs an on-chain
revocation request according to the original transaction, and monitors whether rollback is successful or not within the set monitoring time; if not, retry is tried, and the compensation process is automatically switched to after the threshold value is exceeded. 4, a compensation stage: the system calculates a compensation amount and pushes the compensation amount to the user in combination with the original transaction amount and the exchange
rate change, and in-chain compensation transaction is executed after the user authorizes and confirms the compensation amount; and if no response or rejection exists, the transaction compensation process is terminated.