CN113177792A - Method and device for realizing token pool multi-account stream processing through intelligent contract - Google Patents

Method and device for realizing token pool multi-account stream processing through intelligent contract Download PDF

Info

Publication number
CN113177792A
CN113177792A CN202110511713.4A CN202110511713A CN113177792A CN 113177792 A CN113177792 A CN 113177792A CN 202110511713 A CN202110511713 A CN 202110511713A CN 113177792 A CN113177792 A CN 113177792A
Authority
CN
China
Prior art keywords
token pool
token
flowing
contract
pool
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
CN202110511713.4A
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.)
SHANGHAI BUSINESS SCHOOL
Original Assignee
SHANGHAI BUSINESS SCHOOL
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 SHANGHAI BUSINESS SCHOOL filed Critical SHANGHAI BUSINESS SCHOOL
Priority to CN202110511713.4A priority Critical patent/CN113177792A/en
Publication of CN113177792A publication Critical patent/CN113177792A/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
    • G06Q20/00Payment architectures, schemes or protocols
    • G06Q20/38Payment protocols; Details thereof
    • G06Q20/381Currency conversion
    • 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/40Authorisation, e.g. identification of payer or payee, verification of customer or shop credentials; Review and approval of payers, e.g. check credit lines or negative lists
    • G06Q20/401Transaction verification
    • G06Q20/4014Identity check for transactions
    • 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

Landscapes

  • Business, Economics & Management (AREA)
  • Accounting & Taxation (AREA)
  • Finance (AREA)
  • Engineering & Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • Strategic Management (AREA)
  • General Business, Economics & Management (AREA)
  • General Physics & Mathematics (AREA)
  • Theoretical Computer Science (AREA)
  • Development Economics (AREA)
  • Economics (AREA)
  • Computer Security & Cryptography (AREA)
  • Marketing (AREA)
  • Technology Law (AREA)
  • Management, Administration, Business Operations System, And Electronic Commerce (AREA)

Abstract

The invention discloses a method and a device for realizing token pool multi-account flow processing through an intelligent contract, wherein the method comprises the following steps of S1, receiving identity authentication requests, token pool flow requests and token pool flow authorization requests of an initiator and a participant; s2, the identity of the initiator and the participant is authenticated by calling the token pool flowing contract; s3, verifying the identity trust certification of the initiator and the participant by calling the token pool flowing contract; s4, judging the flowing contract state of the token pool according to the locking condition by calling the flowing contract of the token pool; and S5, the token pool flowing authorization request of the initiator and the participant is matched by calling the token pool flowing contract, and the token quantity corresponding to the token pool flowing rule is allowed to flow out into the account of the corresponding initiator and the participant. The invention solves the problems of single contract object, unchangeable rule and the like of the single-account intelligent contract, and achieves the technical effects of flexibility, additivity and openness of the flowing rule of the multi-account token pool.

Description

Method and device for realizing token pool multi-account stream processing through intelligent contract
Technical Field
The invention belongs to the technical field of block chains, and particularly relates to a multi-account intelligent contract flow processing method and device for realizing a token pool on a block chain through an intelligent contract.
Background
The known transaction adopts a point-to-point P2P transaction mode based on users in a block chain, both parties of the transaction realize fixed change of the amount of the token on the block chain through an intelligent contract, a single transaction becomes a determined unchangeable closed loop, the decentralized characteristic ensures the reliability and the openness and transparency of transaction records, and the encryption mode of converting information into numbers by a hash function ensures the safety of data, but the flexible flow of the amount of the token of a plurality of people in the transaction cannot be realized.
The intelligent contract allows the transaction to be executed without a third party, and the transaction data generated and propagated through the intelligent contract has the characteristics of traceability and irreversibility, so that the accuracy and the non-tamper property of the transaction record are guaranteed. If the intelligent contract is used for multi-person order combining under the original method, once the contract is formed, the batch processing mode is adopted until the contract execution is completed, and the contract participants and the token flowing rule can not be changed.
Therefore, based on the problem, the invention realizes real-time contract updating in multi-account transaction through the intelligent contract on the block chain, performs multi-account inflow in a flow processing mode according to the token inflow rule, and then performs multi-account outflow in a batch processing mode, so that contract participants and token flow rules can be changed.
Disclosure of Invention
The invention solves the problems of single contract object, unchangeable rule and the like of the single account intelligent contract, realizes the real-time update of the contract during multi-account transaction, executes multi-account inflow in a flow processing mode according to the token inflow rule, and then executes multi-account outflow in a batch processing mode, and the contract participants and the token flow rule can be changed.
In order to solve the problems, the technical scheme of the invention is as follows:
disclosed are a method and a device for multi-account intelligent contract flow processing based on a block chain token pool, wherein the method comprises the following steps:
s1, receiving identity authentication requests of an initiator and participants, token pool flowing requests and token pool flowing authorization requests, wherein the identity authentication requests are used for generating identity authentication of the initiator and the participants, the token pool flowing requests comprise token pool inflow and outflow rules, locking conditions and token pool effective time, and the token pool flowing authorization requests are used for authorizing the initiator to perform token pool flowing services on the participants;
s2, authenticating the identity of the initiator and the participant by calling the token pool flowing contract deployed on the blockchain, and generating identity trust authentication;
and S3, verifying the identity trust certification of the initiator and the participants by calling the token pool flowing contract deployed on the blockchain, and flowing the number of the participants tokens corresponding to the token pool flowing rule into the token pool flowing contract after the verification is passed.
S4, judging the flowing contract state of the token pool according to the locking condition by calling the flowing contract of the token pool;
and S5, the token pool flowing authorization request of the matching initiator and the participant allows the token quantity corresponding to the token pool flowing rule to flow out into the account of the corresponding initiator and the participant by calling the token pool flowing contract arranged on the block chain.
The token pool flowing contract is provided with a trust authentication interface and a token inflow interface;
step S2 is that the identity authentication request of the initiator and the participant is received by calling the receiving interface of the token pool flowing contract, and the identity information of the initiator and the participant is authenticated by calling the authentication interface of the token pool flowing contract to generate the identity trust authentication of the initiator and the participant;
the token pool flowing contract is provided with a trust authentication interface, a calculation interface and a token inflow interface; step S3 specifically includes the following steps:
s31, verifying the identity trust certification of the initiator and the participant by calling the trust certification interface of the flowing contract of the token pool;
s32, calculating the token inflow amount of the corresponding account according to the token pool inflow rule through the calculation interface of the token pool flowing contract;
s33, flowing the corresponding token quantity into the token pool flowing contract through the token flowing interface of the token pool flowing contract;
step S4 is specifically that whether the token pool enters into the locking state is judged according to the locking condition by calling the token pool locking interface of the token pool flowing contract;
if not, the token pool flowing contract enters the corresponding step of S3 and a subsequent series of steps are carried out;
if yes, the token pool flowing contract enters a corresponding step of flowing out S5 until the end;
the token pool flowing contract is provided with a calculation interface and a token outflow interface; step S5 specifically includes the following steps:
s51, matching token flowing authorization requests of an initiator and a participant by calling a receiving interface of a token pool flowing contract arranged on a block chain;
s52, calculating the token outflow quantity of the corresponding account according to the token pool outflow rule through the calculation interface of the token pool flowing contract;
s53, flowing out the corresponding token quantity to the token pool flowing contract through the token flowing out interface of the token pool flowing contract;
in the method, the block chain is a block chain supporting an intelligent contract, such as an ethernet block chain, an EOS block chain, a TRON block chain, and the like, and the token inflow and outflow of the token pool in the block chain can be realized through the method.
An apparatus for multi-account intelligent contract flow processing based on a blockchain token pool, comprising:
the trust authentication module is used for authenticating the identities of the initiator and the participant and generating identity trust authentication;
the token pool locking module is used for judging whether the token pool state is locked or not;
if not, returning to the token pool inflow module and executing the next inflow; if yes, entering a token pool outflow module;
the token pool inflow module is used for verifying the identity trust authentication of the initiator and the participants and flowing the number of the participants tokens corresponding to the token pool inflow rule into a token pool flowing contract after the verification is passed; the identity trust authentication method comprises a verification submodule, a calculation submodule and an execution submodule, wherein the verification submodule is used for verifying identity trust authentication of an initiator and a participant; the calculation submodule is used for calculating the token inflow amount of the corresponding account according to the token pool inflow rule; the execution submodule is used for flowing the corresponding token quantity into the token pool flowing contract;
the token pool outflow module is used for matching token pool flowing authorization requests of the initiator and the participants to allow the token quantity corresponding to the token pool outflow rule to flow out to accounts of the corresponding initiator and the participants; the token flow authorization method comprises a matching sub-module, a calculation sub-module and an execution sub-module, wherein the matching sub-module is used for matching token flow authorization requests of an initiator and participants; the calculation submodule is used for calculating the token outflow quantity of the corresponding account according to the token pool outflow rule; the execution submodule is to stream out the corresponding token quantity into the token pool flow contract.
Drawings
Figure 1 is a token pool apparatus flow diagram.
Figure 2 is a token pool flow contract inflow module flow diagram.
Figure 3 is a token pool flow contract outflow module flow diagram.
Figure 4 is a diagram of a token pool device.
FIG. 5 is a simulation of example 1.
FIG. 6 is a simulation of example 2
FIG. 7 is a conceptual diagram of the flow of the apparatus
Detailed Description
The present invention will be described in further detail with reference to the following specific examples and the accompanying drawings. The drawings in the following description are only examples of the invention, and it will be clear to a person skilled in the art that other drawings and embodiments can be obtained from these drawings without inventive effort.
For the sake of simplicity, the drawings only schematically show the parts relevant to the present invention, and they do not represent the actual structure as a product. In addition, in order to make the drawings concise and understandable, components having the same structure or function in some of the drawings are only schematically illustrated or only labeled. In this context, "a" does not only mean that
"only one" may also mean "more than one".
An intelligent contract is a special protocol that aims to provide, validate and execute contracts. In particular, smart contracts are an important reason why blockchains are referred to as "decentralized," which allows us to perform traceable, irreversible, and secure transactions without the need for third parties. The smart contract contains all information about the transaction and only after the requirements are met will the resulting operation be performed. Smart contracts differ from traditional paper contracts in that smart contracts are computer-generated. The intelligent contracts are written and operated according to the logic of the functions, and the intelligent contracts used by the blockchain network are executed in a safe and trusted network as long as the input requirements are met, namely, as long as the code writing requirements are met.
However, when there are contract objects and rules that are uncertain, intelligent contracts cannot fulfill their functions instantly, restricting the execution of both parties to the contract. Taking the traditional transaction as an example, the completion of the order needs the determination and authorization of the identities of both contract parties, and has larger time delay and no flexibility and compatibility to contract objects and rules. In order to optimize the static process of the transaction into a dynamic process with stronger compatibility, the intelligent contract needs to be executed and covered for multiple times, and the token pool device is used as a tool to be matched with the intelligent contract to complete the transaction.
In real life, a plurality of scenes need to finish dynamic transactions, such as offline market grouping transactions, group trip transactions and other transaction scenes, two problems exist in the transaction scenes, and according to a group trip behavior example, if a certain transaction amount in one trip is too large to exceed a threshold value of a payment member account, the transaction cannot be carried out; taking offline party sharing as an example, the number of people who are the objects of party sharing cannot be determined, the price of the party sharing changes in real time, and the traditional transaction cannot meet the transaction process in the scene. The technical problems to be solved by the present invention are described above by using offline market grouping and group-making behavior examples, but the present invention is not limited thereto, and in addition to the above, the above problems such as reservation queuing, credit rating, etc. also exist.
In order to solve the problems in the transaction scene, the invention deploys a token pool in advance, the token pool is shared by two modules, an inflow module and an outflow module, and the participants can execute authorization to complete the functions of verification, inflow, locking, matching, calculation, outflow and the like of the token pool through the intelligent contract of the initiator. The participant's authorization may be randomly initiated and the intelligent contract will override over and over again until the token influx lock condition is reached.
It should be noted that, the group play and offline group-piecing transaction described in the following examples of the present invention are only a specific application scenario in which the present invention implements asset deduction on a block chain through an intelligent contract, and are not intended to limit the present invention, and the present invention is broader as long as a token pool supporting the intelligent contract can implement token transaction on the block chain based on the technical solution disclosed in the present invention, such as credit rating, reservation queuing, and the like, which all belong to the protection scope of the present invention.
The method and the device for processing the multi-account intelligent contract flow based on the token pool have two states, namely a public state and a private state.
Example 1:
FIG. 7 is a diagram of an example of a method and apparatus for multi-account intelligent contract flow processing using token pools of the present invention in a common state, which includes two functions:
1) define 1: y ═ f (g) as a regular function
2) Definition 2 g ═ u (x), x ∈ D is the influence factor function
3) Definition 3 dic ═ { N: N, ST: t1,ET:t2,C:c,X1:k1,X2:k2,X3:k3,X4:k4,…,Xn:kn}
Wherein N represents a contract number; ST represents a start time; ET represents the end time; cd represents the token pool state (wherein { Cd:0} is token pool locking state, { Cd:1} is token pool inflow state, { Cd:2} is token pool outflow state, XnIndicating that a specific account is specified; k is a radical ofnIndicating the number of tokens in the given account.
According to the token pool flowing contract, the rule function and the influence factor function need to be transmitted through the rule interface of the token pool flowing contract, and the token pool actuator device is actuated through the contract until the end.
The 5 accounts are A, B, C, D, X, respectively, the rule function is y 30-g, g ∈ [0,15] and there is an influence factor function g (x) ═ x-1, (x ∈ N).
When x is 1, g is u (1), x-1 is 0, and y is f (0) is 30; the number of tokens flowing into the token pool at one time is 30; the token pool status is { N:1, ST:20210101000000, ET:20210101120000, Cd:1, M:30, A:0 };
when x is 2, g is u (2), x-1 is 1, y is f (1) is 29; the number of tokens flowing into the token pool at a time is 29; the token pool status is { N:1, ST:20210101001000, ET:20210101120000, Cd:1, M:58, A:1, B:0 };
when x is 3, g is u (3), x-1 is 2, y is f (2) is 28; the number of tokens flowing into the token pool at a time is 28; the token pool status is { N:1, ST:20210101001500, ET:20210101120000, Cd:1, M:84, A:2, B:2, C:0 };
when x is 4, g is u (4), x-1 is 3, and y is f (3) is 27; the number of tokens flowing into the token pool at one time is 27; the token pool state is { N:1, ST:20210101002000, ET:20210101120000, Cd:1, M:106, A:3, B:2, C:1, D:0 };
after the four participants participate in the token pool, the token pool enters a locking state, the number of the outgoing tokens is transferred to an initiator account by calling an outflow execution sub-interface of the token pool device, and the corresponding number of the incoming tokens is transferred to accounts A, B, C and D by calling an inflow execution sub-interface of the token pool device, so that the whole operation process of the token pool device is completed.
Therefore, the method and the device for multi-account intelligent contract flow processing based on the block chain token pool can realize real-time flow processing of multi-account intelligent contracts in a public state.
Example 2:
FIG. 7 is a diagram of an example of a private state of a method and apparatus for multi-account intelligent contract flow processing using token pools of the present invention, which includes a dictionary:
1) definitions 1 dic ═ x1:k1,x2:k2,x3:k3,x4:k4,…,xn:kn}
According to the token pool flow contract, parameters in a dictionary need to be transmitted through a rule interface of the token pool flow contract, and the token pool actuator device is actuated through the contract until the end.
In this example, let K equal 100, p1=1/4,p2=1/4,p3=1/4,p4=1/4;
Figure BDA0003060628880000041
k1=K*p1=25;k2=K*p2=25;k3=K*p3=25;k4=K*p4=25
dic={x1:25,x2:25,x3:25,x4:25}
After the four participants participate in the token pool, the token pool enters a locking state, the amount of the outflow tokens is transferred into the token pool by calling the inflow execution sub-interface of the token pool device, and the corresponding amount of the outflow tokens is transferred into the corresponding account by calling the inflow execution sub-interface of the token pool device, so that the whole operation process of the token pool device is completed.
Therefore, the method and the device for multi-account intelligent contract flow processing based on the block chain token pool can realize real-time flow processing of multi-account intelligent contracts in a private state.
The protection of the present invention is not limited to the above embodiments. Variations and advantages that may occur to those skilled in the art are included within the invention without departing from the spirit and scope of the invention and are protected by the following claims.

Claims (13)

1. The method for realizing the multi-account flow processing of the token pool through the intelligent contract is characterized by comprising the following steps:
s1, receiving identity authentication requests of an initiator and participants, token pool flowing requests and token pool flowing authorization requests, wherein the identity authentication requests are used for generating identity authentication of the initiator and the participants, the token pool flowing requests comprise token pool inflow and outflow rules, locking conditions and token pool effective time, and the token pool flowing authorization requests are used for authorizing the initiator to perform token pool flowing services on the participants;
s2, authenticating the identity of the initiator and the participant by calling the token pool flowing contract deployed on the blockchain, and generating identity trust authentication;
s3, verifying the identity trust certification of the initiator and the participators by calling the token pool flowing contract deployed on the block chain, and flowing the participator token quantity corresponding to the token pool flowing rule into the token pool flowing contract after the verification is passed;
s4, judging the flowing contract state of the token pool according to the locking condition by calling the flowing contract of the token pool;
and S5, the token pool flowing authorization request of the matching initiator and the participant allows the token quantity corresponding to the token pool flowing rule to flow out into the account of the corresponding initiator and the participant by calling the token pool flowing contract arranged on the block chain.
2. The method of multi-account intelligent contract flow processing for a blockchain token pool of claim 1, wherein the token pool flow contracts are provided with a trust certification interface;
the step S2 specifically includes receiving the identity authentication requests of the initiator and the participant by calling the receiving interface of the token pool flowing contract, and calling the authentication interface of the token pool flowing contract to authenticate the identity information of the initiator and the participant, thereby generating the identity trust authentication of the initiator and the participant.
3. The method of multi-account intelligent contract flow processing for a blockchain token pool of claim 1, wherein the token pool flow contract is provided with a trust certification interface, a token inflow interface, a computing interface;
the step S3 specifically includes the following steps:
s31, verifying the identity trust certification of the initiator and the participant by calling the trust certification interface of the flowing contract of the token pool;
s32, calculating the token inflow amount of the corresponding account according to the token pool inflow rule through the calculation interface of the token pool flowing contract;
and S33, flowing the corresponding token amount into the token pool flowing contract through the token flowing interface of the token pool flowing contract.
4. The method of multi-account intelligent contract flow processing for a block chain token pool of claim 1, wherein the token pool flow contracts are provided with a token pool locking interface;
the step S4 comprises the steps of calling a token pool locking interface of a token pool flowing contract to judge whether the token pool enters a locking state or not according to a locking condition;
if not, the token pool flowing contract enters the corresponding step of S3 and a subsequent series of steps are carried out;
if so, the token pool flow contract proceeds to the corresponding step of flow out S5 until the end.
5. The method of multi-account intelligent contract flow processing for a block chain token pool of claim 1, wherein the token pool flow contracts are provided with a computing interface, a token inflow interface;
the step S5 specifically includes the following steps:
s51, matching token flowing authorization requests of an initiator and a participant by calling a receiving interface of a token pool flowing contract arranged on a block chain;
s52, calculating the token outflow quantity of the corresponding account according to the token pool outflow rule through the calculation interface of the token pool flowing contract;
and S53, flowing out the corresponding token quantity to the token pool flowing contract through the token flowing-out interface of the token pool flowing contract.
6. An apparatus for implementing asset deduction on a blockchain via smart contracts, the apparatus comprising:
and the trust authentication module is used for authenticating the identities of the initiator and the participant and generating identity trust authentication.
7. The intelligent token chain token replacement device of claim 6, wherein the token pool flow contract is provided with a trust certification interface;
the trust authentication module is specifically used for calling the trust authentication interface of the token pool flowing contract deployed on the block chain, authenticating the identities of an initiator and a participant and generating identity trust authentication;
the token inflow verification sub-module is specifically configured to invoke the trust certification interface of the token pool flowing contract deployed on a blockchain, and verify the identity trust certification of the initiator and the participant.
8. An apparatus for implementing asset deduction on a blockchain via smart contracts, the apparatus comprising:
and the token pool locking module is used for judging the state of the token pool.
9. The apparatus for realizing asset deduction on block chain by intelligent contract as claimed in claim 8, wherein the token pool flowing contract is provided with a token pool locking interface for determining whether the token pool state is locked or not for controlling the multi-account token pool flowing;
if not, returning to the token pool inflow module, and executing the next inflow, namely allowing the newly added contract participant;
if yes, the token enters a token pool outflow module, and newly added contract participants are not allowed.
10. The token pool state of claim 9, C represents token pool state, where { C:0} is token pool lock state; { C:1} is token pool inflow status; { C:2} is a token pool flowing out state, three states in total are set, and controlled according to a token pool flowing contract.
11. An apparatus for implementing asset deduction on a blockchain via smart contracts, the apparatus comprising:
the token pool inflow module is used for verifying the identity trust authentication of the initiator and the participants and flowing the number of the participants tokens corresponding to the token pool inflow rule into a token pool flowing contract after the verification is passed; the identity trust authentication method comprises a verification submodule, a calculation submodule and an execution submodule, wherein the verification submodule is used for verifying identity trust authentication of an initiator and a participant; the calculation submodule is used for calculating the token inflow amount of the corresponding account according to the token pool inflow rule; the execution submodule is used for flowing the corresponding token quantity into the token pool flowing contract;
the token pool outflow module is used for matching token pool flowing authorization requests of the initiator and the participants to allow the token quantity corresponding to the token pool outflow rule to flow out to accounts of the corresponding initiator and the participants; the token flow authorization method comprises a matching sub-module, a calculation sub-module and an execution sub-module, wherein the matching sub-module is used for matching token flow authorization requests of an initiator and participants; the calculation submodule is used for calculating the token outflow quantity of the corresponding account according to the token pool outflow rule; the execution submodule is to stream out the corresponding token quantity into the token pool flow contract.
12. The apparatus for realizing asset deduction on block chain by intelligent contract as claimed in claim 10, wherein the token pool flowing contract is provided with a calculating interface, a token inflow interface, a token outflow interface;
the token pool inflow calculation submodule is specifically used for calling a calculation interface of the token pool flowing contract deployed on a block chain and calculating the corresponding token quantity according to token pool inflow rules; the token pool outflow calculation submodule is specifically used for calling a calculation interface of the token pool flowing contract deployed on a block chain and calculating the corresponding token quantity according to token pool outflow rules;
the token pool inflow execution submodule is specifically used for calling a token pool inflow interface of the token pool flowing contract deployed on a block chain, and corresponding token quantity flows into the token pool flowing contract;
the token pool outflow execution submodule is specifically configured to invoke a token pool outflow interface of the token pool flow contract deployed on a blockchain, and corresponding token quantities are flown out into corresponding initiator and participant accounts.
13. The computing interface for token pool flow contracts of claim 11, according to an embodiment one setting a composite function and a token pool dictionary for its invocation;
the complex function specifically includes:
1) defining a token pool calculation method by using a rule function of y ═ f (g);
2) and g ═ u (x), wherein x ∈ D is an influence factor function, and the change condition of the token pool calculation method is defined.
The token pool dictionary includes:
1) definition of dic ═ { N: N, ST: t1,ET:t2,C:c,X1:k1,X2:k2,X3:k3,X4:k4,…,Xn:kn}
Wherein N represents a contract number; ST represents a start time; ET represents the end time; c represents a token pool state (where { C:0} is a token pool lock state, { C:1} is a token pool inflow state, { C:2} is a token pool outflow state); xnIndicating that a specific account is specified; k is a radical ofnIndicating the number of tokens in the given account.
CN202110511713.4A 2021-05-11 2021-05-11 Method and device for realizing token pool multi-account stream processing through intelligent contract Pending CN113177792A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202110511713.4A CN113177792A (en) 2021-05-11 2021-05-11 Method and device for realizing token pool multi-account stream processing through intelligent contract

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110511713.4A CN113177792A (en) 2021-05-11 2021-05-11 Method and device for realizing token pool multi-account stream processing through intelligent contract

Publications (1)

Publication Number Publication Date
CN113177792A true CN113177792A (en) 2021-07-27

Family

ID=76928745

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110511713.4A Pending CN113177792A (en) 2021-05-11 2021-05-11 Method and device for realizing token pool multi-account stream processing through intelligent contract

Country Status (1)

Country Link
CN (1) CN113177792A (en)

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101226617A (en) * 2007-01-19 2008-07-23 阿里巴巴公司 Method and system based on multiple platform data interactive process
CN107730339A (en) * 2016-08-14 2018-02-23 天脉聚源(北京)科技有限公司 A kind of method and system of internet shopping
CN110544143A (en) * 2019-07-31 2019-12-06 阿里巴巴集团控股有限公司 contract establishing method and device for grouping credit project
CN111369257A (en) * 2020-03-06 2020-07-03 上海佩俪信息科技有限公司 Method and device for realizing asset withholding on block chain through intelligent contract
US20200302527A1 (en) * 2019-03-20 2020-09-24 Bloomio Ag Blockchain smart contracts for employee stock option tokens
CN112529709A (en) * 2020-12-30 2021-03-19 四川新华万云科技有限公司 Ether house intelligent contract implementation method based on multi-sign technology

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101226617A (en) * 2007-01-19 2008-07-23 阿里巴巴公司 Method and system based on multiple platform data interactive process
CN107730339A (en) * 2016-08-14 2018-02-23 天脉聚源(北京)科技有限公司 A kind of method and system of internet shopping
US20200302527A1 (en) * 2019-03-20 2020-09-24 Bloomio Ag Blockchain smart contracts for employee stock option tokens
CN110544143A (en) * 2019-07-31 2019-12-06 阿里巴巴集团控股有限公司 contract establishing method and device for grouping credit project
CN111369257A (en) * 2020-03-06 2020-07-03 上海佩俪信息科技有限公司 Method and device for realizing asset withholding on block chain through intelligent contract
CN112529709A (en) * 2020-12-30 2021-03-19 四川新华万云科技有限公司 Ether house intelligent contract implementation method based on multi-sign technology

Similar Documents

Publication Publication Date Title
US20240078541A1 (en) Computer-implemented system and method for exchange of data
US20220198418A1 (en) Systems and methods for commerce in a distributed system with blockchain protocols and smart contracts
CN107341402B (en) Program execution method and device
CN106899698B (en) Cross-chain interoperation method between block chains
CN108885761B (en) Method for secure point-to-point communication on a blockchain
Tian et al. Enabling cross-chain transactions: A decentralized cryptocurrency exchange protocol
CN109949033A (en) A kind of affaris safety trade system and method based on block chain
CN106960165A (en) It is a kind of that the method that electronic contract is conutersigned in many ways is realized based on the intelligent contract of block chain
EP3776416A1 (en) Method, apparatus and electronic device for blockchain transactions
CN110222120B (en) Asset exchange method based on UTXO model block chain intelligent contract
KR20220093198A (en) Execution of transactions using dedicated and open blockchains
CN111639935A (en) Account book modification method applicable to editable block chain
CN112488682B (en) Three-party transfer method and device for block chain
Zie et al. Extending atomic cross-chain swaps
US20240163098A1 (en) Computer-implemented methods and systems for controlling tasks implemented by a cyclically-ordered set of nodes participating in a blockchain network
US8464339B2 (en) Method for password based authentication trust generation and authorization thereof
Harris Cross-Chain Technologies: Challenges and Opportunties for Blockchain Interoperability
CN113177792A (en) Method and device for realizing token pool multi-account stream processing through intelligent contract
CN114936853A (en) Chain transaction protocol and transaction authentication method based on trusted execution environment
Javaid et al. A lightweight and secure energy trading framework for electric vehicles
Gawade et al. Government Fund Allocation and Tracking System using Blockchain
Košt'ál Multi-chain architecture for blockchain networks
CN111507721B (en) Block chain cross-chain transaction method and device
CN115023721A (en) Method and apparatus for protecting and verifying recorded state transitions
Song et al. Unveiling Decentralization: A Comprehensive Review of Technologies, Comparison, Challenges in Bitcoin, Ethereum, and Solana Blockchain

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