CN110472971A - A kind of two process block hitting method and system - Google Patents

A kind of two process block hitting method and system Download PDF

Info

Publication number
CN110472971A
CN110472971A CN201810434814.4A CN201810434814A CN110472971A CN 110472971 A CN110472971 A CN 110472971A CN 201810434814 A CN201810434814 A CN 201810434814A CN 110472971 A CN110472971 A CN 110472971A
Authority
CN
China
Prior art keywords
data
block hitting
block
module
processing module
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
CN201810434814.4A
Other languages
Chinese (zh)
Inventor
杨税令
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Benchainless Technology (Shenzhen) Co.,Ltd.
Original Assignee
Xiamen Instinct Blockchain 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 Xiamen Instinct Blockchain Technology Co ltd filed Critical Xiamen Instinct Blockchain Technology Co ltd
Priority to CN201810434814.4A priority Critical patent/CN110472971A/en
Publication of CN110472971A publication Critical patent/CN110472971A/en
Pending legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/46Multiprogramming arrangements
    • G06F9/466Transaction 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
    • G06Q20/00Payment architectures, schemes or protocols
    • G06Q20/38Payment protocols; Details thereof
    • G06Q20/382Payment protocols; Details thereof insuring higher security of transaction
    • G06Q20/3825Use of electronic signatures
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06QINFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
    • G06Q20/00Payment architectures, schemes or protocols
    • G06Q20/38Payment protocols; Details thereof
    • G06Q20/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

Landscapes

  • Engineering & Computer Science (AREA)
  • Business, Economics & Management (AREA)
  • Theoretical Computer Science (AREA)
  • Accounting & Taxation (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Finance (AREA)
  • Strategic Management (AREA)
  • General Business, Economics & Management (AREA)
  • Computer Security & Cryptography (AREA)
  • Software Systems (AREA)
  • General Engineering & Computer Science (AREA)
  • Information Transfer Between Computers (AREA)

Abstract

The invention discloses a kind of two process block hitting methods, include the following steps: activation system, create the first process, the second process;Start the first process, while starting WEB container service and HTTP listening port to receive data;Data processing module is stored in local data base after the data received are done preliminary validity checking, if legal, start the second process, log-on data service module simultaneously, drive the local data base in the first process, newly-increased data in local data base are extracted, data are submitted into block hitting device after unserializing, the message that the block hitting of this process is completed is sent to the data processing module of the first process by process transfer module.The invention also discloses a kind of system of two process block hitting, the present invention improves the efficiency of block hitting, shortens the time of block hitting by two process block hitting;By two process block hittings, realizes that retrieval verify data can carry out in two processes respectively, shorten the verification time, improve recall precision.

Description

A kind of two process block hitting method and system
Technical field
The invention belongs to block chain field more particularly to a kind of two process block hitting method and system.
Background technique
With the appearance of bit coin, block chain technology is more and more recognized, and the digging mine in block chain is particularly subject to very The favor of more tech-heads, in existing block chain network, digging mine, making block, data are carried out with signature verification is one process , make that block (carrying out bundle account, abbreviation block hitting to transaction in certain time) speed is slow, and time cost is higher, and need When verifying and search certain data, need data retrieval one time of entire process, low efficiency.
Summary of the invention
Technical problem to be solved by the present invention lies in providing, a kind of block hitting speed is fast, high-efficient, searches verify data side Just efficiently a kind of two process block hitting method and system.
In order to solve the above technical problems, the technical solution of the invention is as follows:
A kind of two process block hitting method, includes the following steps:
(1) activation system creates the first process, the second process;
(2) start the first process, while starting WEB container service and HTTP listening port to receive data;
(3) data received are done preliminary validity checking by data processing module;
(4) it if data are legal, is stored in local data base after data sequence to be turned to the format of inter-process, if not conforming to Method then deletes the data;Monitoring reception data are then proceeded to, are so recycled, until all external datas are received oneself In local data base;
(5) start the second process, while log-on data service module, drive the local data base in the first process, incite somebody to action this Newly-increased data in ground database extract;
(6) by the newly-increased data unserializing in local data base, it is reduced to format to be treated, then proposes data Block hitting device is given, state is returned after block hitting device block hitting success to data processing module;
(7) labeled as processed, then data processing module receives after state by this partial data in local data base Processing result is sent to process transfer module, the message that the block hitting of this process is completed is sent to first by process transfer module The data processing module of process, so far, this block hitting terminate.
Further, the first process is responsible for external data reception and is sent in step (1), and the second process is responsible for internal data Processing and block hitting.
It further, is the public key by verify data to the method for data validity checking in step (3).
Further, block hitting device is to calculate the calculating equipment that power makes block using itself in step (6).
A kind of two process block hitting system, comprising:
Data reception module: it is responsible for receiving external data;
The data processing module connecting with data reception module: after external data identification, sequence turns to inter-process It is stored in local data base after format;
The local data base being connect with data processing module: storage treated external data;
The data service module being connected with local data base: extracting the data in local data base, will be in local data base Newly-increased data unserializing, be reduced to format to be treated, data then submitted into block hitting device;
Block hitting device: block hitting device returns to state to data processing module after making block to the data of data service module;
The process transfer module being connected with data processing module and data service module completes the block hitting of this process Message is sent to the data processing module of the first process;
Data reception module, data processing module, local data base, data service module, block hitting device and the process Transfer module is linked in sequence.
Further, the data reception module is made of the HTTP listening port for carrying WEB container.
Further, the block hitting device is to calculate the calculating equipment that power makes block using itself.
Further, it is the public key by verify data that the data processing module, which knows method for distinguishing to external data,.
The beneficial effects of the present invention are:
1, by two process block hitting, the efficiency of block hitting is improved, the trading processing amount of unit time is increased, shortened and beat The time of block;
2, it by two process block hittings, realizes that retrieval verify data can carry out in two processes respectively, shortens and test The time is demonstrate,proved, recall precision is improved.
Detailed description of the invention
Fig. 1 is the flow chart of corresponding method of the present invention;
Fig. 2 is the structural block diagram of correspondence system of the present invention;
Fig. 3 is the flow chart of verify data of the present invention
Specific embodiment
The invention will be further described in the following with reference to the drawings and specific embodiments.It should be noted that following institute Technical characteristic involved in each embodiment of the present invention of description can be combined with each other as long as they do not conflict with each other.
As shown in Figure 1, a kind of two process block hitting method, includes the following steps:
(1) activation system creates the first process, the second process;Two processes herein can create simultaneously, but create Different with starting, starting generally first starts the first process, then starts the second process, the most of the time, two processes were to exist simultaneously Operation, when only just having started the first process and when terminating final data processing, some process of ability isolated operation, two processes Function separates, and the first process is responsible for external data and receives and send, and the second process is responsible for the processing and block hitting of internal data.
(2) start the first process, while starting WEB container service and HTTP listening port to receive data;Web container is A kind of service routine, server a port just have one offer respective service program, and this program be exactly handle from The request that client issues, such as the Tomcat container in JAVA, the IIS or PWS of ASP is such container, is used herein Program is exactly to be used for the received WEB container of external data.
(3) data received are done preliminary validity checking by data processing module;To the method for data validity checking It is the public key by verify data, the data are legal if public key match, will receive the data automatically.
(4) it if data are legal, is stored in local data base after data sequence to be turned to the format of inter-process, if not conforming to Method then deletes the data;Monitoring reception data are then proceeded to, are so recycled, until all external datas are received oneself In local data base, a round-robin algorithm can be used herein, as shown in figure 3, judging whether there is number when the first process starts According to no data then terminate, and have the step of data just recycle always the first process;
(5) start the second process, while log-on data service module, drive the local data base in the first process, incite somebody to action this Newly-increased data in ground database extract;
(6) by the newly-increased data unserializing in local data base, it is reduced to format to be treated, then proposes data Block hitting device is given, state is returned to after block hitting device block hitting success to data processing module, block hitting device herein is to calculate power using itself Make the calculating equipment of block;
(7) labeled as processed, then data processing module receives after state by this partial data in local data base Processing result is sent to process transfer module, the message that the block hitting of this process is completed is sent to first by process transfer module The data processing module of process, two processes of such first process and the second process can distinguish block hitting well and receive number According to so far, this block hitting terminates.
As shown in Fig. 2, the invention also discloses a kind of two process block hitting systems, comprising:
Data reception module 1: it is responsible for receiving external data;Data reception module 1 monitors end by the HTTP for carrying WEB container Mouth composition;
The data processing module 2 connecting with data reception module 1: data processing module 2 receives after external data by testing After the public key form of card data verifies data, after external data identification, sequence is deposited after turning to the format of inter-process Enter in local data base;
The local data base 3 being connect with data processing module 2: storage treated external data;
The data service module 4 being connected with local data base 3: the data in local data base 3 are extracted, by local data base In newly-increased data unserializing, be reduced to format to be treated, data then submitted into block hitting device;
Block hitting device 5: block hitting device, which makes the data of data service module 4, returns to state after block to data processing module 2, Block hitting device 5 is to calculate the calculating equipment that power makes block using itself;
The process transfer module 6 being connected with data processing module 2 and data service module 4, by this process, block hitting is complete At message be sent to the data processing module 2 of the first process;
Data reception module, data processing module, local data base, data service module, block hitting device and the process Transfer module is linked in sequence.
Two process block hitting system specific works method of the present invention is:
External data is transmitted to data processing module 2, data processing module after the reception external data of data reception module 1 2 receive after being verified by the public key form of verify data to data after external data, after external data identification, serializing To be stored in local data base after the format of inter-process;Data service module 4 extracts the data in local data base 3, incite somebody to action this Newly-increased data unserializing in ground database 3, is reduced to format to be treated, data is then submitted to block hitting device 5;It beats Block device 5 returns to state to data processing module 2 after making block to the data of data service module 4, and data processing module 2 receives By this partial data in local data base 5 labeled as processed after state, then by process transfer module 6, by this process The message that block hitting is completed is sent to the data processing module 2 of the first process, completes a block hitting.
The present invention improves the efficiency of block hitting, shortens the time of block hitting by two process block hitting;It is beaten by two processes Block realizes that retrieval verify data can carry out in two processes respectively, shortens the verification time, improve recall precision.
One process in foregoing description is continued to be split as the multi-process such as three processes, four processes, five processes by task category, Also belong to the scope of application of the invention.
The above described is only a preferred embodiment of the present invention, be not intended to limit the scope of the present invention, Therefore the changes or modifications that claim under this invention and specification are done in every case, it all should belong to the range that the invention patent covers Within.

Claims (8)

1. a kind of two process block hitting method, includes the following steps:
(1) activation system creates the first process, the second process;
(2) start the first process, while starting WEB container service and HTTP listening port to receive data;
(3) data received are done preliminary validity checking by data processing module;
(4) it if data are legal, is stored in local data base after data sequence to be turned to the format of inter-process, if it is illegal, then Delete the data;Monitoring reception data are then proceeded to, are so recycled, until all external datas being received oneself local number According in library;
(5) start the second process, while log-on data service module, the local data base in the first process is driven, by local number It is extracted according to the newly-increased data in library;
(6) by the newly-increased data unserializing in local data base, it is reduced to format to be treated, then submits to data Block hitting device returns to state to data processing module after block hitting device block hitting success;
(7) data processing module receives this partial data in local data base after state labeled as processed, then will place Reason result is sent to process transfer module, and the message that the block hitting of this process is completed is sent to the first process by process transfer module Data processing module, so far, this block hitting terminates.
2. a kind of two process block hitting method according to claim 1, it is characterised in that the first process is responsible for outer in step (1) Portion's data receiver and transmission, the second process are responsible for the processing and block hitting of internal data.
3. a kind of two process block hitting method according to claim 1, it is characterised in that examined in step (3) to data validation The method looked into is the public key by verify data.
4. a kind of two process block hitting method according to claim 1, it is characterised in that block hitting device is using certainly in step (6) Body calculates the calculating equipment that power makes block.
5. a kind of two process block hitting system, comprising:
Data reception module: it is responsible for receiving external data;
The data processing module connecting with data reception module: after external data identification, sequence turns to the format of inter-process It is stored in local data base afterwards;
The local data base being connect with data processing module: storage treated external data;
The data service module being connected with local data base: extracting the data in local data base, will be new in local data base Increase data unserializing, is reduced to format to be treated, data are then submitted into block hitting device;
Block hitting device: block hitting device returns to state to data processing module after making block to the data of data service module;
The process transfer module being connected with data processing module and data service module, the message that the block hitting of this process is completed It is sent to the data processing module of the first process;
Data reception module, data processing module, local data base, data service module, block hitting device and the process is transmitted Sequence of modules connection.
6. a kind of two process block hitting system according to claim 5, it is characterised in that the data reception module is by taking Carry the HTTP listening port composition of WEB container.
7. a kind of two process block hitting system according to claim 5, it is characterised in that the block hitting device is to utilize itself Calculate the calculating equipment that power makes block.
8. a kind of two process block hitting system according to claim 5, it is characterised in that the data processing module is external It is the public key by verify data that portion's data, which know method for distinguishing,.
CN201810434814.4A 2018-05-09 2018-05-09 A kind of two process block hitting method and system Pending CN110472971A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201810434814.4A CN110472971A (en) 2018-05-09 2018-05-09 A kind of two process block hitting method and system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201810434814.4A CN110472971A (en) 2018-05-09 2018-05-09 A kind of two process block hitting method and system

Publications (1)

Publication Number Publication Date
CN110472971A true CN110472971A (en) 2019-11-19

Family

ID=68503287

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201810434814.4A Pending CN110472971A (en) 2018-05-09 2018-05-09 A kind of two process block hitting method and system

Country Status (1)

Country Link
CN (1) CN110472971A (en)

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101477532A (en) * 2008-12-23 2009-07-08 北京畅游天下网络技术有限公司 Method, apparatus and system for implementing data storage and access
CN105630609A (en) * 2016-02-24 2016-06-01 杭州复杂美科技有限公司 Block chain packing and storing method
CN107292181A (en) * 2017-06-20 2017-10-24 无锡井通网络科技有限公司 Database Systems based on block chain and the application method using the system
CN107402824A (en) * 2017-05-31 2017-11-28 阿里巴巴集团控股有限公司 A kind of method and device of data processing
CN107704269A (en) * 2017-10-16 2018-02-16 中国银行股份有限公司 A kind of method and system based on block chain generation block

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101477532A (en) * 2008-12-23 2009-07-08 北京畅游天下网络技术有限公司 Method, apparatus and system for implementing data storage and access
CN105630609A (en) * 2016-02-24 2016-06-01 杭州复杂美科技有限公司 Block chain packing and storing method
CN107402824A (en) * 2017-05-31 2017-11-28 阿里巴巴集团控股有限公司 A kind of method and device of data processing
CN107292181A (en) * 2017-06-20 2017-10-24 无锡井通网络科技有限公司 Database Systems based on block chain and the application method using the system
CN107704269A (en) * 2017-10-16 2018-02-16 中国银行股份有限公司 A kind of method and system based on block chain generation block

Similar Documents

Publication Publication Date Title
CN108521418B (en) Identity authentication method and system fusing block chain and biological feature recognition
JP7126174B2 (en) Verification system and method for collaboration of blockchain and off-chain devices
CN111444512B (en) Mobile terminal blocking method and system for block chain
IL263763B2 (en) An electronic payment system and method thereof
CN109379429A (en) A kind of multichain management method and system based on block chain
CN103078892B (en) The method of content of short message Intelligent Recognition, client, server and system
CN111010363B (en) Information authentication method and system, authentication module and user terminal
CN106713370B (en) A kind of identity identifying method, server and mobile terminal
RU99127351A (en) METHOD AND DEVICE FOR CENTRALIZED COLLECTION OF GEOGRAPHICALLY DISTRIBUTED DATA
CN108833330A (en) A kind of rural area electronic commerce data authentication approach
CN103139172A (en) Service implementation method and device
CN101179385A (en) Method, network game server and system for improving security of user account
CN106485140A (en) A kind of upgrade method of electric energy meter and upgrade-system
CN102711109A (en) Method for performing identity authentication on mobile terminal
CN105791246A (en) Information verification method, device and system
CN104253818A (en) Server and terminal authentication method, server, terminal
CN108540491B (en) Semi-automatic penetration testing system and method based on passive scanning
CN110008704A (en) A kind of electronic information intelligent memory system for industrial management
CN112486977B (en) Method and system for forging block by chain type mobile terminal
CN110472971A (en) A kind of two process block hitting method and system
CN106971092A (en) USB encryption card management systems based on cloud platform
CN115114613B (en) System for password cracking by using ASIC and GPU heterogeneous type resources
CN101262481A (en) A remote service recognition system and method for computer network
CN103514651A (en) Internet lottery secure transaction and claiming system based on face recognition and method thereof
CN102571928B (en) Method and device for selecting application proxy according to application identification

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
TA01 Transfer of patent application right
TA01 Transfer of patent application right

Effective date of registration: 20210330

Address after: Room 2201, 703c, Desai science and technology building, 9789 Shennan Avenue, high tech Zone community, Yuehai street, Nanshan District, Shenzhen, Guangdong 518000

Applicant after: Benchainless Technology (Shenzhen) Co.,Ltd.

Address before: 361000 unit 11, 201, building B, 86 Haijing Road, Xiamen area, national (Fujian) pilot Free Trade Zone, Xiamen City, Fujian Province

Applicant before: XIAMEN INSTINCT BLOCKCHAIN TECHNOLOGY Co.,Ltd.