CN111738861A - Method and device for carrying out rights and interests accumulation through block chain - Google Patents

Method and device for carrying out rights and interests accumulation through block chain Download PDF

Info

Publication number
CN111738861A
CN111738861A CN202010759868.5A CN202010759868A CN111738861A CN 111738861 A CN111738861 A CN 111738861A CN 202010759868 A CN202010759868 A CN 202010759868A CN 111738861 A CN111738861 A CN 111738861A
Authority
CN
China
Prior art keywords
share
node
data
intelligent contract
equity
Prior art date
Legal status (The legal status 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 status listed.)
Pending
Application number
CN202010759868.5A
Other languages
Chinese (zh)
Inventor
胡多峰
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Alipay Hangzhou Information Technology Co Ltd
Original Assignee
Alipay Hangzhou Information Technology Co Ltd
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 Alipay Hangzhou Information Technology Co Ltd filed Critical Alipay Hangzhou Information Technology Co Ltd
Priority to CN202010759868.5A priority Critical patent/CN111738861A/en
Publication of CN111738861A publication Critical patent/CN111738861A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • 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
    • 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
    • G06Q20/00Payment architectures, schemes or protocols
    • G06Q20/38Payment protocols; Details thereof
    • G06Q20/382Payment protocols; Details thereof insuring higher security of transaction
    • 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

Abstract

The embodiment of the specification provides a method and a device for carrying out equity accumulation through a block chain, wherein an intelligent contract is deployed in advance in the block chain, and the intelligent contract comprises accumulation logic. According to the method, firstly, the service platform responds to a predetermined behavior event of a user, determines a first right of issuing a first share to the user, and generates corresponding first data. Under the condition that the service platform is positioned outside the block chain network, the service platform sends a request for calling the intelligent contract to a node in the block chain network based on the first data; in the case where the service platform is a node in a blockchain network, then a first transaction is generated that invokes the smart contract based on the first data. In this way, each node in the blockchain network executes accumulation logic in the intelligent contract based on the first data, thereby accumulating the first share in the blockchain.

Description

Method and device for carrying out rights and interests accumulation through block chain
Technical Field
One or more embodiments of the present disclosure relate to the field of computer technology, and more particularly, to a method and apparatus for equity accumulation using a blockchain.
Background
With the development of society, more and more service platforms are emerging to provide various services for users so as to meet various requirements of the users in life and work. In order to help the user find the service meeting the requirement of the user, the service platform can select a mode of issuing rights and interests to the user, and attract the user to experience a certain service or a plurality of services pushed by the platform. These benefits may be, for example, gifted insurance (referred to as gifts), usage rights for certain services (e.g., VIP membership rights for video platforms), etc. In some cases, the issued equity may relate to other platforms, e.g., insurance equity may relate to an insurance company, membership rights to a video platform may relate to a video platform, etc. Moreover, the amount of some rights and interests can be accumulated, such as insurance premium, so that the service platform can issue the rights and interests for many times to accumulate the amount of the rights and interests. However, in general, the issued equity information is only stored in the service platform that issued the equity. Therefore, for the user, certain uncertainty exists in whether the rights and interests are really valid, whether the rights and interests are expired or not, and whether the multiple issuing is accumulated successfully or not, so that the trust degree and the service experience of the user are influenced.
Therefore, a method is needed to improve the security and reliability of the rights and interests data and enhance the user experience in the process of issuing the rights and interests to the user.
Disclosure of Invention
One or more embodiments of the present disclosure describe a method and a corresponding apparatus for equity accumulation by means of a block chain, by which reliability of equity issue and accumulation can be improved and user experience can be improved.
According to a first aspect, there is provided a method for equity accumulation by a blockchain, the blockchain having a first intelligent contract deployed therein, the first intelligent contract comprising accumulation logic, the method performed by a service platform, comprising:
in response to a first behavioral event of a first user, determining to issue a first share of a first entitlement to the first user;
generating first data relating to the issuance of the first equity, including a first identification of the first equity, and the first share;
issuing a first request for invoking the first intelligent contract to a first node in a blockchain network based on the first data, so that each node in the blockchain network executes the first intelligent contract based on the first data, thereby accumulating the first share in an existing share corresponding to the first identifier in the blockchain by executing the accumulation logic.
In various embodiments, the first behavioral event includes at least one of: logging in the service platform, sharing the information of the service platform, and paying for a preset number of times or a preset amount by using the service platform to complete the operation task set by the service platform.
In one embodiment, the first equity is an insurance equity, the first identifier is a policy identifier, and the first share is an insurance amount.
According to one embodiment, the accumulation logic comprises: reading the maximum share corresponding to the right identification to be processed, the existing share and the share to be accumulated; judging whether the sum of the existing share and the share to be accumulated is smaller than the maximum share; if so, determining the sum value as an accumulated share; otherwise, the maximum share is determined as the accumulated share.
Further, in one example, the first request corresponds to a first transaction, and the data field of the first transaction includes the following variable assignment information: and assigning the first identifier to the to-be-processed rights and interests identifier, and assigning the first share to the to-be-accumulated share.
According to one embodiment, the first intelligent contract further comprises verification logic for verifying the user information and/or the equity information; accordingly, executing the first intelligent contract based on the first data includes executing the validation logic based on the first data and, if validation passes, executing the accumulation logic.
Further, in various embodiments, executing the verification logic based on the first data includes executing one or more of: verifying whether the user information of the first user is legal or not; verifying whether the form of the first share is legitimate; and verifying whether the first right corresponding to the first identifier is valid.
In one embodiment, before issuing a first request to invoke the first intelligent contract to a first node in a blockchain network based on the first data, the method further comprises: and determining a node closest to the first node from the plurality of nodes of the block chain network as the first node.
According to one embodiment, the blockchain network further comprises a second node corresponding to a platform associated with the use of the first interest.
Further, in one example, the second node is a server of an insurance company when the first rights and interests are insurance rights and interests.
In one example, the blockchain network further includes a third node corresponding to the regulatory body.
According to a second aspect, there is provided a method for equity accumulation over a blockchain, the blockchain having a first intelligent contract deployed therein, the first intelligent contract comprising accumulation logic, the method being performed by a service platform, the service platform being a node in a blockchain network, the method comprising:
in response to a first behavioral event of a first user, determining to issue a first share of a first entitlement to the first user;
generating first data relating to the issuance of the first equity, including a first identification of the first equity, and the first share;
generating a first transaction invoking the first intelligent contract based on the first data to cause each node in the blockchain network to execute the first intelligent contract based on the first data, thereby accumulating the first share in the blockchain to an existing share corresponding to the first identifier by executing the accumulation logic.
According to a third aspect, there is provided an apparatus for equity accumulation through a blockchain, the blockchain having a first intelligent contract deployed therein, the first intelligent contract comprising accumulation logic, the apparatus being deployed in a service platform, comprising:
a rights and interests determination unit configured to determine a first rights and interests for issuing a first share to a first user in response to a first behavior event of the first user;
a data generating unit configured to generate first data related to issuance of the first right, including a first identifier of the first right, and the first share;
a request unit configured to issue a first request for invoking the first intelligent contract to a first node in a blockchain network based on the first data, so that each node in the blockchain network executes the first intelligent contract based on the first data, thereby accumulating the first share in an existing share corresponding to the first identifier in the blockchain by executing the accumulation logic.
According to a fourth aspect, there is provided an apparatus for equity accumulation over a blockchain, the blockchain having a first intelligent contract deployed therein, the first intelligent contract comprising accumulation logic, the apparatus being deployed in a service platform, and the service platform being a node in a blockchain network, the apparatus comprising:
a rights and interests determination unit configured to determine a first rights and interests for issuing a first share to a first user in response to a first behavior event of the first user;
a data generating unit configured to generate first data related to issuance of the first right, including a first identifier of the first right, and the first share;
a transaction generating unit configured to generate a first transaction invoking the first intelligent contract based on the first data, so that each node in the blockchain network executes the first intelligent contract based on the first data, thereby accumulating the first share in the blockchain to an existing share corresponding to the first identifier by executing the accumulation logic.
According to a fifth aspect, there is provided a computer readable storage medium having stored thereon a computer program which, when executed in a computer, causes the computer to perform the method of the first or second aspect.
According to a sixth aspect, there is provided a computing device comprising a memory and a processor, wherein the memory has stored therein executable code, and wherein the processor, when executing the executable code, implements the method of the first or second aspect.
According to the method and the device provided by the embodiment of the specification, under the condition that the service platform determines the right of issuing a certain quota to the user, the service platform calls the intelligent contract deployed in the block chain, so that each node in the block chain network executes the intelligent contract, and the currently issued quota is accumulated through the accumulation logic in the intelligent contract. Therefore, by utilizing the characteristic that data in the block chain cannot be tampered, the rights and interests are more reliably issued and accumulated.
Drawings
In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the drawings needed to be used in the description of the embodiments are briefly introduced below, and it is obvious that the drawings in the following description are only some embodiments of the present invention, and it is obvious for those skilled in the art to obtain other drawings based on these drawings without creative efforts.
FIG. 1A is a schematic diagram of a process for creating an intelligent contract in a blockchain network;
FIG. 1B is a schematic diagram of a process for invoking the intelligent contract created in FIG. 1A in a blockchain network;
FIG. 2 is a schematic diagram illustrating an implementation scenario of an embodiment disclosed herein;
FIG. 3 illustrates a flow diagram of a method for equity accumulation over a blockchain in one embodiment;
FIG. 4 illustrates a specific example of a first smart contract;
FIG. 5 is a schematic diagram illustrating an implementation scenario of another embodiment disclosed in the present specification;
FIG. 6 is a flow diagram illustrating a method for equity accumulation over a blockchain in one embodiment;
FIG. 7 shows a schematic block diagram of an apparatus for equity accumulation over a blockchain, according to one embodiment;
fig. 8 shows a schematic block diagram of an apparatus for equity accumulation over a blockchain according to another embodiment.
Detailed Description
The scheme provided by the specification is described below with reference to the accompanying drawings.
As described above, in the existing equity issuance and accumulation process, the service platform itself stores equity issuance related data and processes the accumulation of equity shares together with the equity usage related party. This easily causes the user to question the validity and security of the data, affecting the user experience. In view of this, in the embodiments of the present specification, it is proposed to accumulate the rights and interests information by using a block chain technology and an intelligent contract, so that the rights and interests data are traceable, not falsifiable, and guaranteed in validity.
As known to those skilled in the art, a blockchain network is a distributed storage and recording system, which includes a plurality of nodes, and each node can communicate transaction data with each other, where a transaction Tx is a basic storage unit in a block, and various data to be stored in a chain is generally recorded in the form of a transaction Tx as a carrier. In the current mainstream blockchain, one block can store hundreds of transactions. It should be noted that a node referred to herein, which may also be referred to as a full node or accounting node, is a computing device that may generate new blocks and link the blocks based on the transaction Tx. Typically, the blockchain network may be a federation chain, in which a plurality of organizations are agreed as accounting nodes, and the transactions to be recorded next are agreed by agreed consensus mechanisms, such as PoS equity certification agreement, BFT (Byzantine Fault Tolerance agreement), etc., and the transaction contents are packaged into blocks and mounted on the blockchain.
Further, more and more blockchain networks support intelligent contracts, thereby enabling richer functionality in blockchains. An intelligent contract is program logic that can be automatically executed, and is written into a blockchain in a digital form after being issued or created, and is executed by each node in the blockchain network.
FIG. 1A is a schematic diagram of a process for creating an intelligent contract in a blockchain network. More specifically, FIG. 1A is described in connection with an Etherhouse. Suppose a node, Bob wants to issue a piece of smart Contract 1, which contains operations on variables x, y. Bob may issue the contract in the form of a transaction. Specifically, Bob can initiate a transaction Tx, the from field of the initiator in the transaction content is Bob (more specifically, the address of Bob), and the to field of the receiver is set to null; the transaction content also includes a Data field containing a code after compiling the intelligent contract into byte codes. After Bob publishes such a transaction to the blockchain network, the accounting node adds it to the blockchain through a consensus mechanism. In this process, a contract address, such as 0x6f …, is also assigned to the smart contract according to an algorithm, such as hashing based on the publisher address. Thus, an intelligent contract corresponds to a contract address, which is not formally different from the user's account address.
After the above intelligent contract is packed and linked, any user in the block chain network can call the intelligent contract. Fig. 1B is a schematic diagram of a process for invoking the intelligent contract created in fig. 1A in a blockchain network. Assuming that Alice in the blockchain network wants to invoke the above intelligent contract, the node can initiate a transaction to make the contract invocation.
Specifically, in the transaction content, the from field may be the address of the caller Alice, and the to field is the contract address 0x6f … of the intelligent contract, which represents the intelligent contract invoked by the transaction. In the Data field, the method or function name in the contract to be called and the incoming parameters, e.g., the value x0 of variable x, are contained. After other nodes receive the transaction, the virtual machine in the node executes the operation corresponding to the contract logic, and realizes the change of the contract state on the network through a consensus mechanism, including the change of the variable value in the contract. When any node in the network looks at the variable of the contract, it finds that the value of the variable x in the contract becomes x 0.
Based on the characteristics of the above block chain and the intelligent contract, in the embodiment of the present specification, the issuance and accumulation of the rights and interests are realized through the intelligent contract. Fig. 2 is a schematic view of an implementation scenario of an embodiment disclosed in this specification. The implementation scenario involves a service platform and a blockchain network. The following description is made separately.
In the scenario of fig. 2, the service platform may be a computing platform outside of the blockchain network. The service platform can provide predetermined service for the user and issue certain rights and interests to the user as rewards when the user executes the behavior events set by the service platform. For example, the service platform may be a travel service platform, such as a pig travel, and when the user completes the operation behavior specified by the platform (e.g., successfully places an order for a target travel product), the travel service platform may issue a bonus, such as a certain amount of bonus insurance (e.g., a travel insurance), to the user. Moreover, the rights and interests can be issued for multiple times, and the quota of the rights and interests can be accumulated, for example, gift insurance can be issued for multiple times, and the insurance amount can be accumulated.
In order to improve the reliability of equity issuance and share accumulation, the service platform can realize the equity share accumulation through a block chain network and an intelligent contract. In accordance with embodiments of the present specification, intelligent contracts SC for equity share accumulation, which may contain executable, equity share accumulation logic, are deployed in advance into a blockchain. For example, the intelligent contract SC may be created and issued by a node, as shown in fig. 1A, so that the contract SC is recorded in the blockchain and deployed to various nodes of the blockchain network.
On this basis, when the service platform determines that a certain equity share should be issued to the user, the service platform may invoke the above-mentioned intelligent contract SC through a certain node (exemplarily shown as node a in fig. 2) in the blockchain network. Therefore, each node accumulates the equity shares to be issued by executing the accumulation logic in the intelligent contract SC, and the state after accumulation realizes synchronization in each node. Therefore, the issuing and accumulation of the rights and interests data can be traced but cannot be tampered, and the method is more reliable.
The following describes a specific implementation procedure of the equity accumulation performed by the service platform in the scenario of fig. 2.
Fig. 3 illustrates a flow diagram of a method for equity accumulation over a blockchain in one embodiment. The method flow is executed by a service platform located outside the blockchain network. The service platform may be implemented by any device, platform, or cluster of devices having computing, processing capabilities. In different embodiments, the service platform may specifically be an electronic payment platform (e.g., pay for treasure), a travel service platform (e.g., pig travel), an e-commerce service platform (e.g., Taobao), and so on. And, a first intelligent contract has been previously deployed in the blockchain network, the first intelligent contract including accumulation logic for performing equity accumulation.
As shown in FIG. 3, first at step 31, the service platform determines a first interest in issuing a first share to a first user in response to a first behavioral event of the first user. The first action event may be an operation action preset by the service platform, and is usually an operation action that encourages the user to perform, for example, login to the service platform, share information of the service platform, pay a predetermined number of times or a predetermined amount using the service platform, complete an operation task set by the service platform, and the like.
Correspondingly, the first equity may be an accumulated user equity issued by the service platform to the user for incentivizing the user. The first benefit may be embodied in a variety of forms in different embodiments. In one example, the first equity may be a complimentary insurance, such as a travel insurance, flight delay insurance, critical illness, etc., and the first amount may be an insurance premium accordingly. In another example, the first interest may be a usage right of a specific service, for example, a VIP membership right of a video website, an e-book reading right, and the like, and accordingly, the first quota may be a limited period of the right. In another example, the first interest may be a quantifiable virtual product, such as data traffic, airtime, cloud disk space, etc., and correspondingly, the first share may be a quantified value of the virtual product, such as traffic packet size, free airtime, space size, etc. In other examples, the first benefit may be in other forms of benefits, not listed here.
Specifically, in one embodiment, the service platform is a travel service platform. Whenever a user successfully subscribes to a travel order, the travel service platform may determine to offer the user an amount of travel insurance as his user interest.
In another embodiment, the service platform is an electronic payment platform. The electronic payment platform may determine to issue a data traffic packet of a certain size to the user each time the user successfully performs a face-brushing payment.
In yet another embodiment, the service platform is an e-commerce platform. Whenever a user shares the products of the e-commerce platform with friends, the e-commerce platform may determine a week of VIP membership rights to deliver the video website to the user.
It should be noted that the first rights above are issued by the service platform, but the usage of the rights may be related to another service party. For example, when the first equity is a gift, the use of the equity is related to the insurance company; when the first interest is, for example, VIP affiliate rights of a video site, the use of the interest is associated with the video site.
Next, at step 32, first data is generated relating to the issuance of the first equity, including at least a first identification of the first equity, and the first share.
In one example, the first equity is an insurance equity. In this case, the first identifier may be an insurance policy identifier (e.g., an insurance policy number), and the first quota is the amount of insurance newly added this time. In one example, the first benefit is a particular service usage right. In this case, the first identifier may be an authority identifier (e.g. a member number), and the first quota may be a lifetime of the newly added authority.
In some embodiments, the first data may also include user information of the first user and/or entitlement information related to the first entitlement. For example, the user information of the first user may specifically be information such as a user ID, a name, an identification number, and the like of the first user. The right information of the first right may specifically include information of a validity period, a maximum share, additional terms, and the like of the first right.
Then, in step 33, a first request for invoking a first intelligent contract is issued to a first node in the blockchain network based on the first data, so that each node in the blockchain network executes the first intelligent contract based on the first data. As previously described, the first intelligent contract includes accumulation logic. In this manner, each node, by executing the accumulation logic, accumulates the first share to the existing equity shares corresponding to the first identifier.
As previously described, the blockchain network includes a plurality of nodes. Therefore, the service platform can select any node to send out the first request. In one embodiment, the service platform may determine a node closest to the first node from a plurality of nodes in the blockchain network as the first node, and issue the first request. The nearest node may be a physically nearest node or a nearest connection node determined from the viewpoint of network connection.
Further, as previously described, invocation of the smart contract is accomplished by initiating a transaction. In one embodiment, the service platform generates a first transaction as the first request, the first transaction including data content of the first data in step 33. In another embodiment, the service platform sends the first data to the first node in a first request, so that the first node generates a first transaction containing the first data. In any case, the generated first transaction contains the data content of the first data, and more specifically, the first transaction passes the first identifier and the first share as parameters in its data field into the accumulation logic of the first intelligent contract. As such, the shares for the first equity are accumulated by executing accumulation logic in the first intelligent contract.
In one embodiment, the accumulation logic comprises calculation logic for direct accumulation of: reading the existing share B and the current share M to be accumulated corresponding to the to-be-processed rights and interests identifier I, and calculating the sum of the current share M to be accumulated and the existing share B to be used as the accumulated share, namely the updated existing share B'. In this way, the first share is directly accumulated by assigning a first identifier to the pending interest identifier I in a first transaction and assigning the first share to the pending share M.
In another embodiment, the accumulation logic includes calculation logic to accumulate the following conditional accumulation with a quota: reading a maximum share L corresponding to the rights and interests identifier I to be processed, namely an existing share B and a share M to be accumulated; judging whether the sum of the existing share B and the share M to be accumulated is smaller than the maximum share L, namely judging whether B + M is smaller than L; if so, determining the sum B + M as an accumulated share; otherwise, the maximum share L is determined as the accumulated share. The accumulated share is the updated existing share B' and is used as the basis for accumulating next time.
For the above conditional accumulation, similarly, in the first transaction, the first identifier is assigned to the pending equity identifier I, and the first share is assigned to the to-be-accumulated share M. The value of the maximum share L may also be entered via the first transaction, or may be entered via the transaction when the share of the right to the first identifier is first processed by the first smart contract, and then may not be entered. Thus, the conditional accumulation is performed on the first share by performing the accumulation logic in the first intelligent contract through the assignment of the first transaction and the setting of the accumulation logic.
In one embodiment, the first intelligent contract further comprises verification logic for verifying the user information and/or the equity information. In this case, in the process of executing the first intelligent contract based on the first data, the node first executes the check logic based on the first data, and if the check is passed, the node then executes the accumulation logic.
In particular, performing the verification logic based on the first data may include performing a plurality of verification contents.
In one embodiment, performing the verification logic includes verifying that the user information of the first user is legitimate. More specifically, this may include verifying whether the user ID of the first user at the service platform is legitimate, whether the user name and identification number are legitimate, and the like. Certain benefits, such as insurance benefits for certain items, may limit the age of the user, such as requiring more than 16 years and less than 60 years. In such a case, the checking of the user information may further include obtaining the user age from the identification card information, and checking whether the user age is out of limit.
In one embodiment, performing the checking logic includes checking whether the form of the first share is legitimate, such as whether the format meets requirements, whether a range of values meets requirements (e.g., the maximum possible amount of such rights must not be exceeded), and so forth.
In one embodiment, performing the verification logic includes verifying whether the first entitlement corresponding to the first identification is valid. For example, where the first benefit is an insurance benefit, it is verified whether the first identified policy number is in fact present, whether the policy has expired, and so on.
In other embodiments, the verification logic may also verify more user information/entitlement information. After the verification logic is executed, the first intelligent contract executes accumulation logic to accumulate the equity shares.
FIG. 4 illustrates a specific example of a first smart contract. The first intelligent contract in this particular example is designed for insurance benefits. As shown in fig. 4, in this example, the first intelligent contract includes a verification logic and an accumulation logic, wherein the verification logic respectively verifies the user information, the validity of the to-be-picked insurance policy and the validity of the insurance policy, and the accumulation logic adopts a calculation logic of conditional accumulation to perform conditional accumulation for the insurance policy with an upper limit L. For other types of accumulatible interests, modifications can be made on the basis of fig. 4 to obtain corresponding first intelligent contracts.
As previously mentioned, in one embodiment, the use of the first benefit may be related to another service, for example, referred to as the second service. In one embodiment, the second server also acts as a node in the blockchain network and participates in the propagation and recording of the equity accumulation data, so that the second server can better acquire and record the issued equity information.
Specifically, in the case that the first right is an insurance right, the second service party is an insurance company. In such a case, the blockchain network may further include a second node corresponding to a server of the insurance company.
Further, in an embodiment, the blockchain network may further include a third node corresponding to the supervising authority, so that the equity issue process, the accumulation process and the use process can be supervised by the supervising authority, and the reliability of the equity issue is further improved.
In this way, in the process shown in fig. 3, the service platform invokes an intelligent contract pre-deployed in the blockchain, so that each node executes the accumulation logic in the intelligent contract, thereby accumulating the currently issued equity shares. The accumulated data state is synchronized in each node, so that the property that the data in the block chain cannot be tampered is utilized, and the rights and interests are more reliably issued and accumulated.
Fig. 5 is a schematic view of an implementation scenario of another embodiment disclosed in this specification. This implementation scenario differs from the implementation scenario shown in fig. 2 in that the service platform itself acts simultaneously as a node in the blockchain network. Other features of the blockchain network are the same as described in connection with fig. 2 and 3.
The following describes a specific implementation of the service platform issuance authority in the scenario of fig. 5.
Fig. 6 illustrates a flow diagram of a method for equity accumulation over a blockchain in one embodiment. The method flow is executed by a service platform, and the service platform can be implemented by any device, platform or device cluster with computing and processing capabilities. And the service platform is simultaneously used as a node of the block chain network. For example, the service platform may be an electronic payment platform (e.g. a paypal), which on the one hand provides electronic payment services to users and issues rights and interests, and on the other hand, is also used as a node of a block chain network to participate in transaction billing and block formation. And, a first intelligent contract has been previously deployed in the blockchain network, the first intelligent contract including accumulation logic for performing equity accumulation. As shown in fig. 6, the process of equity accumulation in this embodiment includes the following steps.
At step 61, a first interest in the first share to be issued to the first user is determined in response to a first behavioral event of the first user. The specific execution manner of this step is similar to that of step 31 in fig. 3, and is not described again.
First data relating to the issuance of the first equity, including a first identification of the first equity, and the first share, is then generated at step 62. The specific implementation of this step may refer to the description of step 32 in fig. 3, and is not described again.
Next, at step 63, a first transaction is generated that invokes the first intelligent contract based on the first data, so that each node in the blockchain network executes the first intelligent contract based on the first data, thereby accumulating the first share in the blockchain to an existing share corresponding to the first identifier by executing the accumulation logic.
It should be understood that, in this embodiment, the service platform is also a node of the blockchain network, and therefore, the service platform may generate the first transaction directly based on the first data, the first transaction invokes the first intelligent contract, and passes the first data as a parameter into the first intelligent contract. Then, the first transaction is recorded in a block uplink by a common identification mechanism.
Specifically, each node of the blockchain network maintains a transaction pool locally, puts the acquired transactions into the transaction pool, and broadcasts the transactions to other nodes. For a node corresponding to the service platform (hereinafter referred to as a service platform node), the node puts a first transaction generated based on the first data into a transaction pool and broadcasts the first transaction to other nodes in the blockchain network. The service platform node will also receive broadcasted transactions from other nodes and place these received transactions into the transaction pool. When the transaction in the transaction pool is enough, the service platform node extracts a part of the transaction from the transaction pool, packs the part of the transaction into blocks, and broadcasts the self-packed blocks in the block chain network so as to achieve consensus. Meanwhile, other nodes in the block chain network can broadcast the block packaged by the nodes to initiate consensus. Finally, through the consensus mechanism set in the blockchain network, each node agrees on the transaction block to be executed next. Thus, the first transaction is eventually recorded in a block of the blockchain through consensus of the nodes.
Once the first transaction has agreed, each node executes the first transaction, and further executes the first intelligent contract based on the first data, and adds the first share to the existing share corresponding to the first identifier through the accumulation logic therein.
Through the process, the service platform is used as a node of the block chain network at the same time, and the transaction for calling the intelligent contract is generated based on the currently issued equity shares, so that each node of the block chain accumulates the equity shares by executing the intelligent contract. Therefore, by utilizing the characteristic that data in the block chain cannot be tampered, the rights and interests are more reliably issued and accumulated.
According to another aspect, an apparatus for equity accumulation through a blockchain is provided, and the apparatus may be deployed in a service platform, and the service platform may be implemented by any device, platform or device cluster having computing and processing capabilities. And, a first intelligent contract has been previously deployed in the blockchain network, the first intelligent contract including accumulation logic for performing equity accumulation. Fig. 7 shows a schematic block diagram of an apparatus for equity accumulation over a blockchain according to one embodiment. As shown in fig. 7, the apparatus 700 includes:
a rights determination unit 71 configured to determine a first right to issue a first share to a first user in response to a first behavior event of the first user;
a data generating unit 72 configured to generate first data related to issuance of the first right, including a first identification of the first right, and the first share;
a requesting unit 73 configured to issue a first request for invoking the first intelligent contract to a first node in a blockchain network based on the first data, so that each node in the blockchain network executes the first intelligent contract based on the first data, thereby accumulating the first share in an existing share corresponding to the first identifier in the blockchain by executing the accumulation logic.
In various embodiments, the first behavioral event includes at least one of: logging in the service platform, sharing the information of the service platform, and paying for a preset number of times or a preset amount by using the service platform to complete the operation task set by the service platform.
In one embodiment, the first equity is an insurance equity, the first identifier is a policy identifier, and the first share is an insurance amount.
According to one embodiment, the accumulation logic comprises: reading the maximum share corresponding to the right identification to be processed, the existing share and the share to be accumulated; judging whether the sum of the existing share and the share to be accumulated is smaller than the maximum share; if so, determining the sum value as an accumulated share; otherwise, the maximum share is determined as the accumulated share.
Further, in an example, the first request generated by the request unit 73 corresponds to a first transaction, and the data field of the first transaction includes the following variable assignment information: and assigning the first identifier to the to-be-processed rights and interests identifier, and assigning the first share to the to-be-accumulated share.
According to one embodiment, the first intelligent contract further comprises verification logic for verifying the user information and/or the equity information; accordingly, executing the first intelligent contract based on the first data includes executing the validation logic based on the first data and, if validation passes, executing the accumulation logic.
Further, in various embodiments, executing the verification logic based on the first data includes executing one or more of: verifying whether the user information of the first user is legal or not; verifying whether the form of the first share is legitimate; and verifying whether the first right corresponding to the first identifier is valid.
In one embodiment, the requesting unit 73 is further configured to: and determining a node closest to the first node from the plurality of nodes of the block chain network as the first node.
According to one embodiment, the blockchain network further comprises a second node corresponding to a platform associated with the use of the first interest.
Further, in one example, the second node is a server of an insurance company when the first rights and interests are insurance rights and interests.
In one example, the blockchain network further includes a third node corresponding to the regulatory body.
According to an embodiment of another aspect, an apparatus for equity accumulation over a blockchain is provided, which may be deployed in a service platform that simultaneously serves as a node in a blockchain network. And, a first intelligent contract has been previously deployed in the blockchain network, the first intelligent contract including accumulation logic for performing equity accumulation. Fig. 8 shows a schematic block diagram of an apparatus for equity accumulation over a blockchain according to another embodiment. As shown in fig. 8, the apparatus 800 includes:
a rights determination unit 81 configured to determine a first rights to issue a first share to a first user in response to a first behavior event of the first user;
a data generating unit 82 configured to generate first data related to issuance of the first right, including a first identifier of the first right, and the first share;
a transaction generating unit 83 configured to generate a first transaction invoking the first intelligent contract based on the first data, so as to cause each node in the blockchain network to execute the first intelligent contract based on the first data, thereby accumulating the first share in the blockchain to an existing share corresponding to the first identifier by executing the accumulation logic.
Through the devices 700 and 800, the service platform can accumulate the issued equity shares by using the intelligent contracts deployed in the block chain under the condition of determining to issue a certain equity share to the user, so that the equity issue and accumulation are more reliable, and the reliability of the equity issue is improved.
According to an embodiment of another aspect, there is also provided a computer-readable storage medium having stored thereon a computer program which, when executed in a computer, causes the computer to perform the method described in connection with fig. 3 and 6.
According to an embodiment of yet another aspect, there is also provided a computing device comprising a memory and a processor, the memory having stored therein executable code, the processor, when executing the executable code, implementing the method described in connection with fig. 3 and 6.
Those skilled in the art will recognize that, in one or more of the examples described above, the functions described in this invention may be implemented in hardware, software, firmware, or any combination thereof. When implemented in software, the functions may be stored on or transmitted over as one or more instructions or code on a computer-readable medium.
The above-mentioned embodiments, objects, technical solutions and advantages of the present invention are further described in detail, it should be understood that the above-mentioned embodiments are only exemplary embodiments of the present invention, and are not intended to limit the scope of the present invention, and any modifications, equivalent substitutions, improvements and the like made on the basis of the technical solutions of the present invention should be included in the scope of the present invention.

Claims (26)

1. A method for equity accumulation over a blockchain having a first intelligent contract deployed therein, the first intelligent contract comprising accumulation logic, the method performed by a service platform comprising:
in response to a first behavioral event of a first user, determining to issue a first share of a first entitlement to the first user;
generating first data relating to the issuance of the first equity, including a first identification of the first equity, and the first share;
issuing a first request for invoking the first intelligent contract to a first node in a blockchain network based on the first data, so that each node in the blockchain network executes the first intelligent contract based on the first data, thereby accumulating the first share in an existing share corresponding to the first identifier in the blockchain by executing the accumulation logic.
2. The method of claim 1, wherein the first behavioral event comprises at least one of: logging in the service platform, sharing the information of the service platform, and paying for a preset number of times or a preset amount by using the service platform to complete the operation task set by the service platform.
3. The method of claim 1, wherein the first equity is an insurance equity, the first identifier is a policy identifier, and the first share is an insurance amount.
4. The method of claim 1, wherein the accumulation logic comprises:
reading the maximum share corresponding to the right identification to be processed, the existing share and the share to be accumulated;
judging whether the sum of the existing share and the share to be accumulated is smaller than the maximum share;
if so, determining the sum value as an accumulated share;
otherwise, the maximum share is determined as the accumulated share.
5. The method of claim 4, wherein the first request corresponds to a first transaction, the data field of the first transaction including the following variable assignment information: and assigning the first identifier to the to-be-processed rights and interests identifier, and assigning the first share to the to-be-accumulated share.
6. The method of claim 1, wherein the first smart contract further comprises verification logic for verifying user information and/or entitlement information;
the executing the first smart contract based on the first data includes executing the validation logic based on the first data, and executing the accumulation logic if validation passes.
7. The method of claim 6, wherein performing the verification logic based on the first data comprises performing one or more of:
verifying whether the user information of the first user is legal or not;
verifying whether the form of the first share is legitimate;
and verifying whether the first right corresponding to the first identifier is valid.
8. The method of claim 1, wherein prior to issuing a first request to invoke the first intelligent contract to a first node in a blockchain network based on the first data, further comprising:
and determining a node closest to the first node from the plurality of nodes of the block chain network as the first node.
9. The method of claim 1, wherein the blockchain network further comprises a second node corresponding to a platform associated with the use of the first interest.
10. The method of claim 9, wherein the first equity is an insurance equity; the second node is a server of an insurance company.
11. The method of claim 10, wherein the blockchain network further comprises a third node corresponding to a regulatory body.
12. A method for equity accumulation over a blockchain, the blockchain having a first intelligent contract deployed therein, the first intelligent contract comprising accumulation logic, the method being performed by a service platform, the service platform being a node in a blockchain network, the method comprising:
in response to a first behavioral event of a first user, determining to issue a first share of a first entitlement to the first user;
generating first data relating to the issuance of the first equity, including a first identification of the first equity, and the first share;
generating a first transaction invoking the first intelligent contract based on the first data to cause each node in the blockchain network to execute the first intelligent contract based on the first data, thereby accumulating the first share in the blockchain to an existing share corresponding to the first identifier by executing the accumulation logic.
13. An apparatus for equity accumulation over a blockchain having a first intelligent contract deployed therein, the first intelligent contract comprising accumulation logic, the apparatus deployed in a service platform, comprising:
a rights and interests determination unit configured to determine a first rights and interests for issuing a first share to a first user in response to a first behavior event of the first user;
a data generating unit configured to generate first data related to issuance of the first right, including a first identifier of the first right, and the first share;
a request unit configured to issue a first request for invoking the first intelligent contract to a first node in a blockchain network based on the first data, so that each node in the blockchain network executes the first intelligent contract based on the first data, thereby accumulating the first share in an existing share corresponding to the first identifier in the blockchain by executing the accumulation logic.
14. The apparatus of claim 13, wherein the first behavioral event comprises at least one of: logging in the service platform, sharing the information of the service platform, and paying for a preset number of times or a preset amount by using the service platform to complete the operation task set by the service platform.
15. The apparatus of claim 13, wherein the first equity is an insurance equity, the first identifier is a policy identifier, and the first share is an insurance amount.
16. The apparatus of claim 13, wherein the accumulation logic comprises:
reading the maximum share corresponding to the right identification to be processed, the existing share and the share to be accumulated;
judging whether the sum of the existing share and the share to be accumulated is smaller than the maximum share;
if so, determining the sum value as an accumulated share;
otherwise, the maximum share is determined as the accumulated share.
17. The apparatus of claim 16, wherein the first request issued by the requesting unit corresponds to a first transaction, the data field of the first transaction including variable assignment information of: and assigning the first identifier to the to-be-processed rights and interests identifier, and assigning the first share to the to-be-accumulated share.
18. The apparatus of claim 13, wherein the first smart contract further comprises verification logic for verifying user information and/or entitlement information;
the executing the first smart contract based on the first data includes executing the validation logic based on the first data, and executing the accumulation logic if validation passes.
19. The apparatus of claim 18, wherein performing the verification logic based on the first data comprises performing one or more of:
verifying whether the user information of the first user is legal or not;
verifying whether the form of the first share is legitimate;
and verifying whether the first right corresponding to the first identifier is valid.
20. The apparatus of claim 13, wherein the requesting unit is further configured to:
and determining a node closest to the first node from the plurality of nodes of the block chain network as the first node.
21. The apparatus of claim 13, wherein the blockchain network further comprises a second node corresponding to a platform associated with use of the first entitlement.
22. The apparatus of claim 21, wherein the first benefit is an insurance benefit; the second node is a server of an insurance company.
23. The apparatus of claim 22, wherein the blockchain network further comprises a third node corresponding to a regulatory body.
24. An apparatus for equity accumulation over a blockchain, the blockchain having a first intelligent contract deployed therein, the first intelligent contract including accumulation logic, the apparatus being deployed in a service platform, and the service platform being a node in a blockchain network, the apparatus comprising:
a rights and interests determination unit configured to determine a first rights and interests for issuing a first share to a first user in response to a first behavior event of the first user;
a data generating unit configured to generate first data related to issuance of the first right, including a first identifier of the first right, and the first share;
a transaction generating unit configured to generate a first transaction invoking the first intelligent contract based on the first data, so that each node in the blockchain network executes the first intelligent contract based on the first data, thereby accumulating the first share in the blockchain to an existing share corresponding to the first identifier by executing the accumulation logic.
25. A computer-readable storage medium, on which a computer program is stored which, when executed in a computer, causes the computer to carry out the method of any one of claims 1-12.
26. A computing device comprising a memory and a processor, wherein the memory has stored therein executable code that, when executed by the processor, performs the method of any of claims 1-12.
CN202010759868.5A 2020-07-31 2020-07-31 Method and device for carrying out rights and interests accumulation through block chain Pending CN111738861A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010759868.5A CN111738861A (en) 2020-07-31 2020-07-31 Method and device for carrying out rights and interests accumulation through block chain

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010759868.5A CN111738861A (en) 2020-07-31 2020-07-31 Method and device for carrying out rights and interests accumulation through block chain

Publications (1)

Publication Number Publication Date
CN111738861A true CN111738861A (en) 2020-10-02

Family

ID=72656803

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010759868.5A Pending CN111738861A (en) 2020-07-31 2020-07-31 Method and device for carrying out rights and interests accumulation through block chain

Country Status (1)

Country Link
CN (1) CN111738861A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112822261A (en) * 2020-12-30 2021-05-18 支付宝(杭州)信息技术有限公司 Block chain-based shared policy and premium management method and device and electronic equipment

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105976231A (en) * 2016-06-24 2016-09-28 深圳前海微众银行股份有限公司 Asset management method based on intelligent block chain contracts and nodes
CN108171603A (en) * 2017-12-15 2018-06-15 深圳智盾信息技术有限公司 A kind of integral management system based on block chain
CN110020542A (en) * 2018-12-20 2019-07-16 阿里巴巴集团控股有限公司 Data read-write method and device, electronic equipment
CN110148017A (en) * 2019-04-29 2019-08-20 阿里巴巴集团控股有限公司 Equity distribution method and device, electronic equipment, storage medium based on block chain
CN110348882A (en) * 2019-06-19 2019-10-18 阿里巴巴集团控股有限公司 Integration method, system, device and equipment based on intelligent contract

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105976231A (en) * 2016-06-24 2016-09-28 深圳前海微众银行股份有限公司 Asset management method based on intelligent block chain contracts and nodes
CN108171603A (en) * 2017-12-15 2018-06-15 深圳智盾信息技术有限公司 A kind of integral management system based on block chain
CN110020542A (en) * 2018-12-20 2019-07-16 阿里巴巴集团控股有限公司 Data read-write method and device, electronic equipment
CN110148017A (en) * 2019-04-29 2019-08-20 阿里巴巴集团控股有限公司 Equity distribution method and device, electronic equipment, storage medium based on block chain
CN110348882A (en) * 2019-06-19 2019-10-18 阿里巴巴集团控股有限公司 Integration method, system, device and equipment based on intelligent contract

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112822261A (en) * 2020-12-30 2021-05-18 支付宝(杭州)信息技术有限公司 Block chain-based shared policy and premium management method and device and electronic equipment

Similar Documents

Publication Publication Date Title
CN109981679B (en) Method and apparatus for performing transactions in a blockchain network
CN110163590B (en) Payment withholding method and device based on block chain, electronic equipment and storage medium
CN108492180B (en) Asset management method and device and electronic equipment
CN108462724B (en) Data sharing method, device, system, member node and readable storage medium
CN110222533B (en) Distributed data security application method and system and electronic equipment
CN109274667B (en) Copyright event evidence storing method and system based on block chain
CN110147990B (en) Payment withholding subscription method and device based on block chain and electronic equipment
CN109272385B (en) Copyright event agent evidence storage method and system based on block chain
CN110189121B (en) Data processing method and device, block chain client and block chain link point
CN112200571B (en) Resource distribution method and device based on block chain and electronic equipment
CN111309745B (en) Virtual resource processing method and device, electronic equipment and storage medium
CN111818185B (en) Method and device for starting intelligent contract, electronic equipment and storage medium
CN111222841B (en) Block chain-based data distribution method and equipment and storage medium thereof
CN112613877B (en) Intelligent contract triggering method and device applied to block chain network and related equipment
CN112200568B (en) Block chain based account creation method and device and electronic equipment
US11151122B2 (en) Distributed ledger data linkage management
CN112200567A (en) Resource management method and device based on block chain and electronic equipment
CN114979278A (en) Calculation power scheduling method, device and system based on block chain and electronic equipment
CN111738861A (en) Method and device for carrying out rights and interests accumulation through block chain
CN113065860A (en) Method and device for processing commission charge service through block chain
CN113034137A (en) Data processing method and device based on block chain and related equipment
CN110458541B (en) Object replacement method and device based on block chain
CN112785432B (en) Block chain-based device control method, apparatus, device and storage medium
CN111784415A (en) Method and device for issuing rights and interests through block chain
KR102107454B1 (en) System for multiplication of financial payment networks, method for financial services using the same and computer program for the same

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
RJ01 Rejection of invention patent application after publication

Application publication date: 20201002

RJ01 Rejection of invention patent application after publication