CN109359988A - Resource allocation methods, system, server and storage medium based on block chain - Google Patents

Resource allocation methods, system, server and storage medium based on block chain Download PDF

Info

Publication number
CN109359988A
CN109359988A CN201811118448.8A CN201811118448A CN109359988A CN 109359988 A CN109359988 A CN 109359988A CN 201811118448 A CN201811118448 A CN 201811118448A CN 109359988 A CN109359988 A CN 109359988A
Authority
CN
China
Prior art keywords
user account
value
trust
record
user
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.)
Granted
Application number
CN201811118448.8A
Other languages
Chinese (zh)
Other versions
CN109359988B (en
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.)
Chongqing Xiaoyu Small Loan Co Ltd
Original Assignee
Chongqing Xiaoyu Small Loan 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 Chongqing Xiaoyu Small Loan Co Ltd filed Critical Chongqing Xiaoyu Small Loan Co Ltd
Priority to CN201811118448.8A priority Critical patent/CN109359988B/en
Publication of CN109359988A publication Critical patent/CN109359988A/en
Application granted granted Critical
Publication of CN109359988B publication Critical patent/CN109359988B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

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/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/4016Transaction verification involving fraud or risk level assessment in transaction processing
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06QINFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
    • G06Q40/00Finance; Insurance; Tax strategies; Processing of corporate or income taxes
    • G06Q40/04Trading; Exchange, e.g. stocks, commodities, derivatives or currency exchange

Abstract

The application provides a kind of resource allocation methods based on block chain, system, server and storage medium.Wherein, this method comprises: when detecting that third user account receives second user account and is intended to pay the first fund of the first user account, pay the first fund to the first user account, and the first trust record is uploaded to block chain network, first trust record is that second user account is made loans to the first user account, and the information that the payment of corresponding first fund is completed records;When third user account receives the second fund of the first user account second user account to be paid, pay the second fund to second user account, and the second trust record is uploaded to block chain network, the second trust record is the second fund payment completion information record.

Description

Resource allocation methods, system, server and storage medium based on block chain
Technical field
This application involves the technical fields of block chain technical application, and in particular to a kind of resource allocation side based on block chain Method, system, server and storage medium.
Background technique
Block chain: block chain (Blockchain) is Distributed Storage, point-to-point transmission, common recognition mechanism, encryption calculation The new application mode of the computer technologies such as method.So-called common recognition mechanism is to realize to establish letter between different user in block catenary system Appoint, obtain the mathematical algorithm of equity.
Internet-based pay all is to realize to pay using franc in industry at present, and debtor and creditor is shown in third-party Card is lower complete transaction after, do not carry out anti-repudiation operation, such as debit gangs up with third party, credit side can not put to the proof debit and the In the case that tripartite gangs up, the case where debit is with third party's denial can not be prevented;In another example credit side gangs up with third party, debit Credit side can not be put to the proof to gang up with third party, can not also prevent credit side and third party from denying.Therefore, it exists in the prior art The problem of transaction on network in debtor-creditor relationship is denied.
Summary of the invention
It is situated between in view of this, the application provides a kind of resource allocation methods based on block chain, system, server and storage Matter, for solving the problems, such as that the transaction on network in debtor-creditor relationship is denied in the prior art.
This application provides a kind of resource allocation methods based on block chain, be applied to block chain network, the method Include: when detecting that third user account receives second user account and is intended to pay the first fund of the first user account, will First fund pays first user account, and the first trust record is uploaded to the block chain network, described First trust record is that the second user account is made loans to first user account, and corresponding first fund is paid The information of completion records;It is intended to pay the second user account when the third user account receives first user account The second fund when, pay second fund to the second user account, and the second trust record is uploaded to block Chain network, second trust record are the second fund payment completion information record, the amount of money of first fund and institute The amount of money for stating the second fund has the first preset relation.
Optionally, in the embodiment of the present application, described to detect that third user account receives second user account and is intended to prop up When paying the first fund of the first user account, first fund is paid to first user account, and first is believed Record is appointed to be uploaded to before the block chain network, the method also includes: receive first user account and described the The first of two user accounts transmission is requested, and first request is used as transaction monitoring party for request selection third user account, The first user identifier and the institute of information of first request comprising the third user account and first user account State the second user mark of second user account;First request is sent to the third user account, and described the In the case where first user account described in three user account requests verifications and the second user account, it is based on first user Mark and second user mark obtain the initial data in the block chain network;Based on described in initial data calculating Second trust value of the first trust value of the first user account and the second user account;First trust value with And the message being verified is sent to the third user account when meeting preset rules by second trust value;It is receiving When the confirmation message sent to the third user account, by the third user account labeled as first user account and The transaction monitoring party of the second user account.
Optionally, in the embodiment of the present application, described that the of first user account is calculated based on the initial data After one trust value and the second trust value of the second user account, the method also includes: judge that described first trusts Whether the sum of value and second trust value, which are greater than, is trusted preset value;If more than, it is determined that first trust value and described Second trust value meets the preset rules.
Optionally, in the embodiment of the present application, the method also includes: if first trust value and it is described second trust The sum of value is not more than the trust preset value, then the message of authentication failed is sent to the third user account.
Optionally, in the embodiment of the present application, the reception first user account and the second user account Before the first request sent, the method also includes: receive first user account and second user account hair The second request sent, second request choose transaction monitoring party for requesting;It is obtained from transaction monitoring party alternate data library Credit value sorts in multiple user accounts of preset threshold, and the multiple user account is pushed to first user account With the second user account so that first user account and the second user account are chosen.
Optionally, in the embodiment of the present application, the initial data includes the first loaning bill note of first user account The the second loaning bill record and the second refund record of record and the first refund record and the second user account, it is described based on institute It states initial data and calculates the first trust value of first user account and the second trust value of the second user account, It include: to borrow money to record to refund with described first according to described first to record the first credit value for calculating first user account, And it borrows money to record to refund with described second according to described second and records the second credit value for calculating the second user account;According to The initial data, first credit value and second credit value calculate separately the first letter of first user account Appoint the second trust value of value and the second user account.
Optionally, in the embodiment of the present application, described according to the initial data, first credit value and described second Credit value calculates separately the first trust value of first user account and the second trust value of the second user account, packet It includes: according to the initial data, obtaining first and value, described first and value are the sum of the credit value of all registration users, described Initial data further includes the credit value of all registration users;According to the initial data, second and value are obtained, described second and value For the sum of the payment completion information record of all registration users, the initial data further includes that the payment of all registration users is completed Information record;Institute is obtained according to first credit value, described first and value, the first trust record number and described second and value The first trust value is stated, the first trust record number is the payment completion information record that the first user account uploads block chain network Number;Described second is obtained according to second credit value, described first and value, the second trust record number and described second and value Trust value, the second trust record number are the payment completion information record number that second user account uploads block chain network.
Present invention also provides a kind of resource allocation system, the resource allocation system includes: that the first trust record uploads Module detects that third user account receives second user account and is intended to pay the first fund of the first user account for working as When, pay first fund to first user account, and the first trust record is uploaded to block chain network, it is described First trust record is that the second user account is made loans to first user account, and corresponding first fund is paid The information of completion records;Second trust record uploading module, for receiving the first user account when the third user account When family is intended to pay the second fund of the second user account, second fund is paid to the second user account, And the second trust record is uploaded to block chain network, second trust record is the second fund payment completion information note The amount of money of record, the amount of money of first fund and second fund has the first preset relation.
Present invention also provides a kind of servers, comprising: processor, memory and communication interface, the memory storage The machine readable instructions for having the processor executable, the communication interface with external equipment for being communicated, the machine Readable instruction executes method as described above when being executed by the processor.
Present invention also provides a kind of storage medium, the storage medium is computer readable storage medium, the storage Computer program is stored on medium, which executes method as described above when being run by processor.
The application provides a kind of resource allocation methods based on block chain, system, server and storage medium, by when the When three user accounts receive any operation of the second user account to the first user account, just second user account is used first Any operation information of family account is uploaded to block chain network, specifically, the first trust record is uploaded to block chain network, should First trust record is the first fund payment completion information record, and the second trust record is uploaded to block chain network, this Two trust records are the second fund payment completion information record, have thus carried out authenticating operation and disclosed process, in this way Increase the publicity and the transparency of operation.It is borrowed on network in the prior art to efficiently solve in this way The problem of transaction in loan relationship is denied.
To enable the above object and advantages of the application to be clearer and more comprehensible, preferred embodiment is cited below particularly, and appended by cooperation Attached drawing is described in detail below.
Detailed description of the invention
Illustrate the technical solutions in the embodiments of the present application or in the prior art in order to clearer, to embodiment or will show below There is attached drawing needed in technical description to be briefly described, it should be apparent that, the accompanying drawings in the following description is only this Some embodiments of application for those of ordinary skill in the art without creative efforts, can be with It obtains other drawings based on these drawings.
Fig. 1 shows resource allocation methods flow diagram provided by the embodiments of the present application;
Fig. 2 shows the flow diagrams before resource allocation methods step S110 provided by the embodiments of the present application;
Fig. 3 shows the flow diagram after resource allocation methods step S80 provided by the embodiments of the present application;
Fig. 4 shows the flow diagram before resource allocation methods step S60 provided by the embodiments of the present application;
Fig. 5 shows the flow diagram of resource allocation methods step S80 provided by the embodiments of the present application;
Fig. 6 shows the flow diagram of resource allocation methods step S85 provided by the embodiments of the present application;
Fig. 7 shows the timing of the resource allocation methods another way provided by the embodiments of the present application based on block chain Figure;
Fig. 8 shows resource allocation system structural schematic diagram provided by the embodiments of the present application;
Fig. 9 shows the complete structure schematic diagram of resource allocation system provided by the embodiments of the present application;
Figure 10 shows the structural schematic diagram of trust value computing module 80 provided by the embodiments of the present application;
Figure 11 shows server architecture schematic diagram provided by the embodiments of the present application.
Icon: 100- resource allocation system;The second request receiving module of 40-;50- user account pushing module;60- first Request receiving module;70- initial data obtains module;80- trust value computing module;81- trusts preset value judgment module;82- Meet preset rules determining module;83- authentication failed message transmission module;The credit value computing module of 84- user;85- user Trust value computing module;86- first and value, which calculate, obtains module;87- second and value, which calculate, obtains module;88- first trusts Value obtains module;The second trust value of 89- obtains module;90- is verified message transmission module;95- transaction monitoring party marks mould Block;110- the first trust record uploading module;120- the second trust record uploading module;200- server;210- processor; 220- memory;230- communication interface.
Specific embodiment
Below in conjunction with attached drawing in the embodiment of the present application, technical solutions in the embodiments of the present application carries out clear, complete Ground description, it is clear that described embodiments are only a part of embodiments of the present application, instead of all the embodiments.Usually exist The component of the embodiment of the present application described and illustrated in attached drawing can be arranged and be designed with a variety of different configurations herein.Cause This, is not intended to limit claimed the application's to the detailed description of the embodiments herein provided in the accompanying drawings below Range, but it is merely representative of the selected embodiment of the application.Based on embodiments herein, those skilled in the art are not being done Every other embodiment obtained under the premise of creative work out, shall fall in the protection scope of this application.
It should also be noted that similar label and letter indicate similar terms in following attached drawing, therefore, once a certain Xiang Yi It is defined in a attached drawing, does not then need that it is further defined and explained in subsequent attached drawing.
In the description of the present application, it is also necessary to explanation, herein, such as first and second or the like relationship art Language is only used to distinguish one entity or operation from another entity or operation, without necessarily requiring or implying this There are any actual relationship or orders between a little entities or operation.The terms "include", "comprise" or its it is any its He is intended to non-exclusive inclusion by variant, so that the process, method, article or equipment including a series of elements is not Only include those elements, but also including other elements that are not explicitly listed, or further include for this process, method, Article or the intrinsic element of equipment.In the absence of more restrictions, being wanted by what sentence "including a ..." limited Element, it is not excluded that there is also other identical elements in the process, method, article or equipment for including the element.For this For the those of ordinary skill in field, the concrete meaning of above-mentioned term in this application can be understood with concrete condition.
With reference to the accompanying drawing, it elaborates to some embodiments of the application.In the absence of conflict, following Feature in embodiment and embodiment can be combined with each other.
Intelligent contract: in essence, the working principle of these automatic contracts is similar to the if- of other computer programs Then sentence.Intelligent contract is only interacted with the assets of real world in this way.When the condition that one is finished in advance When being triggered, intelligent contract executes corresponding contract terms.
First embodiment
Referring to Figure 1, Fig. 1 shows resource allocation methods flow diagram provided by the embodiments of the present application.The application mentions A kind of resource allocation methods based on block chain supplied are applied to block chain network, and this method is applied in block chain network Node server, this method comprises:
Step S110: when detecting that third user account receives that second user account is intended to pay the first user account When one fund, first fund is paid to first user account, and the first trust record is uploaded to the block chain network, First trust record is that the second user account is made loans to first user account, and the payment of corresponding first fund is completed Information record.
Wherein, here the first user account, second user account and third user account also may be respectively referred to as first User, second user and third user, when being not particularly illustrated below, which can represent first party, be somebody's turn to do Second party user account can represent second party, third party's user account can represent third party.Here first party user Account can be debit, and second party user account here can be credit side, and third party's user account here can be fund Intermediary or transaction regulatory agency.Here the first trust record is uploaded to block chain network, i.e. third party's user account For corresponding third party as transaction monitoring party, the fund record that credit side is borrowed to debit uploads to block chain network.
Step S120: when the third user account receives that first user account is intended to pay the second user account When two funds, second fund is paid to the second user account, and the second trust record is uploaded to block chain network, it should Second trust record is the second fund payment completion information record, and the amount of money of first fund and the amount of money of second fund have First preset relation.
Wherein, the first user account here can be debit, and second user account here can be credit side, here Third user account can be fund intermediary.Here the first trust record is uploaded to block chain network, i.e. third user The corresponding third user of account uploads to block chain network as transaction monitoring party, by the fund record that debit returns credit side.
From figure 1 it appears that when third user account receives the payment in the first user account or second user account When operation, the operation note in the first user account or second user account will be uploaded to block chain network, behaviour here It notes down and refers to above said trust record, i.e. the refund record of the first user account or the lending record of second user account. By the way that operation note is uploaded to block chain network, the operation of third user account is allowed to be authenticated and openly, so just increase The publicity and the transparency of information are added, and the operation note for being uploaded to block chain network can not just be changed, once change Meeting validation failure further enhances operation note number to ensure that the integrality and unalterable feature of record data According to non repudiation, efficiently solve the problems, such as that transaction on network in debtor-creditor relationship in the prior art is denied.
Fig. 2 is referred to, Fig. 2 shows the processes before resource allocation methods step S110 provided by the embodiments of the present application to show It is intended to.Optionally, in the embodiment of the present application, it should detect that third user account received second user account and is intended to pay When the first fund of one user account, first fund is paid to first user account, and the first trust record is uploaded To before the block chain network, this method further include:
The first request that step S60: receiving first user account and the second user account is sent, first request For requesting to choose third user account as transaction monitoring party, which includes the information of the third user account, with And the second user mark of the first user identifier of first user account and the second user account.
It should be noted that receiving credit side hair after the third user terminal that the debit agrees to credit side selection The second user of the record request sent, first user identifier of the record request comprising the debit and the credit side identify.Here User identifier such as Universally Unique Identifier (UUID, Universally Unique Identifier), is also possible to database The unique key of middle unique identification user, unique key are the unduplicated constraint keys of all values of the field in the database, such as Lane database with from increasing process or from increasing function generate value, in another example using the value of time correlation as the kind of random function The value that son generates, or the value of the parameter generation as hash function, the specific generating mode and content of user identifier here It should not be construed as the limitation to the application.
Step S70: first request is sent to the third user account, and is somebody's turn to do in the third user account requests verification In the case where first user account and the second user account, being obtained based on first user identifier and second user mark should Initial data in block chain network.
It should be noted that first request is sent to the third user account, and requested in the third user account In the case where verifying first user account and the second user account, identified based on first user identifier and the second user Obtain the initial data in the block chain network.Here initial data refers to each of block chain network node server On can synchronize and save a identical block chained file, next block is according to the content of a upper block by specific It calculating, any one block is modified, and the cryptographic Hash or digest value that next node calculates generate variation, then In addition block chained file is that multiple nodes completely save identical file respectively, therefore block chained file has and can not distort Property, to finally save as the block chained file similar to chain.
Step S80: the first trust value and the second user account of first user account are calculated based on the initial data Second trust value at family.
Wherein, respective trust value is got from block chain network according to the user identifier of debit and credit, as The reference value that can three user terminals, that is, fund intermediary be recorded for the two.Such as when debit and credit trust value it When with being lower than 100, or when the trust value of debit or the trust value of credit side are lower than 50, third user terminal, that is, fund intermediary machine Structure can be refused to record Transaction Information for debit and credit.
Step S90: if the sum of the first trust value and the second trust value, which are greater than, trusts preset value, it is determined that first trust value And second trust value meets preset rules.
Wherein, if first trust value and second trust value meet preset rules, the message that will be verified It is sent to the third user account.Here preset rules, such as: whether the sum of the first trust value and the second trust value are greater than letter Appoint preset value, in another example the sum of trust value of debit and credit is greater than 100, in another example the first trust value is multiplied by weighted value and second Whether the sum of trust value is greater than 200, and preset rules here should not be construed as the limitation to the application.
Step S100: when receiving the confirmation message of third user account transmission, which is marked For the transaction monitoring party of first user account and the second user account.
Refer to Fig. 3, Fig. 3 shows the process after resource allocation methods step S80 provided by the embodiments of the present application and shows It is intended to.Optionally, in the embodiment of the present application, the first trust value of first user account should be calculated based on the initial data, And after the second trust value of the second user account, this method further include:
Step S81: judge whether the sum of first trust value and second trust value are greater than and trust preset value.
It should be noted that if the sum of the first trust value and the second trust value, which are greater than, trusts preset value, it is determined that this first Trust value and second trust value meet preset rules.In other words, preset rules here are first trust value and should Whether the sum of second trust value, which is greater than, is trusted preset value, and certainly, the sum of first trust value and the second trust value here can be Sum of the two after weight value, for example, the first trust value is denoted as x1, the second trust value is denoted as x2, the two is by weight value Sum afterwards is expressed as w1x1+w2x2, w here1For the weighted value of the first trust value, w here2For the weight of the second trust value Value, w1And w2There can be preset relation.For example, the preset relation is w1+w2=1.
Step S82: if the sum of the first trust value and the second trust value be greater than trust preset value, it is determined that the first trust value with And second trust value meet preset rules.At this point, the node server in block chain will be sent to the message being verified Third user account.
Optionally, in the embodiment of the present application, this method further include:
Step S83: if the sum of first trust value and second trust value, which are not more than, trusts preset value, by authentication failed Message be sent to the third user account.
Wherein, the specific numerical value of trust preset value here, for example, when the sum of trust value of debit and credit is lower than 100 When, in another example when the trust value of debit or the trust value of credit side are lower than 50, third user terminal, that is, fund intermediary can be with Refusal is that debit and credit record Transaction Information.Trusting preset value can be 100, or 80, or 50, have here The judgement form of body and the specific size for trusting preset value should not be construed as the limitation to the application.
Fig. 4 is referred to, the process before Fig. 4 shows resource allocation methods step S60 provided by the embodiments of the present application is shown It is intended to.Optionally, in the embodiment of the present application, the reception first user account and the second user account send first Before request, this method further include:
The second request that step S40: receiving the first user account and second user account is sent, second request are used for Transaction monitoring party is chosen in request.
Wherein, the second request of the first user account and the transmission of second user account is received, that is to say, that the first user Account and second user account all have sent the second request, which includes the information and second user of the first user account The information of account, second request choose transaction monitoring party for requesting.
Step S50: credit value sequence is obtained from transaction monitoring party alternate data library in multiple user's accounts of preset threshold Family, and by multiple user account be pushed to first user account and the second user account for first user account and The second user account is chosen.
It should be noted that the node server in block chain network obtains credit from transaction monitoring party alternate data library In multiple user accounts of preset threshold, multiple user accounts here can be used as transaction monitoring party to supervise for value sequence The process of exchange of one user account and second user account.First user account and second user account can be believed according to credit value Breath can also screen multiple user accounts as transaction monitoring party to screen multiple user accounts according to other feature, such as By the user account for the first time as transaction monitoring party to the end once as trade monitoring party duration, in another example last The secondary time point as transaction monitoring party, in another example number etc. of the user account as transaction monitoring party.Certainly, if first User account and second user account are dissatisfied to the multiple user accounts pushed before, and the node server in block chain can be with It re-requests and obtains the user account different from what is pushed before from transaction monitoring party alternate data library.It is of course also possible to First user account and second user account push specific or specified user account as transaction monitoring party, such as the spy Fixed or specified user is the first user account and second user account lower desired transaction monitoring party online, then can Directly to push its specified user account to the two.Therefore, the first user account and second is increased in this way to use The selection diversity of family account, to adapt to demand of the different user under different scenes.
Fig. 5 is referred to, Fig. 5 shows the flow diagram of resource allocation methods step S80 provided by the embodiments of the present application. Optionally, in the embodiment of the present application, which includes that the first loaning bill record and first of first user account is refunded The record and second of borrowing money of the second of record and the second user account is refunded record, should be calculated based on the initial data this First trust value of one user account and the second trust value of the second user account, comprising:
Step S84: borrowing money to record to refund with first according to first records the first credit value for calculating first user account, And the second credit value of the second user account is calculated according to the second loaning bill record and the second refund record.
It should be noted that the first loaning bill record and the first refund record indicate loaning bill stroke count and the refund of the first user Stroke count, indicates borrow money record number or record number of refunding when being not added explanation below, such as the first user is to second user Has been borrowed, has returned of second user, the first user thinks that fourth user has borrowed one to after the also complete money of second user Money, but without returning fourth user, then the first of first user is also at this point, the first of the first user borrows money and be recorded as 2 Money is recorded as 1.For example, the first loaning bill is denoted as x1, first, which refunds, is recorded as x2, the two after weight value and obtain First credit value is expressed as w1x1+w2x2, w here1For the first preset value, w here2For the second preset value, w1And w2It can be with There is preset relation such as w1+w2=1.Similarly, the second loaning bill is denoted as x1, second, which refunds, is recorded as x2, the two takes by weight Second credit value with acquisition after value is expressed as w1x1+w2x2, w here1For the first preset value, w here2It is default for second Value, w1And w2There can be preset relation such as w1+w2=1.Here the first preset value or the second preset value can be 0.1, can also Think 0.4, or 0.6, or 0.9.Here the occurrence size of the first preset value or the second preset value should not manage Solution is the limitation to the application.
Step S85: according to initial data, the first credit value and the second credit value, first user account is calculated separately Second trust value of the first trust value and the second user account.
Fig. 6 is referred to, Fig. 6 shows the flow diagram of resource allocation methods step S85 provided by the embodiments of the present application. Optionally, in the embodiment of the present application, this is calculated separately according to the initial data, first credit value and second credit value First trust value of first user account and the second trust value of the second user account, comprising:
Step S86: according to the initial data, obtaining first and value, this first and value be all registration users credit values The sum of, which further includes the credit value of all registration users.
Wherein, the loaning bill of available all users and record of refunding in initial data, can borrowing according to all users Money and record of refunding calculate the credit value of all users, then calculate the sum of the credit value of all registration users again, can be obtained First and value.
Step S87: according to the initial data, obtaining second and value, this second and value be all registration users payments it is complete At the sum of information record, which further includes the payment completion information record of all registration users.
Wherein, according to initial data, second and value are obtained, this second and value be all registration users payment completion informations The sum of record, the initial data further include the payment completion information record of all registration users.Available institute in initial data Have the number as transaction monitoring party of user account, can according to all users as transaction monitoring party when number calculate The sum of number when all users are as transaction monitoring party, can be obtained second and value.
Step S88: the first letter is obtained according to the first credit value, first and value, the first trust record number and second and value Appoint value, which is the payment completion information record number that the first user account uploads block chain network.
Step S89: the second letter is obtained according to the second credit value, first and value, the second trust record number and second and value Appoint value, which is the payment completion information record number that second user account uploads block chain network.
It should be noted that the first credit value is denoted as c1, first and value be denoted as s1, the first trust record number scale be r1, this One trust record number is the payment completion information record number that the first user account uploads block chain network.Second and value be denoted as s2, Then the first trust value computing isHere w1For the first preset value, w here2For the second preset value.Citing For, w1It is 40, w2It is 60, then the first trust value computing isCertainly, the first preset value and the second preset value It is also possible to weight, it is w that the two, which has preset relation,1+w2=1, such as w1It is 0.4, w2It is 0.6, then the first trust value computing isThe calculating of second trust value is similar, then the second trust value computing isIn formula, c2For Second credit value, r2For the second trust record number.Therefore, the calculation and tool of the first trust value and the second trust value here Body calculation method should not be construed as the limitation to the application.
Fig. 7 is referred to, Fig. 7 shows the resource allocation methods another kind side provided by the embodiments of the present application based on block chain The timing diagram of formula.
The timing diagram of resource allocation methods another way provided by the embodiments of the present application based on block chain.To occur Debtor-creditor relationship in block chain network is illustrated.Here third party trusty can be the third by government regulation Side's (such as bank and other financial mechanism), being also possible to the third party that both parties specify in block chain network, (tripartite, which signs, to be trusted Agreement, protocol contents are stored in block chain).Both parties and third party are regarded as three users in block chain network, They all have unique account in block chain network and are corresponding to it, and both parties prop up in block chain network external application franc It pays.
Wherein, first party here, that is, corresponding user of above said first user account, can also be referred to as the first use Family account or the first user or debit;Here the second party, that is, corresponding user of above said second user account, can also letter Referred to as second user account or second user or credit side;Here the third party, that is, corresponding use of above said third user account Family can also be referred to as third user account or third user.
The mode of lending can be, and debit sends credit requirement information to credit side, after credit side is verified, pass through third party It offers loans to credit side, loan payment completion information is uploaded to block chain network to after debit by loan origination by third party In.Certainly, fund is without third party, and under third-party witness, credit side is also possible to debit by payment funding.
The mode of repaying can be, and debit is refunded by third direction credit side, third direction by payment funding to credit side, so Refund confirmation message is uploaded in block chain network afterwards.The above process can be controlled by intelligent contract.
Any user in block chain network all has a credit value, which can remember according to the historical trading of user Record is evaluated, and transaction record is more, and situation of honouring an agreement is better, and credit value is higher accordingly.It can be to being selected as credible appoint The third party at family sets a trust value, which can account for credit value in entire block chain network according to the user credit value The number that percentage and the user become credible third party accounts for the percentage of credible third party number in entire block chain network Number is to be assessed.For example, the credit value of user C is 20, the sum of credit value of all users is 4000 in block chain network, then The credit value percentage of user C is 0.5%;The number that user C becomes credible third party is 10 times, is owned in block chain network The summation that user becomes credible third party number is 10000 times, then the trusted number percentage of user C is 0.1%, user The trust value of C can be calculated by following formula: trust value=credit value percentage × 100 × 40%+ trusted number percentage × 100 × 60%, it is implanted into intelligent contract in block chain network and calculates the trust value of each user automatically, and list will be formed, It is referred to for both parties.If the trust value of user C is sufficiently high, when the third party that user C becomes a certain transaction trusts user, Certain commission can be collected, such as collects a ten thousandth of transaction amount, which can freely be set by user C.
Wherein, user A here, that is, above said first party or the corresponding user of the first user account, can also be referred to as First user account or the first user or debit;Here user B, that is, above said second party or second user account are corresponding User can also be referred to as second user account or second user or credit side;Here user C, that is, above said third party or The corresponding user of three user accounts can also be referred to as third user account or third user.
Trade user A and trade user B, which selectes user C as the process of third party trusted user, can be mistake as follows Journey.
1, user A and user B find in lists user C trust value it is in the top, and commission is lower, determines selection Credible third party of the user C as transaction payment, and its information for becoming credible third party of request is sent to C.
2, user C is in the trust value for checking user A and user B in lists, if the trust value mistake of user A and user B Low, then C is rejected by request, and refusal information is fed back to user A and user B;If the trust value of user A and user B meet It is required that the acceptable request of user C, and information feedback user A and user B will be received.
Second embodiment
Fig. 8 is referred to, Fig. 8 shows resource allocation system structural schematic diagram provided by the embodiments of the present application.The application mentions A kind of resource allocation system 100 supplied, resource allocation system 100 include:
First trust record uploading module 110 detects that third user account receives second user account and is intended to prop up for working as When paying the first fund of the first user account, the first fund is paid to the first user account, and will be in the first trust record Block chain network is reached, the first trust record is made loans for second user account to the first user account, and corresponding first fund The information record that payment is completed.
Second trust record uploading module 120, for being intended to pay the when third user account receives the first user account When the second fund of two user accounts, the second fund is paid to second user account, and the second trust record is uploaded to area Block chain network, the second trust record are the second fund payment completion information record, the gold of the amount of money of the first fund and the second fund Volume has the first preset relation.
Fig. 9 is referred to, Fig. 9 shows the complete structure schematic diagram of resource allocation system provided by the embodiments of the present application.It should Resource allocation system 100 further include:
Second request receiving module 40, second for receiving the first user account and the transmission of second user account asks It asks, which chooses transaction monitoring party for requesting.
User account pushing module 50, for obtaining credit value sequence from transaction monitoring party alternate data library in default threshold Multiple user accounts of value, and multiple user account is pushed to first user account and the second user account for this First user account and the second user account are chosen.
First request receiving module 60, first for receiving the first user account and the transmission of second user account asks It asks, for requesting to choose third user account as transaction monitoring party, the first request includes third user account for the first request The second user of the first user identifier and second user account of information and the first user account identifies.
Initial data obtains module 70, for the first request to be sent to third user account, and in third user account In the case where the first user account of requests verification and second user account, obtained based on the first user identifier and second user mark Initial data in block chain network.
Trust value computing module 80, for calculating the first trust value of the first user account, Yi Ji based on initial data Second trust value of two user accounts;
It is verified message transmission module 90, for when the first trust value and the second trust value meet preset rules, The message being verified is sent to third user account;
Trade monitoring party mark module 95, for receive third user account transmission confirmation message when, by third User account is labeled as the transaction monitoring party of the first user account and second user account.
0, Figure 10 shows the structural schematic diagram of trust value computing module 80 provided by the embodiments of the present application referring to Figure 1. The trust value computing module 80 includes:
Trust preset value judgment module 81, trusts in advance for judging whether the sum of the first trust value and the second trust value are greater than If value.
Meet preset rules determining module 82, is preset if being greater than to trust for the sum of the first trust value and the second trust value Value, it is determined that the first trust value and the second trust value meet preset rules.
Authentication failed message transmission module 83, if default no more than trusting for the sum of the first trust value and the second trust value Value, then be sent to third user account for the message of authentication failed.
The credit value computing module 84 of user calculates first use with the first refund record for borrowing money to record according to first First credit value of family account, and record second is borrowed money and second record of refunding calculates the of the second user account according to this Two credit values.
The trust value computing module 85 of user, for being counted respectively according to initial data, the first credit value and the second credit value Calculate the first trust value of first user account and the second trust value of the second user account.
First and value calculate and obtain module 86, for obtaining first and value according to the initial data, this first and value be institute There is the sum of the credit value of registration user, which further includes the credit value of all registration users.
Second and value calculate and obtain module 87, for obtaining second and value according to the initial data, this second and value be institute There is the sum of the payment completion information record of registration user, which further includes the payment completion information note of all registration users Record.
First trust value obtains module 88, for according to the first credit value, first and value, the first trust record number and the Two obtain the first trust value with value, which is the payment completion letter that the first user account uploads block chain network Breath record number.
Second trust value obtain module 89, for according to second credit value, this first and value, the second trust record number with And this second and value obtain second trust value, the second trust record number be second user account upload block chain network branch It pays and completes information record number.
3rd embodiment
1, Figure 11 shows server architecture schematic diagram provided by the embodiments of the present application referring to Figure 1.This application provides A kind of server 200, comprising: processor 210, memory 220 and communication interface 230, memory 220 are stored with processor 210 executable machine readable instructions, for communication interface 230 for being communicated with external equipment, machine readable instructions are processed The method such as first embodiment is executed when device 210 executes.
Fourth embodiment
This application provides a kind of storage medium, the storage medium be computer readable storage medium, the storage medium On be stored with computer program, the method be as above somebody's turn to do is executed when which is run by processor.
The application provides a kind of resource allocation methods based on block chain, system, server and storage medium, by when the When three user accounts receive any operation of the second user account to the first user account, just second user account is used first Any operation information of family account is uploaded to block chain network, specifically, the first trust record is uploaded to block chain network, should First trust record is the first fund payment completion information record, and the second trust record is uploaded to block chain network, this Two trust records are the second fund payment completion information record, have thus carried out authenticating operation and disclosed process, in this way Increase the publicity and the transparency of operation.It is borrowed on network in the prior art to efficiently solve in this way The problem of transaction in loan relationship is denied.
The foregoing is merely preferred embodiment of the present application, are not intended to limit this application, for the skill of this field For art personnel, various changes and changes are possible in this application.Within the spirit and principles of this application, made any to repair Change, equivalent replacement, improvement etc., should be included within the scope of protection of this application.

Claims (10)

1. a kind of resource allocation methods based on block chain, which is characterized in that be applied to block chain network, which comprises
When detecting that third user account receives second user account and is intended to pay the first fund of the first user account, by institute It states the first fund and pays first user account, and the first trust record is uploaded to the block chain network, described One trust record is that the second user account is made loans to first user account, and corresponding first fund has been paid At information record;
It is intended to pay the second fund of the second user account when the third user account receives first user account When, pay second fund to the second user account, and the second trust record is uploaded to block chain network, it is described Second trust record is the second fund payment completion information record, the amount of money of first fund and second fund The amount of money has the first preset relation.
2. the method as described in claim 1, which is characterized in that described to detect that third user account receives second user account When family is intended to pay the first fund of the first user account, first fund is paid to first user account, and will First trust record is uploaded to before the block chain network, the method also includes:
The first request of first user account and second user account transmission is received, first request is for asking It asks and chooses third user account as transaction monitoring party, first request includes the information of the third user account, and The second user of first user identifier of first user account and second user account mark;
First request is sent to the third user account, and first described in the third user account requests verification In the case where user account and the second user account, obtained based on first user identifier and second user mark Initial data in the block chain network;
Based on the initial data calculate first user account the first trust value and the second user account Two trust values;
When first trust value and second trust value meet preset rules, the message being verified is sent to institute State third user account;
When receiving the confirmation message that the third user account is sent, the third user account is labeled as described first The transaction monitoring party of user account and the second user account.
3. method according to claim 2, which is characterized in that described to calculate the first user account based on the initial data After first trust value at family and the second trust value of the second user account, the method also includes:
Judge whether the sum of first trust value and second trust value are greater than and trusts preset value;
If more than, it is determined that first trust value and second trust value meet the preset rules.
4. method as claimed in claim 3, which is characterized in that the method also includes:
If the sum of first trust value and second trust value are not more than the trust preset value, by disappearing for authentication failed Breath is sent to the third user account.
5. such as the described in any item methods of claim 2-4, which is characterized in that described to receive first user account and institute Before the first request for stating the transmission of second user account, the method also includes:
The second request of first user account and second user account transmission is received,
Second request chooses transaction monitoring party for requesting;
Credit value sequence is obtained from transaction monitoring party alternate data library in multiple user accounts of preset threshold, and will be described more A user account is pushed to first user account and the second user account for first user account and described Second user account is chosen.
6. such as the described in any item methods of claim 2-4, which is characterized in that the initial data includes the first user account The first loaning bill record and the first refund record at family and the second loaning bill record and the second refund note of the second user account Record, it is described based on the initial data calculate first user account the first trust value and the second user account The second trust value, comprising:
It borrows money to record to refund with described first according to described first and records the first credit value for calculating first user account, and It borrows money to record to refund with described second according to described second and records the second credit value for calculating the second user account;
According to the initial data, first credit value and second credit value, first user account is calculated separately The first trust value and the second user account the second trust value.
7. method as claimed in claim 6, which is characterized in that it is described according to the initial data, first credit value and Second credit value calculates separately the first trust value of first user account and the second letter of the second user account Appoint value, comprising:
According to the initial data, first and value are obtained, described first and value are the sum of the credit value of all registration users, described Initial data further includes the credit value of all registration users;
According to the initial data, second and value are obtained, described second and value are the payment completion information note of all registration users The sum of record, the initial data further include the payment completion information record of all registration users;
Described the is obtained according to first credit value, described first and value, the first trust record number and described second and value One trust value, the first trust record number are the payment completion information record number that the first user account uploads block chain network;
Described the is obtained according to second credit value, described first and value, the second trust record number and described second and value Two trust values, the second trust record number are the payment completion information record number that second user account uploads block chain network.
8. a kind of resource allocation system, which is characterized in that the resource allocation system includes:
First trust record uploading module detects that third user account receives second user account and is intended to pay first for working as When the first fund of user account, first fund is paid to first user account, and will be in the first trust record Block chain network is reached, first trust record is made loans for the second user account to first user account, and right The information record that first fund payment answered is completed;
Second trust record uploading module, for receiving first user account institute to be paid when the third user account When stating the second fund of second user account, second fund is paid to the second user account, and second is trusted Record is uploaded to block chain network, and second trust record is that the second fund payment completion information records, and described first The amount of money of the amount of money of fund and second fund has the first preset relation.
9. a kind of server characterized by comprising processor, memory and communication interface, the memory are stored with described The executable machine readable instructions of processor, the communication interface with external equipment for being communicated, the machine readable finger It enables and executes method as described in any one of claim 1 to 7 when being executed by the processor.
10. a kind of storage medium, which is characterized in that the storage medium is computer readable storage medium, the storage medium On be stored with computer program, which executes side as described in any one of claim 1 to 7 when being run by processor Method.
CN201811118448.8A 2018-09-21 2018-09-21 Resource allocation method, system, server and storage medium based on block chain Active CN109359988B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201811118448.8A CN109359988B (en) 2018-09-21 2018-09-21 Resource allocation method, system, server and storage medium based on block chain

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201811118448.8A CN109359988B (en) 2018-09-21 2018-09-21 Resource allocation method, system, server and storage medium based on block chain

Publications (2)

Publication Number Publication Date
CN109359988A true CN109359988A (en) 2019-02-19
CN109359988B CN109359988B (en) 2021-03-23

Family

ID=65347699

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201811118448.8A Active CN109359988B (en) 2018-09-21 2018-09-21 Resource allocation method, system, server and storage medium based on block chain

Country Status (1)

Country Link
CN (1) CN109359988B (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112487462A (en) * 2020-12-11 2021-03-12 航天信息股份有限公司 Data authorization method and equipment based on block chain vehicle tax purchasing system

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106230808A (en) * 2016-07-28 2016-12-14 杭州云象网络技术有限公司 A kind of personal credit information system method based on block chain technology
CN106682825A (en) * 2016-12-22 2017-05-17 南京邮电大学 System and method for evaluating credit of Social Internet of Things based on block chain
CN107133871A (en) * 2017-04-19 2017-09-05 杭州复杂美科技有限公司 Internet financial transaction based on block chain technology
US20170270527A1 (en) * 2016-03-17 2017-09-21 John Rampton Assessing trust to facilitate blockchain transactions
CN108428175A (en) * 2018-03-13 2018-08-21 史玉成 A kind of big data analysis method and system based on consumer record

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20170270527A1 (en) * 2016-03-17 2017-09-21 John Rampton Assessing trust to facilitate blockchain transactions
CN106230808A (en) * 2016-07-28 2016-12-14 杭州云象网络技术有限公司 A kind of personal credit information system method based on block chain technology
CN106682825A (en) * 2016-12-22 2017-05-17 南京邮电大学 System and method for evaluating credit of Social Internet of Things based on block chain
CN107133871A (en) * 2017-04-19 2017-09-05 杭州复杂美科技有限公司 Internet financial transaction based on block chain technology
CN108428175A (en) * 2018-03-13 2018-08-21 史玉成 A kind of big data analysis method and system based on consumer record

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112487462A (en) * 2020-12-11 2021-03-12 航天信息股份有限公司 Data authorization method and equipment based on block chain vehicle tax purchasing system
CN112487462B (en) * 2020-12-11 2023-10-31 航天信息股份有限公司 Data authorization method and device based on block chain vehicle tax purchasing system

Also Published As

Publication number Publication date
CN109359988B (en) 2021-03-23

Similar Documents

Publication Publication Date Title
CN108885761B (en) Method for secure point-to-point communication on a blockchain
US20220058622A1 (en) Protocols in Blockchain Environments
Kokina et al. Blockchain: Emergent industry adoption and implications for accounting
US20230029193A1 (en) System and method for composite cryptographic transactions
US10140470B2 (en) System for external validation of distributed resource status
US20200184553A1 (en) Smart contract based credit network
KR20200091882A (en) Incremental digital asset collateral wallet
CN104966229A (en) Information processing method and credit platform
CN110020936B (en) Asset management method and device based on block chain and electronic equipment
CA2436319A1 (en) Payment validation network
WO2020088130A1 (en) Blockchain-based property execution method and system
CN110363644A (en) Exception information recognition methods, device, computer equipment and storage medium
CN108537655A (en) Data processing method and device for digital asset
CN109447791A (en) A kind of funds transaction method and device based on block chain
CN111091358A (en) Unified processing method and system for multiple payment channels
KR20190086971A (en) Method for dealing for virtual currency with value
Uriawan et al. Collateral-Free Trustworthiness-based Personal Lending on a Decentralized Application (DApp).
CN113034275B (en) Management system and method based on block chain network and terminal equipment
CN112702410A (en) Evaluation system and method based on block chain network and related equipment
CN109359988A (en) Resource allocation methods, system, server and storage medium based on block chain
KR102155571B1 (en) Smart transaction system using proptech blockchain and operating method thereof
CN107209885A (en) The payment serviced for consumer remote and the system of communication connection
Malki et al. Automating ex-post enforcement for spectrum sharing: A new application for block-chain technology
CN114444120A (en) Financing method and device based on block chain, electronic equipment and storage medium
KR101848143B1 (en) Method and system for managing total financial information

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
GR01 Patent grant
GR01 Patent grant