CN110046895A - Compatible ether mill distribution account book method, apparatus, equipment and medium - Google Patents

Compatible ether mill distribution account book method, apparatus, equipment and medium Download PDF

Info

Publication number
CN110046895A
CN110046895A CN201910330383.1A CN201910330383A CN110046895A CN 110046895 A CN110046895 A CN 110046895A CN 201910330383 A CN201910330383 A CN 201910330383A CN 110046895 A CN110046895 A CN 110046895A
Authority
CN
China
Prior art keywords
message
chain
alliance
node
transaction
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
CN201910330383.1A
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.)
Zhejiang Taichain Technology Co Ltd
Original Assignee
Zhejiang Taichain 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 Zhejiang Taichain Technology Co Ltd filed Critical Zhejiang Taichain Technology Co Ltd
Priority to CN201910330383.1A priority Critical patent/CN110046895A/en
Publication of CN110046895A publication Critical patent/CN110046895A/en
Pending legal-status Critical Current

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/382Payment protocols; Details thereof insuring higher security of transaction
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/10Protocols in which an application is distributed across nodes in the network
    • H04L67/1097Protocols in which an application is distributed across nodes in the network for distributed storage of data in networks, e.g. transport arrangements for network file system [NFS], storage area networks [SAN] or network attached storage [NAS]

Landscapes

  • Business, Economics & Management (AREA)
  • Engineering & Computer Science (AREA)
  • Accounting & Taxation (AREA)
  • Finance (AREA)
  • Computer Security & Cryptography (AREA)
  • Signal Processing (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Strategic Management (AREA)
  • Physics & Mathematics (AREA)
  • General Business, Economics & Management (AREA)
  • General Physics & Mathematics (AREA)
  • Theoretical Computer Science (AREA)
  • Financial Or Insurance-Related Operations Such As Payment And Settlement (AREA)

Abstract

The present invention relates to the technical fields of computer technology, more particularly, to a kind of compatible ether mill distribution account book method, apparatus, equipment and medium, compatible ether mill distribution account book method includes: S10: if getting the transaction request message of user's triggering, obtaining transaction value data from the transaction request message;S20: the transaction value data is compared with preset threshold value, if the transaction value data is more than the threshold value, joint debt-credit message is issued into alliance's chain;S30: after responding the joint debt-credit message, message generation transaction is borrowed or lent money according to the joint and completes message;S40: the nodal information for obtaining the response joint debt-credit message in message is completed from the transaction, and is stored transaction completion message into each node respectively according to the intelligent contract of alliance's chain.The present invention has the effect of optimizing block chain handling capacity.

Description

Compatible ether mill distribution account book method, apparatus, equipment and medium
Technical field
The present invention relates to the technical fields of computer technology, more particularly, to a kind of compatible ether mill distribution account book side Method, device, equipment and medium.
Background technique
Currently, publicly-owned chain is called to the block chain of all public all open visits, and the building of several enterprises only for enterprise The block chain accessed between industry is called alliance's chain.And in publicly-owned chain field, at present apparently, ecology is most complete, developer community is most living The most publicly-owned chain technology of jump, decentralization application is mostly Ethereum ether mill.In intelligent contract and decentralization application In terms of development support, the ecology in ether mill can be rated as the most complete model of industry, also receive the support of most block chain developers.
But ether mill can not also be applied to alliance's chain scene of enterprise-level, reason as a publicly-owned chain technology at present It is as follows:
1. allowing any node to access in mechanism of permitting the entrance using the block chain network that ether mill constructs, also implying that block counts According to being full disclosure, and the application scenarios of alliance's chain then require only allied member's access network, and non-member refusal networks, and Data are also only accessed for allied member, are maintained secrecy to non-allied member;
2. block is beaten using the mode of proof of work (Proof Of Work, abbreviation POW) in ether mill on common recognition algorithm Packet carry out calculate strong evidence it is bright, unless malicious node obtains the computing capability of ether mill whole network 51%, otherwise can not distort forgery Block data guarantees that block data is safe and reliable.But proof of work needs costly computing resource to carry out calculation strong evidence It is bright, it causes to calculate power significant wastage, also affects the transaction handling capacity of block chain.Therefore there is also rooms for improvement.
Summary of the invention
The object of the present invention is to provide a kind of compatibility ether mill distribution account book methods for optimizing block chain handling capacity, dress It sets, equipment and medium.
Foregoing invention purpose one of the invention has the technical scheme that
A kind of compatible ether mill distribution account book method, the compatible ether mill distribution account book method include:
S10: if getting the transaction request message of user's triggering, trade gold specified number is obtained from the transaction request message According to;
S20: the transaction value data is compared with preset threshold value, if the transaction value data is more than the threshold Value then issues joint debt-credit message into alliance's chain;
S30: after responding the joint debt-credit message, message generation transaction is borrowed or lent money according to the joint and completes message;
S40: the nodal information that the response joint debt-credit message is obtained in message is completed from the transaction, and according to the alliance The intelligent contract of chain stores transaction completion message respectively into each node.
By using above-mentioned technical proposal, when getting the transaction request message of user's triggering, by transaction amount Transaction value data in transaction request message is judged, if showing that the transaction value data is greater than a section by judgement After the amount of money upper limit that point allows to trade, which is formed into joint debt-credit message, is issued in alliance's chain, energy Other nodes of enough invitation in alliance's chain are that the secondary transaction is handled jointly, can guarantee user's arm's length dealing, improve The viscosity of user;Meanwhile after transaction, the data of this transaction are passed through into intelligent contract and are stored respectively into each node Privately owned chain on, i.e., each node has transaction data all on alliance's chain, having node wish obtain alliance's chain on Data when, only data need to be obtained from the corresponding privately owned chain of the node, to improve handling capacity.
The present invention is further arranged to: before step S20, the compatible ether mill distribution account book method further include:
S201: it if getting the alliance's chain creation message triggered by node, according to alliance's chain creation message, builds described Alliance's chain, and the node of alliance's chain creation message will be triggered as host node;
S202: if getting new node is added request, one of node is chosen in alliance's chain, and by being selected Node new node networking solicitation message is sent into alliance's chain;
S203: the node in alliance's chain votes to the new node networking solicitation message by the intelligent contract, If the poll of the ballot passes through, the new node being added in request according to the new node is passed through described in network connection addition Alliance's chain, and the data on alliance's chain are sent to the new node.
By using above-mentioned technical proposal, by way of building alliance's chain, alliance's chain is established based on same business, I.e. each node can be according to itself service conditions, while disposing multiple alliance's chains, makes the number of the node on each alliance's chain According to mutually indepedent, the safety of data ensure that;Meanwhile when there is new node that alliance's chain is added, by alliance's chain The mode of middle ballot judges whether the new node has permission and alliance's chain is added, and is only being more than the node permission of half In the case of, alliance's chain can be added in new node, can guarantee the safety of alliance's chain.
The present invention is into a setting are as follows: step S30 includes:
S31: after the joint lending message encryption, each node is sent to by alliance's chain;
S32: after the node gets the encrypted joint lending message, the joint lending message is commented Estimate, if assessment result is to pass through, responds the joint lending message.
The joint lending message, energy are responded after the node on alliance's chain is by assessment by using above-mentioned technical proposal The authenticity for enough ensuring the joint lending message, the safety assurance in fund is provided for node.
The present invention is further arranged to: step S40 includes:
S41: message is completed into the transaction and is calculated by hashing algorithm, the transaction character string of regular length is obtained;
S42: it after the transaction character string is encrypted by rivest, shamir, adelman, stores to each institute of alliance's chain It states in node.
By using above-mentioned technical proposal, message is completed to the transaction by hashing algorithm and is calculated, can be somebody's turn to do The corresponding transaction character string of message is completed in transaction, and is encrypted by rivest, shamir, adelman, and common recognition mechanism point can be passed through With the public key being decrypted, it can guarantee that Transaction Information only has the node on alliance's chain to be able to carry out and checks, it is ensured that data Safety.
The present invention is further arranged to: step S42 includes:
S421: if getting data checks message, check that message obtains the triggering data and checks message according to the data Address of node information;
S422: checking that message obtains the corresponding encrypted transaction character string according to the data, and by the transaction word Symbol string is sent to corresponding node according to the address information.
By using above-mentioned technical proposal, after getting data and checking message, message is checked according to the data are triggered Address of node information, then the data checked will be needed to be sent on node, it ensure that the normal of data transmission.
Foregoing invention purpose two of the invention has the technical scheme that
A kind of compatible ether mill distribution account book device, the compatible ether mill distribution account book device include:
The amount of money obtains module, if the transaction request message for getting user's triggering, is obtained from the transaction request message Take transaction value data;
Assets sharing module, for the transaction value data to be compared with preset threshold value, if the trade gold specified number According to being more than the threshold value, then joint debt-credit message is issued into alliance's chain;
Message response module, for borrowing or lending money message generation according to the joint and having traded after responding the joint debt-credit message At message;
Memory module, for completing the nodal information for obtaining the response joint debt-credit message in message, and root from the transaction Transaction completion message is stored respectively into each node according to the intelligent contract of alliance's chain.
By using above-mentioned technical proposal, when getting the transaction request message of user's triggering, by transaction amount Transaction value data in transaction request message is judged, if showing that the transaction value data is greater than a section by judgement After the amount of money upper limit that point allows to trade, which is formed into joint debt-credit message, is issued in alliance's chain, energy Other nodes of enough invitation in alliance's chain are that the secondary transaction is handled jointly, can guarantee user's arm's length dealing, improve The viscosity of user;Meanwhile after transaction, the data of this transaction are passed through into intelligent contract and are stored respectively into each node Privately owned chain on, i.e., each node has transaction data all on alliance's chain, having node wish obtain alliance's chain on Data when, only data need to be obtained from the corresponding privately owned chain of the node, to reduce handling capacity.
Foregoing invention purpose three of the invention has the technical scheme that
A kind of computer equipment, including memory, processor and storage are in the memory and can be on the processor The computer program of operation, the processor realize above-mentioned compatible ether mill distribution account book side when executing the computer program The step of method.
Foregoing invention purpose four of the invention has the technical scheme that
A kind of computer readable storage medium, the computer-readable recording medium storage have computer program, the computer The step of above-mentioned compatible ether mill distribution account book method is realized when program is executed by processor.
In conclusion advantageous effects of the invention are as follows:
When getting the transaction request message of user's triggering, by the trade gold specified number in transaction amount transaction request message According to being judged, if by judgement, after showing that the transaction value data is greater than the amount of money upper limit that a node allows to trade, by this Transaction request message composition joint debt-credit message, is issued in alliance's chain, can invite other nodes in alliance's chain It is handled jointly for the secondary transaction, can guarantee user's arm's length dealing, improve the viscosity of user;Meanwhile terminating in transaction Afterwards, the data of this transaction are passed through intelligent contract to store respectively on the privately owned chain into each node, i.e., each node is deposited There is transaction data all on alliance's chain, it, only need to be corresponding from the node when there is node to wish to obtain the data on alliance's chain Privately owned chain on obtain data, to reduce handling capacity.
Detailed description of the invention
Fig. 1 is a flow chart of compatible ether mill distribution account book method in one embodiment of the invention;
Fig. 2 is another implementation flow chart in one embodiment of the invention in compatible ether mill distribution account book method;
Fig. 3 is the implementation flow chart of step S30 in compatible ether mill distribution account book method in one embodiment of the invention;
Fig. 4 is the implementation flow chart of step S40 in compatible ether mill distribution account book method in one embodiment of the invention;
Fig. 5 is the implementation flow chart of step S42 in compatible ether mill distribution account book method in one embodiment of the invention;
Fig. 6 is a functional block diagram of compatible ether mill distribution account book device in one embodiment of the invention;
Fig. 7 is a schematic diagram of computer equipment in one embodiment of the invention.
Specific embodiment
Below in conjunction with attached drawing, invention is further described in detail.
Embodiment one:
In one embodiment, as shown in Figure 1, being specifically included the invention discloses a kind of compatible ether mill distribution account book method Following steps:
S10: if getting the transaction request message of user's triggering, transaction value data is obtained from transaction request message.
In the present embodiment, transaction request message refers to is triggered by user, requests the message traded.Trade gold specified number According to referring in transaction request message, the amount of money that specifically includes.Such as in debt-credit scene, which be can be The amount of money of application for credit.
Specifically, user will include the data group of transaction value data into transaction value data, hair in requests transaction It send to server-side.
S20: transaction value data is compared with preset threshold value, if transaction value data is more than threshold value, Xiang Lian Joint debt-credit message is issued in alliance's chain.
In the present embodiment, it is based on same business scenario, such as loan transaction, is built by several enterprises or credit agency Alliance's chain.In each enterprise or credit agency, according to setting inside the enterprise or credit agency, or based on related rule It is fixed, which is set, for limiting the amount of money of every transaction.
Specifically, by the transaction value data and the preset threshold of enterprise or credit agency for getting the transaction request message If the transaction value data is compared more than the threshold value in value, the enterprise or credit agency can not the separate responses transaction requests Message then issues joint debt-credit message in alliance's chain, and requesting other enterprises or credit agency on alliance's chain to respond jointly should Transaction value data.
S30: after debt-credit message is combined in response, transaction is generated according to joint debt-credit message and completes message.
Specifically, it if playing joint debt-credit message recklessly in Lian Shangyou enterprise, the alliance or credit agency, and responds The joint borrows or lends money message, i.e., this combines enterprise of debt-credit message with sending or credit agency is to trigger the transaction request message jointly User make loans.
Further, it after having responded joint debt-credit message, is then borrowed or lent money in message according to the joint, is jointly the transaction The amount of money and work as that quantity, each enterprise or the lending institution of enterprise or lending institution that request message is made loans are made loans It is secondary to hand over the incident specific time, it generates the transaction and completes message.
S40: the nodal information that response joint debt-credit message is obtained in message is completed from transaction, and according to the intelligence of alliance's chain Transaction is completed message and is stored respectively into each node by contract.
In the present embodiment, node refers to corresponding each enterprise or credit agency in alliance's chain.Nodal information refers to Record has the information of the storage address of each corresponding node.Intelligent contract refers to that one kind is propagated in a manner of information-based, verified or held The computer protocol of row contract.Wherein, intelligent contract permission carries out credible transaction in no third-party situation, these transaction It is traceable and irreversible.
Specifically, after chain gets transaction completion message in the alliance, the node that message includes is borrowed or lent money according to the joint Nodal information completes message sending transaction to corresponding node.After each node gets transaction completion message, by this Transaction complete message generate a block, be stored on the privately owned chain of each node, ensure that data timely update and data Safety.
In the present embodiment, when getting the transaction request message of user's triggering, by transaction amount transaction request Transaction value data in message is judged, if showing that the transaction value data is greater than a node and allows to hand over by judgement After the easy amount of money upper limit, which is formed into joint debt-credit message, is issued, can be invited in alliance's chain Other nodes in alliance's chain are that the secondary transaction is handled jointly, can guarantee user's arm's length dealing, improve the viscous of user Property;Meanwhile after transaction, the data of this transaction are passed through into intelligent contract and store the privately owned chain into each node respectively On, i.e., each node has transaction data all on alliance's chain, when there is node to wish to obtain the data on alliance's chain, Data only need to be obtained from the corresponding privately owned chain of the node, to reduce handling capacity.
In one embodiment, as shown in Fig. 2, before step S20, compatible ether mill distribution account book method further include:
S201: building alliance's chain according to alliance's chain creation message by alliance's chain creation message of node triggering if getting, And the node of alliance's chain creation message will be triggered as host node.
In the present embodiment, alliance's chain creation message, which refers to, has an enterprise or credit agency as host node, based on a certain Business scenario, such as debt-credit scene, alliance's chain of creation.
Specifically, there is node, i.e., when enterprise or credit agency are desired based on a certain business scenario building alliance's chain, then touching Send out alliance's chain creation message.When server-side gets alliance's chain creation message, pass through the existing side for building alliance's chain Formula creates alliance's chain, and will trigger the node of alliance's chain creation message as host node
S202: if getting new node is added request, one of node, and the section by being selected are chosen in alliance's chain Point sends new node networking solicitation message into alliance's chain.
In the present embodiment, new node be added request refer to by new firms or credit agency triggering, request be added one The message of alliance's chain.The new node application that networks refers to trigger the new node new node application of request is added and coalizes the disappearing of chain Breath.
Specifically, enterprise or credit agency send new node addition request, host node creation is added in request Alliance's chain then sends new node networking on alliance's chain by this by node by one of node on alliance's chain Solicitation message.
S203: the node in alliance's chain votes to new node networking solicitation message by intelligent contract, if ballot Poll passes through, then by the new node being added in request according to new node by being connected to the network the chain that coalizes, and will be on alliance's chain Data be sent to new node.
Specifically, the mode voted the new node networking solicitation message, other members pass through intelligence in alliance's chain Contract votes to new node networking solicitation message, and after number of votes obtained meets agreement, new node information is credited to members list.
Further, new node is read by being connected to the network current alliance's chain member node, member node p2p communication module Intelligent contract member list information checks that newcomer's node enode url in members list, establishes connection, newcomer's node Start to download block data.
In one embodiment, as shown in figure 3, in step 30, i.e., after debt-credit message is combined in response, being borrowed or lent money according to joint Message generates transaction and completes message, specifically comprises the following steps:
S31: after joint lending message encryption, each node is sent to by alliance's chain.
It specifically, is each node distribution on alliance's chain by way of intelligent contract of knowing together when constructing alliance's chain Unique corresponding private key and public key.After the node on alliance's chain can encrypt data by corresponding public key, it is sent to On alliance's chain.After the node on alliance's chain gets the encrypted data, the data can be carried out by corresponding private key Decryption, to ensure that the safety of data.
In the present embodiment, send the joint lending message node be decrypted using corresponding public key after, by this plus Joint lending message after close is sent to each node by alliance's chain.
S32: after node gets encrypted joint lending message, assessing joint lending message, if assessment As a result to pass through, then joint lending message is responded.
Specifically, after the node on alliance's chain gets the encrypted joint lending message, each node pair is used The private key for the decryption answered is decrypted.Further, the node on alliance's chain carries out air control assessment, tool to the joint lending message The mode of body assessment can be the credit information that user is obtained from the joint lending message, thus to the transaction amount of the user Data are assessed, and whether the reference situation for verifying the user meets the transaction value data.For example, from the credit of user Situations such as bank's history refund situation, personal income situation and the transaction journal data of the user are obtained in information, to the use It is assessed at family.
Further, if assessment result is to pass through, joint lending message is responded, is traded jointly for the user.
In one embodiment, as shown in figure 4, in step s 40, i.e., completing to obtain response joint debt-credit in message from transaction The nodal information of message, and transaction is completed by message according to the intelligent contract of alliance's chain and is stored respectively into each node, specifically Include the following steps:
S41: message is completed into transaction and is calculated by hashing algorithm, the transaction character string of regular length is obtained.
In the present embodiment, hashing algorithm, i.e. Hash function, Hash function (also referred to as hash function or hash algorithm) are exactly Arbitrarily long input message string is changing into a kind of function of the output string of fixed length.
Specifically, which message is completed as the input message string transaction completion disappears by the hashing algorithm Breath is converted to the transaction character string of a regular length.
S42: it after transaction character string is encrypted by rivest, shamir, adelman, stores to each node of alliance's chain In.
In the present embodiment, the node of the joint lending message is responded after getting the transaction character string, by non-right Claim the public key of Encryption Algorithm to encrypt the transaction character string, forms corresponding block, and store to the privately owned chain of the node On, the characteristic that block chain can not be distorted is utilized, ensure that data safety.
In one embodiment, as shown in figure 5, in step S42, i.e., will transaction character string by rivest, shamir, adelman into After row encryption, stores into each node of alliance's chain, specifically comprise the following steps:
S421: if getting data checks message, check that message acquisition trigger data checks the node of message according to data Address information.
In the present embodiment, data check the message for the data that message refers to that request is checked in node.
Specifically, message is checked if having got node and having triggered the data, check in message in the data, obtain the section The address information in alliance's chain of point.
S422: checking that message obtains corresponding encrypted transaction character string according to data, and will transaction character string according to Address information is sent to corresponding node.
Specifically, the transaction data that obtains the node check is checked in message in the data, it can be by the number of deals According to obtaining corresponding keyword as matched character string, for example, obtained from the transaction data this time friendship incident time or Unique transaction number of person etc. obtains corresponding encrypted transaction character string according to the matched character string in the node, and will Character string of trading is sent to corresponding node according to address information.
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 invention constitutes any limit It is fixed.
Embodiment two:
In one embodiment, a kind of compatible ether mill distribution account book device is provided, the compatibility ether mill distribution account book device Ether compatible with above-described embodiment mill distribution account book method corresponds.As shown in fig. 6, the compatibility ether mill distribution account The present apparatus includes that the amount of money obtains module 10, assets sharing module 20, message response module 30 and memory module 40.Each functional module Detailed description are as follows:
The amount of money obtains module 10, if the transaction request message for getting user's triggering, obtains from transaction request message Transaction value data;
Assets sharing module 20, for transaction value data to be compared with preset threshold value, if transaction value data is more than Threshold value then issues joint debt-credit message into alliance's chain;
Message response module 30, for generating transaction according to joint debt-credit message and completing message after debt-credit message is combined in response;
Memory module 40, for completing the nodal information for obtaining response joint debt-credit message in message from transaction, and according to alliance Transaction is completed message and is stored respectively into each node by the intelligent contract of chain.
Preferably, compatible ether mill distribution account book device further include:
Alliance's chain creation module 201, if for getting the alliance's chain creation message triggered by node, according to alliance's chain creation Message builds alliance's chain, and will trigger the node of alliance's chain creation message as host node;
Solicitation message sending module 202 chooses one of section if request is added for getting new node in alliance's chain Point, and the node by being selected sends new node networking solicitation message into alliance's chain;
Vote module 203 votes to new node networking solicitation message by intelligent contract for the node in alliance's chain, if The poll of ballot passes through, then by the new node being added in request according to new node by being connected to the network the chain that coalizes, and will connection Data on alliance's chain are sent to new node.
Preferably, message response module 30 includes:
Encrypted transmission submodule 31, for being sent to each node by alliance's chain for after joint lending message encryption;
Submodule 32 is assessed in air control, for after node gets encrypted joint lending message, to joint lending message into Row assessment responds joint lending message if assessment result is to pass through.
Preferably, memory module 40 includes:
Computational submodule 41 is calculated by hashing algorithm for that will trade completion message, obtains the transaction word of regular length Symbol string;
Encryption sub-module stored 42 stores after being encrypted for the character string that will trade by rivest, shamir, adelman to alliance In each node of chain.
Preferably, encryption sub-module stored 42 includes:
Address acquisition unit 421 checks that message obtains trigger data and looks into according to data if checking message for getting data See the address of node information of message;
Message sending unit 422, for checking that message obtains corresponding encrypted transaction character string according to data, and will transaction Character string is sent to corresponding node according to address information.
Specific restriction about compatible ether mill distribution account book device may refer to above for compatible ether mill point The restriction of cloth account book method, details are not described herein.Modules in above-mentioned compatible ether mill distribution account book device can be complete Portion or part are realized by software, hardware and combinations thereof.Above-mentioned each module can be embedded in the form of hardware or independently of calculating In processor in machine equipment, it can also be stored in a software form in the memory in computer equipment, in order to processor It calls and executes the corresponding operation of the above modules.
Embodiment three:
In one embodiment, a kind of computer equipment is provided, which can be server, internal structure chart It can be as shown in Figure 7.The computer equipment includes processor, memory, network interface and the data connected by system bus Library.Wherein, the processor of the computer equipment is for providing calculating and control ability.The memory of the computer equipment includes non- Volatile storage medium, built-in storage.The non-volatile memory medium is stored with operating system, computer program and database. The built-in storage provides environment for the operation of operating system and computer program in non-volatile memory medium.The computer is set Standby database stores each node to alliance's chain for the completion message that will trade.The network interface of the computer equipment is used It is communicated in passing through network connection with external terminal.To realize a kind of compatible ether mill when the computer program is executed by processor Distributed account book method.
In one embodiment, a kind of computer equipment is provided, including memory, processor and storage are on a memory And the computer program that can be run on a processor, processor perform the steps of when executing computer program
S10: if getting the transaction request message of user's triggering, transaction value data is obtained from transaction request message;
S20: transaction value data is compared with preset threshold value, if transaction value data is more than threshold value, to alliance's chain Middle sending joint debt-credit message;
S30: after debt-credit message is combined in response, transaction is generated according to joint debt-credit message and completes message;
S40: the nodal information that response joint debt-credit message is obtained in message is completed from transaction, and according to the intelligent contract of alliance's chain Message is completed in transaction to be stored respectively into each node.
Example IV:
In one embodiment, a kind of computer readable storage medium is provided, computer program, computer journey are stored thereon with It is performed the steps of when sequence is executed by processor
S10: if getting the transaction request message of user's triggering, transaction value data is obtained from transaction request message;
S20: transaction value data is compared with preset threshold value, if transaction value data is more than threshold value, to alliance's chain Middle sending joint debt-credit message;
S30: after debt-credit message is combined in response, transaction is generated according to joint debt-credit message and completes message;
S40: the nodal information that response joint debt-credit message is obtained in message is completed from transaction, and according to the intelligent contract of alliance's chain Message is completed in transaction to be stored respectively into each node.
Those of ordinary skill in the art will appreciate that realizing all or part of the process in above-described embodiment method, being can be with Relevant hardware is instructed to complete by computer program, the computer program can be stored in a non-volatile computer In read/write memory medium, the computer program is when being executed, it may include such as the process of the embodiment of above-mentioned each method.Wherein, To any reference of memory, storage, database or other media used in each embodiment provided herein, Including non-volatile and/or volatile memory.Nonvolatile memory may include read-only memory (ROM), programming ROM (PROM), electrically programmable ROM(EPROM), electrically erasable ROM(EEPROM) or flash memory.Volatile memory may include Random-access memory (ram) or external cache.By way of illustration and not limitation, RAM is available in many forms, Such as static state RAM(SRAM), dynamic ram (DRAM), synchronous dram (SDRAM), double data rate sdram (DDRSDRAM), enhancing Type SDRAM(ESDRAM), synchronization link (Synchlink) DRAM(SLDRAM), memory bus (Rambus) direct RAM (RDRAM), direct memory bus dynamic ram (DRDRAM) and memory bus dynamic ram (RDRAM) etc..
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.
Embodiment described above is merely illustrative of the technical solution of the present invention, rather than its limitations;Although referring to aforementioned reality Applying example, invention is explained 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 for technical solution of various embodiments of the present invention that it does not separate the essence of the corresponding technical solution should all It is included within protection scope of the present invention.

Claims (10)

1. a kind of compatible ether mill distribution account book method, which is characterized in that the compatible ether mill distribution account book method packet It includes:
S10: if getting the transaction request message of user's triggering, trade gold specified number is obtained from the transaction request message According to;
S20: the transaction value data is compared with preset threshold value, if the transaction value data is more than the threshold Value then issues joint debt-credit message into alliance's chain;
S30: after responding the joint debt-credit message, message generation transaction is borrowed or lent money according to the joint and completes message;
S40: the nodal information that the response joint debt-credit message is obtained in message is completed from the transaction, and according to the alliance The intelligent contract of chain stores transaction completion message respectively into each node.
2. compatible ether mill distribution account book method as described in claim 1, which is characterized in that described before step S20 Compatible ether mill distribution account book method further include:
S201: it if getting the alliance's chain creation message triggered by node, according to alliance's chain creation message, builds described Alliance's chain, and the node of alliance's chain creation message will be triggered as host node;
S202: if getting new node is added request, one of node is chosen in alliance's chain, and by being selected Node new node networking solicitation message is sent into alliance's chain;
S203: the node in alliance's chain votes to the new node networking solicitation message by the intelligent contract, If the poll of the ballot passes through, the new node being added in request according to the new node is passed through described in network connection addition Alliance's chain, and the data on alliance's chain are sent to the new node.
3. compatible ether mill distribution account book method as described in claim 1, which is characterized in that step S30 includes:
S31: after the joint lending message encryption, each node is sent to by alliance's chain;
S32: after the node gets the encrypted joint lending message, the joint lending message is commented Estimate, if assessment result is to pass through, responds the joint lending message.
4. compatible ether mill distribution account book method as described in claim 1, which is characterized in that step S40 includes:
S41: message is completed into the transaction and is calculated by hashing algorithm, the transaction character string of regular length is obtained;
S42: it after the transaction character string is encrypted by rivest, shamir, adelman, stores to each institute of alliance's chain It states in node.
5. compatible ether mill distribution account book method as claimed in claim 4, which is characterized in that step S42 includes:
S421: if getting data checks message, check that message obtains the triggering data and checks message according to the data Address of node information;
S422: checking that message obtains the corresponding encrypted transaction character string according to the data, and by the transaction word Symbol string is sent to corresponding node according to the address information.
6. a kind of compatible ether mill distribution account book device, which is characterized in that the compatible ether mill distribution account book device packet It includes:
The amount of money obtains module, if the transaction request message for getting user's triggering, is obtained from the transaction request message Take transaction value data;
Assets sharing module, for the transaction value data to be compared with preset threshold value, if the trade gold specified number According to being more than the threshold value, then joint debt-credit message is issued into alliance's chain;
Message response module, for borrowing or lending money message generation according to the joint and having traded after responding the joint debt-credit message At message;
Memory module, for completing the nodal information for obtaining the response joint debt-credit message in message, and root from the transaction Transaction completion message is stored respectively into each node according to the intelligent contract of alliance's chain.
7. compatible ether mill distribution account book device as claimed in claim 6, which is characterized in that the compatible ether mill distribution Formula account book device further include:
Alliance's chain creation module, if being created for getting the alliance's chain creation message triggered by node according to alliance's chain Message is built, alliance's chain is built, and the node of alliance's chain creation message will be triggered as host node;
Solicitation message sending module chooses one of them in alliance's chain if request is added for getting new node Node, and the node by being selected sends new node networking solicitation message into alliance's chain;
Vote module, for the node in alliance's chain by the intelligent contract to the new node networking solicitation message into The new node being added in request according to the new node is passed through network connection if the poll of the ballot passes through by row ballot Alliance's chain is added, and the data on alliance's chain are sent to the new node.
8. compatible ether mill distribution account book device as claimed in claim 6, which is characterized in that the message response module packet It includes:
Encrypted transmission submodule, for being sent to after the joint lending message encryption by alliance's chain each described Node;
Submodule is assessed in air control, for after the node gets the encrypted joint lending message, to the joint Lending message is assessed, if assessment result is to pass through, responds the joint lending message.
9. a kind of computer equipment, including memory, processor and storage are in the memory and can be in the processor The computer program of upper operation, which is characterized in that the processor realized when executing the computer program as claim 1 to The step of any one of 5 compatible ether mill distribution account book method.
10. a kind of computer readable storage medium, the computer-readable recording medium storage has computer program, and feature exists In realization compatible ether mill distribution account as described in any one of claim 1 to 5 when the computer program is executed by processor The step of this method.
CN201910330383.1A 2019-04-23 2019-04-23 Compatible ether mill distribution account book method, apparatus, equipment and medium Pending CN110046895A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910330383.1A CN110046895A (en) 2019-04-23 2019-04-23 Compatible ether mill distribution account book method, apparatus, equipment and medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910330383.1A CN110046895A (en) 2019-04-23 2019-04-23 Compatible ether mill distribution account book method, apparatus, equipment and medium

Publications (1)

Publication Number Publication Date
CN110046895A true CN110046895A (en) 2019-07-23

Family

ID=67278782

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910330383.1A Pending CN110046895A (en) 2019-04-23 2019-04-23 Compatible ether mill distribution account book method, apparatus, equipment and medium

Country Status (1)

Country Link
CN (1) CN110046895A (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110969524A (en) * 2019-11-28 2020-04-07 中国建设银行股份有限公司 Block chain-based fund service processing method, device, equipment and medium
CN112116462A (en) * 2020-05-19 2020-12-22 上海金融期货信息技术有限公司 Block chain-based price inquiry and quotation transaction method and system
CN112714106A (en) * 2020-12-17 2021-04-27 杭州趣链科技有限公司 Block chain-based federal learning casual vehicle carrying attack defense method

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107025602A (en) * 2017-02-24 2017-08-08 杭州象链网络技术有限公司 A kind of financial asset transaction system construction method based on alliance's chain
CN109034999A (en) * 2018-06-15 2018-12-18 杭州复杂美科技有限公司 Loan method and system, equipment and storage medium
CN109064309A (en) * 2018-07-02 2018-12-21 浙江大学 A kind of small micro- loan transaction system and method for commerce based on alliance's chain
CN109146688A (en) * 2018-08-30 2019-01-04 广州立趣信息科技有限公司 A kind of supply chain financial application method based on block chain alliance chain technology
WO2019010459A1 (en) * 2017-07-07 2019-01-10 Buki Pablo Javier Methods and systems for processing high volume, fast settlement blockchain transactions
CN109509078A (en) * 2018-09-19 2019-03-22 平安科技(深圳)有限公司 Debt-credit operation method, system, server and storage medium based on block chain
CN109657486A (en) * 2018-12-18 2019-04-19 青岛轮子软件科技有限公司 A kind of financial institution's user data sharing method and system based on block chain technology

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107025602A (en) * 2017-02-24 2017-08-08 杭州象链网络技术有限公司 A kind of financial asset transaction system construction method based on alliance's chain
WO2019010459A1 (en) * 2017-07-07 2019-01-10 Buki Pablo Javier Methods and systems for processing high volume, fast settlement blockchain transactions
CN109034999A (en) * 2018-06-15 2018-12-18 杭州复杂美科技有限公司 Loan method and system, equipment and storage medium
CN109064309A (en) * 2018-07-02 2018-12-21 浙江大学 A kind of small micro- loan transaction system and method for commerce based on alliance's chain
CN109146688A (en) * 2018-08-30 2019-01-04 广州立趣信息科技有限公司 A kind of supply chain financial application method based on block chain alliance chain technology
CN109509078A (en) * 2018-09-19 2019-03-22 平安科技(深圳)有限公司 Debt-credit operation method, system, server and storage medium based on block chain
CN109657486A (en) * 2018-12-18 2019-04-19 青岛轮子软件科技有限公司 A kind of financial institution's user data sharing method and system based on block chain technology

Non-Patent Citations (2)

* Cited by examiner, † Cited by third party
Title
杨东: "《旗点商学院系列丛书 链金有法 区块链商业实践与法律指南》", 31 July 2017, 北京航空航天大学出版社 *
桂学文等: "《电子商务服务业产业结构与协同发展》", 31 January 2019, 华中师范大学出版社 *

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110969524A (en) * 2019-11-28 2020-04-07 中国建设银行股份有限公司 Block chain-based fund service processing method, device, equipment and medium
CN112116462A (en) * 2020-05-19 2020-12-22 上海金融期货信息技术有限公司 Block chain-based price inquiry and quotation transaction method and system
CN112116462B (en) * 2020-05-19 2024-01-02 上海金融期货信息技术有限公司 Price inquiring and quoting transaction method and system based on blockchain
CN112714106A (en) * 2020-12-17 2021-04-27 杭州趣链科技有限公司 Block chain-based federal learning casual vehicle carrying attack defense method

Similar Documents

Publication Publication Date Title
Sultan et al. Conceptualizing blockchains: Characteristics & applications
Bacon et al. Blockchain demystified: a technical and legal introduction to distributed and centralized ledgers
US20210158454A1 (en) Method and device for data processing based on blockchain
ES2932500T3 (en) Select and secure test delegates for cryptographic functions
KR101987692B1 (en) Registry and Automation Management Methods for Smart Contracts in Blockchain Enforcement
Khrais Comparison study of blockchain technology and IOTA technology
Al Kawasmi et al. Bitcoin‐based decentralized carbon emissions trading infrastructure model
US10812274B2 (en) Transferring ledger assets between blockchains via pegged sidechains
KR102009160B1 (en) Information trust engine system based on block-chain
JP2020523838A (en) System and method for addressing security-related vulnerabilities in off-blockchain channels in the event of network failure
CN110402561A (en) Block chain data protection based on universal account model and homomorphic cryptography
Carvalho et al. When good blocks go bad: Managing unwanted blockchain data
US11270388B2 (en) Blockchain-based data processing method and apparatus
TW201933204A (en) Smart contract generation method and apparatus
CN109615351A (en) SIM card, terminating machine and digital currency managing system
Sirisha et al. Proposed solution for trackable donations using blockchain
CN112101938B (en) Digital seal using method and device based on block chain and electronic equipment
CN110060148A (en) Assets shared data circulation method, apparatus, equipment and medium based on block chain
CN111738724B (en) Cross-border resource transfer authenticity auditing method and device, and electronic equipment
CN110046895A (en) Compatible ether mill distribution account book method, apparatus, equipment and medium
CN110751485A (en) Data processing method and equipment
Eisele et al. Blockchains for transactive energy systems: Opportunities, challenges, and approaches
CN109447791A (en) A kind of funds transaction method and device based on block chain
CN112200569B (en) Digital seal using method and device based on block chain and electronic equipment
Idrees et al. Exploring the Blockchain Technology: Issues, Applications and Research Potential.

Legal Events

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

Application publication date: 20190723

RJ01 Rejection of invention patent application after publication