WO2021208754A1 - Blockchain-based traffic accident processing - Google Patents

Blockchain-based traffic accident processing Download PDF

Info

Publication number
WO2021208754A1
WO2021208754A1 PCT/CN2021/085161 CN2021085161W WO2021208754A1 WO 2021208754 A1 WO2021208754 A1 WO 2021208754A1 CN 2021085161 W CN2021085161 W CN 2021085161W WO 2021208754 A1 WO2021208754 A1 WO 2021208754A1
Authority
WO
WIPO (PCT)
Prior art keywords
accident
data
blockchain
participant
user
Prior art date
Application number
PCT/CN2021/085161
Other languages
French (fr)
Chinese (zh)
Inventor
袁园
Original Assignee
支付宝(杭州)信息技术有限公司
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by 支付宝(杭州)信息技术有限公司 filed Critical 支付宝(杭州)信息技术有限公司
Publication of WO2021208754A1 publication Critical patent/WO2021208754A1/en

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/20Information retrieval; Database structures therefor; File system structures therefor of structured data, e.g. relational data
    • G06F16/27Replication, distribution or synchronisation of data between databases or within a distributed database system; Distributed database system architectures therefor
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F21/00Security arrangements for protecting computers, components thereof, programs or data against unauthorised activity
    • G06F21/30Authentication, i.e. establishing the identity or authorisation of security principals
    • G06F21/31User authentication
    • G06F21/36User authentication by graphic or iconic representation
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F21/00Security arrangements for protecting computers, components thereof, programs or data against unauthorised activity
    • G06F21/60Protecting data
    • G06F21/64Protecting data integrity, e.g. using checksums, certificates or signatures
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06QINFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
    • G06Q40/00Finance; Insurance; Tax strategies; Processing of corporate or income taxes
    • G06Q40/04Trading; Exchange, e.g. stocks, commodities, derivatives or currency exchange
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06QINFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
    • G06Q40/00Finance; Insurance; Tax strategies; Processing of corporate or income taxes
    • G06Q40/08Insurance

Definitions

  • the embodiments of this specification relate to the field of blockchain technology, and in particular to the treatment of traffic accidents based on the blockchain.
  • Blockchain technology also known as distributed ledger technology, is an emerging technology in which several computing devices participate in "bookkeeping" and jointly maintain a complete distributed database. Because the blockchain technology has the characteristics of decentralization, openness and transparency, each computing device can participate in database records, and the rapid data synchronization between computing devices, the blockchain technology has been widely used in many fields. To apply.
  • the block chain stores the correspondence between vehicle identity information and vehicle insurance detail data.
  • the method includes: in response to an operation of an accident participant user, obtaining vehicle identity information of other accident participant users related to the accident, and querying the vehicle insurance details corresponding to the vehicle identity information stored in the blockchain Data; the vehicle identity information and the vehicle insurance details data are output and displayed to the accident participant user through the interface; in response to the accident participant user’s confirmation operation of the vehicle identity information and the vehicle insurance details data , Publish the acquired accident data to the blockchain for storage, the accident data is used for traffic accident claims; the accident data includes the vehicle identity information of the accident participant users related to the accident and the accident Correspondence of forensic data related to the scene.
  • obtaining the vehicle identity information of other accident participant users related to the accident includes: responding to the image scanning operation of the accident participant user for other accidents related to the accident
  • the graphic code generated based on the vehicle identity information output on the client of the participant user is coded and identified to obtain the vehicle identity information of other accident participant users.
  • the graphic code includes a two-dimensional code.
  • a smart contract for accident management is deployed in the blockchain.
  • the responding to the operation of confirming the vehicle identity information and the vehicle insurance details data by the user of the accident participant, publishing the acquired accident data to the blockchain for storage includes: responding to the The user of the accident participant confirms the vehicle identity information and the vehicle insurance details data to construct a first transaction for initiating an accident report, wherein the first transaction includes the accident data related to the accident scene; Publish the first transaction to the block chain, so that the node device in the block chain responds to the first transaction and invokes the verification logic in the smart contract to perform processing on the accident data Legitimacy verification; if the legitimacy verification of the accident data is passed, the event generation logic in the smart contract is further called to generate the accident event corresponding to the accident data, and the accident event and the accident The data is associated and stored in the distributed ledger of the blockchain.
  • the method further includes: monitoring the accident event generated by the smart contract; in response to the monitored accident event, outputting prompt information corresponding to the accident event to the accident participant user to prompt the accident Participating users initiate claims processing for the accident event.
  • a smart contract for accident claims is deployed in the blockchain.
  • the method further includes: constructing a second transaction for initiating accident claims in response to an accident claim settlement operation for the accident event initiated by an accident participant user; and publishing the second transaction to the blockchain to Make the node device in the blockchain respond to the second transaction, call the verification logic in the smart contract, and obtain the first accident data stored in the blockchain and released by the accident participant user , And the second accident data issued by other accident participant users in the first accident data, and verify whether the first accident data matches the second accident data; if so, further call the smart contract
  • the car accident claims logic in, carries out the car accident claims processing on the users of the accident participants.
  • the forensic data related to the scene of the accident includes one or a combination of the following: the time when the accident occurred, the place where the accident occurred, and image data related to the scene of the accident.
  • This manual also proposes a block chain-based traffic accident handling method, which is applied to service equipment.
  • the blockchain stores accident data released by users of the accident participant, and the accident data includes the correspondence between the vehicle identity information of the accident participant user related to the accident and the forensic data related to the accident scene.
  • the method includes: in response to an accident claim for an accident participant user, obtaining first accident data released by the accident participant user stored in the blockchain; and determining other accident participation based on the first accident data Party users, and obtain the second accident data released by the other accident participant users stored in the blockchain; verify whether the first accident data matches the second accident data; if so, The user involved in the accident is involved in the settlement of claims for the car accident.
  • the service device is a node device in the blockchain; a smart contract for accident management is deployed in the blockchain.
  • the method further includes: receiving a first transaction sent by the client for initiating an accident report; the first transaction includes the accident data related to the accident scene; in response to the first transaction, invoking the smart contract
  • the verification logic in, to verify the validity of the accident data; if the validity of the accident data is verified, the event generation logic in the smart contract is further invoked to create an accident corresponding to the accident data And store the accident object and the accident data in the distributed ledger of the blockchain in association with each other.
  • the method further includes: monitoring the accident event generated by the smart contract; in response to the monitored accident event, sending prompt information corresponding to the accident event to the claims settlement agency to prompt the claims settlement agency to The incidents mentioned in the accident shall be dealt with for settlement of claims.
  • a smart contract for accident claims is deployed in the blockchain.
  • the first accident data released other accident participant users are determined based on the first accident data, and the second accident data released by the other accident participant users stored in the blockchain is obtained, and the first accident data is verified. Whether an accident data matches the second accident data. If it is, performing car accident compensation processing on the accident participant user includes: if it is, further invoking the car accident compensation logic in the smart contract to perform car accident compensation processing on the accident participant user.
  • the method further includes: after the car accident claim settlement process for the accident participant user is completed, publishing the car accident claim settlement record for the accident participant user to the blockchain for storage.
  • the block chain stores the correspondence between vehicle identity information and vehicle insurance detail data.
  • the device includes: a first acquisition module, in response to the operation of the accident participant user, obtains the vehicle identity information of other accident participant users related to the accident, and queries the vehicle identity information stored in the blockchain Corresponding vehicle insurance details data; an output module, which outputs and displays the vehicle identity information and the vehicle insurance details data to the users of the accident participants through the interface; the deposit module, which responds to the accident participants’ user’s comments on the vehicle
  • the operation of confirming the identity information and the vehicle insurance details data is to publish the acquired accident data to the blockchain for storage; wherein, the accident data is used for traffic accident claims; the accident data includes the Correspondence between the vehicle identity information of the users involved in the accident and the forensic data related to the accident scene.
  • the first acquisition module in response to the image scanning operation of the user of the accident participant, encode the graphic code generated based on the vehicle identity information output on the client of the user of the other accident participant related to the accident Identification to obtain vehicle identity information of other users involved in the accident.
  • the graphic code includes a two-dimensional code.
  • a smart contract for accident management is deployed in the blockchain.
  • the deposit certificate module in response to the confirmation operation of the vehicle identity information and the vehicle insurance details data by the user of the accident participant, construct a first transaction for initiating an accident report, the first transaction including the The accident data related to the accident scene; publish the first transaction to the blockchain so that the node device in the blockchain can call the verification logic in the smart contract in response to the first transaction To verify the legality of the accident data; if the legality of the accident data is verified, the event generation logic in the smart contract is further invoked to generate an accident event corresponding to the accident data, and the The accident event and the accident data are associated and stored in the distributed ledger of the blockchain.
  • it further includes: a first monitoring module that monitors the accident event generated by the smart contract; in response to the monitored accident event, outputting prompt information corresponding to the accident event to the accident participant user, The user of the accident participant is prompted to initiate a claim settlement process for the accident event.
  • a first monitoring module that monitors the accident event generated by the smart contract; in response to the monitored accident event, outputting prompt information corresponding to the accident event to the accident participant user, The user of the accident participant is prompted to initiate a claim settlement process for the accident event.
  • a smart contract for accident claims is deployed in the blockchain.
  • the device further includes: a first claim settlement module, which constructs a second transaction for initiating accident claims in response to an accident settlement operation initiated by an accident participant user for the accident event; and publishes the second transaction to the Block chain, so that the node device in the block chain, in response to the second transaction, invokes the verification logic in the smart contract to obtain the information stored in the block chain and issued by the accident participant user
  • the first accident data of the first accident data, and the second accident data released by other accident participant users in the first accident data and verify whether the first accident data matches the second accident data; if so, further Calling the car accident compensation logic in the smart contract to perform car accident compensation processing on the accident participant user.
  • the blockchain stores accident data released by users of accident participants; the accident data includes the correspondence between the vehicle identity information of the accident participant users related to the accident and the forensic data related to the accident scene;
  • the device includes: a second acquisition module, which, in response to an accident claim for an accident participant user, acquires the first accident data released by the accident participant user stored in the blockchain; and determines based on the first accident data Other accident participant users, and obtain the second accident data stored in the blockchain and released by the other accident participant users; the verification module verifies whether the first accident data matches the second accident data ;
  • the second claim settlement module if it is, the vehicle accident claim settlement process for the user of the accident participant.
  • the service device is a node device in the blockchain; a smart contract for accident management is deployed in the blockchain.
  • the device further includes: a generating module that receives a first transaction sent by the client for initiating an accident report; the first transaction includes the accident data related to the accident scene; in response to the first transaction, calling the The verification logic in the smart contract is used to verify the validity of the accident data; if the validity verification of the accident data is passed, the event generation logic in the smart contract is further invoked to create a connection with the accident data Corresponding accident events, and store the accident object and the accident data in the distributed ledger of the blockchain in association with each other.
  • the device further includes: a second monitoring module that monitors the accident event generated by the smart contract; in response to the monitored accident event, sending prompt information corresponding to the accident event to the claims settlement agency to Prompt the claims agency to handle claims for the accident.
  • a second monitoring module that monitors the accident event generated by the smart contract
  • a smart contract for accident claims is deployed in the blockchain.
  • the verification module receives the second transaction for initiating accident claims sent by the user of the accident participant through the client; in response to the second transaction, invokes the verification logic in the smart contract to obtain the block
  • the released second accident data verifies whether the first accident data matches the second accident data.
  • the second claim settlement module if yes, further call the auto accident claim settlement logic in the smart contract to perform auto accident claim settlement processing on the accident participant user.
  • the second claim settlement module further: after completing the auto accident claim settlement process for the accident participant user, publish the auto accident claim settlement record for the accident participant user to the blockchain for storage.
  • the claims settlement agency can match the accident data stored in the blockchain by the user and other accident participant users when making accident claims against the user of the accident participant, so as to verify the truth of the accident. This can prevent users from unilaterally publishing false accident data to the blockchain to defraud claims, and improve the security of accident claims.
  • Fig. 1 is a schematic diagram of creating a smart contract according to an exemplary embodiment
  • Fig. 2 is a schematic diagram of invoking a smart contract provided by an exemplary embodiment
  • Fig. 3 is a schematic diagram of creating a smart contract and invoking a smart contract provided by an exemplary embodiment
  • Fig. 4 is a flow chart of an accident handling method based on blockchain provided by an exemplary embodiment
  • Fig. 5 is a schematic structural diagram of an electronic device provided by an exemplary embodiment
  • Fig. 6 is a block diagram of a block chain-based traffic accident handling device provided by an exemplary embodiment
  • Fig. 7 is a block diagram of another device for handling traffic accidents based on blockchain according to an exemplary embodiment.
  • the steps of the corresponding method may not be executed in the order shown and described in this specification.
  • the method may include more or fewer steps than described in this specification.
  • a single step described in this specification may be decomposed into multiple steps for description in other embodiments; and multiple steps described in this specification may also be combined into a single step in other embodiments. describe.
  • Blockchain is generally divided into three types: Public Blockchain, Private Blockchain and Consortium Blockchain.
  • Public Blockchain Private Blockchain
  • Consortium Blockchain there can also be a combination of the above types, such as private chain + consortium chain, consortium chain + public chain, and so on.
  • the public chain is represented by Bitcoin and Ethereum. Participants who join the public chain (also called nodes in the blockchain) can read the data records on the chain, participate in transactions, and compete for the accounting rights of new blocks, etc. . Moreover, each node can freely join or exit the network, and perform related operations.
  • the private chain is the opposite.
  • the write permission of the network is controlled by an organization or institution, and the data read permission is regulated by the organization.
  • a private chain can be a weakly centralized system with strict restrictions on nodes and a small number of nodes. This type of blockchain is more suitable for internal use by specific institutions.
  • Each node in the alliance chain usually has a corresponding entity or organization; nodes are authorized to join the network and form a stakeholder alliance to jointly maintain the operation of the blockchain.
  • the blockchain is usually composed of several blocks.
  • the time stamps corresponding to the creation time of the block are respectively recorded in these blocks, and all the blocks strictly follow the time stamps recorded in the block to form a time-ordered data chain.
  • the real data generated in the physical world it can be constructed into a standard transaction format supported by the blockchain, and then published to the blockchain, and the node devices in the blockchain will perform consensus processing on the received transactions , And after reaching a consensus, the node device as the bookkeeping node in the block chain will package the transaction into the block and carry out persistent storage in the block chain.
  • the consensus algorithms supported in the blockchain can include: the first type of consensus algorithm, that is, the consensus algorithm that node devices need to compete for the accounting right of each round of accounting cycle, for example, Proof of Work (POW) ), Proof of Stake (POS), Delegated Proof of Stake (DPOS) and other consensus algorithms; the second type of consensus algorithm, that is, pre-election of accounting nodes for each round of accounting cycle (no need to compete Accounting rights) consensus algorithms; for example, practical Byzantine Fault Tolerance (PBFT) and other consensus algorithms.
  • the first type of consensus algorithm that is, the consensus algorithm that node devices need to compete for the accounting right of each round of accounting cycle
  • POW Proof of Work
  • POS Proof of Stake
  • DPOS Delegated Proof of Stake
  • PBFT Practical Byzantine Fault Tolerance
  • all node devices that compete for the right to keep accounts can execute the transaction after receiving the transaction.
  • the node devices that compete for the right to bookkeeping one node device may win this round of contention for the right to bookkeeping and become the bookkeeping node.
  • the accounting node can package the received transaction with other transactions to generate the latest block, and send the generated latest block or the block header of the latest block to other node devices for consensus.
  • the node device with the right to book accounts has been agreed before this round of bookkeeping. Therefore, after the node device receives the transaction, if it is not the accounting node of this round, it can send the transaction to the accounting node.
  • the transaction can be executed during or before the process of packaging the transaction with other transactions to generate the latest block.
  • the accounting node After the accounting node generates the latest block, it can send the latest block or the block header of the latest block to other node devices for consensus.
  • the accounting node in this round can package the received transaction to generate the latest block, and the generated latest block or the latest block
  • the header of the block is sent to other node devices for consensus verification. If other node equipment receives the latest block or the block header of the latest block, it is verified that there is no problem, and the latest block can be appended to the end of the original blockchain to complete the accounting process of the blockchain. In the process of verifying the new block or block header sent by the accounting node, other nodes can also execute the transactions contained in the block.
  • Ethereum In the field of blockchain, an important concept is Account; taking Ethereum as an example, Ethereum usually divides accounts into external accounts and contract accounts; external accounts are accounts directly controlled by users, also called It is a user account; while a contract account is an account created by a user through an external account and contains the contract code (ie smart contract).
  • the account types supported by the blockchain can also be further extended, which is not particularly limited in this specification.
  • a structure is usually used to maintain the account status of the account.
  • the state of the account related to the transaction in the blockchain will usually change.
  • the structure of an account usually includes fields such as Balance, Nonce, Code, and Storage. in:
  • the Balance field is used to maintain the current account balance of the account
  • the Nonce field is used to maintain the number of transactions of the account; it is a counter used to ensure that each transaction can be processed and can only be processed once, effectively avoiding replay attacks;
  • the Code field is used to maintain the contract code of the account; in actual applications, the Code field usually only maintains the hash value of the contract code; therefore, the Code field is usually also called the Codehash field.
  • the Storage field is used to maintain the storage content of the account (the default field value is empty); for contract accounts, an independent storage space is usually allocated to store the storage content of the contract account; the independent storage space is usually Call it the account storage of the contract account.
  • the storage content of the contract account is usually constructed as an MPT (Merkle Patricia Trie) tree and the data structure is stored in the above independent storage space; among them, the MPT tree constructed based on the storage content of the contract account is usually also called the Storage tree .
  • the Storage field usually only maintains the root node of the Storage tree; therefore, the Storage field is usually also called the StorageRoot field.
  • the field values of the Code field and the Storage field shown above are all null values.
  • Merkle trees are usually used; or, based on the data structure of Merkle trees, to store and maintain data.
  • Ethereum uses the MPT tree as a form of data organization to organize and manage important data such as account status and transaction information.
  • the MPT tree is a Merkle tree variant that incorporates the tree structure of the Trie dictionary tree.
  • Ethereum has designed three MPT trees for the data that needs to be stored and maintained in the blockchain, namely the MPT state tree, the MPT transaction tree and the MPT receipt tree. Among them, in addition to the above three MPT trees, there is actually a Storage tree constructed based on the storage content of the contract account.
  • MPT state tree is an MPT tree organized by the account state data of all accounts in the blockchain
  • MPT transaction tree is an MPT tree organized by transaction data in the blockchain
  • MPT receipt tree Is the MPT tree organized by the receipt of each transaction generated after the transactions in the block are executed.
  • the hash values of the root nodes of the MPT state tree, MPT transaction tree, and MPT receipt tree shown above will all be added to the block header of the corresponding block eventually.
  • the MPT transaction tree and MPT receipt tree correspond to blocks, that is, each block has its own MPT transaction tree and MPT receipt tree.
  • the MPT state tree is a global MPT tree, which does not correspond to a specific block, but covers the account state data of all accounts in the blockchain.
  • the node device After the transaction of the node device in the latest block generated by the blockchain is completed, because the account status in the current blockchain has changed, the node device needs to use the current account status data of all accounts in the blockchain to Construct the MPT state tree to maintain the latest state of all accounts in the blockchain.
  • each block in the blockchain has a corresponding MPT state tree; the MPT state tree maintains that after the transactions in the block are executed, all accounts in the blockchain are up to date The status of the account.
  • Smart contracts on the blockchain are contracts that can be triggered and executed by transactions on the blockchain. Smart contracts can be defined in the form of codes.
  • Ethereum Taking Ethereum as an example, it supports users to create and call some complex logic in the Ethereum network.
  • Ethereum is a programmable blockchain, and its core is the Ethereum Virtual Machine (EVM), and each Ethereum node can run the EVM.
  • EVM is a Turing complete virtual machine, through which various complex logic can be realized. Users who publish and call smart contracts in Ethereum run on the EVM.
  • EVM directly runs virtual machine code (virtual machine bytecode, hereinafter referred to as "bytecode”), so the smart contract deployed on the blockchain can be bytecode.
  • bytecode virtual machine code
  • each node can execute the transaction in the EVM.
  • the From field of the transaction in Figure 1 is used to record the address of the account that initiated the creation of the smart contract
  • the contract code saved in the field value of the Data field of the transaction can be bytecode
  • the field value of the To field of the transaction is a null( Empty) account.
  • a contract account corresponding to the smart contract appears on the blockchain and has a specific address; for example, "0x68e12cf284" in each node in Figure 1 represents the address of the created contract account ; Contract code (Code) and account storage (Storage) will be stored in the account storage of the contract account.
  • the behavior of the smart contract is controlled by the contract code, and the account storage of the smart contract saves the state of the contract.
  • smart contracts enable virtual accounts containing contract codes and account storage to be generated on the blockchain.
  • the Data field containing the transaction that created the smart contract can store the bytecode of the smart contract.
  • the bytecode consists of a series of bytes, and each byte can identify an operation.
  • developers can choose a high-level language to write smart contract code instead of directly writing bytecode.
  • high-level languages such as Solidity, Serpent, and LLL languages can be used.
  • smart contract code written in a high-level language it can be compiled by a compiler to generate bytecode that can be deployed on the blockchain.
  • the contract code written with it is very similar to the class in the object-oriented programming language.
  • a variety of members can be declared in a contract, including state variables, functions, function modifiers, and events.
  • the state variable is a value permanently stored in the storage (Storage) field of the smart contract, and is used to save the state of the contract.
  • each node can execute the transaction in the EVM.
  • the From field of the transaction in Figure 2 is used to record the address of the account that initiated the invocation of the smart contract
  • the To field is used to record the address of the smart contract being called
  • the Data field of the transaction is used to record the method and parameters of invoking the smart contract.
  • the account status of the contract account may change. Later, a certain client can view the account status of the contract account through the connected blockchain node (for example, node 1 in Figure 2).
  • Smart contracts can be executed independently on each node in the blockchain network in a prescribed manner. All execution records and data are stored on the blockchain, so when such transactions are executed, the blockchain cannot be saved. A transaction certificate that is tampered with and will not be lost.
  • FIG. 3 The schematic diagram of creating a smart contract and invoking a smart contract is shown in Figure 3.
  • Invoking a smart contract in Ethereum is to initiate a transaction pointing to a smart contract address.
  • the EVM of each node can execute the transaction separately, and the smart contract code can be distributed in the virtual machine of each node in the Ethereum network.
  • the purpose of this manual is to propose a way for accident participants to quickly exchange their vehicle identity data and vehicle insurance details data with other accident participants by accessing the data stored in the blockchain for mutual verification, and then autonomously after verification. Report the accident data to the blockchain for storage and complete the technical solution for claim settlement.
  • the user can upload the corresponding relationship between the vehicle identity information of the vehicle under his own name and the vehicle insurance detail data to the blockchain for storage.
  • the client can respond to the user's operation, obtain the vehicle identity information of other accident participants related to the accident, and query the vehicle corresponding to the vehicle identity information stored in the blockchain Insurance details;
  • the vehicle identity data and the vehicle insurance details data can be output and displayed to the users of the accident participants through the interface, and the user can view and verify; After the displayed data is confirmed, the client can respond to the user's confirmation operation and publish the accident data obtained by the client to the blockchain for storage; among them, the accident data can be used for traffic accident claims; the accident data includes and Correspondence between the vehicle identity information of the users involved in the accident related to the accident and the forensic data related to the accident scene obtained by the client.
  • the same operations described above can also be performed through the client, and the accident data obtained by the client can also be published to the blockchain for storage.
  • the claims settlement agency can obtain the blockchain when making claims for the accident participants of the accident.
  • the second accident data released to the blockchain is the first accident data released by the user of the accident participant stored in the accident data, and based on the data content of the first accident data to determine other accident participant users related to the accident, and then obtain the user from the other accident participant The second accident data released to the blockchain.
  • the claims settlement agency can verify whether the first accident data matches the second accident data to confirm the authenticity of the accident; if the two match, it proves that the accident is a real accident, and can further participate in the accident Party users carry out claims processing for car accidents.
  • the claims settlement agency can match the accident data stored in the blockchain by the user and the accident data released by other users of the accident participant when making accident claims against the user of the accident participant, to verify the truth of the accident. This can prevent users from unilaterally publishing false accident data to the blockchain to defraud claims, and improve the security of accident claims.
  • FIG. 4 is a flowchart of a method for handling a traffic accident based on a blockchain according to an exemplary embodiment.
  • the block chain stores the corresponding relationship between vehicle identity information and vehicle insurance detail data; the method includes the following steps:
  • Step 402 In response to the operation of the accident participant user, the client obtains the vehicle identity information of other accident participant users related to the accident, and queries the vehicle insurance details corresponding to the vehicle identity information stored in the blockchain data;
  • step 404 the client terminal outputs and displays the vehicle identity information and vehicle insurance details data to the users of the accident participants through the interface.
  • step 406 the client responds to the confirmation operation of the vehicle identity information and the vehicle insurance details data by the user of the accident participant, and publishes the acquired accident data to the blockchain for storage;
  • the accident data is used for traffic accident claims;
  • the accident data includes the corresponding relationship between the vehicle identity information of the accident participant user related to the accident and the forensic data related to the accident scene;
  • Step 408 In response to the accident claim for the accident, the service device obtains the first accident data released by the accident participant user stored in the blockchain, determines other accident participant users based on the first accident data, and obtains The second accident data stored in the blockchain and released by the users of the other accident participants;
  • Step 410 Verify whether the first accident data matches the second accident data; if so, perform a car accident compensation processing on the user of the accident participant.
  • the above-mentioned client may specifically include client software that provides various value-added services related to the vehicle to the driver.
  • the above-mentioned client may be an APP called "Driver Wallet" that provides services to drivers; the services provided by the APP to drivers may include parking fees, fines, and payment of driving fees. , Accident declaration, accident claim settlement and other online services.
  • the above-mentioned service equipment may specifically correspond to a claims settlement institution (such as an insurance company), and may include a server, a server cluster, or a service platform built based on the server cluster that the claims settlement institution provides services to users, and so on.
  • a claims settlement institution such as an insurance company
  • the above-mentioned service device may be a centralized service device corresponding to a claims settlement institution, or may be added to the blockchain as a node device.
  • the user can upload the corresponding relationship between the vehicle identity information of the vehicle under his own name and the vehicle insurance detail data to the blockchain for storage in advance.
  • the aforementioned vehicle identity information may specifically include vehicle information and user identity information bound to the vehicle information.
  • the aforementioned vehicle information may specifically include the license plate number of the vehicle, engine number, vehicle appearance data (such as a picture of the vehicle appearance), and various information that can uniquely identify the vehicle.
  • the aforementioned user identity information may specifically include the user's ID number, driver's license number, and other information that can uniquely identify the user.
  • users can access the data stored in the blockchain by operating the client, and exchange their vehicle identity information and insurance details with other accident participants for mutual verification.
  • the client can respond to the user's operation to obtain the vehicle identity information of other accident participant users related to the accident, and use the obtained vehicle identity information of other accident participant users as a query index to query the storage in the blockchain.
  • Vehicle insurance detail data corresponding to the vehicle identity information.
  • the specific manner in which the user obtains the vehicle identity information of other accident participant users related to the accident through the client is not particularly limited in this specification.
  • the user can obtain the vehicle identity information of other accident participant users by using the client to scan codes with other accident participant users; in this case, the client can Provide users with an access entry to the graphic code generated by the user’s vehicle identity information; after the user encounters a car accident, all users involved in the car accident can trigger the graphic code on the client by operating the access entry provided by the client.
  • the user interface displays the output.
  • the user of the accident participant can perform image scanning operations on the graphic code output on the client of other accident participant users through the client to obtain the other party's vehicle identity information.
  • the client can respond to the image scanning operation initiated by the user, identify the graphics code output on the client of other users involved in the accident, and parse the coding information carried in the graphics code to obtain the vehicle identities of other users involved in the accident. information.
  • the specific form of the above-mentioned graphic coding is not particularly limited in this specification; for example, it may be a general two-dimensional code, or a bar code other than a two-dimensional code, or other forms Graphic coding.
  • the user's client After the user's client has inquired about the vehicle insurance details data stored in the blockchain that corresponds to the vehicle identity information of the other accident participant users mentioned above, it can obtain the vehicle insurance details of the other accident participant users mentioned above.
  • the identity information and the corresponding vehicle insurance detail data are output to the user through the interface, and the user verifies and confirms the vehicle identity information and vehicle insurance detail data of other accident participants in this accident.
  • the client can also be used in the same way to scan the image code output by the user’s client to obtain the user’s vehicle identity information and vehicle insurance details, in the interface Perform output display, and then verify and confirm, the specific process will not be repeated.
  • the code scanning process described above can exchange vehicle identity data and vehicle insurance details data with other accident participants through the blockchain to verify each other.
  • the above-mentioned vehicle insurance details data may specifically include basic information of the insurance company, vehicle insurance information, vehicle insurance validity period and other information; and users can verify whether the vehicle identity information is consistent with the above information of the other party in the accident. Matching of the accident vehicle, whether the claim accident type specified in the vehicle insurance details covers the accident type, whether the validity period of the vehicle insurance expires, and so on.
  • the client can perform confirmation operations on the information displayed on the client in the client's interface;
  • the client can also provide a corresponding confirmation button when outputting the above information through the interface; after verifying that the above information is correct, the user can trigger the confirmation button by clicking, etc., Confirm the above information.
  • the client After the user performs the confirmation operation on the vehicle identity information and vehicle insurance details data of the other users involved in the accident on the client, the client can respond to the confirmation operation and publish the acquired accident data related to the accident to The blockchain is used to deposit the certificate to complete the report of the accident;
  • the accident data published by the client to the blockchain may be the original content of the accident data or the summary data of the accident data, which is not particularly limited in this specification.
  • the aforementioned accident data is specifically used for traffic accident claims; the aforementioned accident data may include the corresponding relationship between the vehicle identity information of the accident participant user related to the aforementioned accident and the forensic data related to the accident scene.
  • vehicle identity information included in the aforementioned accident data may include the vehicle identity information of all users of the accident participants, or it may only include the vehicle identity information of at least multiple accident participants among all the users of the accident participants. There is no particular limitation in this specification.
  • the accident data published by A to the blockchain can include the vehicle identity information of users A, B, and C, or only include user A’s vehicle Identity information, and the vehicle identity information of one of the users involved in the accident in B or C.
  • the foregoing forensic data related to the accident site may specifically include one or a combination of data such as the time of the accident, the location of the accident, and image data related to the accident site.
  • the above-mentioned image data may specifically include pictures, videos or other forms of image data that can restore the conditions of the accident scene.
  • the forensic data may be data obtained by the user in real time when the client responds to the user's confirmation operation.
  • the client can respond to the confirmation operation by outputting a prompt message to the user through the interface "whether to jump to the shooting interface to shoot the scene of the accident?" After the user confirms, the user jumps to the shooting interface to shoot the scene of the accident for evidence; or, also You can jump directly to the shooting interface to shoot and collect evidence at the scene of the accident.
  • the aforementioned forensic data may also be data obtained in advance by the user using the client.
  • the above forensic data is still taken as an example of pictures related to the scene of the accident; in this case, when the user performs confirmation on the client's vehicle identity information and vehicle insurance details data of the other users involved in the accident After the operation, the client can respond to the confirmation operation and output an upload entry to the user through the interface; the user can trigger the upload entry and select the pictures of the accident scene that have been taken from the album catalog to upload.
  • the accident data related to this accident can also be uploaded to the blockchain in the same way, which will not be repeated here.
  • a smart contract for accident management may also be pre-deployed on the above-mentioned blockchain; among them, for the deployment process of the smart contract, please refer to the specific process described in Figure 1 and will not be repeated.
  • the code execution logic corresponding to the contract code declared in the smart contract can include the verification logic used to verify the validity of the accident data, and the accident event generation logic; after an accident, the user can call this through the client
  • the smart contract reports the accident data related to this accident to the blockchain for storage.
  • the client can respond to the confirmation operation and construct a first report for initiating the accident report.
  • a transaction where the first transaction may specifically be a transaction for invoking a smart contract, and the transaction may specifically include the above-mentioned accident data related to the scene of the accident.
  • the client can publish the first transaction to the blockchain.
  • the node device in the blockchain can respond to the first transaction, call the verification logic in the smart contract, and perform a legality verification for the accident data.
  • the specific verification process of the legality verification is not particularly limited in this specification; for example, in an example, the accident data may carry a digital signature, and the legality verification of the accident data may include The digital signature of the above accident data is verified; if the digital signature verification passes, it can be determined that the accident data is legal data.
  • the event generation logic in the above smart contract can be further called to generate the accident event corresponding to the above accident data, and the above accident event and the above accident data can be associated and stored in the above blockchain.
  • Distributed ledger
  • the above accident event may specifically be a new object created on the blockchain by calling a smart contract; in one example, the above accident event may specifically be a new account created by calling a smart contract Object.
  • the account types supported by the blockchain can be further expanded, and based on external accounts and contract accounts, an account type corresponding to an accident event can be expanded.
  • the above accident event and the above accident data can be specifically associated and stored in the Storage tree corresponding to the above smart contract; for example, the above accident event can be used as a key (which can be a string of account addresses), and the above accident data can be As the Value corresponding to the key, it is stored in the Storage tree in the form of a Key-Value pair.
  • the client can monitor the accident events generated by the smart contract on the blockchain; for example, a listener can be developed to monitor the storage tree of the smart contract The newly created account object corresponding to the accident event;
  • the smart contract on the blockchain When the accident event generated by the smart contract on the blockchain is monitored, it can respond to the accident event and output prompt information corresponding to the accident event to the accident participant user to prompt the accident participant user to respond to the accident event. Initiation of claims processing in the event of an accident.
  • the prompt message may be a prompt message of "You have successfully reported an accident event, do you want to initiate a claim?" The user of the accident participant can decide whether to initiate claims processing for the accident event under the prompt of the prompt message.
  • the client can initiate a claim processing for the accident event to the claims agency through the client; and the client can respond to the accident participant user Initiated an accident claim settlement operation for the accident event to initiate a claim settlement process.
  • the client can respond to the above-mentioned accident claim settlement operation by sending a claim settlement request to the service end of the claims settlement agency to initiate a claim settlement; it may also deploy a claim issued by the claims settlement agency on the blockchain for accident settlement operations.
  • a smart contract for claim settlement a transaction that calls the smart contract is sent to the node device of the blockchain to initiate a claim settlement.
  • the claims settlement agency can use the latest accident data released on the blockchain to provide Carry out claims processing for the users of the accident participants.
  • the claims processing performed by the claims agency on the users of the accident participants can be initiated by the claims agency through the service equipment monitoring the latest accident data released on the blockchain, or by the user through the client.
  • This specification is not particularly limited.
  • a smart contract for accident management can be pre-deployed on the above-mentioned blockchain, and the user can trigger the generation of an accident on the blockchain by invoking the smart contract. Event, and store the generated accident event and the above-mentioned accident data in the distributed ledger of the blockchain.
  • the service equipment of the claims settlement agency can monitor the accident event generated by the above-mentioned smart contract on the blockchain.
  • a listener can be developed to monitor the newly created account object corresponding to the accident event in the Storage tree of the smart contract.
  • prompt information corresponding to the accident event can be sent to the claims settlement agency to prompt the claims settlement agency to handle the accident event.
  • the prompt message may be a prompt message of "receiving an accident reported by the XX user, whether to initiate a claim?"
  • the claims agency can decide whether to initiate claims processing for the accident participant users of the accident event under the prompt of the prompt message.
  • the claims settlement agency decides to settle a claim for a certain accident participant in this accident, it can obtain the first accident data stored in the blockchain and released by the user of the accident participant.
  • the above prompt message may carry the key of the accident event, and the claims settlement agency may query the accident data corresponding to the accident event in the Storage tree of the smart contract based on the key.
  • the other accident participant users of the accident can be determined based on the data content of the first accident data; for example, it can be based on other accident data carried in the accident data.
  • the user identity information in the vehicle identity information of the accident participant is used to clarify the identities of the users of other accident participants.
  • the second accident data released by the other accident participant user stored in the blockchain can be obtained.
  • the accident participant user After obtaining the accident data released by the accident participant user stored in the blockchain, it is possible to continue to verify whether the above-mentioned first accident data and the above-mentioned second accident data match. For example, it is possible to verify whether the accident participant users included in the first accident data and the second accident data respectively match, verify that the accident occurred in the forensic data included in the first accident data and the second accident data respectively. The time, the location of the accident, whether the image data related to the accident site matches, etc.
  • the specific steps of the user involved in the accident to deal with the car accident claims will not be described in detail in this manual.
  • the above client is an APP called "Driver Wallet” that provides services to drivers
  • the claims agency can make payment to the "wallet account” of the user of the accident participant based on the amount of vehicle insurance of the user of the accident participant.
  • the claims transfer process can be done.
  • the claims settlement agency after the claims settlement agency has completed the car accident claims processing on the accident participant user, it can also generate a car accident claims record corresponding to the accident participant user, and then publish the car accident claim record to the district.
  • the block chain deposits the certificate to form the user's car accident claim record on the block chain, so that all claims settlement agencies connected to the blockchain can obtain the user's car accident claim record and customize the claim settlement strategy for the user.
  • the claims agency may also develop the claims processing logic of the accident participant user into a smart contract for accident claims, and then deploy the smart contract on the blockchain.
  • the code execution logic corresponding to the contract code declared in the smart contract for accident claims corresponds to the above-described process of claims settlement by the claims settlement agency, and may include accident data for all accident participants. Verification logic for verification and accident claims logic; after an accident, the user can call the smart contract through the client to complete the claims processing autonomously without the intervention of the claims agency.
  • the client can respond to the accident claim operation initiated by the user of the accident participant for the accident event, construct a second transaction for initiating the accident claim, and publish the second transaction to the district Block chain.
  • the user can be provided with an operation portal (such as a button) for initiating accident claims in the interface of the client, so that the user can quickly initiate accident claims by triggering the operation portal; and the client can respond to the user
  • the trigger operation of the operation entry triggers the construction of the above-mentioned second transaction, and publishes the second transaction to the blockchain.
  • the node device in the blockchain can respond to the second transaction and obtain the first accident data released by the user of the accident participant stored in the blockchain, based on the first accident data Determine other accident participant users, obtain the second accident data stored in the blockchain and released by the other accident participant users, and then verify whether the first accident data matches the second accident data; when When the two match, the car accident compensation logic in the above smart contract can be further invoked to perform car accident compensation processing for the accident participant user, and the specific process will not be repeated.
  • the above smart contract can store the results of the car accident claims processing in the distributed ledger of the blockchain after completing the car accident claims processing of the user involved in the accident; while for the claims agency, it can monitor the execution of the above smart contract As a result, to obtain the settlement result of the above-mentioned accident participant user.
  • the execution result of a smart contract is usually stored in the MPT receipt tree in the form of a transaction execution log (Log); or, it can also be stored in the storage tree of the smart contract in the form of a Key-Value pair. Therefore, the claim settlement agency can obtain the claim settlement results of the users of the aforementioned accident participants by monitoring the MPT receipt tree or the storage tree of the smart contract.
  • a transaction execution log Log
  • the claim settlement agency can obtain the claim settlement results of the users of the aforementioned accident participants by monitoring the MPT receipt tree or the storage tree of the smart contract.
  • a corresponding state machine can also be maintained by the smart contract to indicate its state.
  • the smart contract in the initial state, the smart contract can mark it as an unclaimed state; when the user calls the smart contract through the client, the claim for the accident event is completed After processing, it can be updated to the status of the claim.
  • both the user’s client and the claims agency’s server can learn about the latest status of the accident in time through monitoring, and can then report to the user or the claims agency based on the latest status of the accident. Staff, send the corresponding status prompt message.
  • the claims settlement agency can match the accident data stored in the blockchain by the user and the accident data released by other users of the accident participant when making accident claims against the user of the accident participant, to verify the truth of the accident. This can prevent users from unilaterally publishing false accident data to the blockchain to defraud claims, and improve the security of accident claims.
  • this application also provides an embodiment of the device.
  • this specification also provides an embodiment of a traffic accident handling device based on blockchain.
  • the embodiments of the block chain-based traffic accident handling device in this specification can be applied to electronic equipment.
  • the device embodiments can be implemented by software, or can be implemented by hardware or a combination of software and hardware.
  • Taking software implementation as an example as a logical device, it is formed by reading the corresponding computer program instructions in the non-volatile memory into the memory through the processor of the electronic device where it is located.
  • FIG. 5 a hardware structure diagram of the electronic equipment where the block chain-based traffic accident handling device of this specification is located, except for the processor, memory, network interface, and In addition to the non-volatile memory, the electronic device in which the device is located in the embodiment may also include other hardware according to the actual function of the electronic device, which will not be repeated here.
  • Fig. 6 is a block diagram of a block chain-based traffic accident processing device shown in an exemplary embodiment of this specification.
  • the block chain-based traffic accident handling device 60 can be applied to the electronic device shown in the aforementioned FIG. 5, wherein the block chain stores the correspondence between vehicle identity information and vehicle insurance details data;
  • the device 60 includes:
  • the first obtaining module 601 in response to the operation of the accident participant user, obtains the vehicle identity information of other accident participant users related to the accident, and queries the vehicle insured corresponding to the vehicle identity information stored in the blockchain Detailed data;
  • the output module 602 outputs and displays the vehicle identity information and the vehicle insurance details data to the users of the accident participants through the interface;
  • the certification module 603 in response to the confirmation operation of the vehicle identity information and the vehicle insurance details data by the user of the accident participant, publishes the acquired accident data to the blockchain for certification; where
  • the accident data is used for traffic accident compensation; the accident data includes the vehicle identity information of the accident participant users related to the accident and the corresponding relationship of the forensic data related to the accident scene.
  • the first acquisition module 601 in response to the image scanning operation of the user of the accident participant, the graphic code generated based on the vehicle identity information output on the client side of other accident participant users related to the accident Perform coding recognition to obtain vehicle identity information of other users involved in the accident.
  • the graphic code includes a two-dimensional code.
  • a smart contract for accident management is deployed in the blockchain.
  • the certificate storage module 603 in response to the confirmation operation of the vehicle identity information and the vehicle insurance details data by the user of the accident participant, construct a first transaction for initiating an accident report; wherein, the first transaction Including the accident data related to the accident site; publishing the first transaction to the blockchain, so that the node device in the blockchain can call the smart contract in response to the first transaction
  • the verification logic for the accident data is verified for the validity of the accident data; if the validity verification for the accident data is passed, the event generation logic in the smart contract is further invoked to generate the accident event corresponding to the accident data , And store the accident event and the accident data in the distributed ledger of the blockchain in association with each other.
  • a first monitoring module 604 (not shown in FIG. 6), which monitors the accident event generated by the smart contract; in response to the monitored accident event, output to the accident participant user
  • the prompt information corresponding to the accident event is used to prompt the accident participant user to initiate a claim settlement process for the accident event.
  • a smart contract for accident claims is deployed in the blockchain.
  • the device 60 also includes: a first claim settlement module 605 (not shown in FIG. 6), which constructs a second transaction for initiating an accident claim in response to an accident settlement operation initiated by an accident participant user for the accident event; Publish the second transaction to the blockchain, so that the node device in the blockchain can respond to the second transaction by calling the verification logic in the smart contract to obtain The stored first accident data issued by the accident participant user and the second accident data issued by the other accident participant users in the first accident data, and verify that the first accident data and the first accident data 2. Whether the accident data matches; if so, further call the car accident compensation logic in the smart contract to perform car accident compensation processing on the user of the accident participant.
  • Fig. 7 is a block diagram of a block chain-based traffic accident handling device shown in an exemplary embodiment of the present specification.
  • the block chain-based traffic accident handling device 70 can be applied to the electronic device shown in Fig. 5, where the block chain stores accident data released by the accident participant user;
  • the accident data includes the corresponding relationship between the vehicle identity information of the accident participant user related to the accident and the forensic data related to the accident scene; the device 70 includes:
  • the second acquisition module 701 in response to an accident claim for an accident participant user, obtains the first accident data released by the accident participant user stored in the blockchain; and determines other accidents based on the first accident data Participant users, and obtain the second accident data stored in the blockchain and released by the other accident participant users;
  • the verification module 702 verifies whether the first accident data matches the second accident data
  • the service device is a node device in the blockchain; a smart contract for accident management is deployed in the blockchain.
  • the device 70 further includes: a generating module 704 (not shown in FIG. 7), which receives a first transaction sent by the client for initiating an accident report; the first transaction includes the accident data related to the accident scene; In response to the first transaction, call the verification logic in the smart contract to verify the validity of the accident data; if the validity verification of the accident data passes, further call the verification logic in the smart contract
  • the event generation logic creates an accident event corresponding to the accident data, and stores the accident object and the accident data in the distributed ledger of the blockchain in association with each other.
  • the device 70 further includes: a second monitoring module 705 (not shown in FIG. 7), which monitors the accident event generated by the smart contract; in response to the monitored accident event, sends to the claims settlement agency
  • the prompt information corresponding to the accident event is used to prompt the claims settlement agency to handle the claims for the accident event.
  • a smart contract for accident claims is deployed in the blockchain.
  • the verification module 702 receives a second transaction for initiating accident claims sent by the user of the accident participant through the client; in response to the second transaction, invokes the verification logic in the smart contract to obtain the zone
  • the first accident data released by the accident participant user stored in the block chain, other accident participant users are determined based on the first accident data, and the other accident participant users stored in the block chain are obtained
  • the second accident data released by the user verifies whether the first accident data matches the second accident data.
  • the second claim settlement module 703 if yes, further call the auto accident claim settlement logic in the smart contract to perform auto accident claim settlement processing on the accident participant user.
  • the second claim settlement module 703 further: after completing the auto accident claim settlement process for the accident participant user, publish the auto accident claim settlement record for the accident participant user to the blockchain for storage. certificate.
  • a typical implementation device is a computer.
  • the specific form of the computer can be a personal computer, a laptop computer, a cellular phone, a camera phone, a smart phone, a personal digital assistant, a media player, a navigation device, an email receiving and sending device, and a game control A console, a tablet computer, a wearable device, or a combination of any of these devices.
  • the computer includes one or more processors (CPU), input/output interfaces, network interfaces, and memory.
  • processors CPU
  • input/output interfaces network interfaces
  • memory volatile and non-volatile memory
  • the memory may include non-permanent memory in computer readable media, random access memory (RAM) and/or non-volatile memory, such as read-only memory (ROM) or flash memory (flash RAM). Memory is an example of computer readable media.
  • RAM random access memory
  • ROM read-only memory
  • flash RAM flash memory
  • Computer-readable media include permanent and non-permanent, removable and non-removable media, and information storage can be realized by any method or technology.
  • the information can be computer-readable instructions, data structures, program modules, or other data.
  • Examples of computer storage media include, but are not limited to, phase change memory (PRAM), static random access memory (SRAM), dynamic random access memory (DRAM), other types of random access memory (RAM), read-only memory (ROM), electrically erasable programmable read-only memory (EEPROM), flash memory or other memory technology, CD-ROM, digital versatile disc (DVD) or other optical storage, Magnetic cassettes, disk storage, quantum memory, graphene-based storage media or other magnetic storage devices, or any other non-transmission media, can be used to store information that can be accessed by computing devices.
  • computer-readable media does not include transitory media, such as modulated data signals and carrier waves.
  • first, second, third, etc. may be used to describe various information in one or more embodiments of this specification, the information should not be limited to these terms. These terms are only used to distinguish the same type of information from each other.
  • first information may also be referred to as second information, and similarly, the second information may also be referred to as first information.
  • word “if” as used herein can be interpreted as "when” or “when” or "in response to determination”.

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Business, Economics & Management (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Accounting & Taxation (AREA)
  • Finance (AREA)
  • Computer Security & Cryptography (AREA)
  • General Engineering & Computer Science (AREA)
  • Marketing (AREA)
  • Development Economics (AREA)
  • Technology Law (AREA)
  • Strategic Management (AREA)
  • Economics (AREA)
  • Databases & Information Systems (AREA)
  • General Business, Economics & Management (AREA)
  • Software Systems (AREA)
  • Computer Hardware Design (AREA)
  • General Health & Medical Sciences (AREA)
  • Bioethics (AREA)
  • Computing Systems (AREA)
  • Health & Medical Sciences (AREA)
  • Data Mining & Analysis (AREA)
  • Financial Or Insurance-Related Operations Such As Payment And Settlement (AREA)

Abstract

A blockchain-based traffic accident processing method, being applied to a client. A blockchain stores a correspondence between vehicle identity information and vehicle insurance detail data. The method comprises: in response to an operation of an accident participant user, obtaining the vehicle identity information of other accident participant users related to an accident, and querying vehicle insurance detail data corresponding to the vehicle identity information and stored in a blockchain; outputting and displaying the vehicle identity information and the vehicle insurance detail data to the accident participant user by means of an interface; and in response to a confirmation operation of the accident participant user for the vehicle identity information and the vehicle insurance detail data, publishing obtained accident data to the blockchain for evidence storage, wherein the accident data is used for traffic accident claim settlement, and the accident data comprises the vehicle identity information of the accident participant user related to the accident, and a correspondence of evidence obtaining data related to an accident site.

Description

基于区块链的交通事故处理Blockchain-based traffic accident handling 技术领域Technical field
本说明书实施例涉及区块链技术领域,尤其涉及基于区块链的交通事故处理。The embodiments of this specification relate to the field of blockchain technology, and in particular to the treatment of traffic accidents based on the blockchain.
背景技术Background technique
区块链技术,也被称之为分布式账本技术,是一种由若干台计算设备共同参与“记账”,共同维护一份完整的分布式数据库的新兴技术。由于区块链技术具有去中心化、公开透明、每台计算设备可以参与数据库记录、并且各计算设备之间可以快速的进行数据同步的特性,使得区块链技术已在众多的领域中广泛的进行应用。Blockchain technology, also known as distributed ledger technology, is an emerging technology in which several computing devices participate in "bookkeeping" and jointly maintain a complete distributed database. Because the blockchain technology has the characteristics of decentralization, openness and transparency, each computing device can participate in database records, and the rapid data synchronization between computing devices, the blockchain technology has been widely used in many fields. To apply.
发明内容Summary of the invention
本说明书提出一种基于区块链的交通事故处理方法,应用于客户端。所述区块链存储了车辆身份信息和车辆投保详情数据的对应关系。所述方法包括:响应于事故参与方用户的操作,获取与事故相关的其他事故参与方用户的车辆身份信息,并查询所述区块链中存储的与所述车辆身份信息对应的车辆投保详情数据;将所述车辆身份信息和所述车辆投保详情数据通过界面向事故参与方用户进行输出显示;响应于所述事故参与方用户对所述车辆身份信息和所述车辆投保详情数据的确认操作,将获取到的事故数据发布至所述区块链进行存证,所述事故数据用于交通事故理赔;所述事故数据包括与所述事故相关的事故参与方用户的车辆身份信息以及与事故现场相关的取证数据的对应关系。This manual proposes a block chain-based traffic accident handling method, which is applied to the client. The block chain stores the correspondence between vehicle identity information and vehicle insurance detail data. The method includes: in response to an operation of an accident participant user, obtaining vehicle identity information of other accident participant users related to the accident, and querying the vehicle insurance details corresponding to the vehicle identity information stored in the blockchain Data; the vehicle identity information and the vehicle insurance details data are output and displayed to the accident participant user through the interface; in response to the accident participant user’s confirmation operation of the vehicle identity information and the vehicle insurance details data , Publish the acquired accident data to the blockchain for storage, the accident data is used for traffic accident claims; the accident data includes the vehicle identity information of the accident participant users related to the accident and the accident Correspondence of forensic data related to the scene.
可选的,所述响应于事故参与方用户的操作,获取与事故相关的其他事故参与方用户的车辆身份信息,包括:响应于事故参与方用户的图像扫描操作,针对与事故相关的其他事故参与方用户的客户端上输出的基于所述车辆身份信息生成的图形编码进行编码识别,以获取其他事故参与方用户的车辆身份信息。Optionally, in response to the operation of the accident participant user, obtaining the vehicle identity information of other accident participant users related to the accident includes: responding to the image scanning operation of the accident participant user for other accidents related to the accident The graphic code generated based on the vehicle identity information output on the client of the participant user is coded and identified to obtain the vehicle identity information of other accident participant users.
可选的,所述图形编码包括二维码。Optionally, the graphic code includes a two-dimensional code.
可选的,所述区块链中部署了用于进行事故管理的智能合约。所述响应于所述事故参与方用户对所述车辆身份信息和所述车辆投保详情数据的确认操作,将获取到的事故数据发布至所述区块链进行存证,包括:响应于所述事故参与方用户对所述车辆身份信息和所述车辆投保详情数据的确认操作,构建用于发起事故上报的第一交易,其中,所 述第一交易包括所述与事故现场相关的事故数据;将所述第一交易发布至所述区块链,以使所述区块链中的节点设备响应于所述第一交易,调用所述智能合约中的校验逻辑,针对所述事故数据进行合法性校验;如果针对所述事故数据合法性校验通过,进一步调用所述智能合约中的事件生成逻辑,生成与所述事故数据对应的事故事件,并将所述事故事件和所述事故数据关联存储至所述区块链的分布式账本。Optionally, a smart contract for accident management is deployed in the blockchain. The responding to the operation of confirming the vehicle identity information and the vehicle insurance details data by the user of the accident participant, publishing the acquired accident data to the blockchain for storage, includes: responding to the The user of the accident participant confirms the vehicle identity information and the vehicle insurance details data to construct a first transaction for initiating an accident report, wherein the first transaction includes the accident data related to the accident scene; Publish the first transaction to the block chain, so that the node device in the block chain responds to the first transaction and invokes the verification logic in the smart contract to perform processing on the accident data Legitimacy verification; if the legitimacy verification of the accident data is passed, the event generation logic in the smart contract is further called to generate the accident event corresponding to the accident data, and the accident event and the accident The data is associated and stored in the distributed ledger of the blockchain.
可选的,还包括:监听所述智能合约生成的事故事件;响应于监听到的所述事故事件,向所述事故参与方用户输出与所述事故事件对应的提示信息,以提示所述事故参与方用户对所述事故事件发起理赔处理。Optionally, the method further includes: monitoring the accident event generated by the smart contract; in response to the monitored accident event, outputting prompt information corresponding to the accident event to the accident participant user to prompt the accident Participating users initiate claims processing for the accident event.
可选的,所述区块链中部署了用于进行事故理赔的智能合约。所述方法还包括:响应于事故参与方用户发起的针对所述事故事件的事故理赔操作,构建用于发起事故理赔的第二交易;将所述第二交易发布至所述区块链,以使所述区块链中的节点设备响应于所述第二交易,调用所述智能合约中的验证逻辑,获取所述区块链中存储的由所述事故参与方用户发布的第一事故数据,以及由所述第一事故数据中的其他事故参与方用户发布的第二事故数据,并验证所述第一事故数据与所述第二事故数据是否匹配;如果是,进一步调用所述智能合约中的车祸理赔逻辑,对所述事故参与方用户进行车祸理赔处理。Optionally, a smart contract for accident claims is deployed in the blockchain. The method further includes: constructing a second transaction for initiating accident claims in response to an accident claim settlement operation for the accident event initiated by an accident participant user; and publishing the second transaction to the blockchain to Make the node device in the blockchain respond to the second transaction, call the verification logic in the smart contract, and obtain the first accident data stored in the blockchain and released by the accident participant user , And the second accident data issued by other accident participant users in the first accident data, and verify whether the first accident data matches the second accident data; if so, further call the smart contract The car accident claims logic in, carries out the car accident claims processing on the users of the accident participants.
可选的,所述与事故现场相关的取证数据,包括以下示出的一个或者多个的组合:事故发生的时刻、事故发生的地点、与事故现场相关的图像数据。Optionally, the forensic data related to the scene of the accident includes one or a combination of the following: the time when the accident occurred, the place where the accident occurred, and image data related to the scene of the accident.
本说明书还提出一种基于区块链的交通事故处理方法,应用于服务设备。所述区块链存储了由事故参与方用户发布的事故数据,所述事故数据包括与事故相关的事故参与方用户的车辆身份信息和与事故现场相关的取证数据的对应关系。所述方法包括:响应于针对事故参与方用户的事故理赔,获取所述区块链中存储的由所述事故参与方用户发布的第一事故数据;基于所述第一事故数据确定其他事故参与方用户,并获取所述区块链中存储的由所述其他事故参与方用户发布的第二事故数据;验证所述第一事故数据与所述第二事故数据是否匹配;如果是,对所述事故参与方用户进行车祸理赔处理。This manual also proposes a block chain-based traffic accident handling method, which is applied to service equipment. The blockchain stores accident data released by users of the accident participant, and the accident data includes the correspondence between the vehicle identity information of the accident participant user related to the accident and the forensic data related to the accident scene. The method includes: in response to an accident claim for an accident participant user, obtaining first accident data released by the accident participant user stored in the blockchain; and determining other accident participation based on the first accident data Party users, and obtain the second accident data released by the other accident participant users stored in the blockchain; verify whether the first accident data matches the second accident data; if so, The user involved in the accident is involved in the settlement of claims for the car accident.
可选的,所述服务设备为所述区块链中的节点设备;所述区块链中部署了用于进行事故管理的智能合约。所述方法还包括:接收客户端发送的用于发起事故上报的第一交易;所述第一交易包括所述与事故现场相关的事故数据;响应于所述第一交易,调用所述智能合约中的校验逻辑,针对所述事故数据进行合法性校验;如果针对所述事故数据合法性校验通过,进一步调用所述智能合约中的事件生成逻辑,创建与所述事故数据对应的事故事件,并将所述事故对象和所述事故数据关联存储至所述区块链的分布式账本。Optionally, the service device is a node device in the blockchain; a smart contract for accident management is deployed in the blockchain. The method further includes: receiving a first transaction sent by the client for initiating an accident report; the first transaction includes the accident data related to the accident scene; in response to the first transaction, invoking the smart contract The verification logic in, to verify the validity of the accident data; if the validity of the accident data is verified, the event generation logic in the smart contract is further invoked to create an accident corresponding to the accident data And store the accident object and the accident data in the distributed ledger of the blockchain in association with each other.
可选的,所述方法还包括:监听所述智能合约生成的事故事件;响应于监听到的所述事故事件,向理赔机构发送与所述事故事件对应的提示信息,以提示理赔机构对所述事故事件进行理赔处理。Optionally, the method further includes: monitoring the accident event generated by the smart contract; in response to the monitored accident event, sending prompt information corresponding to the accident event to the claims settlement agency to prompt the claims settlement agency to The incidents mentioned in the accident shall be dealt with for settlement of claims.
可选的,所述区块链中部署了用于进行事故理赔的智能合约。所述响应于针对事故参与方用户的事故理赔,获取所述区块链中存储的由所述事故参与方用户发布的第一事故数据,基于所述第一事故数据确定其他事故参与方用户,并获取所述区块链中存储的由所述其他事故参与方用户发布的第二事故数据,验证所述第一事故数据与所述第二事故数据是否匹配,包括:接收所述事故参与方用户通过客户端发送的用于发起事故理赔的第二交易;响应于所述第二交易,调用所述智能合约中的验证逻辑,获取所述区块链中存储的由所述事故参与方用户发布的第一事故数据,基于所述第一事故数据确定其他事故参与方用户,并获取所述区块链中存储的由所述其他事故参与方用户发布的第二事故数据,验证所述第一事故数据与所述第二事故数据是否匹配。所述如果是,对所述事故参与方用户进行车祸理赔处理,包括:如果是,进一步调用所述智能合约中的车祸理赔逻辑,对所述事故参与方用户进行车祸理赔处理。Optionally, a smart contract for accident claims is deployed in the blockchain. In response to the settlement of an accident claim for an accident participant user, acquiring first accident data stored in the blockchain and released by the accident participant user, and determining other accident participant users based on the first accident data, And obtain the second accident data released by the other accident participant users stored in the blockchain, and verify whether the first accident data matches the second accident data, including: receiving the accident participant The second transaction sent by the user through the client to initiate accident claims; in response to the second transaction, the verification logic in the smart contract is invoked to obtain the accident participant user stored in the blockchain According to the first accident data released, other accident participant users are determined based on the first accident data, and the second accident data released by the other accident participant users stored in the blockchain is obtained, and the first accident data is verified. Whether an accident data matches the second accident data. If it is, performing car accident compensation processing on the accident participant user includes: if it is, further invoking the car accident compensation logic in the smart contract to perform car accident compensation processing on the accident participant user.
可选的,还包括:在对所述事故参与方用户进行车祸理赔处理完成后,将针对所述事故参与方用户的车祸理赔记录发布至所述区块链进行存证。Optionally, the method further includes: after the car accident claim settlement process for the accident participant user is completed, publishing the car accident claim settlement record for the accident participant user to the blockchain for storage.
本说明书还提出一种基于区块链的交通事故处理装置,应用于客户端。所述区块链存储了车辆身份信息和车辆投保详情数据的对应关系。所述装置包括:第一获取模块,响应于事故参与方用户的操作,获取与事故相关的其他事故参与方用户的车辆身份信息,并查询所述区块链中存储的与所述车辆身份信息对应的车辆投保详情数据;输出模块,将所述车辆身份信息和所述车辆投保详情数据通过界面向事故参与方用户进行输出显示;存证模块,响应于所述事故参与方用户对所述车辆身份信息和所述车辆投保详情数据的确认操作,将获取到的事故数据发布至所述区块链进行存证;其中,所述事故数据用于交通事故理赔;所述事故数据包括与所述事故相关的事故参与方用户的车辆身份信息以及与事故现场相关的取证数据的对应关系。This manual also proposes a block chain-based traffic accident handling device, which is applied to the client. The block chain stores the correspondence between vehicle identity information and vehicle insurance detail data. The device includes: a first acquisition module, in response to the operation of the accident participant user, obtains the vehicle identity information of other accident participant users related to the accident, and queries the vehicle identity information stored in the blockchain Corresponding vehicle insurance details data; an output module, which outputs and displays the vehicle identity information and the vehicle insurance details data to the users of the accident participants through the interface; the deposit module, which responds to the accident participants’ user’s comments on the vehicle The operation of confirming the identity information and the vehicle insurance details data is to publish the acquired accident data to the blockchain for storage; wherein, the accident data is used for traffic accident claims; the accident data includes the Correspondence between the vehicle identity information of the users involved in the accident and the forensic data related to the accident scene.
可选的,所述第一获取模块:响应于事故参与方用户的图像扫描操作,针对与事故相关的其他事故参与方用户的客户端上输出的基于所述车辆身份信息生成的图形编码进行编码识别,以获取其他事故参与方用户的车辆身份信息。Optionally, the first acquisition module: in response to the image scanning operation of the user of the accident participant, encode the graphic code generated based on the vehicle identity information output on the client of the user of the other accident participant related to the accident Identification to obtain vehicle identity information of other users involved in the accident.
可选的,所述图形编码包括二维码。Optionally, the graphic code includes a two-dimensional code.
可选的,所述区块链中部署了用于进行事故管理的智能合约。所述存证模块:响应于所述事故参与方用户对所述车辆身份信息和所述车辆投保详情数据的确认操作,构建用于发起事故上报的第一交易,所述第一交易包括所述与事故现场相关的事故数据;将所述第一交易发布至所述区块链,以使所述区块链中的节点设备响应于所述第一交易调用所述智能合约中的校验逻辑来对所述事故数据进行合法性校验;如果对所述事故数据合法性校验通过,进一步调用所述智能合约中的事件生成逻辑生成与所述事故数据对应的事故事件,并将所述事故事件和所述事故数据关联存储至所述区块链的分布式账本。Optionally, a smart contract for accident management is deployed in the blockchain. The deposit certificate module: in response to the confirmation operation of the vehicle identity information and the vehicle insurance details data by the user of the accident participant, construct a first transaction for initiating an accident report, the first transaction including the The accident data related to the accident scene; publish the first transaction to the blockchain so that the node device in the blockchain can call the verification logic in the smart contract in response to the first transaction To verify the legality of the accident data; if the legality of the accident data is verified, the event generation logic in the smart contract is further invoked to generate an accident event corresponding to the accident data, and the The accident event and the accident data are associated and stored in the distributed ledger of the blockchain.
可选的,还包括:第一监听模块,监听所述智能合约生成的事故事件;响应于监听到的所述事故事件,向所述事故参与方用户输出与所述事故事件对应的提示信息,以提示所述事故参与方用户对所述事故事件发起理赔处理。Optionally, it further includes: a first monitoring module that monitors the accident event generated by the smart contract; in response to the monitored accident event, outputting prompt information corresponding to the accident event to the accident participant user, The user of the accident participant is prompted to initiate a claim settlement process for the accident event.
可选的,所述区块链中部署了用于进行事故理赔的智能合约。所述装置还包括:第一理赔模块,响应于事故参与方用户发起的针对所述事故事件的事故理赔操作,构建用于发起事故理赔的第二交易;将所述第二交易发布至所述区块链,以使所述区块链中的节点设备响应于所述第二交易,调用所述智能合约中的验证逻辑,获取所述区块链中存储的由所述事故参与方用户发布的第一事故数据,以及由所述第一事故数据中的其他事故参与方用户发布的第二事故数据,并验证所述第一事故数据与所述第二事故数据是否匹配;如果是,进一步调用所述智能合约中的车祸理赔逻辑,对所述事故参与方用户进行车祸理赔处理。Optionally, a smart contract for accident claims is deployed in the blockchain. The device further includes: a first claim settlement module, which constructs a second transaction for initiating accident claims in response to an accident settlement operation initiated by an accident participant user for the accident event; and publishes the second transaction to the Block chain, so that the node device in the block chain, in response to the second transaction, invokes the verification logic in the smart contract to obtain the information stored in the block chain and issued by the accident participant user The first accident data of the first accident data, and the second accident data released by other accident participant users in the first accident data, and verify whether the first accident data matches the second accident data; if so, further Calling the car accident compensation logic in the smart contract to perform car accident compensation processing on the accident participant user.
本说明书还提出一种基于区块链的交通事故处理装置,应用于服务设备。其中,所述区块链存储了由事故参与方用户发布的事故数据;所述事故数据包括与事故相关的事故参与方用户的车辆身份信息和与事故现场相关的取证数据的对应关系;所述装置包括:第二获取模块,响应于针对事故参与方用户的事故理赔,获取所述区块链中存储的由所述事故参与方用户发布的第一事故数据;基于所述第一事故数据确定其他事故参与方用户,并获取所述区块链中存储的由所述其他事故参与方用户发布的第二事故数据;验证模块,验证所述第一事故数据与所述第二事故数据是否匹配;第二理赔模块,如果是,对所述事故参与方用户进行车祸理赔处理。This manual also proposes a block chain-based traffic accident handling device, which is applied to service equipment. Wherein, the blockchain stores accident data released by users of accident participants; the accident data includes the correspondence between the vehicle identity information of the accident participant users related to the accident and the forensic data related to the accident scene; The device includes: a second acquisition module, which, in response to an accident claim for an accident participant user, acquires the first accident data released by the accident participant user stored in the blockchain; and determines based on the first accident data Other accident participant users, and obtain the second accident data stored in the blockchain and released by the other accident participant users; the verification module verifies whether the first accident data matches the second accident data ; The second claim settlement module, if it is, the vehicle accident claim settlement process for the user of the accident participant.
可选的,所述服务设备为所述区块链中的节点设备;所述区块链中部署了用于进行事故管理的智能合约。所述装置还包括:生成模块,接收客户端发送的用于发起事故上报的第一交易;所述第一交易包括所述与事故现场相关的事故数据;响应于所述第一交易,调用所述智能合约中的校验逻辑,针对所述事故数据进行合法性校验;如果针对所 述事故数据合法性校验通过,进一步调用所述智能合约中的事件生成逻辑,创建与所述事故数据对应的事故事件,并将所述事故对象和所述事故数据关联存储至所述区块链的分布式账本。Optionally, the service device is a node device in the blockchain; a smart contract for accident management is deployed in the blockchain. The device further includes: a generating module that receives a first transaction sent by the client for initiating an accident report; the first transaction includes the accident data related to the accident scene; in response to the first transaction, calling the The verification logic in the smart contract is used to verify the validity of the accident data; if the validity verification of the accident data is passed, the event generation logic in the smart contract is further invoked to create a connection with the accident data Corresponding accident events, and store the accident object and the accident data in the distributed ledger of the blockchain in association with each other.
可选的,所述装置还包括:第二监听模块,监听所述智能合约生成的事故事件;响应于监听到的所述事故事件,向理赔机构发送与所述事故事件对应的提示信息,以提示理赔机构对所述事故事件进行理赔处理。Optionally, the device further includes: a second monitoring module that monitors the accident event generated by the smart contract; in response to the monitored accident event, sending prompt information corresponding to the accident event to the claims settlement agency to Prompt the claims agency to handle claims for the accident.
可选的,所述区块链中部署了用于进行事故理赔的智能合约。所述验证模块:接收所述事故参与方用户通过客户端发送的用于发起事故理赔的第二交易;响应于所述第二交易,调用所述智能合约中的验证逻辑,获取所述区块链中存储的由所述事故参与方用户发布的第一事故数据,基于所述第一事故数据确定其他事故参与方用户,并获取所述区块链中存储的由所述其他事故参与方用户发布的第二事故数据,验证所述第一事故数据与所述第二事故数据是否匹配。所述第二理赔模块:如果是,进一步调用所述智能合约中的车祸理赔逻辑,对所述事故参与方用户进行车祸理赔处理。Optionally, a smart contract for accident claims is deployed in the blockchain. The verification module: receives the second transaction for initiating accident claims sent by the user of the accident participant through the client; in response to the second transaction, invokes the verification logic in the smart contract to obtain the block The first accident data released by the accident participant user stored in the chain, other accident participant users are determined based on the first accident data, and the other accident participant users stored in the blockchain are obtained The released second accident data verifies whether the first accident data matches the second accident data. The second claim settlement module: if yes, further call the auto accident claim settlement logic in the smart contract to perform auto accident claim settlement processing on the accident participant user.
可选的,所述第二理赔模块进一步:在对所述事故参与方用户进行车祸理赔处理完成后,将针对所述事故参与方用户的车祸理赔记录发布至所述区块链进行存证。Optionally, the second claim settlement module further: after completing the auto accident claim settlement process for the accident participant user, publish the auto accident claim settlement record for the accident participant user to the blockchain for storage.
以上技术方案中,一方面,由于用户可通过客户端访问在区块链中存储的数据,快捷的与其他事故参与方用户交换各自的车辆投保详情数据,对其他事故参与方用户的车辆身份数据和车辆投保详情数据进行相互验证确认,并在对其他事故参与方用户的车辆身份数据和车辆投保详情数据进行确认后,可通过客户端将事故参与方用户的车辆身份信息和与事故现场相关的取证数据作为用于交通事故理赔的事故数据自主的上报到区块链进行存证,而不再需要交通管理部门的工作人员进行事故处理,因此可降低交通管理部门的工作负担,提高事故上报理赔的处理效率。In the above technical solutions, on the one hand, because users can access the data stored in the blockchain through the client, they can quickly exchange their own vehicle insurance details data with other accident participants, and check the vehicle identity data of other accident participants. Carry out mutual verification and confirmation with the vehicle insurance details data, and after confirming the vehicle identity data and vehicle insurance details data of other accident participants, the vehicle identity information of the accident participant users and the accident site-related information can be verified through the client. Forensic data is used as accident data for traffic accident claims to be independently reported to the blockchain for storage, and the traffic management department staff is no longer required to deal with the accident. Therefore, it can reduce the workload of the traffic management department and improve the reporting and compensation of accidents. The processing efficiency.
另一方面,由于理赔机构在针对事故参与方用户进行事故理赔时,可将区块链中存储的由该用户和其他事故参与方用户发布的事故数据进行匹配,来对本次的事故进行真实性验证,从而可避免用户单方面向区块链发布虚假事故数据来骗取理赔的行为,提升事故理赔的安全性。On the other hand, because the claims settlement agency can match the accident data stored in the blockchain by the user and other accident participant users when making accident claims against the user of the accident participant, so as to verify the truth of the accident. This can prevent users from unilaterally publishing false accident data to the blockchain to defraud claims, and improve the security of accident claims.
附图说明Description of the drawings
图1是一示例性实施例提供的一种创建智能合约的示意图;Fig. 1 is a schematic diagram of creating a smart contract according to an exemplary embodiment;
图2是一示例性实施例提供的调用智能合约的示意图;Fig. 2 is a schematic diagram of invoking a smart contract provided by an exemplary embodiment;
图3是一示例性实施例提供的创建智能合约和调用智能合约的示意图;Fig. 3 is a schematic diagram of creating a smart contract and invoking a smart contract provided by an exemplary embodiment;
图4是一示例性实施例提供的一种基于区块链的事故处理方法的流程图;Fig. 4 is a flow chart of an accident handling method based on blockchain provided by an exemplary embodiment;
图5是一示例性实施例提供的一种电子设备的结构示意图;Fig. 5 is a schematic structural diagram of an electronic device provided by an exemplary embodiment;
图6是一示例性实施例提供的一种基于区块链的交通事故处理装置的框图;Fig. 6 is a block diagram of a block chain-based traffic accident handling device provided by an exemplary embodiment;
图7是一示例性实施例提供的另一种基于区块链的交通事故处理装置的框图。Fig. 7 is a block diagram of another device for handling traffic accidents based on blockchain according to an exemplary embodiment.
具体实施方式Detailed ways
这里将详细地对示例性实施例进行说明,其示例表示在附图中。下面的描述涉及附图时,除非另有表示,不同附图中的相同数字表示相同或相似的要素。以下示例性实施例中所描述的实施方式并不代表与本说明书一个或多个实施例相一致的所有实施方式。相反,它们仅是与如所附权利要求书中所详述的、本说明书一个或多个实施例的一些方面相一致的装置和方法的例子。The exemplary embodiments will be described in detail here, and examples thereof are shown in the accompanying drawings. When the following description refers to the accompanying drawings, unless otherwise indicated, the same numbers in different drawings represent the same or similar elements. The implementation manners described in the following exemplary embodiments do not represent all implementation manners consistent with one or more embodiments of this specification. Rather, they are merely examples of devices and methods consistent with some aspects of one or more embodiments of this specification as detailed in the appended claims.
需要说明的是:在其他实施例中并不一定按照本说明书示出和描述的顺序来执行相应方法的步骤。在一些其他实施例中,其方法所包括的步骤可以比本说明书所描述的更多或更少。此外,本说明书中所描述的单个步骤,在其他实施例中可能被分解为多个步骤进行描述;而本说明书中所描述的多个步骤,在其他实施例中也可能被合并为单个步骤进行描述。It should be noted that in other embodiments, the steps of the corresponding method may not be executed in the order shown and described in this specification. In some other embodiments, the method may include more or fewer steps than described in this specification. In addition, a single step described in this specification may be decomposed into multiple steps for description in other embodiments; and multiple steps described in this specification may also be combined into a single step in other embodiments. describe.
区块链一般被划分为三种类型:公有链(Public Blockchain),私有链(Private Blockchain)和联盟链(Consortium Blockchain)。此外,还可以有上述多种类型的结合,比如私有链+联盟链、联盟链+公有链等。Blockchain is generally divided into three types: Public Blockchain, Private Blockchain and Consortium Blockchain. In addition, there can also be a combination of the above types, such as private chain + consortium chain, consortium chain + public chain, and so on.
其中,去中心化程度最高的是公有链。公有链以比特币、以太坊为代表,加入公有链的参与者(也可称为区块链中的节点)可以读取链上的数据记录、参与交易、以及竞争新区块的记账权等。而且,各节点可自由加入或者退出网络,并进行相关操作。Among them, the most decentralized one is the public chain. The public chain is represented by Bitcoin and Ethereum. Participants who join the public chain (also called nodes in the blockchain) can read the data records on the chain, participate in transactions, and compete for the accounting rights of new blocks, etc. . Moreover, each node can freely join or exit the network, and perform related operations.
私有链则相反,该网络的写入权限由某个组织或者机构控制,数据读取权限受组织规定。简单来说,私有链可以为一个弱中心化系统,其对节点具有严格限制且节点数量较少。这种类型的区块链更适合于特定机构内部使用。The private chain is the opposite. The write permission of the network is controlled by an organization or institution, and the data read permission is regulated by the organization. In simple terms, a private chain can be a weakly centralized system with strict restrictions on nodes and a small number of nodes. This type of blockchain is more suitable for internal use by specific institutions.
联盟链则是介于公有链以及私有链之间的区块链,可实现“部分去中心化”。联盟 链中各个节点通常有与之相对应的实体机构或者组织;节点通过授权加入网络并组成利益相关联盟,共同维护区块链运行。Consortium chain is a block chain between public chain and private chain, which can realize "partial decentralization". Each node in the alliance chain usually has a corresponding entity or organization; nodes are authorized to join the network and form a stakeholder alliance to jointly maintain the operation of the blockchain.
基于区块链的基本特性,区块链通常是由若干个区块构成。在这些区块中分别记录有与该区块的创建时刻对应的时间戳,所有的区块严格按照区块中记录的时间戳,构成一条在时间上有序的数据链条。Based on the basic characteristics of the blockchain, the blockchain is usually composed of several blocks. The time stamps corresponding to the creation time of the block are respectively recorded in these blocks, and all the blocks strictly follow the time stamps recorded in the block to form a time-ordered data chain.
对于物理世界产生的真实数据,可以将其构建成区块链所支持的标准的交易(transaction)格式,然后发布至区块链,由区块链中的节点设备对收到的交易进行共识处理,并在达成共识后,由区块链中作为记账节点的节点设备,将这笔交易打包进区块,在区块链中进行持久化存证。For the real data generated in the physical world, it can be constructed into a standard transaction format supported by the blockchain, and then published to the blockchain, and the node devices in the blockchain will perform consensus processing on the received transactions , And after reaching a consensus, the node device as the bookkeeping node in the block chain will package the transaction into the block and carry out persistent storage in the block chain.
其中,区块链中支持的共识算法可以包括:第一类共识算法,即节点设备需要争夺每一轮的记账周期的记账权的共识算法,例如,工作量证明(Proof of Work,POW)、股权证明(Proof of Stake,POS)、委任权益证明(Delegated Proof of Stake,DPOS)等共识算法;第二类共识算法,即预先为每一轮记账周期选举记账节点(不需要争夺记账权)的共识算法;例如,实用拜占庭容错(Practical Byzantine Fault Tolerance,PBFT)等共识算法。Among them, the consensus algorithms supported in the blockchain can include: the first type of consensus algorithm, that is, the consensus algorithm that node devices need to compete for the accounting right of each round of accounting cycle, for example, Proof of Work (POW) ), Proof of Stake (POS), Delegated Proof of Stake (DPOS) and other consensus algorithms; the second type of consensus algorithm, that is, pre-election of accounting nodes for each round of accounting cycle (no need to compete Accounting rights) consensus algorithms; for example, practical Byzantine Fault Tolerance (PBFT) and other consensus algorithms.
在采用第一类共识算法的区块链网络中,争夺记账权的节点设备,都可以在接收到交易后执行该笔交易。争夺记账权的节点设备中可能有一个节点设备在本轮争夺记账权的过程中胜出,成为记账节点。记账节点可以将收到的交易与其它交易一起打包以生成最新区块,并将生成的最新区块或者该最新区块的区块头发送至其它节点设备进行共识。In the blockchain network using the first type of consensus algorithm, all node devices that compete for the right to keep accounts can execute the transaction after receiving the transaction. Among the node devices that compete for the right to bookkeeping, one node device may win this round of contention for the right to bookkeeping and become the bookkeeping node. The accounting node can package the received transaction with other transactions to generate the latest block, and send the generated latest block or the block header of the latest block to other node devices for consensus.
在采用第二类共识算法的区块链网络中,具有记账权的节点设备在本轮记账前已经商定好。因此,节点设备在接收到交易后,如果自身不是本轮的记账节点,则可以将该交易发送至记账节点。对于本轮的记账节点,在将该交易与其它交易一起打包以生成最新区块的过程中或者之前,可以执行该交易。记账节点在生成最新区块后,可以将该最新区块或者该最新区块的区块头发送至其它节点设备进行共识。In the blockchain network using the second type of consensus algorithm, the node device with the right to book accounts has been agreed before this round of bookkeeping. Therefore, after the node device receives the transaction, if it is not the accounting node of this round, it can send the transaction to the accounting node. For this round of accounting nodes, the transaction can be executed during or before the process of packaging the transaction with other transactions to generate the latest block. After the accounting node generates the latest block, it can send the latest block or the block header of the latest block to other node devices for consensus.
如上所述,无论区块链采用以上示出的哪种共识算法,本轮的记账节点都可以将接收到的交易打包以生成最新区块,并将生成的最新区块或者该最新区块的区块头发送至其它节点设备进行共识验证。如果其它节点设备接收到最新区块或者该最新区块的区块头后,经验证没有问题,可以将该最新区块追加到原有的区块链末尾,从而完成区块链的记账过程。其它节点验证记账节点发来的新的区块或区块头的过程中,也可以执行该 区块中的包含的交易。As mentioned above, no matter which consensus algorithm shown above is adopted by the blockchain, the accounting node in this round can package the received transaction to generate the latest block, and the generated latest block or the latest block The header of the block is sent to other node devices for consensus verification. If other node equipment receives the latest block or the block header of the latest block, it is verified that there is no problem, and the latest block can be appended to the end of the original blockchain to complete the accounting process of the blockchain. In the process of verifying the new block or block header sent by the accounting node, other nodes can also execute the transactions contained in the block.
在区块链领域,有一个重要的概念就是账户(Account);以以太坊为例,以太坊通常将账户划分为外部账户和合约账户两类;外部账户就是由用户直接控制的账户,也称之为用户账户;而合约账户则是由用户通过外部账户创建的,包含合约代码的账户(即智能合约)。In the field of blockchain, an important concept is Account; taking Ethereum as an example, Ethereum usually divides accounts into external accounts and contract accounts; external accounts are accounts directly controlled by users, also called It is a user account; while a contract account is an account created by a user through an external account and contains the contract code (ie smart contract).
当然,对于一些基于以太坊的架构而衍生出的区块链模型(比如蚂蚁区块链),还可以对区块链支持的账户类型,进行进一步的扩展,在本说明书中不进行特别限定。Of course, for some blockchain models derived from the Ethereum architecture (such as the Ant blockchain), the account types supported by the blockchain can also be further extended, which is not particularly limited in this specification.
对于区块链中的账户而言,通常会通过一个结构体,来维护账户的账户状态。当区块中的交易被执行后,区块链中与该交易相关的账户的状态通常也会发生变化。For accounts in the blockchain, a structure is usually used to maintain the account status of the account. When the transaction in the block is executed, the state of the account related to the transaction in the blockchain will usually change.
以以太坊为例,账户的结构体通常包括Balance、Nonce、Code和Storage等字段。其中:Taking Ethereum as an example, the structure of an account usually includes fields such as Balance, Nonce, Code, and Storage. in:
Balance字段,用于维护账户目前的账户余额;The Balance field is used to maintain the current account balance of the account;
Nonce字段,用于维护该账户的交易次数;它是用于保障每笔交易能且只能被处理一次的计数器,有效避免重放攻击;The Nonce field is used to maintain the number of transactions of the account; it is a counter used to ensure that each transaction can be processed and can only be processed once, effectively avoiding replay attacks;
Code字段,用于维护该账户的合约代码;在实际应用中,Code字段中通常仅维护合约代码的hash值;因而,Code字段通常也称之为Codehash字段。The Code field is used to maintain the contract code of the account; in actual applications, the Code field usually only maintains the hash value of the contract code; therefore, the Code field is usually also called the Codehash field.
Storage字段,用于维护该账户的存储内容(默认字段值为空);对于合约账户而言,通常会分配一个独立的存储空间,用以存储该合约账户的存储内容;该独立的存储空间通常称之为该合约账户的账户存储。合约账户的存储内容通常会构建成MPT(Merkle Patricia Trie)树的数据结构存储在上述独立的存储空间之中;其中,基于合约账户的存储内容构建成的MPT树,通常也称之为Storage树。而Storage字段通常仅维护该Storage树的根节点;因此,Storage字段通常也称之为StorageRoot字段。The Storage field is used to maintain the storage content of the account (the default field value is empty); for contract accounts, an independent storage space is usually allocated to store the storage content of the contract account; the independent storage space is usually Call it the account storage of the contract account. The storage content of the contract account is usually constructed as an MPT (Merkle Patricia Trie) tree and the data structure is stored in the above independent storage space; among them, the MPT tree constructed based on the storage content of the contract account is usually also called the Storage tree . The Storage field usually only maintains the root node of the Storage tree; therefore, the Storage field is usually also called the StorageRoot field.
其中,对于外部账户而言,以上示出的Code字段和Storage字段的字段值均为空值。Among them, for the external account, the field values of the Code field and the Storage field shown above are all null values.
对于大多数区块链模型,通常都会使用Merkle树;或者,基于Merkle树的数据结构,来存储和维护数据。以以太坊为例,以太坊使用了MPT树,作为数据组织形式,用来组织和管理账户状态、交易信息等重要数据。其中,MPT树是一种融合了Trie字典树的树形结构的Merkle树变种。For most blockchain models, Merkle trees are usually used; or, based on the data structure of Merkle trees, to store and maintain data. Take Ethereum as an example. Ethereum uses the MPT tree as a form of data organization to organize and manage important data such as account status and transaction information. Among them, the MPT tree is a Merkle tree variant that incorporates the tree structure of the Trie dictionary tree.
以太坊针对区块链中需要存储和维护的数据,设计了三棵MPT树,分别是MPT状 态树、MPT交易树和MPT收据树。其中,除了以上三棵MPT树以外,实际上还存在一棵基于合约账户的存储内容构建的Storage树。Ethereum has designed three MPT trees for the data that needs to be stored and maintained in the blockchain, namely the MPT state tree, the MPT transaction tree and the MPT receipt tree. Among them, in addition to the above three MPT trees, there is actually a Storage tree constructed based on the storage content of the contract account.
MPT状态树,是由区块链中所有账户的账户状态(state)数据组织成的MPT树;MPT交易树,是由区块链中的交易(transaction)数据组织成的MPT树;MPT收据树,是区块中的交易在执行完毕后生成的与每笔交易对应的交易(receipt)收据组织成的MPT树。以上示出的MPT状态树、MPT交易树和MPT收据树的根节点的hash值,最终都会被添加至对应区块的区块头中。MPT state tree is an MPT tree organized by the account state data of all accounts in the blockchain; MPT transaction tree is an MPT tree organized by transaction data in the blockchain; MPT receipt tree , Is the MPT tree organized by the receipt of each transaction generated after the transactions in the block are executed. The hash values of the root nodes of the MPT state tree, MPT transaction tree, and MPT receipt tree shown above will all be added to the block header of the corresponding block eventually.
其中,MPT交易树和MPT收据树均与区块相对应,即每一个区块都有自己的MPT交易树和MPT收据树。而MPT状态树是一个全局的MPT树,并不与某一个特定的区块相对应,而是涵盖了区块链中所有账户的账户状态数据。Among them, the MPT transaction tree and MPT receipt tree correspond to blocks, that is, each block has its own MPT transaction tree and MPT receipt tree. The MPT state tree is a global MPT tree, which does not correspond to a specific block, but covers the account state data of all accounts in the blockchain.
需要说明的是,区块链每产生一个最新区块,则在该最新区块中的交易被执行之后,区块链中这些被执行交易的相关账户(可以是外部账户也可以是合约账户)的账户状态,通常也会随之发生变化;It should be noted that each time the blockchain generates a newest block, after the transaction in the latest block is executed, the relevant account of the executed transaction in the blockchain (can be an external account or a contract account) The account status of, usually will also change accordingly;
例如,当区块中的一笔“转账交易”执行完毕后,与该“转账交易”相关的转出方账户和转入方账户的余额(即这些账户的Balance字段的字段值)通常会随之发生变化。For example, when a "transfer transaction" in the block is executed, the balance of the transferor account and transferee account related to the "transfer transaction" (that is, the field value of the Balance field of these accounts) will usually follow It has changed.
而节点设备在区块链产生的最新区块中的交易执行完毕后,由于当前区块链中的账户状态发生了变化,因此节点设备需要根据区块链中所有账户当前的账户状态数据,来构建MPT状态树,用于维护区块链中所有账户的最新状态。After the transaction of the node device in the latest block generated by the blockchain is completed, because the account status in the current blockchain has changed, the node device needs to use the current account status data of all accounts in the blockchain to Construct the MPT state tree to maintain the latest state of all accounts in the blockchain.
也即,每当区块链中产生一个最新区块,并且该最新区块中的交易执行完毕后,导致区块链中的账户状态发生了变化,节点设备都需要基于区块链中所有账户最新的账户状态数据,重新构建一棵MPT状态树。That is, whenever a newest block is generated in the blockchain, and the transaction in the latest block is executed, the account status in the blockchain changes, and the node device needs to be based on all accounts in the blockchain With the latest account status data, rebuild an MPT status tree.
换句话说,区块链中每一个区块,都有一个与之对应的MPT状态树;该MPT状态树,维护了在该区块中的交易在执行完毕后,区块链中所有账户最新的账户状态。In other words, each block in the blockchain has a corresponding MPT state tree; the MPT state tree maintains that after the transactions in the block are executed, all accounts in the blockchain are up to date The status of the account.
在实际应用中,不论是公有链、私有链还是联盟链,都可能提供智能合约(Smart contract)的功能。区块链上的智能合约是在区块链上可以被交易触发执行的合约。智能合约可以通过代码的形式定义。In practical applications, whether it is a public chain, a private chain or a consortium chain, it is possible to provide the function of a smart contract (Smart contract). Smart contracts on the blockchain are contracts that can be triggered and executed by transactions on the blockchain. Smart contracts can be defined in the form of codes.
以以太坊为例,支持用户在以太坊网络中创建并调用一些复杂的逻辑。以太坊作为一个可编程区块链,其核心是以太坊虚拟机(EVM),每个以太坊节点都可以运行EVM。EVM是一个图灵完备的虚拟机,通过它可以实现各种复杂的逻辑。用户在以太坊中发 布和调用智能合约就是在EVM上运行的。实际上,EVM直接运行的是虚拟机代码(虚拟机字节码,下简称“字节码”),所以部署在区块链上的智能合约可以是字节码。Taking Ethereum as an example, it supports users to create and call some complex logic in the Ethereum network. Ethereum is a programmable blockchain, and its core is the Ethereum Virtual Machine (EVM), and each Ethereum node can run the EVM. EVM is a Turing complete virtual machine, through which various complex logic can be realized. Users who publish and call smart contracts in Ethereum run on the EVM. In fact, EVM directly runs virtual machine code (virtual machine bytecode, hereinafter referred to as "bytecode"), so the smart contract deployed on the blockchain can be bytecode.
如图1所示,Bob将一笔包含创建智能合约信息的交易(Transaction)发送到以太坊网络后,各节点均可以在EVM中执行这笔交易。其中,图中1中交易的From字段用于记录发起创建智能合约的账户的地址,交易的Data字段的字段值保存的合约代码可以是字节码,交易的To字段的字段值为一个null(空)的账户。当节点间通过共识机制达成一致后,这个智能合约成功创建,后续用户可以调用这个智能合约。As shown in Figure 1, after Bob sends a transaction that contains information to create a smart contract to the Ethereum network, each node can execute the transaction in the EVM. Among them, the From field of the transaction in Figure 1 is used to record the address of the account that initiated the creation of the smart contract, the contract code saved in the field value of the Data field of the transaction can be bytecode, and the field value of the To field of the transaction is a null( Empty) account. After the nodes reach an agreement through the consensus mechanism, the smart contract is successfully created, and subsequent users can call the smart contract.
智能合约创建后,区块链上出现一个与该智能合约对应的合约账户,并拥有一个特定的地址;比如,图1中各节点中的“0x68e12cf284…”就代表了创建的这个合约账户的地址;合约代码(Code)和账户存储(Storage)将保存在该合约账户的账户存储中。智能合约的行为由合约代码控制,而智能合约的账户存储则保存了合约的状态。换句话说,智能合约使得区块链上产生包含合约代码和账户存储的虚拟账户。After the smart contract is created, a contract account corresponding to the smart contract appears on the blockchain and has a specific address; for example, "0x68e12cf284..." in each node in Figure 1 represents the address of the created contract account ; Contract code (Code) and account storage (Storage) will be stored in the account storage of the contract account. The behavior of the smart contract is controlled by the contract code, and the account storage of the smart contract saves the state of the contract. In other words, smart contracts enable virtual accounts containing contract codes and account storage to be generated on the blockchain.
前述提到,包含创建智能合约的交易的Data字段保存的可以是该智能合约的字节码。字节码由一连串的字节组成,每一字节可以标识一个操作。基于开发效率、可读性等多方面考虑,开发者可以不直接书写字节码,而是选择一门高级语言编写智能合约代码。例如,高级语言可以采用诸如Solidity、Serpent、LLL语言等。对于采用高级语言编写的智能合约代码,可以经过编译器编译,生成可以部署到区块链上的字节码。As mentioned above, the Data field containing the transaction that created the smart contract can store the bytecode of the smart contract. The bytecode consists of a series of bytes, and each byte can identify an operation. Based on many considerations such as development efficiency and readability, developers can choose a high-level language to write smart contract code instead of directly writing bytecode. For example, high-level languages such as Solidity, Serpent, and LLL languages can be used. For smart contract code written in a high-level language, it can be compiled by a compiler to generate bytecode that can be deployed on the blockchain.
以Solidity语言为例,用其编写的合约代码与面向对象编程语言中的类(Class)很相似,在一个合约中可声明多种成员,包括状态变量、函数、函数修改器、事件等。状态变量是永久存储在智能合约的账户存储(Storage)字段中的值,用于保存合约的状态。Taking the Solidity language as an example, the contract code written with it is very similar to the class in the object-oriented programming language. A variety of members can be declared in a contract, including state variables, functions, function modifiers, and events. The state variable is a value permanently stored in the storage (Storage) field of the smart contract, and is used to save the state of the contract.
如图2所示,仍以以太坊为例,Bob将一笔包含调用智能合约信息的交易发送到以太坊网络后,各节点均可以在EVM中执行这笔交易。其中,图2中交易的From字段用于记录发起调用智能合约的账户的地址,To字段用于记录被调用的智能合约的地址,交易的Data字段用于记录调用智能合约的方法和参数。调用智能合约后,合约账户的账户状态可能改变。后续,某个客户端可以通过接入的区块链节点(例如图2中的节点1)查看合约账户的账户状态。As shown in Figure 2, still taking Ethereum as an example, after Bob sends a transaction containing the information of invoking the smart contract to the Ethereum network, each node can execute the transaction in the EVM. Among them, the From field of the transaction in Figure 2 is used to record the address of the account that initiated the invocation of the smart contract, the To field is used to record the address of the smart contract being called, and the Data field of the transaction is used to record the method and parameters of invoking the smart contract. After calling the smart contract, the account status of the contract account may change. Later, a certain client can view the account status of the contract account through the connected blockchain node (for example, node 1 in Figure 2).
智能合约可以以规定的方式在区块链网络中每个节点独立的执行,所有执行记录和数据都保存在区块链上,所以当这样的交易执行完毕后,区块链上就保存了无法篡改、不会丢失的交易凭证。Smart contracts can be executed independently on each node in the blockchain network in a prescribed manner. All execution records and data are stored on the blockchain, so when such transactions are executed, the blockchain cannot be saved. A transaction certificate that is tampered with and will not be lost.
创建智能合约和调用智能合约的示意图如图3所示。以太坊中要创建一个智能合约,需要经过编写智能合约、变成字节码、部署到区块链等过程。以太坊中调用智能合约,是发起一笔指向智能合约地址的交易,各个节点的EVM可以分别执行该交易,将智能合约代码分布式的运行在以太坊网络中每个节点的虚拟机中。The schematic diagram of creating a smart contract and invoking a smart contract is shown in Figure 3. To create a smart contract in Ethereum, you need to go through the process of writing a smart contract, turning it into bytecode, and deploying it to the blockchain. Invoking a smart contract in Ethereum is to initiate a transaction pointing to a smart contract address. The EVM of each node can execute the transaction separately, and the smart contract code can be distributed in the virtual machine of each node in the Ethereum network.
在实际应用中,当用户在发生交通事故后,通常需要交通管理部门的工作人员到达现场,对事故进行处理,并上报事故数据。而当用户需要对事故进行理赔时,则需要向理赔机构(比如保险公司)进行理赔申报,由理赔机构对用户申报的需要理赔的事故进行核实后,对该用户进行理赔处理。In practical applications, when a user has a traffic accident, it usually requires staff from the traffic management department to arrive at the scene, deal with the accident, and report the accident data. When a user needs to settle an accident, he needs to declare a claim to a claims settlement agency (such as an insurance company), and the claims settlement agency verifies the user's claim for the accident that needs to be settled, and then performs the claim settlement for the user.
不难理解,在以上描述的整个事故上报和理赔流程中,仍然需要交通管理部门甚至理赔机构进行人工处理,因此会造成人力成本较高,和事故申报理赔的效率低下的问题。It is not difficult to understand that in the entire accident reporting and claim settlement process described above, manual processing is still required by the traffic management department and even the claims settlement agency, which will cause high labor costs and low efficiency of accident declaration and settlement.
而本说明书旨在提出一种事故参与方通过访问区块链中存储的数据,快捷的与其他事故参与方用户交换各自的车辆身份数据和车辆投保详情数据进行相互验证,进而在验证后自主的将事故数据上报至区块链进行存储并完成理赔的技术方案。The purpose of this manual is to propose a way for accident participants to quickly exchange their vehicle identity data and vehicle insurance details data with other accident participants by accessing the data stored in the blockchain for mutual verification, and then autonomously after verification. Report the accident data to the blockchain for storage and complete the technical solution for claim settlement.
在实现时,用户可以将自己名下的车辆的车辆身份信息和车辆投保详情数据的对应关系上传至区块链进行存储。当用户在发生交通事故后,客户端可以响应用户的操作,获取与事故相关的其他事故参与方用户的车辆身份信息,并查询所述区块链中存储的与所述车辆身份信息对应的车辆投保详情数据;In the implementation, the user can upload the corresponding relationship between the vehicle identity information of the vehicle under his own name and the vehicle insurance detail data to the blockchain for storage. When the user has a traffic accident, the client can respond to the user's operation, obtain the vehicle identity information of other accident participants related to the accident, and query the vehicle corresponding to the vehicle identity information stored in the blockchain Insurance details;
在查询到其他事故参与方用户的车辆投保详情数据之后,可以将所述车辆身份数据和所述车辆投保详情数据通过界面向事故参与方用户进行输出显示,由用户进行查看验证;当用户对输出显示的数据进行确认后,客户端可以响应用户的确认操作,将客户端获取到的事故数据发布至区块链进行存证;其中,该事故数据可以用于交通事故理赔;该事故数据包括与本次事故相关的事故参与方用户的车辆身份信息,和客户端获取到的与事故现场相关的取证数据的对应关系。After querying the vehicle insurance details data of other users of the accident participants, the vehicle identity data and the vehicle insurance details data can be output and displayed to the users of the accident participants through the interface, and the user can view and verify; After the displayed data is confirmed, the client can respond to the user's confirmation operation and publish the accident data obtained by the client to the blockchain for storage; among them, the accident data can be used for traffic accident claims; the accident data includes and Correspondence between the vehicle identity information of the users involved in the accident related to the accident and the forensic data related to the accident scene obtained by the client.
而对于其他事故参与方用户来说,也可以通过客户端执行以上描述的相同的操作,也将客户端获取到的事故数据发布至区块链进行存证。For users of other accident participants, the same operations described above can also be performed through the client, and the accident data obtained by the client can also be published to the blockchain for storage.
当事故的事故参与方用户均通过客户端,分别将获取到的上述事故数据发布至区块链进行存证之后,理赔机构在对本次事故的事故参与方进行理赔时,可以获取区块链中存储的由该事故参与方用户发布的第一事故数据,并基于该第一事故数据的数据内容来确定与本次事故相关的其他事故参与方用户,然后再获取由该其他事故参与方用户发布 至区块链的第二事故数据。After the accident participant users of the accident all publish the obtained accident data to the blockchain for storage through the client, the claims settlement agency can obtain the blockchain when making claims for the accident participants of the accident. The first accident data released by the user of the accident participant stored in the accident data, and based on the data content of the first accident data to determine other accident participant users related to the accident, and then obtain the user from the other accident participant The second accident data released to the blockchain.
进一步的,理赔机构可以验证该第一事故数据与该第二事故数据是否匹配,来确认本次事故的真实性;如果二者匹配,证明本次事故为真实的事故,可以进一步对该事故参与方用户进行车祸理赔处理。Further, the claims settlement agency can verify whether the first accident data matches the second accident data to confirm the authenticity of the accident; if the two match, it proves that the accident is a real accident, and can further participate in the accident Party users carry out claims processing for car accidents.
在以上技术方案中,一方面,由于用户可以通过客户端访问在区块链中存储的数据,快捷的与其他事故参与方用户交换各自的车辆投保详情数据,对其他事故参与方用户的车辆身份数据和车辆投保详情数据进行相互验证确认,并在对其他事故参与方用户的车辆身份数据和车辆投保详情数据进行确认后,可以通过客户端将所有事故参与方用户的车辆身份信息和与事故现场相关的取证数据作为用于交通事故理赔的事故数据自主的上报到区块链进行存证,而不再需要交通管理部门的工作人员进行事故处理,因此可以降低交通管理部门的工作负担,提高事故上报理赔的处理效率;In the above technical solutions, on the one hand, because users can access the data stored in the blockchain through the client, they can quickly exchange their vehicle insurance details with other accident participants, and check the vehicle identity of other accident participants. The data and vehicle insurance details data are mutually verified and confirmed, and after the vehicle identity data and vehicle insurance details data of other accident participants are confirmed, the vehicle identity information of all accident participants can be combined with the accident scene through the client. Relevant forensic data is used as accident data for traffic accident claims to be independently reported to the blockchain for storage, and the traffic management department staff is no longer required to deal with the accident. Therefore, it can reduce the workload of the traffic management department and increase the accident. Processing efficiency of reported claims;
另一方面,由于理赔机构在针对事故参与方用户进行事故理赔时,可以将区块链中存储的由该用户和其他事故参与方用户发布的事故数据进行匹配,来对本次的事故进行真实性验证,从而可以避免用户单方面向区块链发布虚假事故数据来骗取理赔的行为,提升事故理赔的安全性。On the other hand, since the claims settlement agency can match the accident data stored in the blockchain by the user and the accident data released by other users of the accident participant when making accident claims against the user of the accident participant, to verify the truth of the accident. This can prevent users from unilaterally publishing false accident data to the blockchain to defraud claims, and improve the security of accident claims.
以下将结合具体的实施例对本说明书披露的技术方案进行详细描述。The technical solutions disclosed in this specification will be described in detail below in conjunction with specific embodiments.
请参见图4,图4是一示例性实施例提供的一种基于区块链的交通事故处理方法的流程图。其中,所述区块链存储了车辆身份信息和车辆投保详情数据的对应关系;所述方法包括以下步骤:Please refer to FIG. 4, which is a flowchart of a method for handling a traffic accident based on a blockchain according to an exemplary embodiment. Wherein, the block chain stores the corresponding relationship between vehicle identity information and vehicle insurance detail data; the method includes the following steps:
步骤402,客户端响应于事故参与方用户的操作,获取与事故相关的其他事故参与方用户的车辆身份信息,并查询所述区块链中存储的与所述车辆身份信息对应的车辆投保详情数据;Step 402: In response to the operation of the accident participant user, the client obtains the vehicle identity information of other accident participant users related to the accident, and queries the vehicle insurance details corresponding to the vehicle identity information stored in the blockchain data;
步骤404,客户端将所述车辆身份信息和车辆投保详情数据通过界面向事故参与方用户进行输出显示。In step 404, the client terminal outputs and displays the vehicle identity information and vehicle insurance details data to the users of the accident participants through the interface.
步骤406,客户端响应于所述事故参与方用户对所述车辆身份信息和所述车辆投保详情数据的确认操作,将获取到的事故数据发布至所述区块链进行存证;其中,所述事故数据用于交通事故理赔;所述事故数据包括与所述事故相关的事故参与方用户的车辆身份信息和与事故现场相关的取证数据的对应关系;In step 406, the client responds to the confirmation operation of the vehicle identity information and the vehicle insurance details data by the user of the accident participant, and publishes the acquired accident data to the blockchain for storage; The accident data is used for traffic accident claims; the accident data includes the corresponding relationship between the vehicle identity information of the accident participant user related to the accident and the forensic data related to the accident scene;
步骤408,服务设备响应于针对所述事故的事故理赔,获取区块链中存储的由事故 参与方用户发布的第一事故数据,基于所述第一事故数据确定其他事故参与方用户,并获取所述区块链中存储的由所述其他事故参与方用户发布的第二事故数据;Step 408: In response to the accident claim for the accident, the service device obtains the first accident data released by the accident participant user stored in the blockchain, determines other accident participant users based on the first accident data, and obtains The second accident data stored in the blockchain and released by the users of the other accident participants;
步骤410,验证所述第一事故数据与所述第二事故数据是否匹配;如果是,对所述事故参与方用户进行车祸理赔处理。Step 410: Verify whether the first accident data matches the second accident data; if so, perform a car accident compensation processing on the user of the accident participant.
上述客户端,具体可以包括面向驾驶者提供各种与车辆相关的增值服务的客户端软件。例如,在一个例子中,上述客户端具体可以是一款面向驾驶者提供服务的名为“驾驶员钱包”APP;该APP面向驾驶者提供的服务具体可以包括:停车费、罚单、行驶费缴纳、事故申报、事故理赔等在线服务。The above-mentioned client may specifically include client software that provides various value-added services related to the vehicle to the driver. For example, in an example, the above-mentioned client may be an APP called "Driver Wallet" that provides services to drivers; the services provided by the APP to drivers may include parking fees, fines, and payment of driving fees. , Accident declaration, accident claim settlement and other online services.
上述服务设备,具体可以与理赔机构(比如保险公司)对应,可以包括理赔机构面向用户提供服务的服务器、服务器集群、或者基于服务器集群搭建的服务平台,等等。其中,需要说明的是,上述服务设备可以是与理赔机构对应的中心化服务设备,也可以作为节点设备加入区块链。The above-mentioned service equipment may specifically correspond to a claims settlement institution (such as an insurance company), and may include a server, a server cluster, or a service platform built based on the server cluster that the claims settlement institution provides services to users, and so on. Among them, it should be noted that the above-mentioned service device may be a centralized service device corresponding to a claims settlement institution, or may be added to the blockchain as a node device.
在本说明书中,用户可以预先将自己名下的车辆的车辆身份信息和车辆投保详情数据的对应关系上传至区块链进行存储。In this manual, the user can upload the corresponding relationship between the vehicle identity information of the vehicle under his own name and the vehicle insurance detail data to the blockchain for storage in advance.
其中,上述车辆身份信息,具体可以包括车辆信息和与车辆信息绑定的用户身份信息。例如,在实际应用中,上述车辆信息具体可以包括车辆的车牌号、发动机号、车辆外观数据(比如车辆外观图片),等等可以唯一标识车辆的各种信息。上述用户身份信息,具体可以包括用户的身份证号、驾驶证号等能够唯一标识用户的信息。Wherein, the aforementioned vehicle identity information may specifically include vehicle information and user identity information bound to the vehicle information. For example, in practical applications, the aforementioned vehicle information may specifically include the license plate number of the vehicle, engine number, vehicle appearance data (such as a picture of the vehicle appearance), and various information that can uniquely identify the vehicle. The aforementioned user identity information may specifically include the user's ID number, driver's license number, and other information that can uniquely identify the user.
当用户在发生交通事故后,可以通过操作客户端访问区块链中存储的数据,与其他的事故参与方交换各自的车辆身份信息和投保详情数据进行互相验证。After a traffic accident, users can access the data stored in the blockchain by operating the client, and exchange their vehicle identity information and insurance details with other accident participants for mutual verification.
而客户端可以响应用户的操作,获取与事故相关的其他事故参与方用户的车辆身份信息,并将获取到的其他事故参与方用户的车辆身份信息作为查询索引,来查询区块链中存储的与该车辆身份信息对应的车辆投保详情数据。The client can respond to the user's operation to obtain the vehicle identity information of other accident participant users related to the accident, and use the obtained vehicle identity information of other accident participant users as a query index to query the storage in the blockchain. Vehicle insurance detail data corresponding to the vehicle identity information.
其中,需要说明的是,用户通过客户端获取与事故相关的其他事故参与方用户的车辆身份信息的具体方式,在本说明书中不进行特别的限定。Among them, it should be noted that the specific manner in which the user obtains the vehicle identity information of other accident participant users related to the accident through the client is not particularly limited in this specification.
在示出的一种实施方式,用户可以通过使用客户端与其他事故参与方用户进行扫码的方式,来获取其他事故参与方用户的车辆身份信息;在这种情况下,在客户端中可以面向用户提供一个由用户的车辆身份信息生成的图形编码的访问入口;用户在遭遇车祸后,所有的车祸参与方用户都可以通过操作客户端提供的该访问入口,触发将该图形编 码在客户端的用户界面进行输出展示。In the illustrated embodiment, the user can obtain the vehicle identity information of other accident participant users by using the client to scan codes with other accident participant users; in this case, the client can Provide users with an access entry to the graphic code generated by the user’s vehicle identity information; after the user encounters a car accident, all users involved in the car accident can trigger the graphic code on the client by operating the access entry provided by the client. The user interface displays the output.
事故参与方用户可以通过客户端对其他事故参与方用户的客户端上输出的图形编码进行图像扫描操作,来获取对方的车辆身份信息。而客户端可以响应用户发起的图像扫描操作,针对其他事故参与方用户的客户端上输出的图形编码进行编码识别,解析出图形编码中携带的编码信息,来获取其他事故参与方用户的车辆身份信息。The user of the accident participant can perform image scanning operations on the graphic code output on the client of other accident participant users through the client to obtain the other party's vehicle identity information. The client can respond to the image scanning operation initiated by the user, identify the graphics code output on the client of other users involved in the accident, and parse the coding information carried in the graphics code to obtain the vehicle identities of other users involved in the accident. information.
其中,需要说明的是,上述图形编码的具体形式,在本说明书中不再进行特别的限定;例如,可以是通用的二维码,也可以是诸如二维码以外的条形码,或者其它形式的图形编码。Among them, it should be noted that the specific form of the above-mentioned graphic coding is not particularly limited in this specification; for example, it may be a general two-dimensional code, or a bar code other than a two-dimensional code, or other forms Graphic coding.
在本说明书中,当用户的客户端查询到区块链中存储的与上述其他事故参与方用户的车辆身份信息对应的车辆投保详情数据之后,可以将获取到的上述其他事故参与方用户的车辆身份信息和对应的车辆投保详情数据通过界面向该用户输出,由该用户对本次事故的其他事故参与方用户的车辆身份信息和车辆投保详情数据进行验证确认。相应的,对于其他事故参与方用户而言,也可以通过相同的方式,使用客户端来扫描该用户的客户端输出的图像编码,获取该用户的车辆身份信息以及车辆投保详情数据,在界面中进行输出显示,然后再进行验证确认,具体的过程不再赘述。In this manual, after the user's client has inquired about the vehicle insurance details data stored in the blockchain that corresponds to the vehicle identity information of the other accident participant users mentioned above, it can obtain the vehicle insurance details of the other accident participant users mentioned above. The identity information and the corresponding vehicle insurance detail data are output to the user through the interface, and the user verifies and confirms the vehicle identity information and vehicle insurance detail data of other accident participants in this accident. Correspondingly, for other users involved in the accident, the client can also be used in the same way to scan the image code output by the user’s client to obtain the user’s vehicle identity information and vehicle insurance details, in the interface Perform output display, and then verify and confirm, the specific process will not be repeated.
可以理解的是,对于事故的任意参与一方,都可以通过以上描述的扫码过程,通过区块链与其他事故参与方用户进行车辆身份数据和车辆投保详情数据的数据交换,来相互进行验证。It is understandable that for any party involved in the accident, the code scanning process described above can exchange vehicle identity data and vehicle insurance details data with other accident participants through the blockchain to verify each other.
其中,需要说明的是,上述车辆投保详情数据具体可以包括保险公司的基本信息、车辆保险信息、车辆保险有效期等信息;而用户在相互验证事故对方的以上信息时,可以验证车辆身份信息是否与事故车辆匹配,车辆保险详情中规定的理赔事故类型是否涵盖本次事故类型,车辆保险有效期是否到期,等等。Among them, it should be noted that the above-mentioned vehicle insurance details data may specifically include basic information of the insurance company, vehicle insurance information, vehicle insurance validity period and other information; and users can verify whether the vehicle identity information is consistent with the above information of the other party in the accident. Matching of the accident vehicle, whether the claim accident type specified in the vehicle insurance details covers the accident type, whether the validity period of the vehicle insurance expires, and so on.
当用户对客户端输出的其他事故参与方用户的车辆身份信息和车辆投保详情数据进行验证无误后,可以在客户端的界面中对客户端展示的这些信息执行确认操作;After the user verifies that the vehicle identity information and vehicle insurance details data of other accident participants output by the client are correct, the client can perform confirmation operations on the information displayed on the client in the client's interface;
例如,在实现时,客户端在通过界面输出以上信息时,还可以提供一个对应的确认按钮;用户在验证以上信息无误后,可以通过诸如点击等方式,触发该确认按钮,对已经验证通过的以上信息进行确认。For example, in implementation, the client can also provide a corresponding confirmation button when outputting the above information through the interface; after verifying that the above information is correct, the user can trigger the confirmation button by clicking, etc., Confirm the above information.
当用户在客户端上执行了对上述其他事故参与方用户的车辆身份信息和车辆投保详情数据的确认操作之后,客户端可以响应该确认操作,将获取到的与本次事故相关事故 数据发布至区块链进行存证,以完成本次事故的上报;After the user performs the confirmation operation on the vehicle identity information and vehicle insurance details data of the other users involved in the accident on the client, the client can respond to the confirmation operation and publish the acquired accident data related to the accident to The blockchain is used to deposit the certificate to complete the report of the accident;
当然,在实际应用中,出于数据隐私保护的目的,也可以仅将与本次事故相关事故数据的数据摘要(比如hash值),发布至区块链进行存证,而将事故数据的原始内容在客户端本地,或者由客户端进一步提交给理赔机构进行存储。也即,在本说明书中,客户端发布至区块链的事故数据,可以是事故数据的原始内容,也可以是事故数据的摘要数据,在本说明书中不进行特别限定。Of course, in practical applications, for the purpose of data privacy protection, it is also possible to publish only the data summary (such as the hash value) of the accident data related to this accident to the blockchain for storage, and the original accident data The content is locally on the client or further submitted by the client to the claims agency for storage. That is, in this specification, the accident data published by the client to the blockchain may be the original content of the accident data or the summary data of the accident data, which is not particularly limited in this specification.
其中,上述事故数据具体用于交通事故理赔;上述事故数据可以包括与上述事故相关的事故参与方用户的车辆身份信息和与事故现场相关的取证数据的对应关系。Wherein, the aforementioned accident data is specifically used for traffic accident claims; the aforementioned accident data may include the corresponding relationship between the vehicle identity information of the accident participant user related to the aforementioned accident and the forensic data related to the accident scene.
需要说明的是,上述事故数据中包括的车辆身份信息,可以包括所有事故参与方用户的车辆身份信息,也可以仅包括所有事故参与方用户中的至少多个事故参与方的车辆身份信息,在本说明书中不进行特别限定。It should be noted that the vehicle identity information included in the aforementioned accident data may include the vehicle identity information of all users of the accident participants, or it may only include the vehicle identity information of at least multiple accident participants among all the users of the accident participants. There is no particular limitation in this specification.
例如,假设用户A、B和C发生了第三方事故,则对于A发布至区块链的事故数据中,可以包括用户A、B和C三方的车辆身份信息,也可以仅包括用户A的车辆身份信息,以及B或者C中的其中一个事故参与方用户的车辆身份信息。For example, assuming that users A, B, and C have a third-party accident, the accident data published by A to the blockchain can include the vehicle identity information of users A, B, and C, or only include user A’s vehicle Identity information, and the vehicle identity information of one of the users involved in the accident in B or C.
上述与事故现场相关的取证数据,具体可以包括事故发生的时刻、事故发生的地点、与事故现场相关的图像数据等数据中的一个或者多个的组合。其中,上述图像数据具体可以包括与事故现场相关的图片、视频或者其它形式的能够还原出事故现场状况的图像数据。The foregoing forensic data related to the accident site may specifically include one or a combination of data such as the time of the accident, the location of the accident, and image data related to the accident site. Among them, the above-mentioned image data may specifically include pictures, videos or other forms of image data that can restore the conditions of the accident scene.
在示出的一种实施方式中,上述取证数据,可以是客户端在响应用户的上述确认操作时,由用户实时获取到的数据。In the illustrated embodiment, the forensic data may be data obtained by the user in real time when the client responds to the user's confirmation operation.
例如,以上述取证数据,为与事故现场相关的图片为例;在这种情况下,当用户在客户端上执行了对上述其他事故参与方用户的车辆身份信息和车辆投保详情数据的确认操作之后,客户端可以响应该确认操作,通过界面向用户输出一条“是否跳转至拍摄界面拍摄事故现场”的提示消息,用户进行确认后跳转至拍摄界面对事故现场进行拍摄取证;或者,也可以直接跳转至拍摄界面对事故现场进行拍摄取证。For example, take the above forensic data as an example of pictures related to the scene of the accident; in this case, when the user performs a confirmation operation on the client's vehicle identity information and vehicle insurance details data of the other users involved in the accident After that, the client can respond to the confirmation operation by outputting a prompt message to the user through the interface "whether to jump to the shooting interface to shoot the scene of the accident?" After the user confirms, the user jumps to the shooting interface to shoot the scene of the accident for evidence; or, also You can jump directly to the shooting interface to shoot and collect evidence at the scene of the accident.
当然,在实现时,上述取证数据,也可以是用户使用客户端提前获取到的数据。例如,仍以上述取证数据,为与事故现场相关的图片为例;在这种情况下,当用户在客户端上执行了对上述其他事故参与方用户的车辆身份信息和车辆投保详情数据的确认操作之后,客户端可以响应该确认操作,通过界面向用户输出一上传入口;用户可以通 过触发该上传入口,从相册目录中选择已经拍摄的事故现场图片进行上传。Of course, in implementation, the aforementioned forensic data may also be data obtained in advance by the user using the client. For example, the above forensic data is still taken as an example of pictures related to the scene of the accident; in this case, when the user performs confirmation on the client's vehicle identity information and vehicle insurance details data of the other users involved in the accident After the operation, the client can respond to the confirmation operation and output an upload entry to the user through the interface; the user can trigger the upload entry and select the pictures of the accident scene that have been taken from the album catalog to upload.
相应的,对于其他事故参与方用户而言,也可以通过相同的方式,向区块链上传与本次事故相关的事故数据,不再赘述。在本说明书中,上述区块链上还可以预先部署了用于进行事故管理的智能合约;其中,智能合约的部署过程,请参照图1描述的具体过程,不再赘述。Correspondingly, for users of other accident participants, the accident data related to this accident can also be uploaded to the blockchain in the same way, which will not be repeated here. In this specification, a smart contract for accident management may also be pre-deployed on the above-mentioned blockchain; among them, for the deployment process of the smart contract, please refer to the specific process described in Figure 1 and will not be repeated.
在该智能合约中声明的合约代码对应的代码执行逻辑,可以包括用于对事故数据进行合法性校验的校验逻辑,和事故事件生成逻辑;用户在发生事故后,可以通过客户端调用该智能合约,将本次事故相关的事故数据上报至区块链进行存储。The code execution logic corresponding to the contract code declared in the smart contract can include the verification logic used to verify the validity of the accident data, and the accident event generation logic; after an accident, the user can call this through the client The smart contract reports the accident data related to this accident to the blockchain for storage.
具体地,当用户在客户端上执行了对上述其他事故参与方用户的车辆身份信息和车辆投保详情数据的确认操作之后,客户端可以响应该确认操作,构建一笔用于发起事故上报的第一交易;其中,该第一交易具体可以是一笔用于调用智能合约的交易,在该交易中具体可以包括与事故现场相关的上述事故数据。Specifically, after the user performs a confirmation operation on the client's vehicle identity information and vehicle insurance details data of the other users involved in the accident, the client can respond to the confirmation operation and construct a first report for initiating the accident report. A transaction; where the first transaction may specifically be a transaction for invoking a smart contract, and the transaction may specifically include the above-mentioned accident data related to the scene of the accident.
然后,客户端可以将该第一交易发布至区块链。而区块链中的节点设备在收到该第一交易后,可以响应该第一交易,调用上述智能合约中的校验逻辑,针对上述事故数据进行合法性校验。其中,合法性校验的具体校验过程,在本说明书中不进行特别限定;例如,在一个例子中,上述事故数据可以携带数字签名,对上述事故数据进行合法性校验,则可以包括对上述事故数据的数字签名进行校验;如果数字签名校验通过,可以确定该事故数据是合法的数据。Then, the client can publish the first transaction to the blockchain. After receiving the first transaction, the node device in the blockchain can respond to the first transaction, call the verification logic in the smart contract, and perform a legality verification for the accident data. Among them, the specific verification process of the legality verification is not particularly limited in this specification; for example, in an example, the accident data may carry a digital signature, and the legality verification of the accident data may include The digital signature of the above accident data is verified; if the digital signature verification passes, it can be determined that the accident data is legal data.
如果针对上述事故数据合法性校验通过,可以进一步调用上述智能合约中的事件生成逻辑,生成与上述事故数据对应的事故事件,并将上述事故事件和上述事故数据关联存储至上述区块链的分布式账本。If the legality of the above accident data is verified, the event generation logic in the above smart contract can be further called to generate the accident event corresponding to the above accident data, and the above accident event and the above accident data can be associated and stored in the above blockchain. Distributed ledger.
其中,需要说明的是,上述事故事件具体可以是通过调用智能合约在区块链上创建的新的对象;在一个例子中,上述事故事件,具体可以是通过调用智能合约创建出的新的账户对象。例如,在实现时,可以对区块链支持的账户类型,进行进一步的扩展,在外部账户和合约账户的基础上,扩展出一种与事故事件对应的账户类型。在这种情况下,上述事故事件和上述事故数据具体可以关联存储至上述智能合约对应的Storage树中;比如,上述事故事件可以作为key(可以是作为账户地址的字符串),上述事故数据可以作为与key对应的Value,以Key-Value对的形式,存储至Storage树中。Among them, it should be noted that the above accident event may specifically be a new object created on the blockchain by calling a smart contract; in one example, the above accident event may specifically be a new account created by calling a smart contract Object. For example, in implementation, the account types supported by the blockchain can be further expanded, and based on external accounts and contract accounts, an account type corresponding to an accident event can be expanded. In this case, the above accident event and the above accident data can be specifically associated and stored in the Storage tree corresponding to the above smart contract; for example, the above accident event can be used as a key (which can be a string of account addresses), and the above accident data can be As the Value corresponding to the key, it is stored in the Storage tree in the form of a Key-Value pair.
当用户通过客户端将与事故相关的事故数据发布至区块链进行存储后,客户端 可以监听上述智能合约在区块链上生成的事故事件;例如,可以开发监听程序监听智能合约的Storage树中新创建的与事故事件对应的账户对象;After the user publishes the accident data related to the accident to the blockchain for storage through the client, the client can monitor the accident events generated by the smart contract on the blockchain; for example, a listener can be developed to monitor the storage tree of the smart contract The newly created account object corresponding to the accident event;
当监听到上述智能合约在区块链上生成的事故事件之后,可以响应于该事故事件,向事故参与方用户输出与该事故事件对应的提示信息,以提示该对该事故参与方用户对该事故事件发起理赔处理。例如,在实现时,该提示消息可以是一条“您已成功上报了事故事件,是否发起理赔”的提示消息。该事故参与方用户可以在该提示消息的提示下,来决定是否发起针对该事故事件进行理赔处理。When the accident event generated by the smart contract on the blockchain is monitored, it can respond to the accident event and output prompt information corresponding to the accident event to the accident participant user to prompt the accident participant user to respond to the accident event. Initiation of claims processing in the event of an accident. For example, in implementation, the prompt message may be a prompt message of "You have successfully reported an accident event, do you want to initiate a claim?" The user of the accident participant can decide whether to initiate claims processing for the accident event under the prompt of the prompt message.
当该事故参与方用户在上述提示消息的提示下,决定对该事故事件进行理赔时,可以通过客户端向理赔机构发起针对该事故事件进行理赔处理;而客户端可以响应于该事故参与方用户发起的针对该事故事件的事故理赔操作,来发起理赔处理。例如,在一种方式中,该客户端可以响应上述事故理赔操作,向理赔机构的服务端发送一个理赔请求,来发起理赔;也可以在区块链上部署了由理赔机构发布的用于事故理赔的智能合约的情况下,向区块链的节点设备发送一笔调用智能合约的交易来发起理赔。When the user of the accident participant decides to make a claim for the accident event under the prompt message, the client can initiate a claim processing for the accident event to the claims agency through the client; and the client can respond to the accident participant user Initiated an accident claim settlement operation for the accident event to initiate a claim settlement process. For example, in one way, the client can respond to the above-mentioned accident claim settlement operation by sending a claim settlement request to the service end of the claims settlement agency to initiate a claim settlement; it may also deploy a claim issued by the claims settlement agency on the blockchain for accident settlement operations. In the case of a smart contract for claim settlement, a transaction that calls the smart contract is sent to the node device of the blockchain to initiate a claim settlement.
在本说明书中,当事故相关的事故参与方用户通过客户端,分别将获取到的上述事故数据发布至区块链进行存证之后,理赔机构可以基于区块链上最新发布的事故数据,来对事故参与方用户进行理赔处理。In this manual, after the accident-related accident participant users respectively publish the obtained accident data to the blockchain for storage through the client, the claims settlement agency can use the latest accident data released on the blockchain to provide Carry out claims processing for the users of the accident participants.
其中,理赔机构对事故参与方用户进行的理赔处理,可以是由理赔机构通过服务设备监听区块链上最新发布的事故数据主动发起的,也可以是由用户通过客户端来主动发起的,在本说明书不进行特别限定。Among them, the claims processing performed by the claims agency on the users of the accident participants can be initiated by the claims agency through the service equipment monitoring the latest accident data released on the blockchain, or by the user through the client. This specification is not particularly limited.
在示出的一种实施方式中,如前所述,上述区块链上可以预先部署了用于进行事故管理的智能合约,用户可以通过调用该智能合约,来触发在区块链上生成事故事件,并将生成的事故事件与上述事故数据关联存储至区块链的分布式账本。In the illustrated embodiment, as mentioned above, a smart contract for accident management can be pre-deployed on the above-mentioned blockchain, and the user can trigger the generation of an accident on the blockchain by invoking the smart contract. Event, and store the generated accident event and the above-mentioned accident data in the distributed ledger of the blockchain.
在这种情况下,理赔机构的服务设备可以监听上述智能合约在区块链上生成的事故事件。例如,可以开发监听程序监听智能合约的Storage树中新创建的与事故事件对应的账户对象。In this case, the service equipment of the claims settlement agency can monitor the accident event generated by the above-mentioned smart contract on the blockchain. For example, a listener can be developed to monitor the newly created account object corresponding to the accident event in the Storage tree of the smart contract.
当监听到上述智能合约在区块链上生成的事故事件之后,可以响应于该事故事件,向理赔机构发送与该事故事件对应的提示信息,以提示理赔机构对该事故事件进行理赔处理。例如,在实现时,该提示消息可以是一条“收到XX用户上报的事故事件,是否发起理赔”的提示消息。理赔机构可以在该提示消息的提示下,来决定是否发起针 对该事故事件的事故参与方用户进行理赔处理。After monitoring the accident event generated by the smart contract on the blockchain, in response to the accident event, prompt information corresponding to the accident event can be sent to the claims settlement agency to prompt the claims settlement agency to handle the accident event. For example, in implementation, the prompt message may be a prompt message of "receiving an accident reported by the XX user, whether to initiate a claim?" The claims agency can decide whether to initiate claims processing for the accident participant users of the accident event under the prompt of the prompt message.
当理赔机构在上述提示消息的提示下,决定对本次事故的某个事故参与方进行理赔时,可以获取区块链中存储的由该事故参与方用户发布的第一事故数据。例如,上述提示消息中可以携带该事故事件的key,理赔机构可以基于该key,在智能合约的Storage树查询与该事故事件对应的事故数据。When prompted by the above prompt message, the claims settlement agency decides to settle a claim for a certain accident participant in this accident, it can obtain the first accident data stored in the blockchain and released by the user of the accident participant. For example, the above prompt message may carry the key of the accident event, and the claims settlement agency may query the accident data corresponding to the accident event in the Storage tree of the smart contract based on the key.
在获取到由该事故参与方用户发布的第一事故数据之后,可以基于该第一事故数据的数据内容,来确定本次事故的其他事故参与方用户;例如,可以基于事故数据中携带的其他事故参与方的车辆身份信息中的用户身份信息,来明确其他事故参与方用户的身份。然后,可以获取区块链中存储的由该其他事故参与方用户发布的第二事故数据。After the first accident data released by the accident participant user is obtained, the other accident participant users of the accident can be determined based on the data content of the first accident data; for example, it can be based on other accident data carried in the accident data. The user identity information in the vehicle identity information of the accident participant is used to clarify the identities of the users of other accident participants. Then, the second accident data released by the other accident participant user stored in the blockchain can be obtained.
进一步的,在获取到区块链中存储的事故参与方用户发布的事故数据之后,可以继续验证上述第一事故数据和上述第二事故数据是否匹配。例如,可以验证上述第一事故数据和上述第二事故数据中分别包含的事故参与方用户是否匹配、验证上述第一事故数据和上述第二事故数据中分别包含的上述取证数据中的事故发生的时刻、事故发生的地点、与事故现场相关的图像数据是否匹配,等等。Further, after obtaining the accident data released by the accident participant user stored in the blockchain, it is possible to continue to verify whether the above-mentioned first accident data and the above-mentioned second accident data match. For example, it is possible to verify whether the accident participant users included in the first accident data and the second accident data respectively match, verify that the accident occurred in the forensic data included in the first accident data and the second accident data respectively. The time, the location of the accident, whether the image data related to the accident site matches, etc.
当经过验证确认上述第一事故数据和上述第二事故数据完全匹配,此时可以证明本次事故为真实的事故,可以进一步对该事故参与方用户进行车祸理赔处理。When it is verified that the data of the first accident and the data of the second accident are completely matched, it can be proved that the accident is a real accident, and the user of the accident participant can be further processed for car accident claims.
其中,对该事故参与方用户进行车祸理赔处理的具体步骤,在本说明书中不再进行详述。例如,以上述客户端是一款面向驾驶者提供服务的名为“驾驶员钱包”APP为例,理赔机构可以基于事故参与方用户的车辆投保金额,向事故参与方用户的“钱包账户”进行理赔转账处理即可。Among them, the specific steps of the user involved in the accident to deal with the car accident claims will not be described in detail in this manual. For example, if the above client is an APP called "Driver Wallet" that provides services to drivers, the claims agency can make payment to the "wallet account" of the user of the accident participant based on the amount of vehicle insurance of the user of the accident participant. The claims transfer process can be done.
在示出的一种实施方式中,当理赔机构在对事故参与方用户进行车祸理赔处理完成后,还可以生成与该事故参与方用户对应的车祸理赔记录,然后将该车祸理赔记录发布至区块链进行存证,以在区块链上形成该用户的车祸理赔记录,从而使得所有接入区块链的理赔机构,都可以获取到该用户的车祸理赔记录,对该用户定制理赔策略。In the illustrated embodiment, after the claims settlement agency has completed the car accident claims processing on the accident participant user, it can also generate a car accident claims record corresponding to the accident participant user, and then publish the car accident claim record to the district. The block chain deposits the certificate to form the user's car accident claim record on the block chain, so that all claims settlement agencies connected to the blockchain can obtain the user's car accident claim record and customize the claim settlement strategy for the user.
在示出的一种实施方式中,理赔机构也可以将事故参与方用户的理赔处理逻辑开发成用于进行事故理赔的智能合约,然后将该智能合约部署到区块链上。In the illustrated embodiment, the claims agency may also develop the claims processing logic of the accident participant user into a smart contract for accident claims, and then deploy the smart contract on the blockchain.
其中,该用于进行事故理赔的智能合约中声明的合约代码对应的代码执行逻辑,与以上描述的由理赔机构进行理赔处理的过程对应,可以包括用于对所有事故参与方用户发布的事故数据进行验证的验证逻辑,和事故理赔逻辑;用户在发生事故后,可以通 过客户端调用该智能合约,来自主的完成理赔处理,而不需要理赔机构进行干预。Among them, the code execution logic corresponding to the contract code declared in the smart contract for accident claims corresponds to the above-described process of claims settlement by the claims settlement agency, and may include accident data for all accident participants. Verification logic for verification and accident claims logic; after an accident, the user can call the smart contract through the client to complete the claims processing autonomously without the intervention of the claims agency.
在这种情况下,客户端可响应事故参与方用户发起的针对所述事故事件的事故理赔操作,构建一笔用于发起事故理赔的第二交易,并将该第二交易发布至所述区块链。例如,在实现时,可以在客户端的界面中可以面向用户提供发起事故理赔的操作入口(比如按钮),使得该用户可以通过触发该操作入口,快捷的发起事故理赔;而客户端可以响应于用户针对该操作入口的触发操作,来触发构建上述第二交易,并将该第二交易发布至区块链。In this case, the client can respond to the accident claim operation initiated by the user of the accident participant for the accident event, construct a second transaction for initiating the accident claim, and publish the second transaction to the district Block chain. For example, in implementation, the user can be provided with an operation portal (such as a button) for initiating accident claims in the interface of the client, so that the user can quickly initiate accident claims by triggering the operation portal; and the client can respond to the user The trigger operation of the operation entry triggers the construction of the above-mentioned second transaction, and publishes the second transaction to the blockchain.
而区块链中的节点设备在收到该第二交易后,可以响应该第二交易,获取区块链中存储的由该事故参与方用户发布的第一事故数据,基于该第一事故数据确定其他事故参与方用户,并获取所述区块链中存储的由所述其他事故参与方用户发布的第二事故数据,再验证该第一事故数据与所述第二事故数据是否匹配;当二者匹配时,可以进一步调用上述智能合约中的车祸理赔逻辑,对该事故参与方用户进行车祸理赔处理,具体的过程不再赘述。After receiving the second transaction, the node device in the blockchain can respond to the second transaction and obtain the first accident data released by the user of the accident participant stored in the blockchain, based on the first accident data Determine other accident participant users, obtain the second accident data stored in the blockchain and released by the other accident participant users, and then verify whether the first accident data matches the second accident data; when When the two match, the car accident compensation logic in the above smart contract can be further invoked to perform car accident compensation processing for the accident participant user, and the specific process will not be repeated.
上述智能合约在完成对该事故参与方用户的车祸理赔处理后,可以将车祸理赔处理结果,存储至区块链的分布式账本;而对于理赔机构来说,则可以通过监听上述智能合约的执行结果,来获取对上述事故参与方用户的理赔结果。The above smart contract can store the results of the car accident claims processing in the distributed ledger of the blockchain after completing the car accident claims processing of the user involved in the accident; while for the claims agency, it can monitor the execution of the above smart contract As a result, to obtain the settlement result of the above-mentioned accident participant user.
例如,在实现时,智能合约的执行结果通常是以交易执行日志(Log)的形式,存储到MPT收据树中;或者,也可以以Key-Value对的形式存储到智能合约的Storage树中。因此,理赔机构可以通过监听到MPT收据树或者智能合约的Storage树,来获取上述事故参与方用户的理赔结果。For example, in implementation, the execution result of a smart contract is usually stored in the MPT receipt tree in the form of a transaction execution log (Log); or, it can also be stored in the storage tree of the smart contract in the form of a Key-Value pair. Therefore, the claim settlement agency can obtain the claim settlement results of the users of the aforementioned accident participants by monitoring the MPT receipt tree or the storage tree of the smart contract.
在本说明中,对于上述智能合约生成的上述事故事件,还可以由智能合约维护一个对应的状态机,来标明其状态。例如,在实现时,对于上述智能合约生成的上述事故事件,在初始状态下,可以由智能合约将其标记为未理赔状态;当用户通过客户端调用智能合约,完成了针对该事故事件的理赔处理后,可以将其更新为已理赔状态。在这种情况下,无论是用户的客户端还是理赔机构的服务器,都可以通过监听的方式,及时了解到事故事件的最新状态,进而可以依据该事故事件的最新状态,向用户或者理赔机构的工作人员,发送相应的状态提示消息。In this description, for the above accident events generated by the above smart contract, a corresponding state machine can also be maintained by the smart contract to indicate its state. For example, in implementation, for the above accident event generated by the above smart contract, in the initial state, the smart contract can mark it as an unclaimed state; when the user calls the smart contract through the client, the claim for the accident event is completed After processing, it can be updated to the status of the claim. In this case, both the user’s client and the claims agency’s server can learn about the latest status of the accident in time through monitoring, and can then report to the user or the claims agency based on the latest status of the accident. Staff, send the corresponding status prompt message.
在以上技术方案中,一方面,由于用户可以通过客户端访问在区块链中存储的数据,快捷的与其他事故参与方用户交换各自的车辆投保详情数据,对其他事故参与方 用户的车辆身份数据和车辆投保详情数据进行相互验证确认,并在对其他事故参与方用户的车辆身份数据和车辆投保详情数据进行确认后,可以通过客户端将所有事故参与方用户的车辆身份信息和与事故现场相关的取证数据作为用于交通事故理赔的事故数据自主的上报到区块链进行存证,而不再需要交通管理部门的工作人员进行事故处理,因此可以降低交通管理部门的工作负担,提高事故上报理赔的处理效率。In the above technical solutions, on the one hand, because users can access the data stored in the blockchain through the client, they can quickly exchange their vehicle insurance details with other accident participants, and check the vehicle identity of other accident participants. The data and vehicle insurance details data are mutually verified and confirmed, and after the vehicle identity data and vehicle insurance details data of other accident participants are confirmed, the vehicle identity information of all accident participants can be combined with the accident scene through the client. Relevant forensic data is used as accident data for traffic accident claims to be independently reported to the blockchain for storage, and the traffic management department staff is no longer required to deal with the accident. Therefore, it can reduce the workload of the traffic management department and increase the accident. The processing efficiency of reported claims.
另一方面,由于理赔机构在针对事故参与方用户进行事故理赔时,可以将区块链中存储的由该用户和其他事故参与方用户发布的事故数据进行匹配,来对本次的事故进行真实性验证,从而可以避免用户单方面向区块链发布虚假事故数据来骗取理赔的行为,提升事故理赔的安全性。On the other hand, since the claims settlement agency can match the accident data stored in the blockchain by the user and the accident data released by other users of the accident participant when making accident claims against the user of the accident participant, to verify the truth of the accident. This can prevent users from unilaterally publishing false accident data to the blockchain to defraud claims, and improve the security of accident claims.
与上述方法实施例相对应,本申请还提供了装置的实施例。Corresponding to the foregoing method embodiment, this application also provides an embodiment of the device.
与上述方法实施例相对应,本说明书还提供了一种基于区块链的交通事故处理装置的实施例。Corresponding to the above method embodiments, this specification also provides an embodiment of a traffic accident handling device based on blockchain.
本说明书的基于区块链的交通事故处理装置的实施例可以应用在电子设备上。装置实施例可以通过软件实现,也可以通过硬件或者软硬件结合的方式实现。以软件实现为例,作为一个逻辑意义上的装置,是通过其所在电子设备的处理器将非易失性存储器中对应的计算机程序指令读取到内存中运行形成的。The embodiments of the block chain-based traffic accident handling device in this specification can be applied to electronic equipment. The device embodiments can be implemented by software, or can be implemented by hardware or a combination of software and hardware. Taking software implementation as an example, as a logical device, it is formed by reading the corresponding computer program instructions in the non-volatile memory into the memory through the processor of the electronic device where it is located.
从硬件层面而言,如图5所示,为本说明书的基于区块链的交通事故处理装置所在电子设备的一种硬件结构图,除了图5所示的处理器、内存、网络接口、以及非易失性存储器之外,实施例中装置所在的电子设备通常根据该电子设备的实际功能,还可以包括其他硬件,对此不再赘述。From a hardware perspective, as shown in Figure 5, a hardware structure diagram of the electronic equipment where the block chain-based traffic accident handling device of this specification is located, except for the processor, memory, network interface, and In addition to the non-volatile memory, the electronic device in which the device is located in the embodiment may also include other hardware according to the actual function of the electronic device, which will not be repeated here.
图6是本说明书一示例性实施例示出的一种基于区块链的交通事故处理装置的框图。Fig. 6 is a block diagram of a block chain-based traffic accident processing device shown in an exemplary embodiment of this specification.
请参考图6,所述基于区块链的交通事故处理装置60可以应用在前述图5所示的电子设备中,其中所述区块链存储了车辆身份信息和车辆投保详情数据的对应关系;所述装置60包括:Please refer to FIG. 6, the block chain-based traffic accident handling device 60 can be applied to the electronic device shown in the aforementioned FIG. 5, wherein the block chain stores the correspondence between vehicle identity information and vehicle insurance details data; The device 60 includes:
第一获取模块601,响应于事故参与方用户的操作,获取与事故相关的其他事故参与方用户的车辆身份信息,并查询所述区块链中存储的与所述车辆身份信息对应的车辆投保详情数据;The first obtaining module 601, in response to the operation of the accident participant user, obtains the vehicle identity information of other accident participant users related to the accident, and queries the vehicle insured corresponding to the vehicle identity information stored in the blockchain Detailed data;
输出模块602,将所述车辆身份信息和所述车辆投保详情数据通过界面向事故参与 方用户进行输出显示;The output module 602 outputs and displays the vehicle identity information and the vehicle insurance details data to the users of the accident participants through the interface;
存证模块603,响应于所述事故参与方用户对所述车辆身份信息和所述车辆投保详情数据的确认操作,将获取到的事故数据发布至所述区块链进行存证;其中,所述事故数据用于交通事故理赔;所述事故数据包括与所述事故相关的事故参与方用户的车辆身份信息以及与事故现场相关的取证数据的对应关系。The certification module 603, in response to the confirmation operation of the vehicle identity information and the vehicle insurance details data by the user of the accident participant, publishes the acquired accident data to the blockchain for certification; where The accident data is used for traffic accident compensation; the accident data includes the vehicle identity information of the accident participant users related to the accident and the corresponding relationship of the forensic data related to the accident scene.
在本说明书中,所述第一获取模块601:响应于事故参与方用户的图像扫描操作,针对与事故相关的其他事故参与方用户的客户端上输出的基于所述车辆身份信息生成的图形编码进行编码识别,以获取其他事故参与方用户的车辆身份信息。In this specification, the first acquisition module 601: in response to the image scanning operation of the user of the accident participant, the graphic code generated based on the vehicle identity information output on the client side of other accident participant users related to the accident Perform coding recognition to obtain vehicle identity information of other users involved in the accident.
在本说明书中,所述图形编码包括二维码。In this specification, the graphic code includes a two-dimensional code.
在本说明书中,所述区块链中部署了用于进行事故管理的智能合约。所述存证模块603:响应于所述事故参与方用户对所述车辆身份信息和所述车辆投保详情数据的确认操作,构建用于发起事故上报的第一交易;其中,所述第一交易包括所述与事故现场相关的事故数据;将所述第一交易发布至所述区块链,以使所述区块链中的节点设备响应于所述第一交易,调用所述智能合约中的校验逻辑,针对所述事故数据进行合法性校验;如果针对所述事故数据合法性校验通过,进一步调用所述智能合约中的事件生成逻辑,生成与所述事故数据对应的事故事件,并将所述事故事件和所述事故数据关联存储至所述区块链的分布式账本。In this specification, a smart contract for accident management is deployed in the blockchain. The certificate storage module 603: in response to the confirmation operation of the vehicle identity information and the vehicle insurance details data by the user of the accident participant, construct a first transaction for initiating an accident report; wherein, the first transaction Including the accident data related to the accident site; publishing the first transaction to the blockchain, so that the node device in the blockchain can call the smart contract in response to the first transaction The verification logic for the accident data is verified for the validity of the accident data; if the validity verification for the accident data is passed, the event generation logic in the smart contract is further invoked to generate the accident event corresponding to the accident data , And store the accident event and the accident data in the distributed ledger of the blockchain in association with each other.
在本说明书中,还包括:第一监听模块604(图6中未示出),监听所述智能合约生成的事故事件;响应于监听到的所述事故事件,向所述事故参与方用户输出与所述事故事件对应的提示信息,以提示所述事故参与方用户对所述事故事件发起理赔处理。In this specification, it further includes: a first monitoring module 604 (not shown in FIG. 6), which monitors the accident event generated by the smart contract; in response to the monitored accident event, output to the accident participant user The prompt information corresponding to the accident event is used to prompt the accident participant user to initiate a claim settlement process for the accident event.
在本说明书中,所述区块链中部署了用于进行事故理赔的智能合约。所述装置60还包括:第一理赔模块605(图6中未示出),响应于事故参与方用户发起的针对所述事故事件的事故理赔操作,构建用于发起事故理赔的第二交易;将所述第二交易发布至所述区块链,以使所述区块链中的节点设备响应于所述第二交易,调用所述智能合约中的验证逻辑,获取所述区块链中存储的由所述事故参与方用户发布的第一事故数据,以及由所述第一事故数据中的其他事故参与方用户发布的第二事故数据,并验证所述第一事故数据与所述第二事故数据是否匹配;如果是,进一步调用所述智能合约中的车祸理赔逻辑,对所述事故参与方用户进行车祸理赔处理。In this specification, a smart contract for accident claims is deployed in the blockchain. The device 60 also includes: a first claim settlement module 605 (not shown in FIG. 6), which constructs a second transaction for initiating an accident claim in response to an accident settlement operation initiated by an accident participant user for the accident event; Publish the second transaction to the blockchain, so that the node device in the blockchain can respond to the second transaction by calling the verification logic in the smart contract to obtain The stored first accident data issued by the accident participant user and the second accident data issued by the other accident participant users in the first accident data, and verify that the first accident data and the first accident data 2. Whether the accident data matches; if so, further call the car accident compensation logic in the smart contract to perform car accident compensation processing on the user of the accident participant.
图7是本说明书一示例性实施例示出的基于区块链的交通事故处理装置的框图。Fig. 7 is a block diagram of a block chain-based traffic accident handling device shown in an exemplary embodiment of the present specification.
请参考图7,所述基于区块链的交通事故处理装置70可以应用在前述图5所示的电子设备中,其中,所述区块链存储了由事故参与方用户发布的事故数据;所述事故数据包括与事故相关的事故参与方用户的车辆身份信息和与事故现场相关的取证数据的对应关系;所述装置70包括:Please refer to Fig. 7, the block chain-based traffic accident handling device 70 can be applied to the electronic device shown in Fig. 5, where the block chain stores accident data released by the accident participant user; The accident data includes the corresponding relationship between the vehicle identity information of the accident participant user related to the accident and the forensic data related to the accident scene; the device 70 includes:
第二获取模块701,响应于针对事故参与方用户的事故理赔,获取所述区块链中存储的由所述事故参与方用户发布的第一事故数据;基于所述第一事故数据确定其他事故参与方用户,并获取所述区块链中存储的由所述其他事故参与方用户发布的第二事故数据;The second acquisition module 701, in response to an accident claim for an accident participant user, obtains the first accident data released by the accident participant user stored in the blockchain; and determines other accidents based on the first accident data Participant users, and obtain the second accident data stored in the blockchain and released by the other accident participant users;
验证模块702,验证所述第一事故数据与所述第二事故数据是否匹配;The verification module 702 verifies whether the first accident data matches the second accident data;
第二理赔模块703,如果是,对所述事故参与方用户进行车祸理赔处理。The second claim settlement module 703, if yes, performs a car accident claim settlement process on the user of the accident participant.
在本说明书中,所述服务设备为所述区块链中的节点设备;所述区块链中部署了用于进行事故管理的智能合约。所述装置70还包括:生成模块704(图7中未示出),接收客户端发送的用于发起事故上报的第一交易;所述第一交易包括所述与事故现场相关的事故数据;响应于所述第一交易,调用所述智能合约中的校验逻辑,针对所述事故数据进行合法性校验;如果针对所述事故数据合法性校验通过,进一步调用所述智能合约中的事件生成逻辑,创建与所述事故数据对应的事故事件,并将所述事故对象和所述事故数据关联存储至所述区块链的分布式账本。In this specification, the service device is a node device in the blockchain; a smart contract for accident management is deployed in the blockchain. The device 70 further includes: a generating module 704 (not shown in FIG. 7), which receives a first transaction sent by the client for initiating an accident report; the first transaction includes the accident data related to the accident scene; In response to the first transaction, call the verification logic in the smart contract to verify the validity of the accident data; if the validity verification of the accident data passes, further call the verification logic in the smart contract The event generation logic creates an accident event corresponding to the accident data, and stores the accident object and the accident data in the distributed ledger of the blockchain in association with each other.
在本说明书中,所述装置70还包括:第二监听模块705(图7中未示出),监听所述智能合约生成的事故事件;响应于监听到的所述事故事件,向理赔机构发送与所述事故事件对应的提示信息,以提示理赔机构对所述事故事件进行理赔处理。In this specification, the device 70 further includes: a second monitoring module 705 (not shown in FIG. 7), which monitors the accident event generated by the smart contract; in response to the monitored accident event, sends to the claims settlement agency The prompt information corresponding to the accident event is used to prompt the claims settlement agency to handle the claims for the accident event.
在本说明书中,所述区块链中部署了用于进行事故理赔的智能合约。所述验证模块702:接收所述事故参与方用户通过客户端发送的用于发起事故理赔的第二交易;响应于所述第二交易,调用所述智能合约中的验证逻辑,获取所述区块链中存储的由所述事故参与方用户发布的第一事故数据,基于所述第一事故数据确定其他事故参与方用户,并获取所述区块链中存储的由所述其他事故参与方用户发布的第二事故数据,验证所述第一事故数据与所述第二事故数据是否匹配。所述第二理赔模块703:如果是,进一步调用所述智能合约中的车祸理赔逻辑,对所述事故参与方用户进行车祸理赔处理。In this specification, a smart contract for accident claims is deployed in the blockchain. The verification module 702: receives a second transaction for initiating accident claims sent by the user of the accident participant through the client; in response to the second transaction, invokes the verification logic in the smart contract to obtain the zone The first accident data released by the accident participant user stored in the block chain, other accident participant users are determined based on the first accident data, and the other accident participant users stored in the block chain are obtained The second accident data released by the user verifies whether the first accident data matches the second accident data. The second claim settlement module 703: if yes, further call the auto accident claim settlement logic in the smart contract to perform auto accident claim settlement processing on the accident participant user.
在本说明书中,所述第二理赔模块703进一步:在对所述事故参与方用户进行车祸理赔处理完成后,将针对所述事故参与方用户的车祸理赔记录发布至所述区块链进 行存证。In this specification, the second claim settlement module 703 further: after completing the auto accident claim settlement process for the accident participant user, publish the auto accident claim settlement record for the accident participant user to the blockchain for storage. certificate.
上述实施例阐明的系统、装置、模块或单元,具体可以由计算机芯片或实体实现,或者由具有某种功能的产品来实现。一种典型的实现设备为计算机,计算机的具体形式可以是个人计算机、膝上型计算机、蜂窝电话、相机电话、智能电话、个人数字助理、媒体播放器、导航设备、电子邮件收发设备、游戏控制台、平板计算机、可穿戴设备或者这些设备中的任意几种设备的组合。The systems, devices, modules, or units illustrated in the above embodiments may be specifically implemented by computer chips or entities, or implemented by products with certain functions. A typical implementation device is a computer. The specific form of the computer can be a personal computer, a laptop computer, a cellular phone, a camera phone, a smart phone, a personal digital assistant, a media player, a navigation device, an email receiving and sending device, and a game control A console, a tablet computer, a wearable device, or a combination of any of these devices.
在一个典型的配置中,计算机包括一个或多个处理器(CPU)、输入/输出接口、网络接口和内存。In a typical configuration, the computer includes one or more processors (CPU), input/output interfaces, network interfaces, and memory.
内存可能包括计算机可读介质中的非永久性存储器,随机存取存储器(RAM)和/或非易失性内存等形式,如只读存储器(ROM)或闪存(flash RAM)。内存是计算机可读介质的示例。The memory may include non-permanent memory in computer readable media, random access memory (RAM) and/or non-volatile memory, such as read-only memory (ROM) or flash memory (flash RAM). Memory is an example of computer readable media.
计算机可读介质包括永久性和非永久性、可移动和非可移动媒体可以由任何方法或技术来实现信息存储。信息可以是计算机可读指令、数据结构、程序的模块或其他数据。计算机的存储介质的例子包括,但不限于相变内存(PRAM)、静态随机存取存储器(SRAM)、动态随机存取存储器(DRAM)、其他类型的随机存取存储器(RAM)、只读存储器(ROM)、电可擦除可编程只读存储器(EEPROM)、快闪记忆体或其他内存技术、只读光盘只读存储器(CD-ROM)、数字多功能光盘(DVD)或其他光学存储、磁盒式磁带、磁盘存储、量子存储器、基于石墨烯的存储介质或其他磁性存储设备或任何其他非传输介质,可用于存储可以被计算设备访问的信息。按照本文中的界定,计算机可读介质不包括暂存电脑可读媒体(transitory media),如调制的数据信号和载波。Computer-readable media include permanent and non-permanent, removable and non-removable media, and information storage can be realized by any method or technology. The information can be computer-readable instructions, data structures, program modules, or other data. Examples of computer storage media include, but are not limited to, phase change memory (PRAM), static random access memory (SRAM), dynamic random access memory (DRAM), other types of random access memory (RAM), read-only memory (ROM), electrically erasable programmable read-only memory (EEPROM), flash memory or other memory technology, CD-ROM, digital versatile disc (DVD) or other optical storage, Magnetic cassettes, disk storage, quantum memory, graphene-based storage media or other magnetic storage devices, or any other non-transmission media, can be used to store information that can be accessed by computing devices. According to the definition in this article, computer-readable media does not include transitory media, such as modulated data signals and carrier waves.
还需要说明的是,术语“包括”、“包含”或者其任何其他变体意在涵盖非排他性的包含,从而使得包括一系列要素的过程、方法、商品或者设备不仅包括那些要素,而且还包括没有明确列出的其他要素,或者是还包括为这种过程、方法、商品或者设备所固有的要素。在没有更多限制的情况下,由语句“包括一个……”限定的要素,并不排除在包括所述要素的过程、方法、商品或者设备中还存在另外的相同要素。It should also be noted that the terms "include", "include" or any other variants thereof are intended to cover non-exclusive inclusion, so that a process, method, commodity or equipment including a series of elements not only includes those elements, but also includes Other elements that are not explicitly listed, or also include elements inherent to such processes, methods, commodities, or equipment. If there are no more restrictions, the element defined by the sentence "including a..." does not exclude the existence of other identical elements in the process, method, commodity, or equipment that includes the element.
上述对本说明书特定实施例进行了描述。其它实施例在所附权利要求书的范围内。在一些情况下,在权利要求书中记载的动作或步骤可以按照不同于实施例中的顺序来执行并且仍然可以实现期望的结果。另外,在附图中描绘的过程不一定要求示出的特定顺序或者连续顺序才能实现期望的结果。在某些实施方式中,多任务处理和并行处理 也是可以的或者可能是有利的。The foregoing describes specific embodiments of this specification. Other embodiments are within the scope of the appended claims. In some cases, the actions or steps described in the claims can be performed in a different order than in the embodiments and still achieve desired results. In addition, the processes depicted in the drawings do not necessarily require the specific order or sequential order shown in order to achieve the desired results. In some embodiments, multitasking and parallel processing are also possible or may be advantageous.
在本说明书一个或多个实施例使用的术语是仅仅出于描述特定实施例的目的,而非旨在限制本说明书一个或多个实施例。在本说明书一个或多个实施例和所附权利要求书中所使用的单数形式的“一种”、“所述”和“该”也旨在包括多数形式,除非上下文清楚地表示其他含义。还应当理解,本文中使用的术语“和/或”是指并包含一个或多个相关联的列出项目的任何或所有可能组合。The terms used in one or more embodiments of this specification are only for the purpose of describing specific embodiments, and are not intended to limit one or more embodiments of this specification. The singular forms "a", "said" and "the" used in one or more embodiments of this specification and the appended claims are also intended to include plural forms, unless the context clearly indicates other meanings. It should also be understood that the term "and/or" as used herein refers to and includes any or all possible combinations of one or more associated listed items.
应当理解,尽管在本说明书一个或多个实施例可能采用术语第一、第二、第三等来描述各种信息,但这些信息不应限于这些术语。这些术语仅用来将同一类型的信息彼此区分开。例如,在不脱离本说明书一个或多个实施例范围的情况下,第一信息也可以被称为第二信息,类似地,第二信息也可以被称为第一信息。取决于语境,如在此所使用的词语“如果”可以被解释成为“在……时”或“当……时”或“响应于确定”。It should be understood that although the terms first, second, third, etc. may be used to describe various information in one or more embodiments of this specification, the information should not be limited to these terms. These terms are only used to distinguish the same type of information from each other. For example, without departing from the scope of one or more embodiments of this specification, the first information may also be referred to as second information, and similarly, the second information may also be referred to as first information. Depending on the context, the word "if" as used herein can be interpreted as "when" or "when" or "in response to determination".
以上所述仅为本说明书一个或多个实施例的较佳实施例而已,并不用以限制本说明书一个或多个实施例,凡在本说明书一个或多个实施例的精神和原则之内,所做的任何修改、等同替换、改进等,均应包含在本说明书一个或多个实施例保护的范围之内。The above descriptions are only preferred embodiments of one or more embodiments of this specification, and are not intended to limit one or more embodiments of this specification. All within the spirit and principle of one or more embodiments of this specification, Any modification, equivalent replacement, improvement, etc. made should be included in the protection scope of one or more embodiments of this specification.

Claims (25)

  1. 一种基于区块链的交通事故处理方法,应用于客户端;其中,所述区块链存储了车辆身份信息和车辆投保详情数据的对应关系;所述方法包括:A method for handling traffic accidents based on a blockchain, applied to a client terminal; wherein the blockchain stores the correspondence between vehicle identity information and vehicle insurance details; the method includes:
    响应于事故参与方用户的操作,获取与事故相关的其他事故参与方用户的车辆身份信息,并查询所述区块链中存储的与所述车辆身份信息对应的车辆投保详情数据;In response to the operation of the accident participant user, obtain the vehicle identity information of other accident participant users related to the accident, and query the vehicle insurance detail data corresponding to the vehicle identity information stored in the blockchain;
    将所述车辆身份信息和所述车辆投保详情数据通过界面向事故参与方用户进行输出显示;Output and display the vehicle identity information and the vehicle insurance details data to the users of the accident participants through the interface;
    响应于所述事故参与方用户对所述车辆身份信息和所述车辆投保详情数据的确认操作,将获取到的事故数据发布至所述区块链进行存证;其中,所述事故数据用于交通事故理赔;所述事故数据包括与所述事故相关的事故参与方用户的车辆身份信息以及与事故现场相关的取证数据的对应关系。In response to the confirmation operation of the vehicle identity information and the vehicle insurance details data by the user of the accident participant, the acquired accident data is published to the blockchain for storage; wherein, the accident data is used for Traffic accident compensation; the accident data includes the vehicle identity information of the accident participant user related to the accident and the corresponding relationship of the forensic data related to the accident scene.
  2. 根据权利要求1所述的方法,所述响应于事故参与方用户的操作,获取与事故相关的其他事故参与方用户的车辆身份信息,包括:The method according to claim 1, wherein in response to an operation of an accident participant user, obtaining vehicle identity information of other accident participant users related to the accident includes:
    响应于事故参与方用户的图像扫描操作,针对与事故相关的其他事故参与方用户的客户端上输出的基于所述车辆身份信息生成的图形编码进行编码识别,以获取其他事故参与方用户的车辆身份信息。In response to the image scanning operation of the user of the accident participant, code recognition is performed on the graphic code generated based on the vehicle identity information output on the client of the user of the other accident participant related to the accident, so as to obtain the vehicle of the user of the other accident participant Identity Information.
  3. 根据权利要求1所述的方法,所述图形编码包括二维码。The method of claim 1, wherein the graphic code includes a two-dimensional code.
  4. 根据权利要求1所述的方法,所述区块链中部署了用于进行事故管理的智能合约;The method according to claim 1, wherein a smart contract for accident management is deployed in the blockchain;
    所述响应于所述事故参与方用户对所述车辆身份信息和所述车辆投保详情数据的确认操作,将获取到的事故数据发布至所述区块链进行存证,包括:The responding to the operation of confirming the vehicle identity information and the vehicle insurance detail data by the user of the accident participant, publishing the acquired accident data to the blockchain for storage, includes:
    响应于所述事故参与方用户对所述车辆身份信息和所述车辆投保详情数据的确认操作,构建用于发起事故上报的第一交易;其中,所述第一交易包括所述与事故现场相关的事故数据;In response to the confirmation operation of the user of the accident participant on the vehicle identity information and the vehicle insurance details data, a first transaction for initiating an accident report is constructed; wherein, the first transaction includes the accident site-related Accident data;
    将所述第一交易发布至所述区块链,以使所述区块链中的节点设备响应于所述第一交易,调用所述智能合约中的校验逻辑,针对所述事故数据进行合法性校验;Publish the first transaction to the block chain, so that the node device in the block chain responds to the first transaction and invokes the verification logic in the smart contract to perform processing on the accident data Legality check;
    如果针对所述事故数据合法性校验通过,进一步调用所述智能合约中的事件生成逻辑,生成与所述事故数据对应的事故事件,并将所述事故事件和所述事故数据关联存储至所述区块链的分布式账本。If the validity of the accident data is verified, the event generation logic in the smart contract is further called to generate an accident event corresponding to the accident data, and the accident event and the accident data are stored in association with each other. Describe the distributed ledger of the blockchain.
  5. 根据权利要求4所述的方法,还包括:The method according to claim 4, further comprising:
    监听所述智能合约生成的事故事件;Monitor the accident event generated by the smart contract;
    响应于监听到的所述事故事件,向所述事故参与方用户输出与所述事故事件对应的提示信息,以提示所述事故参与方用户对所述事故事件发起理赔处理。In response to the monitored accident event, prompting information corresponding to the accident event is output to the accident participant user to prompt the accident participant user to initiate a claim settlement process for the accident event.
  6. 根据权利要求4所述的方法,所述区块链中部署了用于进行事故理赔的智能合约;According to the method of claim 4, a smart contract for accident claims is deployed in the blockchain;
    所述方法还包括:The method also includes:
    响应于事故参与方用户发起的针对所述事故事件的事故理赔操作,构建用于发起事故理赔的第二交易;In response to an accident claim settlement operation for the accident event initiated by an accident participant user, construct a second transaction for initiating an accident claim settlement;
    将所述第二交易发布至所述区块链,以使所述区块链中的节点设备响应于所述第二交易,调用所述智能合约中的验证逻辑,获取所述区块链中存储的由所述事故参与方用户发布的第一事故数据,以及由所述第一事故数据中的其他事故参与方用户发布的第二事故数据,并验证所述第一事故数据与所述第二事故数据是否匹配;Publish the second transaction to the blockchain, so that the node device in the blockchain can respond to the second transaction by calling the verification logic in the smart contract to obtain The stored first accident data issued by the accident participant user and the second accident data issued by the other accident participant users in the first accident data, and verify that the first accident data and the first accident data 2. Whether the accident data matches;
    如果是,进一步调用所述智能合约中的车祸理赔逻辑,对所述事故参与方用户进行车祸理赔处理。If so, further call the car accident compensation logic in the smart contract to perform car accident compensation processing on the accident participant user.
  7. 根据权利要求1所述的方法,所述与事故现场相关的取证数据,包括以下示出的一个或者多个的组合:The method according to claim 1, wherein the forensic data related to the accident scene includes one or a combination of one or more of the following:
    事故发生的时刻、事故发生的地点、与事故现场相关的图像数据。The time of the accident, the location of the accident, and the image data related to the accident scene.
  8. 一种基于区块链的交通事故处理方法,应用于服务设备;其中,所述区块链存储了由事故参与方用户发布的事故数据;所述事故数据包括与事故相关的事故参与方用户的车辆身份信息和与事故现场相关的取证数据的对应关系;所述方法包括:A block chain-based method for handling traffic accidents is applied to service equipment; wherein, the block chain stores accident data released by users of the accident participants; the accident data includes accident-related users of the accident Correspondence between vehicle identity information and forensic data related to the scene of the accident; the method includes:
    响应于针对事故参与方用户的事故理赔,获取所述区块链中存储的由所述事故参与方用户发布的第一事故数据;In response to the settlement of the accident claim for the user of the accident participant, obtaining the first accident data stored in the blockchain and released by the user of the accident participant;
    基于所述第一事故数据确定其他事故参与方用户,并获取所述区块链中存储的由所述其他事故参与方用户发布的第二事故数据;Determine other accident participant users based on the first accident data, and obtain second accident data released by the other accident participant users stored in the blockchain;
    验证所述第一事故数据与所述第二事故数据是否匹配;如果是,对所述事故参与方用户进行车祸理赔处理。It is verified whether the first accident data matches the second accident data; if so, the vehicle accident compensation processing is performed on the user of the accident participant.
  9. 根据权利要求1所述的方法,所述服务设备为所述区块链中的节点设备;所述区块链中部署了用于进行事故管理的智能合约;The method according to claim 1, wherein the service device is a node device in the blockchain; a smart contract for accident management is deployed in the blockchain;
    所述方法还包括:The method also includes:
    接收客户端发送的用于发起事故上报的第一交易;所述第一交易包括所述与事故现场相关的事故数据;Receiving a first transaction sent by the client for initiating an accident report; the first transaction includes the accident data related to the accident scene;
    响应于所述第一交易,调用所述智能合约中的校验逻辑,针对所述事故数据进行合 法性校验;In response to the first transaction, call the verification logic in the smart contract to perform a legality verification on the accident data;
    如果针对所述事故数据合法性校验通过,进一步调用所述智能合约中的事件生成逻辑,创建与所述事故数据对应的事故事件,并将所述事故对象和所述事故数据关联存储至所述区块链的分布式账本。If the validity of the accident data is verified, the event generation logic in the smart contract is further invoked, the accident event corresponding to the accident data is created, and the accident object and the accident data are stored in association with each other. Describe the distributed ledger of the blockchain.
  10. 根据权利要求9所述的方法,还包括:The method according to claim 9, further comprising:
    监听所述智能合约生成的事故事件;Monitor the accident event generated by the smart contract;
    响应于监听到的所述事故事件,向理赔机构发送与所述事故事件对应的提示信息,以提示理赔机构对所述事故事件进行理赔处理。In response to the monitored accident event, prompting information corresponding to the accident event is sent to the claims settlement agency to prompt the claims settlement agency to perform claims processing on the accident event.
  11. 根据权利要求8所述的方法,所述区块链中部署了用于进行事故理赔的智能合约;According to the method of claim 8, a smart contract for accident claims is deployed in the blockchain;
    所述响应于针对事故参与方用户的事故理赔,获取所述区块链中存储的由所述事故参与方用户发布的第一事故数据,基于所述第一事故数据确定其他事故参与方用户,并获取所述区块链中存储的由所述其他事故参与方用户发布的第二事故数据,验证所述第一事故数据与所述第二事故数据是否匹配,包括:In response to the settlement of an accident claim for an accident participant user, acquiring first accident data stored in the blockchain and released by the accident participant user, and determining other accident participant users based on the first accident data, And obtaining the second accident data released by the other accident participant users stored in the blockchain, and verifying whether the first accident data matches the second accident data, including:
    接收所述事故参与方用户通过客户端发送的用于发起事故理赔的第二交易;Receiving a second transaction for initiating accident claims sent by the user of the accident participant through the client terminal;
    响应于所述第二交易,调用所述智能合约中的验证逻辑,获取所述区块链中存储的由所述事故参与方用户发布的第一事故数据,基于所述第一事故数据确定其他事故参与方用户,并获取所述区块链中存储的由所述其他事故参与方用户发布的第二事故数据,验证所述第一事故数据与所述第二事故数据是否匹配;In response to the second transaction, call the verification logic in the smart contract to obtain the first accident data released by the accident participant user stored in the blockchain, and determine other accident data based on the first accident data An accident participant user, and obtain the second accident data stored in the blockchain and released by the other accident participant user, and verify whether the first accident data matches the second accident data;
    所述如果是,对所述事故参与方用户进行车祸理赔处理,包括:The said if yes, the car accident compensation processing for the user of the said accident participant includes:
    如果是,进一步调用所述智能合约中的车祸理赔逻辑,对所述事故参与方用户进行车祸理赔处理。If it is, the car accident compensation logic in the smart contract is further invoked, and the car accident compensation processing is performed on the user of the accident participant.
  12. 根据权利要求11所述的方法,还包括:The method according to claim 11, further comprising:
    在对所述事故参与方用户进行车祸理赔处理完成后,将针对所述事故参与方用户的车祸理赔记录发布至所述区块链进行存证。After the auto accident claim settlement process for the accident participant user is completed, the auto accident claim settlement record for the accident participant user is published to the blockchain for storage.
  13. 一种基于区块链的交通事故处理装置,应用于客户端;其中,所述区块链存储了车辆身份信息和车辆投保详情数据的对应关系;所述装置包括:A block chain-based traffic accident processing device applied to a client terminal; wherein the block chain stores the corresponding relationship between vehicle identity information and vehicle insurance detail data; the device includes:
    第一获取模块,响应于事故参与方用户的操作,获取与事故相关的其他事故参与方用户的车辆身份信息,并查询所述区块链中存储的与所述车辆身份信息对应的车辆投保详情数据;The first obtaining module, in response to the operation of the accident participant user, obtains the vehicle identity information of other accident participant users related to the accident, and queries the vehicle insurance details corresponding to the vehicle identity information stored in the blockchain data;
    输出模块,将所述车辆身份信息和所述车辆投保详情数据通过界面向事故参与方用 户进行输出显示;The output module outputs and displays the vehicle identity information and the vehicle insurance details data to the users of the accident participants through the interface;
    存证模块,响应于所述事故参与方用户对所述车辆身份信息和所述车辆投保详情数据的确认操作,将获取到的事故数据发布至所述区块链进行存证;其中,所述事故数据用于交通事故理赔;所述事故数据包括与所述事故相关的事故参与方用户的车辆身份信息以及与事故现场相关的取证数据的对应关系。The certification module, in response to the confirmation operation of the vehicle identity information and the vehicle insurance details data by the user of the accident participant, publishes the acquired accident data to the blockchain for certification; wherein, the The accident data is used for traffic accident compensation; the accident data includes the vehicle identity information of the accident participant users related to the accident and the corresponding relationship of the forensic data related to the accident scene.
  14. 根据权利要求13所述的装置,所述第一获取模块:The device according to claim 13, the first obtaining module:
    响应于事故参与方用户的图像扫描操作,针对与事故相关的其他事故参与方用户的客户端上输出的基于所述车辆身份信息生成的图形编码进行编码识别,以获取其他事故参与方用户的车辆身份信息。In response to the image scanning operation of the user of the accident participant, code recognition is performed on the graphics code generated based on the vehicle identity information output on the client of the user of the other accident participant related to the accident, so as to obtain the vehicle of the user of the other accident participant Identity Information.
  15. 根据权利要求13所述的装置,所述图形编码包括二维码。The apparatus according to claim 13, wherein the graphic code includes a two-dimensional code.
  16. 根据权利要求13所述的装置,所述区块链中部署了用于进行事故管理的智能合约;The device according to claim 13, wherein a smart contract for accident management is deployed in the blockchain;
    所述存证模块:The deposit module:
    响应于所述事故参与方用户对所述车辆身份信息和所述车辆投保详情数据的确认操作,构建用于发起事故上报的第一交易;其中,所述第一交易包括所述与事故现场相关的事故数据;In response to the confirmation operation of the user of the accident participant on the vehicle identity information and the vehicle insurance details data, a first transaction for initiating an accident report is constructed; wherein, the first transaction includes the accident site-related Accident data;
    将所述第一交易发布至所述区块链,以使所述区块链中的节点设备响应于所述第一交易,调用所述智能合约中的校验逻辑,针对所述事故数据进行合法性校验;Publish the first transaction to the block chain, so that the node device in the block chain responds to the first transaction and invokes the verification logic in the smart contract to perform processing on the accident data Legality check;
    如果针对所述事故数据合法性校验通过,进一步调用所述智能合约中的事件生成逻辑,生成与所述事故数据对应的事故事件,并将所述事故事件和所述事故数据关联存储至所述区块链的分布式账本。If the validity of the accident data is verified, the event generation logic in the smart contract is further called to generate an accident event corresponding to the accident data, and the accident event and the accident data are stored in association with each other. Describe the distributed ledger of the blockchain.
  17. 根据权利要求16所述的装置,还包括:The apparatus according to claim 16, further comprising:
    第一监听模块,监听所述智能合约生成的事故事件;响应于监听到的所述事故事件,向所述事故参与方用户输出与所述事故事件对应的提示信息,以提示所述事故参与方用户对所述事故事件发起理赔处理。The first monitoring module monitors the accident event generated by the smart contract; in response to the monitored accident event, output prompt information corresponding to the accident event to the accident participant user to prompt the accident participant The user initiates claims processing for the accident event.
  18. 根据权利要求16所述的装置,所述区块链中部署了用于进行事故理赔的智能合约;The device according to claim 16, wherein a smart contract for accident claims is deployed in the blockchain;
    所述装置还包括:The device also includes:
    第一理赔模块,响应于事故参与方用户发起的针对所述事故事件的事故理赔操作,构建用于发起事故理赔的第二交易;将所述第二交易发布至所述区块链,以使所述区块链中的节点设备响应于所述第二交易,调用所述智能合约中的验证逻辑,获取所述区块 链中存储的由所述事故参与方用户发布的第一事故数据,以及由所述第一事故数据中的其他事故参与方用户发布的第二事故数据,并验证所述第一事故数据与所述第二事故数据是否匹配;如果是,进一步调用所述智能合约中的车祸理赔逻辑,对所述事故参与方用户进行车祸理赔处理。The first claim settlement module, in response to the accident settlement operation initiated by the accident participant user for the accident event, constructs a second transaction for initiating the accident settlement; publishes the second transaction to the blockchain, so that In response to the second transaction, the node device in the blockchain calls the verification logic in the smart contract to obtain the first accident data stored in the blockchain and released by the accident participant user, And the second accident data issued by other accident participant users in the first accident data, and verify whether the first accident data matches the second accident data; if so, further call the smart contract The car accident claim settlement logic of the said accident participant user is processed for the car accident claim settlement process.
  19. 一种基于区块链的交通事故处理装置,应用于服务设备;其中,所述区块链存储了由事故参与方用户发布的事故数据;所述事故数据包括与事故相关的事故参与方用户的车辆身份信息和与事故现场相关的取证数据的对应关系;所述装置包括:A block chain-based traffic accident processing device, applied to service equipment; wherein the block chain stores accident data released by users of the accident participants; the accident data includes accident-related users of the accident Correspondence between vehicle identity information and forensic data related to the scene of the accident; the device includes:
    第二获取模块,响应于针对事故参与方用户的事故理赔,获取所述区块链中存储的由所述事故参与方用户发布的第一事故数据;基于所述第一事故数据确定其他事故参与方用户,并获取所述区块链中存储的由所述其他事故参与方用户发布的第二事故数据;The second acquisition module, in response to accident claims for the accident participant user, obtains the first accident data released by the accident participant user stored in the blockchain; and determines other accident participation based on the first accident data Party users, and obtain the second accident data stored in the blockchain and released by the other accident participant users;
    验证模块,验证所述第一事故数据与所述第二事故数据是否匹配;A verification module to verify whether the first accident data matches the second accident data;
    第二理赔模块,如果是,对所述事故参与方用户进行车祸理赔处理。The second claim settlement module, if yes, performs a car accident claim settlement process on the user of the accident participant.
  20. 根据权利要求19所述的装置,所述服务设备为所述区块链中的节点设备;所述区块链中部署了用于进行事故管理的智能合约;The apparatus according to claim 19, wherein the service device is a node device in the blockchain; a smart contract for accident management is deployed in the blockchain;
    所述装置还包括:The device also includes:
    生成模块,接收客户端发送的用于发起事故上报的第一交易;所述第一交易包括所述与事故现场相关的事故数据;响应于所述第一交易,调用所述智能合约中的校验逻辑,针对所述事故数据进行合法性校验;如果针对所述事故数据合法性校验通过,进一步调用所述智能合约中的事件生成逻辑,创建与所述事故数据对应的事故事件,并将所述事故对象和所述事故数据关联存储至所述区块链的分布式账本。The generation module receives the first transaction sent by the client for initiating an accident report; the first transaction includes the accident data related to the accident scene; in response to the first transaction, calls the school in the smart contract Verification logic to verify the legitimacy of the accident data; if the legitimacy verification of the accident data passes, the event generation logic in the smart contract is further invoked to create an accident event corresponding to the accident data, and The accident object and the accident data are associated and stored in the distributed ledger of the blockchain.
  21. 根据权利要求20所述的装置,所述装置还包括:The device according to claim 20, further comprising:
    第二监听模块,监听所述智能合约生成的事故事件;响应于监听到的所述事故事件,向理赔机构发送与所述事故事件对应的提示信息,以提示理赔机构对所述事故事件进行理赔处理。The second monitoring module monitors the accident event generated by the smart contract; in response to the monitored accident event, sends prompt information corresponding to the accident event to the claims settlement agency to prompt the claims settlement agency to settle the accident event deal with.
  22. 根据权利要求19所述的装置,所述区块链中部署了用于进行事故理赔的智能合约;The device according to claim 19, wherein a smart contract for accident claims is deployed in the blockchain;
    所述验证模块:The verification module:
    接收所述事故参与方用户通过客户端发送的用于发起事故理赔的第二交易;Receiving a second transaction for initiating accident claims sent by the user of the accident participant through the client terminal;
    响应于所述第二交易,调用所述智能合约中的验证逻辑,获取所述区块链中存储的由所述事故参与方用户发布的第一事故数据,基于所述第一事故数据确定其他事故参与方用户,并获取所述区块链中存储的由所述其他事故参与方用户发布的第二事故数据, 验证所述第一事故数据与所述第二事故数据是否匹配;In response to the second transaction, call the verification logic in the smart contract to obtain the first accident data released by the accident participant user stored in the blockchain, and determine other accident data based on the first accident data An accident participant user, and obtain the second accident data stored in the blockchain and released by the other accident participant users, and verify whether the first accident data matches the second accident data;
    所述第二理赔模块:The second claim settlement module:
    如果是,进一步调用所述智能合约中的车祸理赔逻辑,对所述事故参与方用户进行车祸理赔处理。If it is, the car accident compensation logic in the smart contract is further invoked, and the car accident compensation processing is performed on the user of the accident participant.
  23. 根据权利要求22所述的装置,所述第二理赔模块进一步:According to the device of claim 22, the second claims settlement module further:
    在对所述事故参与方用户进行车祸理赔处理完成后,将针对所述事故参与方用户的车祸理赔记录发布至所述区块链进行存证。After the auto accident claim settlement process for the accident participant user is completed, the auto accident claim settlement record for the accident participant user is published to the blockchain for storage.
  24. 一种电子设备,包括:An electronic device including:
    处理器;processor;
    用于存储处理器可执行指令的存储器;A memory for storing processor executable instructions;
    其中,所述处理器通过运行所述可执行指令以实现如权利要求1-7或者8-12中任一项所述的方法。Wherein, the processor executes the executable instruction to implement the method according to any one of claims 1-7 or 8-12.
  25. 一种计算机可读存储介质,其上存储有计算机指令,该指令被处理器执行时实现如权利要求1-7或者8-12中任一项所述方法的步骤。A computer-readable storage medium having computer instructions stored thereon, which, when executed by a processor, implements the steps of the method according to any one of claims 1-7 or 8-12.
PCT/CN2021/085161 2020-04-15 2021-04-02 Blockchain-based traffic accident processing WO2021208754A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN202010297216.4 2020-04-15
CN202010297216.4A CN111506652B (en) 2020-04-15 2020-04-15 Traffic accident handling method and device based on block chain and electronic equipment

Publications (1)

Publication Number Publication Date
WO2021208754A1 true WO2021208754A1 (en) 2021-10-21

Family

ID=71872851

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2021/085161 WO2021208754A1 (en) 2020-04-15 2021-04-02 Blockchain-based traffic accident processing

Country Status (2)

Country Link
CN (1) CN111506652B (en)
WO (1) WO2021208754A1 (en)

Families Citing this family (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111506652B (en) * 2020-04-15 2021-07-23 支付宝(杭州)信息技术有限公司 Traffic accident handling method and device based on block chain and electronic equipment
CN112199446B (en) * 2020-12-01 2021-05-28 支付宝(杭州)信息技术有限公司 Method, device, equipment and storage medium for storing article circulation records
CN112637349A (en) * 2020-12-25 2021-04-09 深圳市爱培科技术股份有限公司 Traffic incident information sharing method and device based on block chain and terminal
CN114155464B (en) * 2021-11-29 2022-11-25 北京中交兴路信息科技有限公司 Video data storage method and device, storage medium and terminal

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109190402A (en) * 2018-09-13 2019-01-11 北京京东尚科信息技术有限公司 A kind of casualty data wiring method and device, equipment, storage medium
CN109741226A (en) * 2018-12-29 2019-05-10 百度在线网络技术(北京)有限公司 Traffic accident treatment method, apparatus, server and medium based on block chain
CN110601847A (en) * 2019-09-05 2019-12-20 北京海益同展信息科技有限公司 Accident processing method, device and system
CN110689460A (en) * 2019-10-09 2020-01-14 腾讯科技(深圳)有限公司 Traffic accident data processing method, device, equipment and medium based on block chain
CN111506652A (en) * 2020-04-15 2020-08-07 支付宝(杭州)信息技术有限公司 Traffic accident handling method and device based on block chain and electronic equipment

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106231551A (en) * 2016-07-29 2016-12-14 深圳市永兴元科技有限公司 Vehicle insurance based on mobile communications network Claims Resolution method and device
CN108898390B (en) * 2018-06-27 2021-01-12 创新先进技术有限公司 Intelligent contract calling method and device based on block chain and electronic equipment
CN109325867A (en) * 2018-08-21 2019-02-12 平安科技(深圳)有限公司 Processing method, system, server and the medium of vehicle insurance data based on block chain

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109190402A (en) * 2018-09-13 2019-01-11 北京京东尚科信息技术有限公司 A kind of casualty data wiring method and device, equipment, storage medium
CN109741226A (en) * 2018-12-29 2019-05-10 百度在线网络技术(北京)有限公司 Traffic accident treatment method, apparatus, server and medium based on block chain
CN110601847A (en) * 2019-09-05 2019-12-20 北京海益同展信息科技有限公司 Accident processing method, device and system
CN110689460A (en) * 2019-10-09 2020-01-14 腾讯科技(深圳)有限公司 Traffic accident data processing method, device, equipment and medium based on block chain
CN111506652A (en) * 2020-04-15 2020-08-07 支付宝(杭州)信息技术有限公司 Traffic accident handling method and device based on block chain and electronic equipment

Also Published As

Publication number Publication date
CN111506652B (en) 2021-07-23
CN111506652A (en) 2020-08-07

Similar Documents

Publication Publication Date Title
WO2021208754A1 (en) Blockchain-based traffic accident processing
CN110766550B (en) Asset query method and device based on block chain and electronic equipment
WO2021008123A1 (en) Blockchain-based service processing method and apparatus, and electronic device
CN113836227B (en) Asset purchasing method and device based on blockchain and electronic equipment
CN110706114B (en) Block chain-based default asset processing method and device and electronic equipment
CN111681017B (en) Goods batch true checking method and device based on block chain and electronic equipment
CN111539731A (en) Block chain-based federal learning method and device and electronic equipment
WO2020220761A1 (en) Method and device for signing payment deduction agreement employing blockchain, and electronic apparatus.
US11556924B2 (en) Blockchain-based payment withholding and agreement signing method, apparatus, and electronic device
KR20180114939A (en) Systems and methods for controlling asset-related activities through block chaining
CN112101938B (en) Digital seal using method and device based on block chain and electronic equipment
WO2021017429A1 (en) Blockchain-based note real name claim method and apparatus, and electronic device
TWI727281B (en) Block chain-based data processing method and device, and electronic equipment
CN110738566A (en) asset screening method and device based on block chain and electronic equipment
WO2021017437A1 (en) Blockchain-based note verification method and apparatus, electronic device, and storage medium
WO2021120537A1 (en) Blockchain-based infringement evidence collection method and apparatus, electronic device, and storage medium
WO2021017442A1 (en) Method and device for electronic negotiable instrument reimbursement based on blockchain, and electronic device
TW202107457A (en) Blockchain-based bill number allocation method and apparatus, and electronic device
KR102537774B1 (en) Systems and methods that provide specialized proof of confidential knowledge
CN112200567B (en) Resource management method and device based on block chain and electronic equipment
CN112200571A (en) Resource distribution method and device based on block chain and electronic equipment
CN111383114A (en) Asset information management method and device based on block chain
WO2020220742A1 (en) Method and device for anchoring data on a block chain at a given time, and electronic device
CN111738724B (en) Cross-border resource transfer authenticity auditing method and device, and electronic equipment
CN111753335A (en) Editing method and device for block content

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 21787706

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 21787706

Country of ref document: EP

Kind code of ref document: A1