A kind of method, apparatus, system and the storage medium of access block chain
Technical field
The present invention relates to block chain technical field more particularly to a kind of method, apparatus, system and the storages of access block chain
Medium.
Background technology
Currently, block chain (Blockchain) is Distributed Storage, point-to-point transmission, common recognition mechanism, Encryption Algorithm
Etc. computer technologies new application pattern, essence is the database of a decentralization, be a string use cryptography method
Associated data block.But current block chain is unfavorable for using and accessing for common trade company due to the complexity of itself.
Invention content
For overcome the deficiencies in the prior art, one of the objects of the present invention is to provide it is a kind of access block chain method,
Order information to be sent from merchant tenninal generates pre-paid and identifies and be sent to merchant tenninal.It obtains from buyer terminal
It merchandises and is asked into chain, described merchandise into chain request includes Transaction Information and the order information, and the order information includes described
Pre-paid identifies, and is verified to the Transaction Information using the order information, if being proved to be successful, the Transaction Information is sent out
Toward block chain record keeping node device, to which the block for providing general is linked into flow, facilitate merchant tenninal use and access area
Block chain.
The second object of the present invention is to provide a kind of method of access block chain, and order information is sent to by merchant tenninal
Block is linked into node device;Obtain the pre-paid mark that node device is linked into from the block;Order information is sent
To the buyer terminal, carries out order payment for the buyer terminal and merchandise to block link ingress initiation into chain
Request, the order information include the pre-paid mark;Obtain the expression transaction that node device is linked into from the block
The notification information of written block, the access point to realize merchant tenninal and block chain realize communication connection, facilitate trade company
Terminal uses and accesses block chain.
The third object of the present invention is to provide a kind of method of access block chain, order of the acquisition from transaction contra
Information, the order information include pre-paid mark, will merchandise and are sent to block into chain request and are linked into node device for area
Block chaining ingress equipment is verified, and described merchandise into chain request includes the order information and corresponding to the order information
Transaction Information, if block is linked into node device and is proved to be successful, block is linked into node device and is sent to the Transaction Information
Block chain record keeping node device facilitates merchant tenninal to use and access block to which the block for providing general is linked into flow
Chain.
The fourth object of the present invention is to provide a kind of block and is linked into node device, is ordered for what is sent from merchant tenninal
Single information generates pre-paid and identifies and be sent to merchant tenninal.It obtains the transaction from buyer terminal and enters chain request, the transaction
It includes Transaction Information and the order information to enter chain request, and the order information includes the pre-paid mark, is ordered using described
Single information verifies the Transaction Information, if being proved to be successful, the Transaction Information is sent to block chain record keeping node device,
To which the block for providing general is linked into flow, merchant tenninal is facilitated to use and access block chain.
The fifth object of the present invention is to provide a kind of merchant tenninal, and order information is sent to block and linked by merchant tenninal
Ingress equipment;Obtain the pre-paid mark that node device is linked into from the block;Order information is sent to described buy
Square terminal, so that the buyer terminal carries out order payment and merchandises to block link ingress initiation to ask into chain, institute
It includes the pre-paid mark to state order information;The expression transaction that acquisition is linked into node device from the block has been written into area
The notification information of block, the access point to realize merchant tenninal and block chain realize communication connection, merchant tenninal are facilitated to use
With access block chain.
The sixth object of the present invention is to provide a kind of buyer terminal, order information of the acquisition from transaction contra, institute
It includes pre-paid mark to state order information, will merchandise and is sent to block into chain request and is linked into node device so that block is linked into
Node device is verified, and described merchandise into chain request includes the order information and letter of merchandising corresponding with the order information
Breath, if block is linked into node device and is proved to be successful, block is linked into node device and the Transaction Information is sent to block chain note
Account node device facilitates merchant tenninal to use and access block chain to which the block for providing general is linked into flow.
The seventh object of the present invention is to provide a kind of system of access block chain, provides general block and be linked into
Flow facilitates merchant tenninal to use and access block chain.
The eighth object of the present invention is to provide a kind of storage medium, provides general block and be linked into flow, square
Just merchant tenninal uses and accesses block chain.
An object of the present invention adopts the following technical scheme that realization:
A method of access block chain, including:
Pre-paid mark is generated for the order information from one method, apparatus of transaction;
Pre-paid mark is sent to one method, apparatus of the transaction;The transaction from another method, apparatus of merchandising is obtained to enter
Chain is asked, and described merchandise into chain request includes Transaction Information and the order information, and the order information includes the pre-paid
Mark;
The Transaction Information is verified using the order information, if being proved to be successful, the Transaction Information is sent to
Block chain record keeping node device.
Further, described merchandise into chain request includes identifying code, described that the Transaction Information is sent to the record keeping of block chain
Further include before node device:
Certification request is sent to certificate server, the certification request includes transaction another party's identification information
And the identifying code;
The authentication result that the certificate server is sent is obtained, it, will be described if the authentication result indicates that certification passes through
Transaction Information is sent to block chain record keeping node device.
Further, the order information includes the first payment information, and the Transaction Information includes the second payment information, institute
It states that the Transaction Information verify using the order information and includes:
Judge whether first payment information and second payment information are consistent, if so, be proved to be successful, otherwise,
Authentication failed.
Further, the order information further includes transaction one side signature, and the Transaction Information includes transaction another party's label
, it is described to use the order information pair including collecting account mark and transaction amount in first, second payment information
The Transaction Information carries out verification:
Another party's signature of signing and merchandise to one side of the transaction is authenticated respectively;
If certification passes through, the receipts in gathering mark and the transaction amount and the second payment information in the first payment information are judged
Money identifies and whether transaction amount is consistent, if so, be proved to be successful, otherwise authentication failed.
Further, the described Transaction Information is sent to before block chain record keeping node device further includes:To the friendship
Easy information is signed.
Further, the described Transaction Information is sent to after block chain record keeping node device further includes:Described in reception
The transaction that block chain network returns enters block notice, and sends a notification message and the transaction of one method, apparatus of the transaction is notified to enter block,
The notification message includes the pre-paid mark.
The second object of the present invention adopts the following technical scheme that realization:
A method of access block chain, including:
Order information is sent to block and is linked into node device;
Obtain the pre-paid mark that node device is linked into from the block;
Order information is sent to the buyer terminal, so that the buyer terminal carries out order payment and to the block
It is linked into node device initiation to merchandise into chain request, the order information includes the pre-paid mark;
Obtain the notification information for the expression transaction written block that node device is linked into from the block.
Further, further include before order information being sent to the buyer terminal step described:
It is signed using order information described in key pair.
Further, the logical of the expression transaction written block of node device is linked into from the block in the acquisition
Know that information further includes later:Transaction results information is sent to the buyer terminal, the transaction knot by record delivery processing state
Fruit information includes shipped stateful transaction.
The third object of the present invention adopts the following technical scheme that realization:
A method of access block chain, including:
The order information from the opposite method, apparatus of transaction is obtained, the order information includes pre-paid mark;
It will merchandise and be sent to block into chain request and be linked into node device, described merchandise into chain request includes that the order is believed
Breath and Transaction Information corresponding with the order information.Further, the order information from the opposite method, apparatus of transaction is being obtained
Further include later:The application program called the storage of block chain voucher and used, so that user completes to pay;
Alternatively, scanning the two-dimensional code, so that user completes to pay.
Further, it is described will merchandise into chain request be sent to block link ingress after further include:
Obtain the transaction results information from the opposite method, apparatus of transaction, the transaction results information includes shipped transaction
State.
Further, described merchandise into chain request includes the identifying code, the transaction in asking the chain of merchandising
Information is sent to block chain record keeping node device:
If detecting predesignated subscriber's input signal, sends identifying code to certificate server and obtain request;
Obtain the identifying code that the certificate server is sent.
The fourth object of the present invention adopts the following technical scheme that realization:
A kind of block is linked into node device, including memory, processor and program stored in memory, described
Program is configured to be executed by processor, and processor realizes the access area as described in one of the object of the invention when executing described program
The step of method of block chain.
The fifth object of the present invention adopts the following technical scheme that realization:
A kind of merchant tenninal, including memory, processor and program stored in memory, described program are configured
It is executed at by processor, processor realizes the access block chain as described in the two of the object of the invention method when executing described program
The step of.
The sixth object of the present invention adopts the following technical scheme that realization:
A kind of buyer terminal, including memory, processor and program stored in memory, described program are configured
It is executed at by processor, processor realizes the access block chain as described in the three of the object of the invention method when executing described program
The step of.
The seventh object of the present invention adopts the following technical scheme that realization:
A kind of system of access block chain, including:
Merchant tenninal as described in the five of the object of the invention, the buyer terminal as described in the six of the object of the invention and such as sheet
Four blocks of goal of the invention are linked into node device;The merchant tenninal, buyer terminal are linked into section with the block
Point device communication connection, the merchant tenninal and buyer terminal communication connection.
The eighth object of the present invention adopts the following technical scheme that realization:
A kind of storage medium, the storage medium are stored with computer program, and the computer program is executed by processor
Shi Shixian:
The step of method of access block chain as described in one of the object of the invention, or as described in the two of the object of the invention
Access block chain method the step of, or as described in the three of the object of the invention access block chain method the step of.
Compared with prior art, the beneficial effects of the present invention are:
Order information to be sent from one method, apparatus of transaction generates pre-paid and identifies and be sent to one method, apparatus of transaction.It obtains
It fetches the transaction from transaction another party's equipment and enters chain request, described merchandise into chain request includes Transaction Information and order letter
Breath, the order information include the pre-paid mark, are verified to the Transaction Information using the order information, if testing
It demonstrate,proves successfully, the Transaction Information is sent to block chain record keeping node device, become a mandarin to provide a kind of general block link
Journey facilitates merchant tenninal to use and access block chain.
Description of the drawings
Fig. 1 is the flow diagram of the method for the access block chain that first embodiment of the invention provides;
Fig. 2 is the flow diagram of the method for the access block chain that second embodiment of the invention provides;
Fig. 3 is the flow diagram of the method for the access block chain that third embodiment of the invention provides;
Fig. 4 is the flow diagram of the method for the access block chain that fourth embodiment of the invention provides;
Fig. 5 is the flow diagram of the method for the access block chain that fifth embodiment of the invention provides;
Fig. 6 is the schematic diagram of the system of access block chain provided in an embodiment of the present invention.
In figure:610, merchant tenninal;620, buyer terminal;630, block is linked into node device.
Specific implementation mode
In the following, in conjunction with attached drawing and specific implementation mode, the present invention is described further, it should be noted that not
Under the premise of conflicting, new implementation can be formed between various embodiments described below or between each technical characteristic in any combination
Example.
In the following, in conjunction with attached drawing and specific implementation mode, the present invention is described further, it should be noted that not
Under the premise of conflicting, new implementation can be formed between various embodiments described below or between each technical characteristic in any combination
Example.
Embodiment one
As shown in Figure 1, present embodiments providing a kind of method of access block chain, this method can be linked into section by block
Point device executes, including:
S110, pre-paid mark is generated for the order information from one method, apparatus of transaction.
One side of transaction therein is preferably trade company, and one method, apparatus of transaction can be that trade company's background devices (are also referred to as
Merchant tenninal).
Specifically, trade company front end include be mounted on buyer terminal on application program or opening webpage, wherein have for
User selects the commodity of purchase.User notifies trade company's background devices after purchase is clicked in trade company front end.Merchant tenninal is to block
It is linked into node device and sends order information.Block is linked into after node device receives order information and generates pre-paid mark.
Wherein, order information may include transaction amount and collecting account mark, may also include gathering address, gathering quantity, remark information
And one or more of merchant identification information.Specifically, collecting account mark include collecting account number, title and/or
Address etc., merchant identification information include the name of trade company, the address of trade company, the telephone number of trade company, trade company Email
Location, personal identification number (PIN), the fingerprint of trade company or other biological information and for trade company in such as server or financial machine
There is one or more of distinctive information of account in structure.
S120, pre-paid mark is sent to one method, apparatus of the transaction.
Specifically, block is linked into node device is sent to merchant tenninal by the pre-paid mark of generation, merchant tenninal connects
It receives order information after pre-paid identifies to buyer terminal, the order information includes aforementioned pre-paid mark.
The transaction of S130, acquisition from another method, apparatus of merchandising enters chain request, and described merchandise into chain request includes that transaction is believed
Breath and the order information, the order information include the pre-paid mark.
Specifically, after merchant tenninal receives pre-paid mark, before order information is sent to the trade company on buyer terminal
End.After buyer terminal completes payment, it will merchandise and be sent to block into chain request and be linked into node device, merchandise includes into chain request
The order information and Transaction Information corresponding with aforementioned order information, the order information include the pre-paid mark.
In a preferred embodiment, Transaction Information include transaction amount, collecting account, payment account, gathering address, gathering quantity,
The information such as remark information, buyer terminal signature, order information include transaction amount, collecting account, pre-paid mark, merchant tenninal
The information such as signature.
As preferred embodiment, order information and Transaction Information are plaintext transmission.
S140, the Transaction Information is verified using the order information, if being proved to be successful, by the Transaction Information
It is sent to block chain record keeping node device.
As preferred embodiment, the order information includes the first payment information, and the Transaction Information includes second
Payment information, the use order information carry out verification to the Transaction Information and include:Judge first payment information
It is whether consistent with second payment information, if so, be proved to be successful, otherwise, authentication failed.
As preferred embodiment, the order information further includes transaction one side signature, and the Transaction Information includes handing over
Easy another party's signature, includes collecting account mark and transaction amount in first, second payment information, described in the use
Order information carries out verification to the Transaction Information:Another party's signature of signing and merchandise to one side of the transaction carries out respectively
Certification;If certification passes through, the gathering in gathering mark and the transaction amount and the second payment information in the first payment information is judged
Whether mark and transaction amount are consistent, if so, be proved to be successful, otherwise authentication failed.
Specifically, Transaction Information includes transaction amount, collecting account, payment account, gathering address, gathering quantity, remarks
The information such as information, buyer terminal signature, order information include transaction amount, collecting account, pre-paid mark, merchant tenninal signature
Etc. information.Block be linked into node device receive buyer terminal transmission transaction enter chain request after to buyer terminal signature and trade company
Terminal signature is authenticated, if certification passes through, judge through in the first payment information gathering mark and transaction amount and second
It pays gathering mark in information and whether transaction amount is consistent, if so, be proved to be successful, otherwise authentication failed.If using institute
It states order information to be proved to be successful the Transaction Information, the Transaction Information is sent to block chain record keeping node device.Such as
Fruit carries out authentication failed using the order information to the Transaction Information, then Transaction Information is sent to block chain record keeping section by refusal
Point device, and can send a notification message to buyer terminal.
As preferred embodiment, the described Transaction Information is sent to before block chain record keeping node device is also wrapped
It includes:It signs to the Transaction Information.
The described Transaction Information is sent to after block chain record keeping node device further include:Receive the block chain network
The transaction of return enters block notice, and sends a notification message and the transaction of one method, apparatus of the transaction is notified to enter block, and the notice disappears
Breath includes the pre-paid mark.Specifically, be linked into node device in block is sent to block chain accounting nodes by Transaction Information
Afterwards, the transaction that the access node apparatus reception block chain network of block chain returns enters block notice, and pre-paid mark is sent to quotient
Family terminal simultaneously notifies merchant tenninal transaction to enter block.
The above method provided in this embodiment, it is concurrent that the order information to be sent from merchant tenninal generates pre-paid mark
Give merchant tenninal.It obtains the transaction from buyer terminal and enters chain request, described merchandise into chain request includes Transaction Information and institute
Order information is stated, the order information includes the pre-paid mark, is carried out to the Transaction Information using the order information
Verification, if being proved to be successful, block chain record keeping node device is sent to by the Transaction Information, to provide general block link
Enter flow, merchant tenninal is facilitated to use and access block chain.
Embodiment two
As shown in Fig. 2, present embodiments providing a kind of method of access block chain, this method can be by the access of block chain
Node device executes, including:
S210, pre-paid mark is generated for the order information from one method, apparatus of transaction.
S220, pre-paid mark is sent to one method, apparatus of the transaction.
The transaction of S230, acquisition from another method, apparatus of merchandising enters chain request, and described merchandise into chain request includes that transaction is believed
Breath and the order information, the order information include the pre-paid mark.
S240, the Transaction Information is verified using the order information.
Step S210, S220, S230 and S240 have been elaborated in embodiment one, are repeated no more.
S250, certification request is sent to certificate server, the certification request includes transaction another party identity mark
Know information and identifying code.
Specifically, described merchandise into chain request includes identifying code, identifying code can be string number (6 bit digitals, 4 digits
Word etc.), the group of a string of characters (for example, character of Chinese character, English character or other language) etc. or number and character
Close etc..Buyer initiates the input signal for agreeing to be traded payment by webpage or the APP input of buyer terminal, works as buyer terminal
When detecting input signal above-mentioned, sends identifying code to certificate server and obtain request, the identifying code obtains request and includes
The identification information of the buyer.Certificate server receives the identifying code that buyer terminal is sent and obtains request, stores buyer's
Identification information generates identifying code and sends identifying code to buyer terminal.Buyer terminal receives certificate server transmission
Identifying code, will merchandise is sent to block into chain request and is linked into point device, and described merchandise into chain request includes Transaction Information, order
Information and the identifying code, the order information include the pre-paid mark.Block is linked into point device and receives from buyer's end
The transaction that end is sent enters chain request, certification request is sent to certificate server, the certification request includes the body of the buyer
Part identification information and above-mentioned identifying code.It should be understood that the identification information of buyer include at least the name of buyer, address,
Telephone number, e-mail address, personal identification number (PIN), fingerprint or other biological information and for buyer for example
There is one or more of distinctive information of account in server or financial institution.
S260, the authentication result that the certificate server is sent is obtained, if the authentication result and the verification result are equal
Expression passes through, then the Transaction Information is sent to block chain record keeping node device.
Specifically, certificate server receives the certification request that the block is linked into point device transmission, block is linked into
The identification information and identifying code for the buyer that point device is sent are authenticated, and being linked into point device to the block sends certification
As a result.Block is linked into point device and receives the authentication result that certificate server is sent, if authentication result indicates that certification passes through,
Block chain accounting nodes equipment is written in the Transaction Information that buyer terminal is sent.
Certificate server can obtain the transmission before stored according to the identification information of the buyer in certification request
To the identifying code of buyer terminal, by comparing in certification request identifying code and the identifying code that is stored obtain authentication result,
If the identifying code in certification request is consistent with the identifying code stored, certification passes through, otherwise, authentification failure.If described
Authentication result and the verification result indicate to pass through, then the Transaction Information are sent to block chain record keeping node device.If
If the authentication result and the verification result there are one failure is indicated, are refused the Transaction Information being sent to the record keeping of block chain
Node device.
The above method provided in this embodiment, it is concurrent that the order information to be sent from merchant tenninal generates pre-paid mark
Give merchant tenninal.Obtain the transaction from buyer terminal enter chain request, it is described merchandise into chain request include Transaction Information, it is described
Order information and identifying code, the order information include the pre-paid mark, certification request are sent to certificate server, institute
It includes transaction another party identification information and the identifying code to state certification request, obtains what the certificate server was sent
Authentication result verifies the Transaction Information using the order information, will if verification result and authentication result passes through
The Transaction Information is sent to block chain record keeping node, is linked into flow to both provide general block, facilitates merchant tenninal
Use and access block chain;Secondary verification is carried out to account by identifying code on the basis of block chain again, effectively reduces use
The risk of family account information leakage, had both met the use habit of user, and had also strengthened the safety of user account information.
Embodiment three
As shown in figure 3, present embodiments providing a kind of method of access block chain, this method can be held by merchant tenninal
Row, including:
S310, it order information is sent to block is linked into node device.
Order information is sent to block and is linked into node device by merchant tenninal.Order information may include transaction amount and receipts
Money account identification may also include one or more of gathering address, gathering quantity, remark information and merchant identification information.
Specifically, collecting account mark includes collecting account number, title and/or address etc., merchant identification information includes the surname of trade company
Name, the address of trade company, the telephone number of trade company, the e-mail address of trade company, personal identification number (PIN), trade company fingerprint
Or other biological information and for trade company in such as server or financial institution with one in the distinctive information of account
Or it is multiple.
S320, the pre-paid mark that node device is linked into from the block is obtained;
Specifically, block is linked into node device after the order information for receiving merchant tenninal transmission, by pre-paid mark
Knowledge returns to merchant tenninal, and pre-paid mark and order information are sent to buyer terminal by merchant tenninal again.
S330, order information is sent to the buyer terminal, so that the buyer terminal carries out order payment and to institute
It states block link ingress initiation to merchandise into chain request, the order information includes the pre-paid mark.
As preferred embodiment, in order to ensure that order information is securely sent to buyer terminal, it is described will be described
Order information is sent to the buyer terminal step:It is signed using order information described in key pair.
S340, the notification information for obtaining the expression transaction written block that node device is linked into from the block.
As preferred embodiment, area is had been written into expression transaction of the acquisition from block link ingress
Further include after the notification information of block:Record delivery processing state, the buyer terminal is sent to by transaction results information, described
Transaction results information includes shipped stateful transaction.
Order information is sent to block and is linked into node device by the above method provided in this embodiment, merchant tenninal;It obtains
Fetch the pre-paid mark that node device is linked into from the block;Order information is sent to the buyer terminal, for institute
It states buyer terminal to carry out order payment and merchandise to block link ingress initiation to ask into chain, the order information includes
The pre-paid mark;The notification information for the expression transaction written block that node device is linked into from the block is obtained,
Access point to realize merchant tenninal and block chain realizes communication connection, and merchant tenninal is facilitated to use and access block chain.
Example IV
As shown in figure 4, present embodiments providing a kind of method of access block chain, this method can be held by buyer terminal
Row, including:
S410, the order information from transaction contra is obtained, the order information includes pre-paid mark.
Specifically, wherein transaction contra is preferably the seller, order information is sent to buyer by the merchant tenninal of the seller
Terminal, the order information include pre-paid mark.
As preferred embodiment, further include after obtaining the order information from the opposite method, apparatus of transaction:Call block
The application program that chain voucher is stored and used, so that user completes to pay;Alternatively, scanning the two-dimensional code, so that user completes to pay.
The voucher can be virtual card Securities, integral, ideal money, block chain token, proof of work (Proof of Work,
POW), equity prove (Proof of Stake, POS) and or other electronics Units of Account in one or more, the block
The application program that chain voucher is stored and used can be block chain wallet application.In one embodiment, merchant tenninal
Order information is generated into a Quick Response Code in advance and shows the Quick Response Code, buyer terminal, which scans the Quick Response Code, completes payment.Another
In one specific embodiment, the application program that buyer terminal calls the storage of block chain voucher and uses, so that user completes to pay.
S420, will merchandise is sent to block into chain request and is linked into node device, and described merchandise into chain request includes described
Order information and Transaction Information corresponding with the order information.
In a preferred embodiment, the order information includes merchant tenninal signature and the first payment information, the friendship
Easy information includes buyer terminal signature and the second payment information, and the first payment information includes transaction amount and collecting account, and second
Payment information includes transaction amount, collecting account and payment account.As preferred embodiment, described will merchandise is asked into chain
It is sent to after block is linked into node device and further includes:The transaction results information from the opposite method, apparatus of transaction is obtained, it is described
Transaction results information includes shipped stateful transaction.
The above method provided in this embodiment, obtains the order information from transaction contra, and the order information includes
Pre-paid identifies, and will merchandise to be sent to block into chain request and be linked into node device and be tested so that block is linked into node device
Card, described merchandise into chain request includes the order information and Transaction Information corresponding with the order information, if block links
Ingress device authentication success, block are linked into node device and the Transaction Information are sent to block chain record keeping node device, from
And provide general block and be linked into flow, facilitate merchant tenninal to use and access block chain.
Embodiment five
As shown in figure 5, present embodiments providing a kind of method of access block chain, this method can be held by buyer terminal
Row, including:
S510, the order information from transaction contra is obtained, the order information includes pre-paid mark.
Step S510 has been elaborated in example IV, is repeated no more.
If S520, detecting predesignated subscriber's input signal, sends identifying code to certificate server and obtain request.
Specifically, buyer initiates the input signal for agreeing to be traded payment by webpage or the APP input of buyer terminal,
When buyer terminal detects input signal above-mentioned, sends identifying code to certificate server and obtain request, the identifying code obtains
It includes the identification information of the buyer to take request.Certificate server receives the identifying code that buyer terminal is sent and obtains request,
The identification information of buyer is stored, identifying code is generated and sends identifying code to buyer terminal.
As preferred embodiment, predesignated subscriber's input signal is to indicate that user agrees to be traded the defeated of payment
Enter signal.Specifically, user initiates the input for agreeing to be traded payment letter in wallet APP or the webpage input of buyer terminal
Number, buyer terminal detects input signal above-mentioned, and sending identifying code to certificate server obtains request.Wherein, the verification
Code obtains the identification information that request includes the user, and the identification information of user includes the name of user, the address of user, user
Telephone number, user e-mail address, personal identification number (PIN), the fingerprint of user or other biological information and
There is one or more of distinctive information of account in such as server or financial institution for user.
As preferred embodiment, if above-mentioned detect predesignated subscriber's input signal, sends and verify to certificate server
Before code obtains request, can also include:Registration request is sent to certificate server, the registration request includes the user
Log-on message.User first passes through buyer terminal and the log-on messages such as cell-phone number or mailbox is sent to certificate server in advance, recognizes
Card server receives above-mentioned log-on message and stores, and such certificate server can be pre-registered by user by identifying code
The log-on messages such as cell-phone number or mailbox are sent to user.
S530, the identifying code that the certificate server is sent is obtained.
Specifically, buyer terminal receives the identifying code of certificate server transmission.Wherein, identifying code can be string number
(6 bit digitals, 4 bit digitals etc.), a string of characters (for example, character of Chinese character, English character or other language) or number
The combination etc. of word and character.
S540, will merchandise is sent to block into chain request and is linked into node device, and described merchandise into chain request includes described
Order information, Transaction Information corresponding with the order information and the identifying code.
Specifically, buyer terminal will merchandise and be sent to block into chain request and be linked into point device, described merchandise is asked into chain
Including Transaction Information and the identifying code.In a preferred embodiment, order information includes merchant tenninal signature and first
Information is paid, Transaction Information includes buyer terminal signature and the second payment information, the first payment information include transaction amount and gathering
Account, the second payment information include transaction amount, collecting account and payment account.Block is linked into point device and receives from buyer's end
The transaction that end is sent enters chain request, certification request is sent to certificate server, the certification request includes the body of the buyer
Part identification information and above-mentioned identifying code.Certificate server receives the certification request that the block is linked into point device transmission, to area
Block chaining enters the identification information of the buyer of point device transmission and identifying code is authenticated, and point device is linked into the block
Send authentication result.Before certificate server can be stored according to the acquisition of the identification information of the buyer in certification request
Be sent to the identifying code of buyer terminal, by comparing in certification request identifying code and the identifying code that is stored obtain certification knot
Fruit, if the identifying code in certification request is consistent with the identifying code stored, certification passes through, otherwise, authentification failure.
The above method provided in this embodiment, obtains the order information from transaction contra, and the order information includes
Pre-paid identifies, if detecting predesignated subscriber's input signal, sends identifying code to certificate server and obtains request, recognize described in acquisition
The identifying code that server is sent is demonstrate,proved, will merchandise and be sent to block link ingress into chain request so that block link ingress carries out
Verification, described merchandise into chain request includes the order information and Transaction Information corresponding with the order information, if block chain
Access node apparatus is proved to be successful and certificate server certification passes through, and block is linked into node device and sends out the Transaction Information
Toward block chain record keeping node device, general block was both provided and has been linked into flow, merchant tenninal is facilitated to use and access block
Chain;Secondary verification is carried out to account by identifying code on the basis of block chain again, effectively reduces user account information leakage
Risk, both met the use habit of user, and also strengthened the safety of user account information.
Embodiment six
The present embodiment also provides a kind of block and is linked into node device, including memory, processor and is stored in storage
Program in device, described program are configured to be executed by processor, and processor realizes such as one He of embodiment when executing described program
The step of method of access block chain described in embodiment two.
Block provided in this embodiment is linked into node device, and the order information generation to be sent from merchant tenninal is paid in advance
It pays and identifies and be sent to merchant tenninal.It obtains the transaction from buyer terminal and enters chain request, described merchandise into chain request includes handing over
Easy information and the order information, the order information includes the pre-paid mark, using the order information to the friendship
Easy information is verified, if being proved to be successful, the Transaction Information is sent to block chain record keeping node device, general to provide
Block be linked into flow, facilitate merchant tenninal to use and access block chain.
Embodiment seven
The present embodiment also provides a kind of merchant tenninal, including memory, processor and program stored in memory,
Described program is configured to be executed by processor, and processor realizes the access block described in embodiment three when executing described program
The step of method of chain.
Order information is sent to block and is linked into node device by above-mentioned merchant tenninal provided in this embodiment;It obtains and
The pre-paid mark of node device is linked into from the block;Order information is sent to the buyer terminal, is bought for described
Square terminal carries out order payment and merchandises to block link ingress initiation to ask into chain, and the order information includes described
Pre-paid identifies;The notification information for obtaining the expression transaction written block that node device is linked into from the block, to
The access point for realizing merchant tenninal and block chain realizes communication connection, and merchant tenninal is facilitated to use and access block chain.
Embodiment eight
The present embodiment also provides a kind of buyer terminal, including memory, processor and program stored in memory,
Described program is configured to be executed by processor, and processor is realized when executing described program as described in example IV and embodiment five
Access block chain method the step of.
Above-mentioned buyer terminal provided in this embodiment obtains the order information from transaction contra, the order information
Including pre-paid identify, will merchandise into chain request be sent to block be linked into node device for block be linked into node device into
Row verification, described merchandise into chain request includes the order information and Transaction Information corresponding with the order information, if block
It is linked into node device to be proved to be successful, block, which is linked into node device the Transaction Information is sent to block chain record keeping node, to be set
It is standby, to which the block for providing general is linked into flow, merchant tenninal is facilitated to use and access block chain.
Embodiment nine
As shown in fig. 6, the present embodiment also provides a kind of system of access block chain, include the trade company as described in embodiment seven
Terminal 610, the buyer terminal 620 as described in embodiment eight and the block as described in embodiment six are linked into node device 630;Institute
It states merchant tenninal 610, buyer terminal 620 and is linked into the communication connection of node device 630, the merchant tenninal with the block
610 and buyer terminal 620 communication connection.
Order information is sent to the access node apparatus of block chain by system provided in this embodiment, merchant tenninal.Block
It is linked into generation prepayment mark after node device receives the order information that merchant tenninal is sent and pre-paid mark is returned into trade company
Terminal, merchant tenninal, which receives to be linked into from block after the pre-paid mark of node device, believes the order identified including pre-paid
Breath be sent to buyer terminal, for the buyer terminal carry out order payment and to the block link ingress initiation merchandise into
Chain is asked.After buyer terminal receives the order information of merchant tenninal transmission, it will merchandise and be sent to block into chain request and be linked into
Node device, it includes order information and Transaction Information corresponding with the order information, the order information to merchandise into chain request
It is identified including the pre-paid, block link ingress verifies the Transaction Information using the order information, if testing
It demonstrate,proves successfully, the Transaction Information is sent to block chain record keeping node device, the expression that the block is linked into node device is handed over
The notification information of easy written block is sent to merchant tenninal, to which the block for providing general is linked into flow, facilitates trade company
Terminal uses and accesses block chain.
As seen through the above description of the embodiments, those skilled in the art can be understood that the present invention can
It is realized by the mode of software plus required general hardware platform.Based on this understanding, technical scheme of the present invention essence
On in other words the part that contributes to existing technology can be expressed in the form of software products, the computer software product
It can be stored in a storage medium, such as ROM/RAM, magnetic disc, CD, including some instructions are used so that a computer equipment
(can be personal computer, server either network equipment etc.) executes certain portions of each embodiment of the present invention or embodiment
Method described in point, such as:
Storage medium, the storage medium are stored with computer program, which is characterized in that the computer program is handled
Device is realized when executing:
The step of method of access block chain above-mentioned.
The merchant tenninal and buyer terminal of the present invention may each be any equipment with network trading function, such as move
Phone, smart phone, laptop, digital broadcasting transmitter, PDA (personal digital assistant), PAD (tablet computer), PMP
The movable equipments such as (portable media player), navigation device, car-mounted device, and such as number TV, desktop computer,
The fixed terminals such as server.
Block in the embodiment of the present invention, which is linked into node device, can be access network and have general or special purpose
Computing system environment.Such as:It is personal computer, server computer, handheld device or portable device, laptop device, more
Processor system, microprocessor-based system, set-top box, programmable consumption service server, network PC, small-sized calculating
Machine, mainframe computer include the distributed computing environment etc. of any of the above system or equipment.Trade company in the embodiment of the present invention is whole
End can also be above-mentioned can accessing network and have general or special purpose computing system environment.
Certificate server in the embodiment of the present invention can be access network and have general or special purpose computing system ring
Border, computer, single network server, multiple network servers composition server group or based on cloud computing by largely leading
The cloud etc. that machine or network server are constituted.
The above embodiment is only the preferred embodiment of the present invention, and the scope of protection of the present invention is not limited thereto,
The variation and replacement for any unsubstantiality that those skilled in the art is done on the basis of the present invention belong to institute of the present invention
Claimed range.