CN109493047A - A kind of commission settlement method, device and terminal device based on block chain - Google Patents

A kind of commission settlement method, device and terminal device based on block chain Download PDF

Info

Publication number
CN109493047A
CN109493047A CN201811372638.2A CN201811372638A CN109493047A CN 109493047 A CN109493047 A CN 109493047A CN 201811372638 A CN201811372638 A CN 201811372638A CN 109493047 A CN109493047 A CN 109493047A
Authority
CN
China
Prior art keywords
user
distribution
commission
block chain
settlement records
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
CN201811372638.2A
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.)
Shenzhen Changshilong Information Technology Co Ltd
Original Assignee
Shenzhen Changshilong 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 Shenzhen Changshilong Information Technology Co Ltd filed Critical Shenzhen Changshilong Information Technology Co Ltd
Priority to CN201811372638.2A priority Critical patent/CN109493047A/en
Publication of CN109493047A publication Critical patent/CN109493047A/en
Pending legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING; COUNTING
    • G06QDATA PROCESSING SYSTEMS OR METHODS, SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL, SUPERVISORY OR FORECASTING PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL, SUPERVISORY OR FORECASTING 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
    • G06Q20/3829Payment protocols; Details thereof insuring higher security of transaction involving key management
    • GPHYSICS
    • G06COMPUTING; CALCULATING; COUNTING
    • G06QDATA PROCESSING SYSTEMS OR METHODS, SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL, SUPERVISORY OR FORECASTING PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL, SUPERVISORY OR FORECASTING 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
    • G06Q20/3827Use of message hashing

Abstract

The application is suitable for block chain technical field, provide a kind of commission settlement method, device and terminal device based on block chain, the described method includes: when the first user completes to trade, the distribution relationship with first user-association is obtained from block chain, judges first user with the presence or absence of associated distribution user according to the distribution relationship;When first user is there are when the associated distribution user, distribution commission is calculated according to the transaction amount of the first user, the distribution relationship of each distribution user and first user and preset commission computation rule;The distribution commission is settled accounts to each distribution user, and commission settlement records are broadcasted into the block chain.The application can solve in existing commission settlement method, and the safety and reliability of distribution relationship and commission settlement records is difficult to ensure, mistake clearing, drain junction is easy to cause to calculate or repeat clearing, the problem of causing unnecessary economic loss.

Description

A kind of commission settlement method, device and terminal device based on block chain
Technical field
The application belong to block chain technical field more particularly to a kind of commission settlement method based on block chain, device and Terminal device.
Background technique
Distribution refers to the meaning for establishing Sales Channel, and distribution relationship refers to certain commodity or service from the producer to consumer During transfer, obtains the ownership of this commodity and service and help between all enterprises and individuals of ownership transfer Relationship.
After establishing distribution relationship, when distribution person therein completes to trade, grade distribution person can be from the transaction thereon It is middle to obtain certain commission.Commission clearing be according between each distribution person distribution relationship and commission settlement records carry out, Requirement to the safety and reliability of distribution relationship and commission settlement records is high, but current distribution relationship and commission knot It calculates record mainly to be stored by conventional database, be easy because the factors such as external attack or database corruption cause Distribution relationship and commission settlement records are tampered or lose, carry out commission clearing when, be easy to cause mistake clearing, drain junction calculate or Repetition clearing and so on, cause unnecessary economic loss.
To sum up, in existing commission settlement method, the safety and reliability of distribution relationship and commission settlement records is difficult to Ensure, be easy to cause mistake clearing, drain junction calculate or repeat clearing and so on, cause unnecessary economic loss.
Summary of the invention
It is set in view of this, the embodiment of the present application provides a kind of commission settlement method, device and terminal based on block chain Standby, to solve in existing commission settlement method, the safety and reliability of distribution relationship and commission settlement records is difficult to ensure, It is easy to cause mistake clearing, drain junction to calculate or repeat clearing, the problem of causing unnecessary economic loss.
The first aspect of the embodiment of the present application provides a kind of commission settlement method based on block chain, comprising:
When the first user completes to trade, the distribution relationship with first user-association is obtained from block chain, according to The distribution relationship judges first user with the presence or absence of associated distribution user;
When first user is there are when the associated distribution user, according to the transaction amount of the first user, Ge Gesuo The distribution relationship and preset commission computation rule for stating distribution user and first user calculate distribution commission;
The distribution commission is settled accounts to each distribution user, and commission settlement records are broadcasted to the block chain In.
The second aspect of the embodiment of the present application provides a kind of commission checkout apparatus based on block chain, comprising:
Association obtains module, for obtaining from block chain and closing with first user when the first user completes to trade The distribution relationship of connection judges first user with the presence or absence of associated distribution user according to the distribution relationship;
Commission computing module, for when first user is there are when the associated distribution user, according to the first user Transaction amount, it is each it is described distribution user and first user distribution relationship and preset commission computation rule calculate point Sell commission;
Settlement records module for settling accounts the distribution commission to each distribution user, and commission is settled accounts and is remembered Record broadcast is into the block chain.
The third aspect of the embodiment of the present application provides a kind of terminal device, including memory, processor and is stored in In the memory and the computer program that can run on the processor, when the processor executes the computer program It realizes such as the step of the above method.
The fourth aspect of the embodiment of the present application provides a kind of computer readable storage medium, the computer-readable storage Media storage has computer program, realizes when the computer program is executed by processor such as the step of the above method.
Existing beneficial effect is the embodiment of the present application compared with prior art:
In the commission settlement method based on block chain of the application, when carrying out distribution commission clearing, obtained from block chain The distribution relationship of first user-association, since block chain has the characteristics that distributed storage and not distorting, external attack or The hair for situations such as factors such as database corruption not will lead to distribution relationship and be tampered or lose, and can avoid mistake clearing and drain junction calculation It is raw, meanwhile, after commission clearing, commission settlement records are broadcasted into block chain, can avoid being tampered because of commission settlement records or Loss causes to repeat the case where settling accounts, and solves in existing commission settlement method, distributes relationship and commission settlement records Safety and reliability be difficult to ensure, be easy to cause mistake clearing, drain junction calculate or repeat clearing and so on, cause not The problem of necessary economic loss.
Detailed description of the invention
It in order to more clearly explain the technical solutions in the embodiments of the present application, below will be to embodiment or description of the prior art Needed in attached drawing be briefly described, it should be apparent that, the accompanying drawings in the following description is only some of the application Embodiment for those of ordinary skill in the art without creative efforts, can also be attached according to these Figure obtains other attached drawings.
Fig. 1 is a kind of implementation process schematic diagram of commission settlement method based on block chain provided by the embodiments of the present application;
Fig. 2 is a kind of schematic diagram of commission checkout apparatus based on block chain provided by the embodiments of the present application;
Fig. 3 is the schematic diagram of terminal device provided by the embodiments of the present application.
Specific embodiment
In being described below, for illustration and not for limitation, the tool of such as particular system structure, technology etc is proposed Body details, so as to provide a thorough understanding of the present application embodiment.However, it will be clear to one skilled in the art that there is no these specific The application also may be implemented in the other embodiments of details.In other situations, it omits to well-known system, device, electricity The detailed description of road and method, so as not to obscure the description of the present application with unnecessary details.
In order to illustrate technical solution described herein, the following is a description of specific embodiments.
It should be appreciated that ought use in this specification and in the appended claims, term " includes " instruction is described special Sign, entirety, step, operation, the presence of element and/or component, but be not precluded one or more of the other feature, entirety, step, Operation, the presence or addition of element, component and/or its set.
It is also understood that mesh of the term used in this present specification merely for the sake of description specific embodiment And be not intended to limit the application.As present specification and it is used in the attached claims, unless on Other situations are hereafter clearly indicated, otherwise " one " of singular, "one" and "the" are intended to include plural form.
It will be further appreciated that the term "and/or" used in present specification and the appended claims is Refer to any combination and all possible combinations of one or more of associated item listed, and including these combinations.
As used in this specification and in the appended claims, term " if " can be according to context quilt Be construed to " when ... " or " once " or " in response to determination " or " in response to detecting ".Similarly, phrase " if it is determined that " or " if detecting [described condition or event] " can be interpreted to mean according to context " once it is determined that " or " in response to true It is fixed " or " once detecting [described condition or event] " or " in response to detecting [described condition or event] ".
In the specific implementation, mobile terminal described in the embodiment of the present application is including but not limited to such as with the sensitive table of touch Mobile phone, laptop computer or the tablet computer in face (for example, touch-screen display and/or touch tablet) etc it is other Portable device.It is to be further understood that in certain embodiments, above equipment is not portable communication device, but is had The desktop computer of touch sensitive surface (for example, touch-screen display and/or touch tablet).
In following discussion, the mobile terminal including display and touch sensitive surface is described.However, should manage Solution, mobile terminal may include that one or more of the other physical User of such as physical keyboard, mouse and/or control-rod connects Jaws equipment.
Mobile terminal supports various application programs, such as one of the following or multiple: drawing application program, demonstration application Program, word-processing application, website creation application program, disk imprinting application program, spreadsheet applications, game are answered With program, telephony application, videoconference application, email application, instant messaging applications, forging Refining supports application program, photo management application program, digital camera application program, digital camera application program, web-browsing to answer With program, digital music player application and/or video frequency player application program.
At least one of such as touch sensitive surface can be used in the various application programs that can be executed on mobile terminals Public physical user-interface device.It can be adjusted among applications and/or in corresponding application programs and/or change touch is quick Feel the corresponding information shown in the one or more functions and terminal on surface.In this way, terminal public physical structure (for example, Touch sensitive surface) it can support the various application programs with user interface intuitive and transparent for a user.
In addition, term " first ", " second ", " third " etc. are only used for distinguishing description, and cannot in the description of the present application It is interpreted as indication or suggestion relative importance.
Embodiment one:
A kind of commission settlement method based on block chain provided below the embodiment of the present application one is described, and please refers to Attached drawing 1, the commission settlement method based on block chain in the embodiment of the present application one include:
Step S101, when the first user completes to trade, the distribution with first user-association is obtained from block chain Relationship judges first user with the presence or absence of associated distribution user according to the distribution relationship;
Distribution is to establish the meaning of Sales Channel, and distribution relationship can be established in several ways, for example, user A recommends User B registration shopping software G, user B recommended user C registration shopping software G, user C is established with user A and user B at this time Distribution relationship, when user C is when doing shopping purchase commodity on software G, shopping software G settles accounts certain commission to user A and user B, alternatively, user A takes cargo as level-one supply and marketing quotient from manufacturer, cargo distribution a part is sold to user B, is used by user A Family B becomes second level supply and marketing quotient, and user B distributes a part of cargo and sells to user C, and user C becomes retailer, when user C is sold When commodity, certain commission is settled accounts from profit to user A and user B.
When the first user completes to trade, can be obtained from block chain and the distribution relationship of the first user-association, judgement First user whether there is associated distribution user, due to the characteristic that block chain has distributed storage and can not distort, from area The case where acquisition distribution data, distribution relationship will not be tampered or lose in block chain, and mistake clearing or drain junction is avoided to calculate.
Step S102, when first user is there are when the associated distribution user, according to the trade gold of the first user Volume, the distribution relationship of each distribution user and first user and preset commission computation rule calculate distribution commission;
If the first user there are associated distribution user, needs to carry out commission clearing, according to the transaction of the first user The amount of money, the distribution relationship of each distribution user and the first user and preset commission computation rule calculate distribution commission.
Preset commission computation rule can be determined according to the actual situation, for example, can be set to each grade of distribution 30% clearing of profit are distributed user to upper level by user, by taking three-level distribution network model as an example, if three-level distribution user makes a profit It 10 yuan, then needs to submit 3 yuan and distributes user to second level, second level distribution user needs to submit 0.9 yuan and distributes user to level-one, carries out When distributing commission clearing, three-level distribution user needs to settle accounts 2.1 yuan and distributes user to level-one to second level distribution user and 0.9 yuan.
If associated distribution user is not present in the first user, do not need to carry out commission clearing, terminates commission clearing stream Journey.
Step S103, the distribution commission is settled accounts to each distribution user, and by commission settlement records broadcast to In the block chain.
It is calculated after distribution commission, distribution commission is settled accounts to each distribution user, the modes of commission clearing can be with For one of clearing forms such as cash settlement, discount coupon clearing, integral clearing and clearing in kind or a variety of.
After distributing commission clearing, commission settlement records are broadcasted into block chain, commission settlement records will not be tampered Or lose, it avoids repeating the case where settling accounts.
Further, described to settle accounts the distribution commission to each distribution user and commission settlement records are wide It casts in the block chain and specifically includes:
A1, the distribution commission is settled accounts to each distribution user, and the commission is settled accounts using platform public key Record is encrypted, and encrypted commission settlement records are broadcasted into the block chain.
For certain enterprises, commission settlement records belong to business secret, are not suitable for directly that commission settlement records are wide It broadcasts and is sent in block chain, at this point it is possible to broadcast by commission settlement records to before block chain, using platform public key to commission Settlement records are encrypted, and only can just be decrypted to encrypted commission settlement records using platform private key after encryption, His node can not directly acquire the particular content of commission settlement records, improve the confidentiality of commission settlement records.
Further, the method also includes:
B1, the corresponding commission settlement records of each distribution user are respectively sent to corresponding distribution user, respectively Hash operation is carried out to the corresponding commission settlement records of each distribution user and obtains each distribution user corresponding the One cryptographic Hash broadcasts each first cryptographic Hash into the block chain;
After the clearing for having carried out distribution commission, feedback element can also be set, by the corresponding commission of each distribution user Settlement records are respectively sent to corresponding distribution user, so that each distribution user checks confirmation.
Meanwhile can respectively to the corresponding commission settlement records of each distribution user carry out Hash operation obtain it is each Corresponding first cryptographic Hash of the distribution user, each first cryptographic Hash is broadcasted into block chain.
B2, the user's signature that distribution user's broadcast is obtained from block chain use the client public key pair of the distribution user The user's signature is decrypted to obtain the second cryptographic Hash, if second cryptographic Hash corresponding with the distribution user first is breathed out Uncommon value is consistent, then completes the commission settlement process of the distribution user.
Each distribution user checked after the commission settlement records of oneself, if it is confirmed that it is errorless, commission can be settled accounts Record carries out Hash operation and obtains the second cryptographic Hash, is encrypted to obtain user's signature to the second cryptographic Hash using private key for user, User's signature is broadcasted into block chain.
Platform obtains the user's signature of distribution user's broadcast from block chain, uses the client public key of corresponding distribution user User's signature is decrypted to obtain the second cryptographic Hash, if the second cryptographic Hash is consistent with the first cryptographic Hash, then it represents that the distribution User has checked commission settlement records and has approved, completes the commission settlement process of distribution user.
If the second cryptographic Hash and the first cryptographic Hash it is inconsistent or do not received in preset time period distribution user use Family signature then may be that there are objections or commission settlement records transmission process to occur to commission settlement records by appearance distribution user Situations such as problem, is checked at this time to determine concrete reason, the accuracy of protected commissions clearing, for example, platform will hire Golden settlement records are sent to user A, user B and user C, but the user of user A and user B have been received only in preset time period Signature, the user's signature of user A are proved to be successful, the user's signature authentication failed of user B, then possible user B and user C is to commission Settlement records go wrong during passing to user B and user C there are objection or commission settlement records, need to check at this time Specific reason, goes wrong if it is transmission process, then transmits corresponding commission settlement records again to user B and user C, If it is user B and user C, to commission settlement records, there are objections, then verify whether distribution commission calculates error, protected commissions The accuracy of clearing.
Further, the method also includes:
C1, disaster reconstruction instruction is received, the area that instruction obtains each node in the block chain is rebuild according to the disaster Block chain data, the block chain data that the node to be greater than preset proportion is approved are as standard block chain data, with the standard regions Distribution relationship and commission settlement records in block chain data rebuild local data base.
When local data base damage or staff think to need to carry out data to local data base to update reconstruction, Disaster can be sent and rebuild instruction, management platform rebuilds the block chain number that instruction obtains each node in block chain according to disaster According to;
After getting the block chain data of each node in block chain, the area of preset proportion node approval can be will be greater than Block chain data are as standard block chain data, with the distribution reconstruction of relations local data base in standard block chain data.
Preset proportion can be configured according to the actual situation, such as can be set to 50%.
Further, the reception disaster rebuilds instruction, is rebuild according to the disaster each in the instruction acquisition block chain The block chain data of a node, using the block chain data that the node greater than preset proportion is approved as standard block chain data, with Distribution relationship and commission settlement records in the standard block chain data are rebuild local data base and are specifically included:
D1, disaster reconstruction instruction is received, the area that instruction obtains each node in the block chain is rebuild according to the disaster The merkle root of block chain data;
D2, the corresponding block chain data of merkle root approved using the node for being greater than preset proportion are as standard block chain number According to the distribution relationship and commission settlement records reconstruction local data base in the standard block chain data.
When carrying out the comparison of block chain data of each node, can directly it be compared using complete block chain data Compared with, but the data volume for needing operation extremely huge, and arithmetic speed is extremely slow, accordingly it is also possible to be referred to according to data base recreation The merkle root for obtaining the block chain data of each node in block chain is enabled, the merkle root of each node is compared, with Greater than the node of preset proportion approve the corresponding block chain data of merkle root as standard block chain data.
The block chain data of each node storage are segmented into multiple affairs, such as using the data of a block as one Affairs, each affairs can carry out Hash operation and obtain cryptographic Hash, and two neighboring cryptographic Hash can carry out Hash operation and obtain One layer of cryptographic Hash successively calculates and forms merkle tree, when the block chain data of two nodes storage are consistent, the two nodes Block chain data formed merkle tree it is identical, root node having the same, i.e. merkle root.
It therefore, is the block chain number that can determine whether each node by comparing the merkle root of the block chain data of each node According to whether unanimously, the comparison of complete block chain data is become to the comparison of merkle root, the number of operation can be greatly reduced According to the speed for measuring and improving operation.
Further, the method also includes:
E1, the user's signature for receiving commission inquiry instruction and second user, using the public key of second user to the user Signature is verified;
When inquiry user needs to inquire the commission settlement records of second user, need to use commission inquiry instruction and second The user's signature at family is sent to platform, and platform verifies the user's signature of second user using the public key of second user.
If E2, the user's signature are verified, the corresponding commission knot of the second user is obtained from local data base Record is calculated, the commission settlement records are back to inquiry user;
Alternatively, obtaining the corresponding encryption of the second user from the block chain if the user's signature is verified Commission settlement records afterwards are decrypted the commission settlement records using platform private key, and the commission after decryption is settled accounts note Playback is back to inquiry user.
When the signature verification of second user passes through, indicate that second user has authorized inquiry user query commission settlement records Qualification, the commission settlement records of second user can be back at this time inquiry user.
Commission settlement records can be obtained from local data base, can also be obtained from block chain.It is obtained when from block chain When the commission settlement records of second user, the commission settlement records got are the data encrypted, and platform private key pair can be used Commission settlement records are decrypted, and the commission settlement records after retelling decryption are back to inquiry user.
Inquiry user can be identical user from second user and be also possible to different users, for example, when user A wants to look into When asking the commission settlement records of oneself, inquires user at this time and second user all refers to that alternative family A, user A need to send oneself User's signature to platform;When user A wants to inquire the commission settlement records of user B, inquiry user refers to user A, and second uses Family refers to user B, and user A needs first to authorize to user's B application, and the authorization for obtaining user B can just inquire the commission knot of user B Record is calculated, the user's signature of user B just can be sent to platform to inquire by user B return user's signature to user A, user A The commission settlement records of user B.
By the verifying to user's signature, the commission of second user only can be just inquired by second user authorization Settlement records can improve the confidentiality of commission settlement records to avoid the leakage of commission settlement records.
In the commission settlement method based on block chain that the present embodiment one provides, when carrying out distribution commission clearing, from block The distribution relationship that the first user-association is obtained in chain, it is external since block chain has the characteristics that distributed storage and can not distort The factors such as attack or database corruption not will lead to distribution relationship and be tampered or lose, and can avoid mistake is settled accounts and drain junction is calculated etc. The occurrence of, meanwhile, after commission clearing, commission settlement records are broadcasted into block chain, can avoid because of commission settlement records Being tampered or losing causes to repeat the case where settling accounts, and solves in existing commission settlement method, distributes relationship and commission The hair for situations such as safety and reliability of settlement records is difficult to ensure, mistake clearing, drain junction is easy to cause to calculate or repeat clearing The problem of giving birth to, causing unnecessary economic loss.
When broadcasting commission settlement records to block chain, platform public key can be used, commission settlement records deformity is added It is close, improve the confidentiality of commission settlement records.
After commission clearing, feedback element can be set, commission settlement records are sent to each distribution user, according to each The feedback of a distribution user judges each distribution user, and whether to commission settlement records, there are objections, if without demur, complete to hire Golden settlement process.
When local data base damage or because when other reasons need to rebuild local data base, can be rebuild by disaster Instruction obtain block chain in each node block chain data, using be greater than preset proportion node approve block chain data as Standard block chain data, it is each with the distribution relationship and commission settlement records reconstruction local data base in standard block chain data The comparison procedure of the block chain data of node can be compared by merkle root, to reduce the data volume and raising of operation The speed of operation.
When inquiry user wishes to inquire the distribution record of second user, need to send the user's signature of second user, it is right The user's signature of second user is verified to determine whether inquiry user obtains the authorization of second user, has only obtained second The authorization of user can just inquire the commission settlement records of second user, it is ensured that commission settlement records will not be revealed arbitrarily, improve The confidentiality of commission settlement records.
It should be understood that the size of the serial number of each step is not meant that the order of the execution order in above-described embodiment, each process Execution sequence should be determined by its function and internal logic, the implementation process without coping with the embodiment of the present application constitutes any limit It is fixed.
Embodiment two:
The embodiment of the present application two provides a kind of commission checkout apparatus based on block chain, for purposes of illustration only, only show with The relevant part of the application, as shown in Fig. 2, the commission checkout apparatus based on block chain includes,
Association obtains module 201, for being obtained and first user from block chain when the first user completes to trade Associated distribution relationship judges first user with the presence or absence of associated distribution user according to the distribution relationship;
Commission computing module 202, for being used according to first when first user is there are when the associated distribution user The transaction amount at family, the distribution relationship of each distribution user and first user and preset commission computation rule calculate Distribute commission;
Settlement records module 203 for settling accounts the distribution commission to each distribution user, and commission is settled accounts Record broadcast is into the block chain.
Further, settlement records module 203 is used specifically for settling accounts the distribution commission to each distribution Family, and the commission settlement records are encrypted using platform public key, encrypted commission settlement records are broadcasted to described In block chain.
Further, described device further include:
Hash broadcast module, it is corresponding for being respectively sent to the corresponding commission settlement records of each distribution user User is distributed, each distribution is obtained to each distribution user corresponding commission settlement records progress Hash operation respectively Corresponding first cryptographic Hash of user, and each first cryptographic Hash is broadcasted into the block chain;
Hash authentication module is used for obtaining the user's signature of distribution user's broadcast from block chain using the distribution The client public key at family is decrypted the user's signature to obtain the second cryptographic Hash, if second cryptographic Hash and the distribution are used Corresponding first cryptographic Hash in family is consistent, then completes the commission settlement process of the distribution user.
Further, described device further include:
Instruction module is rebuild, instruction is rebuild for receiving disaster, instruction is rebuild according to the disaster and obtains the block chain In each node block chain data, the block chain data that the node to be greater than preset proportion is approved are as standard block chain number According to the distribution relationship and commission settlement records reconstruction local data base in the standard block chain data.
Further, the reconstruction instruction module specifically includes:
Data submodule rebuilds instruction for receiving disaster, rebuilds instruction according to the disaster and obtain in the block chain The merkle root of the block chain data of each node;
Comparative sub-module, for using be greater than preset proportion node approve the corresponding block chain data of merkle root as Standard block chain data, with the distribution relationship and commission settlement records reconstruction local data base in the standard block chain data.
Further, described device further include:
Inquiring and authenticating module uses second user for receiving the user's signature of commission inquiry instruction and second user Public key verifies the user's signature;
Query feedback module obtains described second from local data base and uses if being verified for the user's signature The commission settlement records are back to inquiry user by the corresponding commission settlement records in family;
Alternatively, query feedback module obtains described if being verified for the user's signature from the block chain The corresponding encrypted commission settlement records of two users are decrypted the commission settlement records using platform private key, will solve Commission settlement records after close are back to inquiry user.
It should be noted that the contents such as information exchange, implementation procedure between above-mentioned apparatus/unit, due to the application Embodiment of the method is based on same design, concrete function and bring technical effect, for details, reference can be made to embodiment of the method part, this Place repeats no more.
Embodiment three:
Fig. 3 is the schematic diagram for the terminal device that the embodiment of the present application three provides.As shown in figure 3, the terminal of the embodiment is set Standby 3 include: processor 30, memory 31 and are stored in the meter that can be run in the memory 31 and on the processor 30 Calculation machine program 32.The processor 30 realizes the above-mentioned commission settlement method based on block chain when executing the computer program 32 Step in embodiment, such as step S101 to S103 shown in FIG. 1.Alternatively, the processor 30 executes the computer journey The function of each module/unit in above-mentioned each Installation practice, such as the function of module 201 to 203 shown in Fig. 2 are realized when sequence 32.
Illustratively, the computer program 32 can be divided into one or more module/units, it is one or Multiple module/units are stored in the memory 31, and are executed by the processor 30, to complete the application.Described one A or multiple module/units can be the series of computation machine program instruction section that can complete specific function, which is used for Implementation procedure of the computer program 32 in the terminal device 3 is described.For example, the computer program 32 can be divided It is as follows to be cut into association acquisition module, commission computing module and settlement records module, each module concrete function:
When the first user completes to trade, the distribution relationship with first user-association is obtained from block chain, according to The distribution relationship judges first user with the presence or absence of associated distribution user;
When first user is there are when the associated distribution user, according to the transaction amount of the first user, Ge Gesuo The distribution relationship and preset commission computation rule for stating distribution user and first user calculate distribution commission;
The distribution commission is settled accounts to each distribution user, and commission settlement records are broadcasted to the block chain In.
The terminal device 3 can be the calculating such as desktop PC, notebook, palm PC and cloud server and set It is standby.The terminal device may include, but be not limited only to, processor 30, memory 31.It will be understood by those skilled in the art that Fig. 3 The only example of terminal device 3 does not constitute the restriction to terminal device 3, may include than illustrating more or fewer portions Part perhaps combines certain components or different components, such as the terminal device can also include input-output equipment, net Network access device, bus etc..
Alleged processor 30 can be central processing unit (Central Processing Unit, CPU), can also be Other general processors, digital signal processor (Digital Signal Processor, DSP), specific integrated circuit (Application Specific Integrated Circuit, ASIC), ready-made programmable gate array (Field- Programmable Gate Array, FPGA) either other programmable logic device, discrete gate or transistor logic, Discrete hardware components etc..General processor can be microprocessor or the processor is also possible to any conventional processor Deng.
The memory 31 can be the internal storage unit of the terminal device 3, such as the hard disk or interior of terminal device 3 It deposits.The memory 31 is also possible to the External memory equipment of the terminal device 3, such as be equipped on the terminal device 3 Plug-in type hard disk, intelligent memory card (Smart Media Card, SMC), secure digital (Secure Digital, SD) card dodge Deposit card (Flash Card) etc..Further, the memory 31 can also both include the storage inside list of the terminal device 3 Member also includes External memory equipment.The memory 31 is for storing needed for the computer program and the terminal device Other programs and data.The memory 31 can be also used for temporarily storing the data that has exported or will export.
It is apparent to those skilled in the art that for convenience of description and succinctly, only with above-mentioned each function Can unit, module division progress for example, in practical application, can according to need and by above-mentioned function distribution by different Functional unit, module are completed, i.e., the internal structure of described device is divided into different functional unit or module, more than completing The all or part of function of description.Each functional unit in embodiment, module can integrate in one processing unit, can also To be that each unit physically exists alone, can also be integrated in one unit with two or more units, it is above-mentioned integrated Unit both can take the form of hardware realization, can also realize in the form of software functional units.In addition, each function list Member, the specific name of module are also only for convenience of distinguishing each other, the protection scope being not intended to limit this application.Above system The specific work process of middle unit, module, can refer to corresponding processes in the foregoing method embodiment, and details are not described herein.
In the above-described embodiments, it all emphasizes particularly on different fields to the description of each embodiment, is not described in detail or remembers in some embodiment The part of load may refer to the associated description of other embodiments.
Those of ordinary skill in the art may be aware that list described in conjunction with the examples disclosed in the embodiments of the present disclosure Member and algorithm steps can be realized with the combination of electronic hardware or computer software and electronic hardware.These functions are actually It is implemented in hardware or software, the specific application and design constraint depending on technical solution.Professional technician Each specific application can be used different methods to achieve the described function, but this realization is it is not considered that exceed Scope of the present application.
In embodiment provided herein, it should be understood that disclosed device/terminal device and method, it can be with It realizes by another way.For example, device described above/terminal device embodiment is only schematical, for example, institute The division of module or unit is stated, only a kind of logical function partition, there may be another division manner in actual implementation, such as Multiple units or components can be combined or can be integrated into another system, or some features can be ignored or not executed.Separately A bit, shown or discussed mutual coupling or direct-coupling or communication connection can be through some interfaces, device Or the INDIRECT COUPLING or communication connection of unit, it can be electrical property, mechanical or other forms.
The unit as illustrated by the separation member may or may not be physically separated, aobvious as unit The component shown may or may not be physical unit, it can and it is in one place, or may be distributed over multiple In network unit.It can select some or all of unit therein according to the actual needs to realize the mesh of this embodiment scheme 's.
It, can also be in addition, each functional unit in each embodiment of the application can integrate in one processing unit It is that each unit physically exists alone, can also be integrated in one unit with two or more units.Above-mentioned integrated list Member both can take the form of hardware realization, can also realize in the form of software functional units.
If the integrated module/unit be realized in the form of SFU software functional unit and as independent product sale or In use, can store in a computer readable storage medium.Based on this understanding, the application realizes above-mentioned implementation All or part of the process in example method, can also instruct relevant hardware to complete, the meter by computer program Calculation machine program can be stored in a computer readable storage medium, the computer program when being executed by processor, it can be achieved that on The step of stating each embodiment of the method.Wherein, the computer program includes computer program code, the computer program generation Code can be source code form, object identification code form, executable file or certain intermediate forms etc..The computer-readable medium It may include: any entity or device, recording medium, USB flash disk, mobile hard disk, magnetic that can carry the computer program code Dish, CD, computer storage, read-only memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), electric carrier signal, telecommunication signal and software distribution medium etc..It should be noted that described The content that computer-readable medium includes can carry out increasing appropriate according to the requirement made laws in jurisdiction with patent practice Subtract, such as does not include electric carrier signal and electricity according to legislation and patent practice, computer-readable medium in certain jurisdictions Believe signal.
Embodiment described above is only to illustrate the technical solution of the application, rather than its limitations;Although referring to aforementioned reality Example is applied the application is described in detail, those skilled in the art should understand that: it still can be to aforementioned each Technical solution documented by embodiment is modified or equivalent replacement of some of the technical features;And these are modified Or replacement, the spirit and scope of each embodiment technical solution of the application that it does not separate the essence of the corresponding technical solution should all Comprising within the scope of protection of this application.

Claims (10)

1. a kind of commission settlement method based on block chain characterized by comprising
When the first user completes to trade, the distribution relationship with first user-association is obtained from block chain, according to described Distribution relationship judges first user with the presence or absence of associated distribution user;
When first user is there are when the associated distribution user, according to the transaction amount of the first user, described point each The distribution relationship and preset commission computation rule for selling user and first user calculate distribution commission;
The distribution commission is settled accounts to each distribution user, and commission settlement records are broadcasted into the block chain.
2. as described in claim 1 based on the commission settlement method of block chain, which is characterized in that described by the distribution commission It settles accounts to each distribution user, and commission settlement records is broadcasted into the block chain and are specifically included:
The distribution commission is settled accounts to each distribution user, and the commission settlement records are carried out using platform public key Encryption, encrypted commission settlement records are broadcasted into the block chain.
3. as described in claim 1 based on the commission settlement method of block chain, which is characterized in that the method also includes:
The corresponding commission settlement records of each distribution user are respectively sent to corresponding distribution user, respectively to each institute It states the corresponding commission settlement records progress Hash operation of distribution user and obtains corresponding first cryptographic Hash of each distribution user, Each first cryptographic Hash is broadcasted into the block chain;
The user's signature that distribution user's broadcast is obtained from block chain, using the client public key of the distribution user to the user Signature is decrypted to obtain the second cryptographic Hash, if second cryptographic Hash the first cryptographic Hash one corresponding with the distribution user It causes, then completes the commission settlement process of the distribution user.
4. as described in claim 1 based on the commission settlement method of block chain, which is characterized in that the method also includes:
It receives disaster and rebuilds instruction, the block chain number that instruction obtains each node in the block chain is rebuild according to the disaster According to the block chain data that the node to be greater than preset proportion is approved are as standard block chain data, with the standard block chain number Distribution relationship and commission settlement records in rebuild local data base.
5. as claimed in claim 4 based on the commission settlement method of block chain, which is characterized in that the reception disaster reconstruction refers to It enables, the block chain data that instruction obtains each node in the block chain is rebuild according to the disaster, to be greater than preset proportion The block chain data that node is approved are as standard block chain data, with the distribution relationship and commission in the standard block chain data Settlement records are rebuild local data base and are specifically included:
It receives disaster and rebuilds instruction, the block chain data that instruction obtains each node in the block chain are rebuild according to the disaster Merkle root;
The corresponding block chain data of merkle root that node to be greater than preset proportion is approved are as standard block chain data, with institute The distribution relationship and commission settlement records stated in standard block chain data rebuild local data base.
6. as claimed in claim 2 based on the commission settlement method of block chain, which is characterized in that the method also includes:
The user's signature for receiving commission inquiry instruction and second user carries out the user's signature using the public key of second user Verifying;
If the user's signature is verified, the corresponding commission settlement records of the second user are obtained from local data base, The commission settlement records are back to inquiry user;
Alternatively, if the user's signature is verified, it is corresponding encrypted from the block chain to obtain the second user Commission settlement records are decrypted the commission settlement records using platform private key, the commission settlement records after decryption are returned It is back to inquiry user.
7. a kind of commission checkout apparatus based on block chain characterized by comprising
Association obtains module, for obtaining from block chain and first user-association when the first user completes to trade Distribution relationship judges first user with the presence or absence of associated distribution user according to the distribution relationship;
Commission computing module, for when first user is there are when the associated distribution user, according to the friendship of the first user The easy amount of money, each distribution user and the distribution relationship of first user and preset commission computation rule calculate distribution and hire Gold;
Settlement records module, for settling accounts the distribution commission to each distribution user, and commission settlement records are wide It casts in the block chain.
8. as claimed in claim 7 based on the commission checkout apparatus of block chain, which is characterized in that settlement records module, specifically For settling accounts the distribution commission to each distribution user, and the commission settlement records are carried out using platform public key Encryption, encrypted commission settlement records are broadcasted into the block chain.
9. a kind of terminal device, including memory, processor and storage are in the memory and can be on the processor The computer program of operation, which is characterized in that the processor realizes such as claim 1 to 6 when executing the computer program The step of any one the method.
10. a kind of computer readable storage medium, the computer-readable recording medium storage has computer program, and feature exists In when the computer program is executed by processor the step of any one of such as claim 1 to 6 of realization the method.
CN201811372638.2A 2018-11-16 2018-11-16 A kind of commission settlement method, device and terminal device based on block chain Pending CN109493047A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201811372638.2A CN109493047A (en) 2018-11-16 2018-11-16 A kind of commission settlement method, device and terminal device based on block chain

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201811372638.2A CN109493047A (en) 2018-11-16 2018-11-16 A kind of commission settlement method, device and terminal device based on block chain

Publications (1)

Publication Number Publication Date
CN109493047A true CN109493047A (en) 2019-03-19

Family

ID=65696187

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201811372638.2A Pending CN109493047A (en) 2018-11-16 2018-11-16 A kind of commission settlement method, device and terminal device based on block chain

Country Status (1)

Country Link
CN (1) CN109493047A (en)

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110263097A (en) * 2019-06-18 2019-09-20 阿里巴巴集团控股有限公司 Information processing method, device and equipment based on block chain
CN110852734A (en) * 2019-11-06 2020-02-28 上海景域文化传播股份有限公司 Scenic spot service settlement method and system based on block chain and electronic equipment
CN111402011A (en) * 2020-05-29 2020-07-10 支付宝(杭州)信息技术有限公司 Block chain based commission distribution method and device
WO2020220751A1 (en) * 2019-04-28 2020-11-05 创新先进技术有限公司 Consumption contract processing method and system therefor

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
AU2017100426A4 (en) * 2017-04-18 2017-06-15 McAlister, Gary MR New Islamic Banking Sharia Compliant Blockchain Innovation Patent that has no riba, usury or interest component for but not limited to savings, deposit, ethical loans, finance, stock share bond, Private Placement Programs, Digitally discover new mine deposits to franchise & new monetary system using blockchains POS proof of stake/secondary mining mine discovery process of assets and commodities for entities such as but not limited to Governments, treasuries, central banks, banks, financial institutions, monetary funds, judicial entities, profit-sharing blockchain franchise investments PSBFI's.
CN107657553A (en) * 2017-09-21 2018-02-02 浙江惠码科技有限公司 A kind of electronic contract generation method based on alliance's chain, information anti-fake method of tracing to the source
CN107993047A (en) * 2017-11-22 2018-05-04 焦文华 A kind of declaration form sales commission rights management method based on block chain
CN108537694A (en) * 2018-04-23 2018-09-14 众安信息技术服务有限公司 Method, apparatus and readable storage medium storing program for executing for protecting copyright on block chain
CN108805707A (en) * 2018-05-21 2018-11-13 阿里巴巴集团控股有限公司 Works copyright revenue distribution method and device based on block chain

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
AU2017100426A4 (en) * 2017-04-18 2017-06-15 McAlister, Gary MR New Islamic Banking Sharia Compliant Blockchain Innovation Patent that has no riba, usury or interest component for but not limited to savings, deposit, ethical loans, finance, stock share bond, Private Placement Programs, Digitally discover new mine deposits to franchise & new monetary system using blockchains POS proof of stake/secondary mining mine discovery process of assets and commodities for entities such as but not limited to Governments, treasuries, central banks, banks, financial institutions, monetary funds, judicial entities, profit-sharing blockchain franchise investments PSBFI's.
CN107657553A (en) * 2017-09-21 2018-02-02 浙江惠码科技有限公司 A kind of electronic contract generation method based on alliance's chain, information anti-fake method of tracing to the source
CN107993047A (en) * 2017-11-22 2018-05-04 焦文华 A kind of declaration form sales commission rights management method based on block chain
CN108537694A (en) * 2018-04-23 2018-09-14 众安信息技术服务有限公司 Method, apparatus and readable storage medium storing program for executing for protecting copyright on block chain
CN108805707A (en) * 2018-05-21 2018-11-13 阿里巴巴集团控股有限公司 Works copyright revenue distribution method and device based on block chain

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2020220751A1 (en) * 2019-04-28 2020-11-05 创新先进技术有限公司 Consumption contract processing method and system therefor
CN110263097A (en) * 2019-06-18 2019-09-20 阿里巴巴集团控股有限公司 Information processing method, device and equipment based on block chain
CN110852734A (en) * 2019-11-06 2020-02-28 上海景域文化传播股份有限公司 Scenic spot service settlement method and system based on block chain and electronic equipment
CN111402011A (en) * 2020-05-29 2020-07-10 支付宝(杭州)信息技术有限公司 Block chain based commission distribution method and device
CN111402011B (en) * 2020-05-29 2020-09-08 支付宝(杭州)信息技术有限公司 Block chain based commission distribution method and device

Similar Documents

Publication Publication Date Title
JP6687715B2 (en) Method and system for fraud detection in blockchain-based transactions
US10909529B2 (en) Methods and systems for digital reward processing
De Filippi Blockchain and the law: The rule of code
Yli-Huumo et al. Where is current research on blockchain technology?—a systematic review
US10366212B2 (en) Verification system for secure transmission in a distributed processing network
US9794074B2 (en) Systems and methods for storing and sharing transactional data using distributed computing systems
US20190036678A1 (en) Systems and methods for implementing an efficient, scalable homomorphic transformation of encrypted data with minimal data expansion and improved processing efficiency
US20180341861A1 (en) Architectures, systems and methods for program defined state system
CA2981511C (en) Systems and methods of blockchain transaction recordation
KR20190015287A (en) Cryptographic applications for block-chain systems
KR20180114915A (en) Block Chain Based Exchange Using Tokenization
JP2020115394A (en) Method and system for processing blockchain-based transactions on existing payment networks
KR20180115764A (en) Tokenizing method and system for implementing exchange in a block chain
Franco Understanding bitcoin
US20200351272A1 (en) Unified identity verification
Benchoufi et al. Blockchain protocols in clinical trials: Transparency and traceability of consent
US20210014060A1 (en) Network node authentication
Gatteschi et al. To blockchain or not to blockchain: That is the question
US20180189753A1 (en) Infrastructure for obligation management and validation
Antonopoulos Mastering Bitcoin: unlocking digital cryptocurrencies
US10026118B2 (en) System for allowing external validation of data in a process data network
Vazirani et al. Implementing blockchains for efficient health care: systematic review
US8904181B1 (en) System and method for secure three-party communications
EP3323080B1 (en) Computationally efficient transfer processing, auditing, and search apparatuses, methods and systems
US20180075422A1 (en) Financial management systems and methods

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