CN108805713A - Intelligent stock based on block chain applies to purchase method, apparatus, equipment and storage medium - Google Patents
Intelligent stock based on block chain applies to purchase method, apparatus, equipment and storage medium Download PDFInfo
- Publication number
- CN108805713A CN108805713A CN201810537960.XA CN201810537960A CN108805713A CN 108805713 A CN108805713 A CN 108805713A CN 201810537960 A CN201810537960 A CN 201810537960A CN 108805713 A CN108805713 A CN 108805713A
- Authority
- CN
- China
- Prior art keywords
- contract
- stock
- intelligent
- block chain
- intelligent contract
- 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
Links
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06Q—INFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
- G06Q40/00—Finance; Insurance; Tax strategies; Processing of corporate or income taxes
- G06Q40/04—Trading; Exchange, e.g. stocks, commodities, derivatives or currency exchange
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06Q—INFORMATION 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/00—Payment architectures, schemes or protocols
- G06Q20/38—Payment protocols; Details thereof
- G06Q20/40—Authorisation, 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/405—Establishing or using transaction specific rules
Abstract
The invention discloses a kind of intelligent stocks based on block chain to apply to purchase method, belongs to block chain technical field.This approach includes the following steps:The treaty conditions that S1, the first user of reception select on the client, which are added in preset contract template, generates intelligent contract;S2, intelligent contract is verified according to preset verification rule;Pass through if S3, check results are verification, intelligent contract is set up and executes S4;S4, the intelligent contract of establishment is packaged on the node of a block chain, and be broadcast to by way of P2P in block chain on the block where both parties in the intelligent contract;S5, execution meet the affairs of trigger condition;S6, the operation for executing affairs and implementing result are recorded in corresponding block, while feed back to the client of both parties in intelligent contract.Use through the invention can so that capital project is more flexible, break the limitation of traditional stock trader, make investment simpler.
Description
Technical field
The present invention relates to block chain technical field, it is related to a kind of intelligent stock based on block chain and applies to purchase method, apparatus, sets
Standby and storage medium.
Background technology
Stock is a kind of marketable securities, is the share voucher that joint-stock company issues when raising capital to investor, is represented
Ownership of the holder to joint-stock company.And stock exchange refer between stock investor according to the market price to having issued on
The dealing that the stock in city is carried out.
Nowadays stock is favored, investor is mainly led to as a kind of important investment channel by more and more investors
It crosses stock trader's platform and carries out stock exchange, as long as opening an account in the registration of stock trader's platform, you can carried out by tools such as computer, smart mobile phones
Stock exchange, it is simple and quick.
But for some medium and small stock investors, stock exchange presence is carried out on stock trader's platform can not be across day
It trades security, more people such as buy jointly at the pain spots.
Invention content
The technical problem to be solved by the present invention is in order to overcome in the prior art medium and small stock investor stock trader's platform without
The problems such as across the day agiotage of method and more people buy jointly, it is proposed that a kind of intelligent stock based on block chain is applied to purchase method, apparatus, set
Standby and storage medium realizes flexible capital project, breaks the limitation of traditional stock trader, and support more people buy jointly conjunction sell a stock,
With the operation bought.
The present invention is to solve above-mentioned technical problem by following technical proposals:
A kind of intelligent stock based on block chain applies to purchase method, includes the following steps:
The treaty conditions that S1, the first user of reception select on the client, which are added in preset contract template, generates intelligence
Contract;The treaty conditions include at least both parties, when the intelligent contract is dealing type contract, wherein a side works as thing
Artificial stock trader's platform, another party party are to include one or more users including first user;When the intelligence is closed
When about checking type contract, wherein one party is another user, and another party party is first user;
S2, intelligent contract is verified according to preset verification rule, and check results is fed back into the intelligence and are closed
The client of about middle both parties;
S3, judge whether check results are that verification passes through, if then S4 is set up and executed to intelligent contract, if otherwise intelligence is closed
It is about invalid and directly terminate;
S4, according to interval of preset contract holding time, the intelligence that will be set up in interval of the same contract holding time
Can contract be packaged on the node of a block chain, and be broadcast to by way of P2P in block chain and the intelligent contract
Involved in both parties where block on;
Execution state, affairs and the trigger condition of S5, the regular intelligent contract for traversing each establishment one by one, and judge the thing
Whether business meets the trigger condition, and the affairs are executed if meeting;
S6, the operation for executing the affairs and implementing result are recorded in corresponding block, while knot is executed by described
Fruit is sent to the client of both parties in the intelligent contract.
Preferably, the treaty conditions further include entry-into-force time range, the stock number of anchoring, stock is bought in or selling price
The stock price that position, purchase stock quantity and triggering are bought in or sold.
Preferably, the verification is by requiring the intelligent contract to meet following complete verification rules:
The byte of the intelligence contract is not exceeded;
The format of the intelligence contract is correct;
Involved in the intelligence contract to the account set up on the stock trader of each user in capital investment meet and throw
Money plan;
The stock number necessary being arrived involved in the intelligence contract;
The entry-into-force time write in the intelligence contract is more than current time;
The block chain that the intelligence contract is stored into is legal;
Agreement of the treaty conditions through all parties in the intelligence contract confirms.
Preferably, when the intelligent contract is dealing type contract, the affairs are to buy in or sell the request of stock.
Preferably, when the affairs are to buy in or sell the request of stock, the S5 include it is following step by step:
S511, judge whether only relate to a user in intelligent contract, if S515 is executed, if otherwise executing S512;
S512, it is sent to the stock trader's platform arrived involved in intelligent contract and shares account inquiry request, executed if inquiring
S514 executes S513 if inquiry less than if;The shared account be as involved in intelligent contract to each user collectively as one
The account that a stock counterparty shares;
S513, instruction stock trader's platform create a shared account;
S514, the stock exchange execution sent to stock trader's platform using the shared account as a stock counterparty are asked
It asks, and in the operation note to each corresponding block;
S515, it is sent to stock trader's platform using the account that the user opens on stock trader's platform as the stock of stock exchange side
Ticket transaction executes request, and in this operation note to corresponding block.
Preferably, intelligent contract is when checking type contract, and the affairs are to check the request of the transaction record of the user.
Preferably, when the affairs are the request for the transaction record for checking other users,
S521, it receives and checks that request, the request include altogether by the record that client is sent as the user for the side of checking
The side's of enjoying identification code and intelligent contract identification code;
S522, relevant intelligent contract is transferred by the intelligent contract identification code;
S523, judge that the record checks whether request is authentic and valid according to the treaty conditions in the intelligent contract, if
It is then from record as the stock exchange record on the block chain node where the user for sharing side, transferring the user;
S524, the stock exchange transferred record is sent in the client as the user for the side of checking.
A kind of electronic device is stored with the intelligent stock subscription system based on block chain, the base on the electronic device
Include in the intelligent stock subscription system of block chain:
Treaty system cover half block is added to preset contract for receiving the treaty conditions that the first user selects on the client
Intelligent contract is generated in template;The treaty conditions include at least both parties, when the intelligent contract is dealing type contract
When, wherein one party is stock trader's platform, and another party party is to be used comprising the one or more including first user
Family;When the intelligent contract is to check type contract, wherein one party is another user, and another party party is described the
One user;
Contract correction verification module, for being verified to intelligent contract according to preset verification rule, and check results are anti-
It is fed to the client of both parties in the intelligent contract;
Judgment module, for judging whether check results are that verification passes through;
Contract preserving module, for being, according to interval of preset contract holding time, to be incited somebody to action after verification passes through in check results
The intelligent contract set up in interval of the same contract holding time is packaged on the node of a block chain, and is passed through
The mode of P2P be broadcast in block chain on the block where both parties in the intelligent contract;
Contract execution module, execution state, affairs and the triggering item of the intelligent contract for periodically traversing each establishment one by one
Part, and judge whether the affairs meet the trigger condition, execute the affairs if meeting;
Logging modle simultaneously will for the operation and implementing result that execute the affairs to be recorded in corresponding block
The implementing result is sent to the client of both parties in the intelligent contract.
A kind of computer equipment, including memory and processor are stored with and can be held by the processor on the memory
The capable intelligent stock subscription system based on block chain is realized when the system is executed by the processor such as any one of aforementioned institute
The step of intelligent stock based on block chain stated applies to purchase method.
A kind of computer readable storage medium is stored with computer program instructions in the computer readable storage medium,
The computer program instructions can be executed by one or more processors, so that at least one processor executes such as aforementioned
The step of intelligent stock based on block chain described in one applies to purchase method.
The positive effect of the present invention is that:
1) use through the invention can so that capital project is more flexible, break the limitation of traditional stock trader, allow and invest more
Simply.
2) it can support more people buy jointly/close to sell a stock and the operation with buying through the invention.
Description of the drawings
Fig. 1 shows that the present invention is based on the flow charts that the intelligent stock of block chain applies to purchase embodiment of the method one;
Fig. 2 shows the present invention is based on the flow charts that the intelligent stock of block chain applies to purchase embodiment of the method two;
Fig. 3 shows that the present invention is based on the flow charts that the intelligent stock of block chain applies to purchase embodiment of the method three;
Fig. 4 shows the program of the intelligent stock subscription system first embodiment based on block chain in electronic device of the present invention
Module diagram;
Fig. 5 shows the hardware structure schematic diagram of one embodiment of computer equipment of the present invention.
Specific implementation mode
It is further illustrated the present invention below by the mode of embodiment, but does not therefore limit the present invention to the reality
It applies among a range.
First, the present invention proposes that a kind of intelligent stock based on block chain applies to purchase method.
In embodiment one, as shown in Figure 1, it includes following step that the intelligent stock based on block chain, which applies to purchase method,
Suddenly:
The treaty conditions that S1, the first user of reception select on the client, which are added in preset contract template, generates intelligence
Contract;The treaty conditions include at least both parties, when the intelligent contract is dealing type contract, wherein a side works as thing
Artificial stock trader's platform, another party party are to include one or more users including first user;When the intelligence is closed
When about checking type contract, wherein one party is another user, and another party party is first user.
The meaning that " first " in first user described here does not refer in particular to, only uses as the difference with other users.
Another described user refers to the other users of difference and first user.
The intelligence contract refers to a this needs that can execute automatically could complete the agreement of task manually.Intelligent contract is just
Be it is any can voluntarily execution part function agreement.For example, portion can calculate contracting parties' amount of money to be paid automatically, and arrange to prop up
Pay the contract of this amount of money.The use of intelligent contract will reduce the manual intervention in protocol implementation.
The treaty conditions are default in the client, including both parties, stock trader's platform, entry-into-force time range, anchoring
Stock number, stock buy in or sell price, purchase stock quantity and the triggering stock price etc. buying in or sell.
It, can be to be selected in client after user logs on to client, and each treaty conditions can be assigned as needed
With logical relation.
Such as:The condition of buying in that stock is arranged in client is that the price of some stock number is less than 15.8 yuan just in two days
It buys in, time restriction is required to be in two days here, while also having and meeting price and be less than 15.8 yuan;
Again for example:The condition of buying in that stock is arranged in client is A-share ticket or B stock of the buying price less than 15.8 yuan, excellent
First buy in the lower stock of price for reaching the condition.
Since Stock Trading has to carry out on stock trader's platform, thus when intelligent contract is about buying in or sell stock
Dealing type contract when, described in treaty conditions, stock trader's platform is essential as one party, and the stock trader
Platform should select user to offer stock trader's platform of account.
Another party party can be a user, can also be multiple users, especially sell one when more people buy conjunction jointly
When stock, another party party can be that this carries out buying the more people for selling a stock jointly.
Other than the intelligent contract about agiotage, it can also be and check type contract about with buy stock, here
It is described not imply that following directly after some user carries out Stock Trading with buying, and refer to the dealing record for checking some user, it supplies
Whether the side's of checking reference will follow.Therefore, the party party is some specific user, i.e., by the side of checking.And another party
Party is exactly first user, that is, the side of checking.
It should be noted that when another party party is more people, the user for initiating to formulate intelligent contract must this more people
In one.
S2, intelligent contract is verified according to preset verification rule, and check results is fed back into the intelligence and are closed
The client of about middle both parties.
Here, the verification rule is as follows:
The structure of the intelligent contract of verification, as whether the byte of intelligent contract is exceeded, whether format is correct;
Whether verification fund meets investment plan, i.e., involved in intelligent contract to each user set up on the stock trader
Whether the capital investment in account is greater than or equal to the capital investment needed for investment plan;
Verify stock number whether necessary being;
Verify whether investment time is legal (being more than current time), i.e., whether the entry-into-force time write in intelligent contract is more than
Current time;
Whether the block chain that the intelligent contract of verification is stored into is legal;
Whether the agreement through all parties confirms treaty conditions in the intelligent contract of verification.
S3, judge whether check results are that verification passes through, if then S4 is set up and executed to intelligent contract, if otherwise intelligence is closed
It is about invalid and directly terminate.
The verification is by requiring the intelligent contract to meet following complete verification rules:
The byte of the intelligence contract is not exceeded;
The format of the intelligence contract is correct;
Involved in the intelligence contract to the account set up on the stock trader of each user in capital investment meet and throw
Money plan;
The stock number necessary being arrived involved in the intelligence contract;
The entry-into-force time write in the intelligence contract is more than current time;
The block chain that the intelligence contract is stored into is legal;
Agreement of the treaty conditions through all parties in the intelligence contract confirms.
As long as there is a verification not pass through, then the check results of the intelligent contract are that verification fails, and the intelligence contract is not
It sets up.
S4, according to interval of preset contract holding time, the intelligence that will be set up in interval of the same contract holding time
Can contract be packaged on the node of a block chain, and be broadcast to by way of P2P in block chain and the intelligent contract
On block where middle both parties.
The block chain (Blockchain) is Distributed Storage, point-to-point transmission, common recognition mechanism, Encryption Algorithm etc.
The new application pattern of computer technology.
The S4 is preserving type of the intelligent contract in block chain, belongs to the prior art, has been widely used, herein not
It repeats again.The content preserved in each block further includes that intelligence contract record corresponds to other than the content of intelligent contract itself
Timestamp.
Execution state, affairs and the trigger condition of S5, the regular intelligent contract for traversing each establishment one by one, and judge the thing
Whether business meets the trigger condition, and the affairs are executed if meeting.
Due to being periodically to traverse one by one, the circulation time of default traversal is usually required.
The execution state refers to whether contract comes into force.Contract, which is set up, simultaneously to come into force not equal to contract, and the stock side of applying to purchase can be
Be set, for example contract is found in 2018.1.1, but the share side of applying to purchase states in contract the effective date of contract in intelligent contract
The contract since 2018.2.1 execute.
The affairs refer to just buying in or selling the request of stock, check the transaction request etc. of some user.
The trigger condition refers to just the generation for the request for buying in or the selling stock condition to be met, for example works as stock
The stock that code is 100000 is greater than or equal to practical less than or equal to the buying rate arranged in contract, and in the account for the side of buying in
When buying rate total value, mean that affairs meet trigger condition.
S6, the operation for executing the affairs and implementing result are recorded in corresponding block, while knot is executed by described
Fruit is sent to the client of both parties in the intelligent contract.
To prevent transaction record to be tampered, executing each operation of affairs and as a result, corresponding area being recorded to
In block, and sends result to each associated user and know.
The corresponding block refers to just the block where each user and stock trader's platform.
It in embodiment two, is based on the basis of embodiment one, as shown in Fig. 2, when the intelligent contract is that dealing type closes
When about, the affairs are to buy in or sell the request of stock, at this time S5 include it is following step by step:
S511, judge whether only relate to a user in intelligent contract, if S515 is executed, if otherwise executing S512.
If being related to buying jointly or closing in many ways sells, need to have on stock trader's platform in many ways shared shared account,
Therefore need exist for distinguishing whether only relate to a user.
S512, it is sent to the stock trader's platform arrived involved in intelligent contract and shares account inquiry request, executed if inquiring
S514 executes S513 if inquiry less than if;
The shared account by as involved in intelligent contract to each user shared collectively as a stock counterparty
Account.
S513, instruction stock trader's platform create a shared account.
The personal account that the shared account is opened up independently of each user on stock trader's platform is newly-built independent account
Number, which checks for this multiple user, i.e., this multiple user is owned by the permission for checking the shared account.
Fund in shared account comes from the personal account for having the multiple users for checking that permission is checked, i.e., shared when establishing
After account, the fund in the personal account for each user to be also involved in shares account by the agreement cut-in of intelligent contract to this
In.
S514, the stock exchange execution sent to stock trader's platform using the shared account as a stock counterparty are asked
It asks, and in the operation note to each corresponding block.
S515, it is sent to stock trader's platform using the account that the user opens on stock trader's platform as the stock of stock exchange side
Ticket transaction executes request, and in this operation note to corresponding block.
When another party party is a user, then Stock Trading is directly opened on stock trader's platform its people's account
Middle operation.
The corresponding block refers to the block where each user that intelligent contract is related to and stock trader's platform.
It in embodiment three, is based on the basis of embodiment one, as shown in figure 3, when the intelligent contract is that type of checking closes
When about, the affairs be check the request of the transaction record of the user (be commonly called as with buy/with sell operation), at this time S5 include with
Under step by step:
S521, it receives and checks that request, the request include altogether by the record that client is sent as the user for the side of checking
The side's of enjoying identification code and intelligent contract identification code.
In order to distinguish each user and intelligent contract, each user and intelligent contract can be given to carry out coding differentiation, that is, distribute institute
The identification code stated, each user and intelligent contract can correspond to a unique identification code.
Record is sent when checking request, can include shared square identification code and intelligent contract identification code in request, share side and
Intelligent contract is by user's setting as the side of checking.
S522, relevant intelligent contract is transferred by the intelligent contract identification code.
The intelligence contract is stored in block chain on a node, can directly be searched by intelligent contract identification code
It arrives.
S523, judge that the record checks whether request is authentic and valid according to the treaty conditions in the intelligent contract, if
It is then from record as the stock exchange record on the block chain node where the user for sharing side, transferring the user.
Since the term of validity of contract can be set in intelligent contract, in addition as the party concerned in intelligent contract
It can break one's promise.But the characteristic of block chain is modification/operation each time all to be recorded and will not be deleted, so in intelligence
After contract fails or broken one's promise, which is still present in block chain, therefore to confirm whether intelligent contract is true
Effectively, only effective in intelligent contract, the operation (stock exchange of the user as shared side in next step could be executed
Record).
S524, the stock exchange transferred record is sent in the client as the user for the side of checking.
Secondly, the present invention proposes a kind of electronic device, and the intelligent stock based on block chain is stored on the electronic device
Ticket subscription system 20, the system 20 can be divided into one or more program module.
For example, Fig. 4 shows the program module of intelligent 20 first embodiment of stock subscription system based on block chain
Schematic diagram, in the embodiment, the system 20 can be divided into treaty system cover half block 201, contract correction verification module 202, judge
Module 203, contract preserving module 204, contract execution module 205 and logging modle 206.Wherein, the so-called program mould of the present invention
Block is the series of computation machine program instruction section for referring to complete specific function.The program module will specifically be introduced by being described below
The concrete function of 201-206.
The treaty system cover half block 201 for receive the treaty conditions that the first user selects on the client be added to it is default
Contract template in generate intelligent contract;The treaty conditions include at least both parties, when the intelligent contract is dealing
When type contract, wherein one party is stock trader's platform, another party party be comprising one including first user or
Multiple users;When the intelligent contract is to check type contract, wherein one party is another user, and another party party is
First user;
The contract correction verification module 202 is used to verify intelligent contract according to preset verification rule, and will verification
As a result the client of both parties in the intelligent contract is fed back to;
The judgment module 203 is for judging whether check results are that verification passes through;
The contract preserving module 204 is used in check results be after verification passes through, according to the preset contract holding time
Interval, the intelligent contract set up in interval of the same contract holding time is packaged on the node of a block chain,
And be broadcast to by way of P2P in block chain on the block where both parties in the intelligent contract;
The contract execution module 205 for periodically traverse one by one the execution state of intelligent contract of each establishment, affairs and
Trigger condition, and judge whether the affairs meet the trigger condition, execute the affairs if meeting;
The logging modle 206 is used to the operation and implementing result that execute the affairs being recorded in corresponding block,
The implementing result is sent to the client of both parties in the intelligent contract simultaneously.
Again, the present invention also puts forward a kind of computer equipment.
As shown in fig.5, being the hardware structure schematic diagram of one embodiment of computer equipment of the present invention.In the present embodiment, institute
State computer equipment 2 be it is a kind of can be automatic to carry out at numerical computations and/or information according to the instruction for being previously set or storing
The equipment of reason.For example, it may be smart mobile phone, tablet computer, laptop, desktop computer, rack-mount server, blade
Formula server, (including the service that independent server or multiple servers are formed of tower server or Cabinet-type server
Device cluster) etc..As shown, the computer equipment 2 includes at least, but it is not limited to, company can be in communication with each other by system bus
Connect memory 21, processor 22, network interface 23 and the intelligent stock subscription system 20 based on block chain.Wherein:
The memory 21 includes at least a type of computer readable storage medium, and the readable storage medium storing program for executing includes
Flash memory, hard disk, multimedia card, card-type memory (for example, SD or DX memories etc.), random access storage device (RAM), it is static with
Machine accesses memory (SRAM), read-only memory (ROM), electrically erasable programmable read-only memory (EEPROM), may be programmed only
Read memory (PROM), magnetic storage, disk, CD etc..In some embodiments, the memory 21 can be the meter
Calculate the internal storage unit of machine equipment 2, such as the hard disk or memory of the computer equipment 2.In further embodiments, described to deposit
Reservoir 21 can also be the External memory equipment of the computer equipment 2, such as the plug-in type being equipped on the computer equipment 2 is hard
Disk, intelligent memory card (Smart Media Card, SMC), secure digital (Secure Digital, SD) card, flash card
(Flash Card) etc..Certainly, the memory 21 can also both include the internal storage unit of the computer equipment 2 or wrap
Include its External memory equipment.In the present embodiment, the memory 21 is installed on the behaviour of the computer equipment 2 commonly used in storage
Make system and types of applications software, such as the program code etc. of the intelligent stock subscription system 20 based on block chain.In addition,
The memory 21 can be also used for temporarily storing the Various types of data that has exported or will export.
The processor 22 can be in some embodiments central processing unit (Central Processing Unit,
CPU), controller, microcontroller, microprocessor or other data processing chips.The processor 22 is commonly used in the control meter
Calculate machine equipment 2 overall operation, such as execute with the computer equipment 2 carry out data interaction or communicate it is relevant control and
Processing etc..In the present embodiment, the processor 22 is for running the program code stored in the memory 21 or processing number
According to, such as the intelligent stock subscription system 20 based on block chain etc. described in operation.
The network interface 23 may include radio network interface or wired network interface, which is commonly used in
Communication connection is established between the computer equipment 2 and other computer equipments.For example, the network interface 23 is for passing through net
The computer equipment 2 is connected by network with exterior terminal, and data biography is established between the computer equipment 2 and exterior terminal
Defeated channel and communication connection etc..The network can be intranet (Intranet), internet (Internet), whole world shifting
Dynamic communication system (Global System of Mobile communication, GSM), wideband code division multiple access (Wideband
Code Division Multiple Access, WCDMA), 4G networks, 5G networks, bluetooth (Bluetooth), the nothings such as Wi-Fi
Line or cable network.
It should be pointed out that Fig. 5 illustrates only the computer equipment 2 with component 21-23, it should be understood that simultaneously
All components shown realistic are not applied, the implementation that can be substituted is more or less component.
In the present embodiment, being stored in the intelligent stock subscription system 20 based on block chain in memory 21 can be with
It is performed by one or more processors (the present embodiment is processor 22), to complete the above-mentioned intelligent stock Shen based on block chain
The operation of purchaser's method.
In addition, a kind of computer readable storage medium of the present invention, the computer readable storage medium is volatile storage
Medium is stored with computer program instructions, and the computer program instructions can be executed by one or more processors, so that
At least one processor executes the step of applying to purchase method such as intelligent stock of the aforementioned any one of them based on block chain.
Although specific embodiments of the present invention have been described above, it will be appreciated by those of skill in the art that this is only
For example, protection scope of the present invention is to be defined by the appended claims.Those skilled in the art without departing substantially from
Under the premise of the principle and substance of the present invention, many changes and modifications may be made, but these change and
Modification each falls within protection scope of the present invention.
Claims (10)
1. a kind of intelligent stock based on block chain applies to purchase method, which is characterized in that include the following steps:
The treaty conditions that S1, the first user of reception select on the client, which are added in preset contract template, generates intelligence conjunction
About;The treaty conditions include at least both parties, when the intelligent contract is dealing type contract, wherein one party
For stock trader's platform, another party party is to include one or more users including first user;When the intelligent contract
When to check type contract, wherein one party is another user, and another party party is first user;
S2, intelligent contract is verified according to preset verification rule, and check results is fed back in the intelligent contract
The client of both parties;
S3, judge whether check results are that verification passes through, if then S4 is set up and executed to intelligent contract, if otherwise intelligent contract is not
It sets up and directly terminates;
S4, according to interval of preset contract holding time, the intelligence that will be set up in interval of the same contract holding time is closed
About be packaged on the node of a block chain, and be broadcast to by way of P2P in block chain with it is double in the intelligent contract
On block where square party;
Execution state, affairs and the trigger condition of S5, the regular intelligent contract for traversing each establishment one by one, and judge that the affairs are
It is no to meet the trigger condition, execute the affairs if meeting;
S6, the operation for executing the affairs and implementing result are recorded in corresponding block, while the implementing result is sent out
Send the client of the both parties into the intelligent contract.
2. the intelligent stock according to claim 1 based on block chain applies to purchase method, which is characterized in that the treaty conditions
Further include that entry-into-force time range, the stock number of anchoring, stock are bought in or sold price, purchase stock quantity and triggering and buys in
Or the stock price sold.
3. the intelligent stock according to claim 2 based on block chain applies to purchase method, which is characterized in that the verification passes through
It is required that the intelligence contract meets following complete verification rules:
The byte of the intelligence contract is not exceeded;
The format of the intelligence contract is correct;
Involved in the intelligence contract to the account set up on the stock trader of each user in capital investment meet investment meter
It draws;
The stock number necessary being arrived involved in the intelligence contract;
The entry-into-force time write in the intelligence contract is more than current time;
The block chain that the intelligence contract is stored into is legal;
Agreement of the treaty conditions through all parties in the intelligence contract confirms.
4. the intelligent stock according to claim 1 based on block chain applies to purchase method, which is characterized in that when the intelligence is closed
About dealing type contract when, the affairs are to buy in or sell the request of stock.
5. the intelligent stock according to claim 4 based on block chain applies to purchase method, which is characterized in that when the affairs are
When buying in or sell the request of stock, the S5 include it is following step by step:
S511, judge whether only relate to a user in intelligent contract, if S515 is executed, if otherwise executing S512;
S512, it is sent to the stock trader's platform arrived involved in intelligent contract and shares account inquiry request, S514 is executed if inquiring,
S513 is executed less than if if inquiry;The shared account be as involved in intelligent contract to each user collectively as a stock
The account that counterparty shares;
S513, instruction stock trader's platform create a shared account;
S514, request is executed to the transmission of stock trader's platform using the stock exchange of shared account as a stock counterparty, and
In the operation note to each corresponding block;
S515, the stock to the transmission of stock trader's platform using the account that the user opens on stock trader's platform as stock exchange side are handed over
Request easily is executed, and in this operation note to corresponding block.
6. the intelligent stock according to claim 1 based on block chain applies to purchase method, which is characterized in that when the intelligence is closed
When about checking type contract, the affairs are to check the request of the transaction record of the user.
7. the intelligent stock according to claim 6 based on block chain applies to purchase method, which is characterized in that when the affairs are
When checking the request of the transaction record of other users,
S521, it receives and checks that request, the request include shared side by the record that client is sent as the user for the side of checking
Identification code and intelligent contract identification code;
S522, relevant intelligent contract is transferred by the intelligent contract identification code;
S523, judge that the record checks whether request is authentic and valid according to the treaty conditions in the intelligent contract, if then
From record as the stock exchange record on the block chain node where the user for sharing side, transferring the user;
S524, the stock exchange transferred record is sent in the client as the user for the side of checking.
8. a kind of electronic device, which is characterized in that be stored with the intelligent stock based on block chain on the electronic device and apply to purchase and be
System, the intelligent stock subscription system based on block chain include:
Treaty system cover half block is added to preset contract template for receiving the treaty conditions that the first user selects on the client
The intelligent contract of middle generation;The treaty conditions include at least both parties, when the intelligent contract is dealing type contract,
Middle one party is stock trader's platform, and another party party is to include one or more users including first user;When
The intelligence contract is when checking type contract, and wherein one party is another user, and another party party is first use
Family;
Contract correction verification module for being verified to intelligent contract according to preset verification rule, and check results is fed back to
The client of both parties in the intelligence contract;
Judgment module, for judging whether check results are that verification passes through;
Contract preserving module, for being that after verification passes through, according to interval of preset contract holding time, will be located in check results
The intelligent contract set up in interval of the same contract holding time is packaged on the node of a block chain, and passes through P2P's
Mode be broadcast in block chain on the block where both parties in the intelligent contract;
Contract execution module, execution state, affairs and the trigger condition of the intelligent contract for periodically traversing each establishment one by one, and
Judge whether the affairs meet the trigger condition, the affairs are executed if meeting;
Logging modle, for the operation and implementing result that execute the affairs to be recorded in corresponding block, while will be described
Implementing result is sent to the client of both parties in the intelligent contract.
9. a kind of computer equipment, including memory and processor, which is characterized in that being stored on the memory can be described
The intelligent stock subscription system based on block chain that processor executes realizes such as right when the system is executed by the processor
It is required that the step of intelligent stock based on block chain described in any one of 1-7 applies to purchase method.
10. a kind of computer readable storage medium, which is characterized in that be stored with computer in the computer readable storage medium
Program instruction, the computer program instructions can be executed by one or more processors, so that at least one processor is held
The step of intelligent stock based on block chain of the row as described in any one of claim 1-7 applies to purchase method.
Priority Applications (2)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201810537960.XA CN108805713A (en) | 2018-05-30 | 2018-05-30 | Intelligent stock based on block chain applies to purchase method, apparatus, equipment and storage medium |
PCT/CN2018/095354 WO2019227609A1 (en) | 2018-05-30 | 2018-07-12 | Blockchain-based smart stock purchase method, device, apparatus and storage medium |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201810537960.XA CN108805713A (en) | 2018-05-30 | 2018-05-30 | Intelligent stock based on block chain applies to purchase method, apparatus, equipment and storage medium |
Publications (1)
Publication Number | Publication Date |
---|---|
CN108805713A true CN108805713A (en) | 2018-11-13 |
Family
ID=64089331
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201810537960.XA Pending CN108805713A (en) | 2018-05-30 | 2018-05-30 | Intelligent stock based on block chain applies to purchase method, apparatus, equipment and storage medium |
Country Status (2)
Country | Link |
---|---|
CN (1) | CN108805713A (en) |
WO (1) | WO2019227609A1 (en) |
Cited By (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN109785134A (en) * | 2019-01-23 | 2019-05-21 | 武汉理工大学 | The management system and method for stock exchange are realized with block chain |
CN110135803A (en) * | 2019-04-29 | 2019-08-16 | 深圳市元征科技股份有限公司 | A kind of transaction management method and block chain node device |
WO2020114266A1 (en) * | 2018-12-05 | 2020-06-11 | 腾讯科技(深圳)有限公司 | Resource transfer method and apparatus, electronic device, and storage medium |
WO2020220751A1 (en) * | 2019-04-28 | 2020-11-05 | 创新先进技术有限公司 | Consumption contract processing method and system therefor |
TWI745125B (en) * | 2020-10-16 | 2021-11-01 | 國立臺北商業大學 | System and method for automatically subscribing to stocks |
TWI754419B (en) * | 2020-10-16 | 2022-02-01 | 國立臺北商業大學 | System and method for automatic allocation of deposit funds for multi-account stock subscription subscription |
Family Cites Families (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20170140408A1 (en) * | 2015-11-16 | 2017-05-18 | Bank Of America Corporation | Transparent self-managing rewards program using blockchain and smart contracts |
CN107038638A (en) * | 2017-02-24 | 2017-08-11 | 杭州象链网络技术有限公司 | A kind of equity registration transaction system construction method based on alliance's chain |
CN108062671A (en) * | 2017-11-03 | 2018-05-22 | 深圳市轱辘车联数据技术有限公司 | Data trade method, block chain node server and data submit terminal |
CN107943469B (en) * | 2017-11-17 | 2022-01-11 | 深圳圣马歌科技有限公司 | Intelligent contract issuing method and device |
CN107945021A (en) * | 2017-12-07 | 2018-04-20 | 杭州趣链科技有限公司 | A kind of digital asset management method based on block chain intelligence contract |
-
2018
- 2018-05-30 CN CN201810537960.XA patent/CN108805713A/en active Pending
- 2018-07-12 WO PCT/CN2018/095354 patent/WO2019227609A1/en active Application Filing
Cited By (8)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
WO2020114266A1 (en) * | 2018-12-05 | 2020-06-11 | 腾讯科技(深圳)有限公司 | Resource transfer method and apparatus, electronic device, and storage medium |
CN109785134A (en) * | 2019-01-23 | 2019-05-21 | 武汉理工大学 | The management system and method for stock exchange are realized with block chain |
CN109785134B (en) * | 2019-01-23 | 2021-06-01 | 武汉理工大学 | Management system and method for realizing stock exchange by block chain |
WO2020220751A1 (en) * | 2019-04-28 | 2020-11-05 | 创新先进技术有限公司 | Consumption contract processing method and system therefor |
CN110135803A (en) * | 2019-04-29 | 2019-08-16 | 深圳市元征科技股份有限公司 | A kind of transaction management method and block chain node device |
CN110135803B (en) * | 2019-04-29 | 2023-12-08 | 深圳市元征科技股份有限公司 | Item management method and block chain link point equipment |
TWI745125B (en) * | 2020-10-16 | 2021-11-01 | 國立臺北商業大學 | System and method for automatically subscribing to stocks |
TWI754419B (en) * | 2020-10-16 | 2022-02-01 | 國立臺北商業大學 | System and method for automatic allocation of deposit funds for multi-account stock subscription subscription |
Also Published As
Publication number | Publication date |
---|---|
WO2019227609A1 (en) | 2019-12-05 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN108805713A (en) | Intelligent stock based on block chain applies to purchase method, apparatus, equipment and storage medium | |
US20190197622A1 (en) | System and method of providing unique identifiers in security blockchain-based tokens | |
CN109829767A (en) | A kind of point reward exchanging system and method based on block chain technology | |
CN110599182A (en) | Resource management method and device | |
CN108027608A (en) | For the unlatching of the processing step of process object | |
KR20200062640A (en) | Method for managing artwork transaction inforamtion based on blockchain and node apparatus of blockchain | |
CN110309637A (en) | A kind of digital asset management method, apparatus, equipment and readable storage medium storing program for executing | |
CN111506932A (en) | Block chain calculation uplink implementation method | |
CN107845031A (en) | The method and apparatus for assessing the trading activity of user | |
CN108256834A (en) | Reimbursement management method, device and storage medium | |
Boman et al. | Parrondo strategies for artificial traders | |
CA2998543C (en) | Processing method for obtaining target data, server, and online financing method | |
CN108241732A (en) | Electronic device, the method for information processing and storage medium | |
TWM636821U (en) | Server for managing members | |
JP7191974B2 (en) | CONTRACT PROCESSING METHOD, CONTRACT PROCESSING SYSTEM AND PROGRAM | |
CN110532516B (en) | Accounting method, device and system for digital asset transfer | |
KR20210043972A (en) | Method of maintaining price of stable coin and trading system using the same | |
KR20210094958A (en) | Apparatus and method for providing cryptocurrency | |
KR20200048548A (en) | Method for applying transaction rules of cryptocurrency based on block chain, terminal device and computer program using it | |
KR20200048547A (en) | Method for applying transaction rules of cryptocurrency based on block chain, terminal device and computer program using it | |
KR20200048552A (en) | Method for applying transaction rules of cryptocurrency convertible with gold, terminal device and computer program using it | |
CN110533532A (en) | A kind of exchange method of calibration, device and the storage medium of finance data | |
JP3219516U (en) | Financial asset trading system | |
CN111833059B (en) | Data asset management method in data bank and data bank system | |
KR20230023531A (en) | Method, system and non-transitory computer-readable recording medium for managing ticket transaction on blockchain network |
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 |