CN107547529A - A kind of method, system that shared retail is realized based on block chain - Google Patents

A kind of method, system that shared retail is realized based on block chain Download PDF

Info

Publication number
CN107547529A
CN107547529A CN201710716919.4A CN201710716919A CN107547529A CN 107547529 A CN107547529 A CN 107547529A CN 201710716919 A CN201710716919 A CN 201710716919A CN 107547529 A CN107547529 A CN 107547529A
Authority
CN
China
Prior art keywords
data
module
block
shared
block chain
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN201710716919.4A
Other languages
Chinese (zh)
Inventor
马辉
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Ji Zhi Zhi (beijing) Catering Management Co Ltd
Original Assignee
Ji Zhi Zhi (beijing) Catering Management Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Ji Zhi Zhi (beijing) Catering Management Co Ltd filed Critical Ji Zhi Zhi (beijing) Catering Management Co Ltd
Priority to CN201710716919.4A priority Critical patent/CN107547529A/en
Publication of CN107547529A publication Critical patent/CN107547529A/en
Pending legal-status Critical Current

Links

Abstract

The invention discloses a kind of method, system that shared retail is realized based on block chain, method, it is characterised in that comprise the following steps:In protocol layer, establish and safeguard network node, and API Calls interface is provided, in extension layer, there is provided the service end of shared retail, in application layer, there is provided access the WEB incoming ends of the service end, and cash-freeization process, also include in the protocol layer:To the Internet according to each node security in common recognition mechanism Logistics networks, and to store the storage layer of block chain structure data, also include in the extension layer:Consume contract module, processing quotient module block, manufacturer's module, retailer's module, consumer module.By block chain technical optimization retail trade, so as to realize, really shared retail mode greatly improves the efficiency of operation of enterprise and greatly reduces the operating cost of enterprise the present invention, more can comprehensively meet the needs of user is to product.

Description

A kind of method, system that shared retail is realized based on block chain
Technical field
It is more particularly to a kind of that shared retail is realized based on block chain the present invention relates to Internet of Things field, block chain field Method, system.
Background technology
In traditional food system, from food producer to processing enterprise, then to warehouse or dispatching, retailer is finally sent to During the entire process of many leaks be present.Each link information is by paper records, if consumer wants retrospect purchase food Grown place situations such as, it is necessary to expend several days time.Once food goes wrong, it is desirable to finds out problem source and makes decision all Need to investigate and collect evidence for a long time.Meanwhile conventional batch number, date of manufacture are all paper records.It is difficult institute to want sharing data All it is back, latter step with present tracing to the source, this process is slow.If with the technology of block chain, because data Whole process is that digitlization is collected, and can is traced to the source within several seconds, while may insure that each link includes food on chain The producer, processor, retailer, consumer can benefit from it.
In traditional economy, business model is a kind of centralization system.So-called centralization is exactly a broadcast mode, institute Some users are carried out around this main body, and current most traditional business model is all this type, such as is manufactured Industry, portal website etc..Along with the birth being newly sold, exactly it is born to adapt to the epoch of upcoming " decentralization " , since Costco, retail trade disintermediation is apparent, and the offline upper combination of line, utilizes the new of big data driving Retail, then the retail mode of decentralization will be crossed with the mode of gridding, be transformed into the retail mode of decentralization, consumer Purchase experiences will reach under new retail and greatly meet.
And the concept of block chain proposes it is one of key concept for realizing following " distribution " structure, if there is no block chain It is this for " administrative mechanism of account book " center ", then, it is extremely difficult that following distributed frame, which will be realized,.Based on area The decentralization of block chain technology and theory, is only real decentralization, and current shared economic system, then in still needing The heart, such as shared trip need Uber and drop to drip, and shared bicycle needs to rub to visit, ofo etc., and shared people place needs Airbnb etc., These simply partly realize decentralization, rather than real decentralization, because while various centers are removed, these Platform itself becomes new center.
In addition, ripe in 5G network standards in 2019 and after starting to introduce to the market, the year two thousand twenty or so, Internet of Things and artificial The technologies such as intelligence will welcome very quick development, and this development speed substitutes the development speed in PC epoch comparable to mobile Internet Degree.The gridding connected mode of Internet of Things, natural is exactly to be prepared for the decentralization of business and the distributed frame in future , it may be said that the Internet of Things of future society is only the basis of all network commercial patterns.
Based on above-mentioned decentralization, 5G network standards, block chain technology, how to pass through block chain technical optimization retail firm Industry, so as to realize, really shared retail mode is that those skilled in the art have the problem of to be solved.
The content of the invention
The technical problem to be solved in the present invention is to provide a kind of shared retail mode of optimization, solves the problems, such as decentralization The method that shared retail is realized based on block chain.
Solves above-mentioned technical problem, the invention provides a kind of method that shared retail is realized based on block chain, including such as Lower step:
In protocol layer, establish and safeguard network node, and API Calls interface is provided,
In extension layer, there is provided the service end of shared retail,
In application layer, there is provided the WEB incoming ends of the service end, and cash-freeization process are accessed,
Also include in the protocol layer:To according to common recognition mechanism Logistics networks in each node security Internet, with And to store the storage layer of block chain structure data,
Also include in the extension layer:Consume contract module, processing quotient module block, manufacturer's module, retailer's module, consumption Person's module,
The consumption contract module, to perform the consumption contract for the condition of reaching,
The processing quotient module block, to provide the processing quotient data processed,
Manufacturer's module, to provide the manufacturer data produced,
Retailer's module, to provide the merchant data being sold,
The consumer module, to provide the consumer data consumed,
The consumer data is shared with merchant data, and the merchant data is shared with manufacturer data, described to add Industrial and commercial data are shared with manufacturer data, and processing quotient data, manufacturer data, merchant data and the consumer data are led to Protocol layer is crossed to be recorded in block chain,
Also include in the application layer:To provide business site, WEB client side, one kind of third party's expansion interface or The a variety of WEB access ends of person.
Further, also include in the application layer:RF passive labels, Quick Response Code, recognition of face, living things feature recognition Incoming end.
Further, it is based in the Internet:Dig ore deposit common recognition algorithm or ballot common recognition algorithm.
Further, it is based in the Internet:Proof of work POW, rights and interests prove POS, and acting on behalf of rights and interests proves DPOS And practical Byzantium PBFT common recognitions mechanism.
Further, include in storage layer block chain structure data:
To the magical number as separator,
To record the block size of block chain size,
To the reference target number data block header information using HASH values as the HASH values of next new block,
The transaction count of current block number of deals is recorded,
To preserve the Transaction Details of trade detail.
Based on above-mentioned, present invention also offers a kind of system that shared retail is realized based on block chain, including:Server and Browser, to access the server, the server includes the browser:Consume contract module, processing quotient module block, life Business men module, retailer's module, consumer module,
The consumption contract module, to perform the consumption contract for the condition of reaching,
The processing quotient module block, to provide the processing quotient data processed,
Manufacturer's module, to provide the manufacturer data produced,
Retailer's module, to provide the merchant data being sold,
The consumer module, to provide the consumer data consumed,
The consumer data is shared with merchant data, and the merchant data is shared with manufacturer data, described to add Industrial and commercial data are shared with manufacturer data, and processing quotient data, manufacturer data, merchant data and the consumer data are led to Protocol layer is crossed to be recorded in block chain,
Also include:API Calls interface and the third Protocol unit of block chain structure data storage are provided, it includes:With With the Internet according to each node security in common recognition mechanism Logistics networks, and to store the storage of block chain structure data Layer.
Further, the third Protocol unit also includes:The database of local datastore, to optimize I/O Energy.
Further, the third Protocol unit also includes:, client wallet, to establish address, checking signature, Payment by the transfer of accounts checks remaining sum.
Further, the server also includes:Trace to the source unit, to share the place of production of commodity, lot number, date of manufacture letter Breath, and the production environment of commodity, the information for whether having product safety certification are come into the open, and in the processing quotient module block, institute State manufacturer's module, retailer's module, consumer module's track articles source, plant data, due date, storage Temperature, transit information.
Further, the browser also includes:Business site, WEB client side, third party's expansion interface, to pass through The business site, the WEB client side or third party's expansion interface enter under line to the friendship on line with shared shelf Mutually
Beneficial effects of the present invention:
The present invention is by block chain technical optimization retail trade, so as to realize really shared retail mode.Due to assisting View layer is established and safeguards network node and provide API Calls interface, using the teaching of the invention it is possible to provide meets the Internet and storage area of common recognition mechanism The storage layer of block chain structure data.Due to providing the service end of shared retail in extension layer, in described extension layer any need the The product that tripartite pays can be convenient to use block chain technology, and any required really power, reference and the information of retrospect can Realized by block chain.The WEB incoming ends of the service end, and cash-freeization process are accessed due to being provided in application layer, Cash-freeization includes but is not limited to, the token such as BTC/EBC.In addition, also include in the extension layer:Consume contract module, processing Quotient module block, manufacturer's module, retailer's module, consumer module, it can be ensured that production person, processor in each link, zero Sell business, consumer can obtain necessary/desired information.Also include in the application layer:To provide business site, One or more kinds of WEB access ends of WEB client side, third party's expansion interface, support the WEB access ends of various ways.
Brief description of the drawings
Fig. 1 is the method flow schematic diagram that shared retail is realized based on block chain in one embodiment of the invention;
Fig. 2 is the block chain structure data structure schematic diagram in one embodiment of the invention;
Fig. 3 is the system structure diagram that shared retail is realized based on block chain in one embodiment of the invention;
Fig. 4 is the topological structure schematic diagram in the present invention.
Embodiment
The principle of the disclosure is described referring now to some example embodiments.It is appreciated that these embodiments are merely for saying It is bright and help it will be understood by those skilled in the art that with the purpose of the embodiment disclosure and describe, rather than suggest the model to the disclosure Any restrictions enclosed.Content of this disclosure described here can in a manner of described below outside various modes implement.
As described herein, term " comprising " and its various variants are construed as open-ended term, it means that " bag Include but be not limited to ".Term "based" is construed as " being based at least partially on ".Term " one embodiment " it is understood that For " at least one embodiment ".Term " another embodiment " is construed as " at least one other embodiment ".
Common recognition mechanism in the application refers to that block chain affairs reach the algorithm of distributed common recognition.
Block chain is a kind of distributed account book system of decentralization, it can be used for registering and issue digitlization assets, Equity security, integration etc., and transferred accounts, paid and merchandised in a point-to-point fashion.Block catenary system and traditional centralization Account book system is compared, and is had the advantages that full disclosure, can not be distorted, prevent multiple payment, and independent of any credible Third party.And due to higher network delay under point to point network be present, the affairs sequencing observed by each node is not May be completely the same.Therefore block catenary system needs the priority for designing a kind of affairs of mechanism to occurring within the similar time suitable Sequence is known together.The algorithm that the sequencing of this affairs in a time window is reached common understanding is referred to as " common recognition machine System ".
Still further aspect, block chain (Blockchain) are the data storage systems for being participated in safeguarding jointly by distributed node System, it forms linked data structure using hashing algorithm connection data block, and by the mechanism of knowing together to transmit and synchrodata, from And ensure the final consistency of each node data and can not change and delete.
Common recognition mechanism be block catenary system according to own service feature, in Byzantium's general's problem (Lamport L. The Byzantine Generals Problem[J].Acm Transactions on Programming Languages& Systems,1995,4(3):382-401.) the distributed consensus algorithm of transmission and synchrodata in network.Generally comprise number According to contents such as verifying broadcasts, new block production method, block verifying broadcasts, bifurcated processing.At present, existing common common recognition mechanism Including proof of work (POW), rights and interests prove (POS), and acting on behalf of rights and interests proves (DPOS) and practical Byzantium (PBFT) etc..
1st, POW proof of work, by enumerating the hash computings of formula, a random number for meeting rule is calculated, that is, is obtained This book keeping operation power is obtained, the data that epicycle needs to record is sent, is stored together after other node verifications of the whole network more than 50%.POW That is proof of work, its advantage are:1) algorithm is simple, easily realizes;2) extra information need not be exchanged between node to may achieve Common recognition;3) destruction system needs to put into great cost;But its shortcoming is also clearly:1) energy is wasted;2) confirmation of block Time is difficult to shorten;3) new block chain must find a kind of different hashing algorithm, otherwise will face the calculation power of bit coin Attack;4) bifurcated is easily produced, it is necessary to wait multiple confirmations;5) forever no lastness, it is necessary to which checkpointing mechanism makes up most End property.The application case of POW proof of work:Bit coin.
2nd, POS rights and interests prove, are a kind of POW upgrading common recognition mechanism;According to the ratio of token shared by each node and when Between;Mine disaster degree is dug in the reduction of equal proportion, so as to accelerate to look for the speed of random number.The advantages of this mechanism is unlike POW so expenses Electricity, but also have many shortcomings:1) without specialization, possessing the participant of rights and interests may not wish to participate in book keeping operation;2) easily produce Bifurcated is, it is necessary to wait multiple confirmations;3) forever no lastness, it is necessary to which checkpointing mechanism makes up lastness.POS rights and interests prove Application case:Following coin, ether mill employ POW+POS mixed mechanism.
3rd, DPOS shares authorisation verification mechanism, voted similar to the board of directors, money-holder launches a number of node, acts on behalf of They are verified and kept accounts.DPOS is specialized by the role for the people that keeps accounts on the basis of POS, first passes through rights and interests to select note Account people, then kept accounts in turn again between book keeping operation people.This mode is still without the final sex chromosome mosaicism of solution.DPOS share authorisation verifications The application case of mechanism:Bit stock.
4th, PBFT practicalities Byzantine failure tolerance algorithm, this is a kind of consistency algorithm based on message transmission, and algorithm passes through three Individual stage compliance, these stages may be because failure and repeat.
Assuming that node total number is 3f+1, f is Byzantine fault node:
1) when node finds that leader does evil, it is leader to elect other replica by algorithm,
2) value that it is selected is broadcast to other replica nodes by leader by pre-prepare message, other Replica nodes if receive if send prepare, if failure if do not send,
3) once 2f node receives prepare message, then node sends commit message,
4) after 2f+1 node receives commit message, the value values is represented and are determined.PBFT practicality Byzantine failure tolerances The application case of algorithm:Hyperledger fabric, the domestic alliance's chain in part.
Application layer, extension layer and the protocol layer being related in the application use including but not limited to C/C++/Nodejs/ Javascript/Python/Go is any or multi-purpose development language is realized.
Refer to Fig. 1 is the method flow schematic diagram that shared retail is realized based on block chain in one embodiment of the invention, Specific steps include:
Step S100 is established and is safeguarded network node in protocol layer, and provides API Calls interface, and the protocol layer refers to The technology of the bottom, including but not limited to distributed network node and storage organization.Not only maintain in protocol layer Network node, and API is only provided for calling.API (Application Programming Interface) is to apply journey Sequence DLL, support realize that bottom calls.Those skilled in the art can understand that official can issue simple client, to Establish network address, checking signature, payment by the transfer of accounts, check remaining sum etc..Preferably, in protocol layer also building network environment, build Trading channel and formulation node reward rule.Include but is not limited to above-mentioned bit coin or Lay spy's coin etc. in protocol layer.Enter One step, accumulation layer and Internet are divide into protocol layer, the data storage in accumulation layer can be performance and easy-to-use with relatively independent Property.
Step S101 is in extension layer, there is provided the service end of shared retail, contract mechanism is mainly performed in the service end, its Belong to the application and development of extension aspect.When reaching some condition threshold, contract is performed and included but is not limited to automatically, automatic transfer Security, automatically payment, automatic gathering, automatic refund etc..Basic extension layer, block chain can develop any kind of production with framework Product, block chain technology not exclusively can be convenient to use used in financial industry, the product of any required Third-party payment, together When any required really power, reference and the information of retrospect, can be realized by block chain.
Step S102 is in application layer, there is provided the WEB incoming ends of the service end, and cash-freeization process are accessed, it is described WEB incoming ends can be business site, WEB client side, third party's expansion interface, to pass through the business site, the WEB Client or third party's expansion interface enter under line to interacting on line with shared shelf and/or intelligent retail terminal.Institute Cash-freeization process is stated, is included but is not limited to:Using e-payment, credit payment, recognition of face payment, living things feature recognition branch Pay, multi-point touch is paid, vr Virtual Realizations are paid.
Step S103 also includes in the protocol layer:To the net according to each node security in common recognition mechanism Logistics networks Network layers, and to store the storage layer of block chain structure data, those skilled in the art can understand, in the Internet The safety for digging each node in the common recognition mechanism algorithm Logistics networks such as ore deposit, ballot can be used.
Step S104 also includes in the extension layer:Consume contract module, processing quotient module block, manufacturer's module, retailer Module, consumer module, the consumption contract module, to perform the consumption contract for the condition of reaching, the processing quotient module block, use To provide the processing quotient data processed, manufacturer's module, to provide the manufacturer data produced, described zero Quotient module block is sold, to provide the merchant data being sold, the consumer module, to provide the consumer consumed Data.Consumption contract module is mainly to perform the consumption contract for the condition of can reach, and consumption contract includes but is not limited to, and consumption is double Side, spending amount and consumption rights etc..Processing quotient module block, manufacturer's module and retailer's module, will Processing quotient data, merchant data and consumer data are realized in extension layer to be collected and stores.
Consumer data is shared with merchant data described in step S105, and the merchant data is total to manufacturer data Enjoy, the processing quotient data is shared with manufacturer data, described to process quotient data, manufacturer data, merchant data and disappear Expense person's data are recorded in block chain by protocol layer,
Step S106 also includes in the application layer:To provide business site, WEB client side, third party's expansion interface One or more kinds of WEB access ends.
Preferably, also include in the application layer:RF passive labels, Quick Response Code, recognition of face, living things feature recognition connect Enter end.
Preferably, it is based in the Internet:Dig ore deposit common recognition algorithm or ballot common recognition algorithm.
Preferably, it is based in the Internet:Proof of work POW, rights and interests prove POS, act on behalf of rights and interests prove DPOS with And practical Byzantium PBFT common recognitions mechanism.
As preferred in the present embodiment, refer to Fig. 2 is the block chain structure data structure in one embodiment of the invention Schematic diagram, include in storage layer block chain structure data:To the magical number 1 as separator, to record block chain size Block size 2, to using HASH values as the reference target number of the HASH values of next new block data block head believe Breath 3, the transaction count 4 of current block number of deals is recorded, to preserve the Transaction Details 5 of trade detail.The data field build The HASH values of portion's information 3 are the reference target numbers of the HASH values of next new block, and the Transaction Details 5 have recorded in the block All transaction records.It has recorded in the data block header information 3:Version number, previous block record, Root, timestamp, object feature value, the random number of Merkle trees.Specifically, it is exactly to produce in the process of bit coin miner digging ore deposit The process of new data block, this process need to contrast the HASH values and random number on previous data block head, if full Sufficient certain condition then generates new block.The root of Merkle trees is all root node HASH for being recorded transaction in the block Value, middle acute hearing is digitally signed with a HASH tree to each than transaction, with ensure it is each than merchandise can not all forge with There is no repeat business, Merkle trees are one kind of HASH trees.Transaction record in the Transaction Details 5 is just as a book keeping operation sheet Equally, the Transaction Information of all bit coin is have recorded, the bit coin income and expenses of each bit coin player are by permanent embedding Enter so that others inquires about in data block, namely why each merchandised than bit coin can all inquire for this.This Transaction data in these individual data blocks is stored in the client node of each bit coin user, all these nodes Then constitute bit coin and distributed data base system.The data of any one node are destroyed all without the whole data of influence The normal operation in storehouse, because all saving complete database in other healthy nodes.So data in the present embodiment In block, bit coin expenditure and reception transaction write on together, and whole revenue and expenditure record records including many ratios, each than recording all There is the index number of oneself for inquiry, while include the generation time in each ratio record, quote the cryptographic Hash of transaction, merchandise The details such as recording indexes numbering, bit coin expenditure address, expenditure number of addresses.It is each to have one than revenue and expenditure transaction record Merkle nodal values, this hash nodal value are a parts for whole Merkle trees, determine that each address can not repeat Merchandise and be forged.Consumption contract module, processing quotient module block, manufacturer's module, retailer's module, consumer module can be recorded The middle Transaction Details that may occur.
Refer to Fig. 3 is the system structure diagram that shared retail is realized based on block chain in one embodiment of the invention, System includes:Server 20 and browser 10, to access the server, the server 20 wraps the browser 10 Include:Consume contract module 201, processing quotient module block 202, manufacturer's module 203, retailer's module 204, consumer module 205, institute Consumption contract module 201 is stated, to perform the consumption contract for the condition of reaching, the processing quotient module block 202, to provide to add The processing quotient data of work, manufacturer's module 203, to provide the manufacturer data produced, retailer's module 204, to provide the merchant data being sold, the consumer module 205, to provide the consumer's number consumed According to the consumer data is shared with merchant data, and the merchant data is shared with manufacturer data, the processing quotient Shared according to manufacturer data, processing quotient data, manufacturer data, merchant data and the consumer data pass through agreement Layer is recorded in block chain, in addition to:API calling interfaces and the third Protocol unit of block chain structure data storage are provided 30, it includes:To the Internet 302 according to each node security in common recognition mechanism Logistics networks, and to store block The storage layer 301 of chain structure data.In certain embodiments, the browser 10 also includes:RF passive labels, Quick Response Code, people Face identification, the incoming end of living things feature recognition.In certain embodiments, it is based on digging ore deposit common recognition calculation in the third Protocol unit 30 Method or ballot common recognition algorithm.In certain embodiments, following common recognition mechanism is included in the third Protocol unit 30, is worked Amount proves POW, and rights and interests prove POS, and acting on behalf of rights and interests proves DPOS and practical Byzantium PBFT common recognition mechanism.In some implementations In example, the block chain structure data of the storage layer 301 include:To the magical number as separator, to record block chain The block size of size, to the data block head using HASH values as the reference target number of the HASH values of next new block Information, the transaction count of current block number of deals is recorded, to preserve the Transaction Details of trade detail.
As preferred in the present embodiment, the third Protocol unit 30 includes:The database of local datastore, use To optimize I/O performances.
As preferred in the present embodiment, the third Protocol unit 30 includes:Client wallet, to establish address, Checking signature, payment by the transfer of accounts check remaining sum.
As preferred in the present embodiment, the server 20 also includes:Trace to the source unit, to share the place of production of commodity, Lot number, date of manufacture information, and the production environment of commodity, the information for whether having product safety certification are come into the open, and in institute State processing quotient module block, manufacturer's module, retailer's module, consumer module's track articles source, factory's number According to, due date, storage temperature, transit information.
System in the present embodiment, solve in traditional food system, from food producer to processing enterprise, then to warehouse Or dispatching, finally it is sent to during the entire process of retailer and many leaks is present.Each link information is by paper records, if disappearing Expense person wants situations such as grown place of retrospect purchase food, it is necessary to expend several days time.Once food goes wrong, it is desirable to finds out Simultaneously make decision and be required for investigating and collecting evidence for a long time in problem source.As a result of the technology of block chain, because data are whole It is that digitlization is collected, can is traced to the source within several seconds so that shared retail can also realize that efficient food is traced to the source.
As preferred in the present embodiment, the browser 10 also includes:Business site, WEB client side, third party's extension Interface, to by the business site, the WEB client side or third party's expansion interface and shared shelf and/or Intelligent retail terminal enters under line to the interaction on line.
Refer to Fig. 4 is the topological structure schematic diagram in the present invention, shown in Fig. 4 to include in application layer:Transaction Website, WEB client side, third party's expansion interface, to pass through the business site, the WEB client side or the described 3rd Square expansion interface enters under line to interacting on line with shared shelf and/or intelligent retail terminal.Pass through business site, WEB client End and third party's expansion interface are entrance, and " cash-freeization " is used as using the tokens such as bit coin or other cash-freeization operations Entrance.Include in extension layer:Consume contract module, processing quotient module block, manufacturer's module, retailer's module and consumer Module.The consumption contract module, to perform the consumption contract for the condition of reaching, the processing quotient module block, to provide to The processing quotient data of processing, manufacturer's module, to provide the manufacturer data produced, retailer's module, To provide the merchant data being sold, the consumer module is described to provide the consumer data consumed Consumer data is shared with merchant data, and the merchant data is shared with manufacturer data, the processing quotient data and life Business men data sharing, processing quotient data, manufacturer data, merchant data and the consumer data are recorded by protocol layer In block chain.Mainly include storage layer and Internet in protocol layer as described in Figure, protected in Internet by mechanism of knowing together Hinder the safety of each node, the memory structure of block chain is provided in accumulation layer.If used than client in application layer Bitcoin-Qt clients, then the information of the data block in accumulation layer there is inside the computer of user.Every time when you beat Bitcoin-Qt is opened, data block all can be with whole P2P network distribution types database synchronization.According to the difference of operating system, number Typically depositing path according to block catalogue blocks is:
Windows:%APPDATA% Bitcoin
Linux:~/.bitcoin/
Mac OS:~/Library/Application Support/Bitcoin/
Entitled blkXXX.dat file blkXXX.dat files are deposited in blocks files can be with below terminal Opened with hexdump.Structure is:hexdump-n 10000-C blk00000.dat.
Because processing quotient data, manufacturer data, merchant data and the consumer data are recorded by protocol layer In block chain so that it is guaranteed that be each link includes food on chain the producer, processor, retailer, consumer It can benefit from it.Additionally due to using the entrance of cash-freeization in application layer, whole shared retail implementation process ensure that Automation and security.By block chain technical optimization retail trade, so as to realize, really shared retail mode greatly carries The efficiency of operation of Gao Liao enterprises and the operating cost for greatly reducing enterprise, more can comprehensively meet the needs of user is to product.
It should be appreciated that each several part of the present invention can be realized with hardware, software, firmware or combinations thereof.Above-mentioned In embodiment, software that multiple steps or method can be performed in memory and by suitable instruction execution system with storage Or firmware is realized.If, and in another embodiment, can be with well known in the art for example, realized with hardware Any one of row technology or their combination are realized:With the logic gates for realizing logic function to data-signal Discrete logic, have suitable combinational logic gate circuit application specific integrated circuit, programmable gate array (PGA), scene Programmable gate array (FPGA) etc..
In the description of this specification, reference term " one embodiment ", " some embodiments ", " example ", " specifically show The description of example " or " some examples " etc. means specific features, structure, material or the spy for combining the embodiment or example description Point is contained at least one embodiment or example of the present invention.In this manual, to the schematic representation of above-mentioned term not Necessarily refer to identical embodiment or example.Moreover, specific features, structure, material or the feature of description can be any One or more embodiments or example in combine in an appropriate manner.
In general, the various embodiments of the disclosure can be with hardware or special circuit, software, logic or its any combination Implement.Some aspects can be implemented with hardware, and some other aspect can be with firmware or software implementation, and the firmware or software can With by controller, microprocessor or other computing devices.Although the various aspects of the disclosure be shown and described as block diagram, Flow chart is represented using some other drawing, but it is understood that frame described herein, equipment, system, techniques or methods can With in a non limiting manner with hardware, software, firmware, special circuit or logic, common hardware or controller or other calculating Equipment or some combinations are implemented.
Although in addition, operation is described with particular order, this is understood not to require this generic operation with shown suitable Sequence is performed or performed with generic sequence, or requires that all shown operations are performed to realize expected result.In some feelings Under shape, multitask or parallel processing can be favourable.Similarly, begged for although the details of some specific implementations is superincumbent By comprising but these are not necessarily to be construed as any restrictions to the scope of the present disclosure, but the description of feature is only pin in To specific embodiment.Some features described in some embodiments of separation can also be held in combination in single embodiment OK.Mutually oppose, the various features described in single embodiment can also in various embodiments be implemented separately or to appoint The mode of what suitable sub-portfolio is implemented.

Claims (10)

  1. A kind of 1. method that shared retail is realized based on block chain, it is characterised in that comprise the following steps:
    In protocol layer, establish and safeguard network node, and API Calls interface is provided,
    In extension layer, there is provided the service end of shared retail,
    In application layer, there is provided the WEB incoming ends of the service end, and cash-freeization process are accessed,
    Also include in the protocol layer:To the Internet according to each node security in common recognition mechanism Logistics networks, Yi Jiyong To store the storage layer of block chain structure data,
    Also include in the extension layer:Consume contract module, processing quotient module block, manufacturer's module, retailer's module, consumer's mould Block,
    The consumption contract module, to perform the consumption contract for the condition of reaching,
    The processing quotient module block, to provide the processing quotient data processed,
    Manufacturer's module, to provide the manufacturer data produced,
    Retailer's module, to provide the merchant data being sold,
    The consumer module, to provide the consumer data consumed,
    The consumer data is shared with merchant data, and the merchant data is shared with manufacturer data, the processing business Data are shared with manufacturer data, and processing quotient data, manufacturer data, merchant data and the consumer data pass through association View layer is recorded in block chain,
    Also include in the application layer:To provide business site, WEB client side, third party's expansion interface it is a kind of or more Kind WEB access ends.
  2. 2. according to the method for claim 1, it is characterised in that also include in the application layer:RF passive labels, two dimension Code, recognition of face, the incoming end of living things feature recognition.
  3. 3. according to the method for claim 1, it is characterised in that be based in the Internet:Dig ore deposit common recognition algorithm or ballot Common recognition algorithm.
  4. 4. according to the method for claim 1, it is characterised in that be based in the Internet:Proof of work POW, rights and interests POS is proved, acting on behalf of rights and interests proves DPOS and practical Byzantium PBFT common recognition mechanism.
  5. 5. according to the method for claim 1, it is characterised in that include in storage layer block chain structure data:
    To the magical number as separator,
    To record the block size of block chain size,
    To the data block header information using HASH values as the reference target number of the HASH values of next new block,
    The transaction count of current block number of deals is recorded,
    To preserve the Transaction Details of trade detail.
  6. A kind of 6. system that shared retail is realized based on block chain, it is characterised in that including:Server and browser, it is described clear Device is look to access the server, the server includes:Consume contract module, processing quotient module block, manufacturer's module, retail Quotient module block, consumer module,
    The consumption contract module, to perform the consumption contract for the condition of reaching,
    The processing quotient module block, to provide the processing quotient data processed,
    Manufacturer's module, to provide the manufacturer data produced,
    Retailer's module, to provide the merchant data being sold,
    The consumer module, to provide the consumer data consumed,
    The consumer data is shared with merchant data, and the merchant data is shared with manufacturer data, the processing business Data are shared with manufacturer data, and processing quotient data, manufacturer data, merchant data and the consumer data pass through association View layer is recorded in block chain,
    Also include:API Calls interface and the third Protocol unit of block chain structure data storage are provided, it includes:To root According to the Internet of each node security in common recognition mechanism Logistics networks, and to store the storage layer of block chain structure data.
  7. 7. system according to claim 6, it is characterised in that the third Protocol unit also includes:Local data is deposited The database of storage, to optimize I/O performances.
  8. 8. system according to claim 6, it is characterised in that the third Protocol unit also includes:, client money Bag, to establish address, checking signature, payment by the transfer of accounts or check remaining sum.
  9. 9. system according to claim 6, it is characterised in that the server also includes:Trace to the source unit, to share business The place of production of product, lot number, date of manufacture information, and the production environment of commodity, the information for whether having product safety certification are disclosed Change, and come in the processing quotient module block, manufacturer's module, retailer's module, consumer module's track articles Source, plant data, due date, storage temperature, transit information.
  10. 10. system according to claim 6, it is characterised in that the browser also includes:Business site, WEB client End, third party's expansion interface, to by the business site, the WEB client side or third party's expansion interface with Shared shelf and/or intelligent retail terminal enter under line to the interaction on line.
CN201710716919.4A 2017-08-21 2017-08-21 A kind of method, system that shared retail is realized based on block chain Pending CN107547529A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201710716919.4A CN107547529A (en) 2017-08-21 2017-08-21 A kind of method, system that shared retail is realized based on block chain

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201710716919.4A CN107547529A (en) 2017-08-21 2017-08-21 A kind of method, system that shared retail is realized based on block chain

Publications (1)

Publication Number Publication Date
CN107547529A true CN107547529A (en) 2018-01-05

Family

ID=60957489

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201710716919.4A Pending CN107547529A (en) 2017-08-21 2017-08-21 A kind of method, system that shared retail is realized based on block chain

Country Status (1)

Country Link
CN (1) CN107547529A (en)

Cited By (36)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108269064A (en) * 2018-01-26 2018-07-10 广东工业大学 A kind of Collaborative Manufacturing information sharing method based on intelligent contract
CN108280695A (en) * 2018-02-22 2018-07-13 苏州优千网络科技有限公司 Coupon information system and its processing method based on block chain
CN108305083A (en) * 2018-02-11 2018-07-20 张国忠 A kind of commodity source tracing method and system based on block chain
CN108549819A (en) * 2018-03-13 2018-09-18 中国地质大学(武汉) A kind of bidding processing method and system based on block chain
CN108596622A (en) * 2018-05-02 2018-09-28 北京链链信息技术有限公司 The shared system and method for Transaction Information
CN108650328A (en) * 2018-05-22 2018-10-12 河海大学常州校区 The block catenary system of data information record and storage in a kind of cloud service platform
CN108694584A (en) * 2018-07-10 2018-10-23 武汉星云智慧科技有限公司 A kind of method and system that the grain security based on block chain is traced to the source with excitation
CN108717606A (en) * 2018-06-08 2018-10-30 北京工商大学 A kind of food security multiplicity of interests main body credit assessment method based on block chain
CN108965399A (en) * 2018-06-25 2018-12-07 百度在线网络技术(北京)有限公司 Execution method, apparatus, equipment and the storage medium of intelligent contract
CN108965247A (en) * 2018-06-04 2018-12-07 上海交通大学 A kind of threat information exchange shared system and method based on block chain
CN108961526A (en) * 2018-06-13 2018-12-07 郑州云海信息技术有限公司 A kind of ballot system based on block chain technology
CN108989019A (en) * 2018-06-27 2018-12-11 天闻数媒科技(湖南)有限公司 Content resource safety system based on block chain technology
CN109063179A (en) * 2018-08-23 2018-12-21 靳芯 The extended method and relevant apparatus of block platform chain
CN109067516A (en) * 2018-07-20 2018-12-21 杭州复杂美科技有限公司 A kind of drawing method, common recognition method, equipment and storage medium
CN109102342A (en) * 2018-09-17 2018-12-28 广东成高成数据集成有限公司 Based on block chain and data integration, that is, application system of artificial intelligence, method of servicing
CN109118168A (en) * 2018-07-20 2019-01-01 北京开普云信息科技有限公司 A kind of government affairs service process traceability system and its construction method based on block chain mechanism
CN109120437A (en) * 2018-08-01 2019-01-01 昧来网络科技(上海)有限公司 The artificial intelligence block cloud ecosystem based on DABFT common recognition mechanism
CN109246248A (en) * 2018-11-02 2019-01-18 清华大学 The credible and secure shared system of data and method based on block chain technology
CN109308410A (en) * 2018-10-16 2019-02-05 翟红鹰 Obtain method, system and the computer readable storage medium of block chain data
CN109409912A (en) * 2018-10-30 2019-03-01 黄子骞 A kind of anti-fake method for preventing goods from altering of product traceability based on block chain
CN109544354A (en) * 2018-10-19 2019-03-29 中国平安人寿保险股份有限公司 Settlement method, electronic device and readable storage medium storing program for executing are protected again based on block chain
CN109815649A (en) * 2019-03-26 2019-05-28 苏州速链数字科技有限公司 System for numeral copyright management based on block chain
CN110009356A (en) * 2019-04-16 2019-07-12 北京艾摩瑞策科技有限公司 A kind of business datum cochain method and its system based on block chain
CN110247965A (en) * 2019-06-13 2019-09-17 食品安全与营养(贵州)信息科技有限公司 A kind of storage method and system of the IoT data-storage system based on block chain
CN110276602A (en) * 2018-03-13 2019-09-24 焦臻桢 Block chain Classifying Consensus method, system and the electronic equipment of internet of things oriented
CN110288348A (en) * 2019-06-20 2019-09-27 中国传媒大学 Based on the block chain common recognition method and system for propagating liveness and assets proof
CN110472116A (en) * 2018-04-28 2019-11-19 腾讯科技(深圳)有限公司 Alliance's block chain business network and its federation node, product data storage method
CN110796452A (en) * 2019-08-07 2020-02-14 南京中诚区块链研究院有限公司 Supply chain traceability system and method based on block chain and big data
CN111131328A (en) * 2020-01-09 2020-05-08 周钰 Safe financial settlement method and system for block chain
CN111327490A (en) * 2020-01-20 2020-06-23 腾讯科技(深圳)有限公司 Byzantine fault-tolerant detection method of block chain and related device
CN111447000A (en) * 2019-01-16 2020-07-24 鉴真防务技术(上海)有限公司 Unmanned aerial vehicle flight behavior analysis method and encryption system based on block chain technology
CN112291274A (en) * 2020-12-24 2021-01-29 南京骄扬软件科技有限公司 Decentralized new retail intelligent system and connection method thereof
CN112528308A (en) * 2020-12-18 2021-03-19 临沂呆马区块链网络科技有限公司 Artificial intelligence big data sharing system and method based on block chain
CN112651055A (en) * 2021-02-07 2021-04-13 昆明理工大学 Data sharing method based on PoA improvement and intelligent contract technology
CN113193992A (en) * 2021-04-16 2021-07-30 宁波图灵奇点智能科技有限公司 Block chain platform, method and device, computer equipment and storage medium
EP3850789A4 (en) * 2018-09-12 2022-06-15 LiveRamp, Inc. Consent provenance and compliance tracking over a complex consumer data supply chain using blockchain distributed ledger

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103714465A (en) * 2013-12-24 2014-04-09 南京邮电大学 Intelligent retail market construction method based on radio frequency identification label and sensor network
WO2014172757A1 (en) * 2013-05-31 2014-10-30 Between The Flags (Aust) Pty Ltd A retail system
CN105913562A (en) * 2016-04-29 2016-08-31 邓迪 Vending machine system based on block chain and data processing method
CN106503098A (en) * 2016-10-14 2017-03-15 中金云金融(北京)大数据科技股份有限公司 It is built in the block chain cloud service frame system of Paas service layers

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2014172757A1 (en) * 2013-05-31 2014-10-30 Between The Flags (Aust) Pty Ltd A retail system
CN103714465A (en) * 2013-12-24 2014-04-09 南京邮电大学 Intelligent retail market construction method based on radio frequency identification label and sensor network
CN105913562A (en) * 2016-04-29 2016-08-31 邓迪 Vending machine system based on block chain and data processing method
CN106503098A (en) * 2016-10-14 2017-03-15 中金云金融(北京)大数据科技股份有限公司 It is built in the block chain cloud service frame system of Paas service layers

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
汪传雷等: "基于区块链的供应链物流信息生态圈模型", 《情报理论与实践》 *

Cited By (45)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108269064A (en) * 2018-01-26 2018-07-10 广东工业大学 A kind of Collaborative Manufacturing information sharing method based on intelligent contract
CN108305083B (en) * 2018-02-11 2020-08-28 张国忠 Commodity tracing method and system based on block chain
CN108305083A (en) * 2018-02-11 2018-07-20 张国忠 A kind of commodity source tracing method and system based on block chain
CN108280695A (en) * 2018-02-22 2018-07-13 苏州优千网络科技有限公司 Coupon information system and its processing method based on block chain
CN108549819A (en) * 2018-03-13 2018-09-18 中国地质大学(武汉) A kind of bidding processing method and system based on block chain
CN110276602A (en) * 2018-03-13 2019-09-24 焦臻桢 Block chain Classifying Consensus method, system and the electronic equipment of internet of things oriented
CN110276602B (en) * 2018-03-13 2023-09-05 焦臻桢 Block chain hierarchical consensus method and system for Internet of things and electronic equipment
CN110472116A (en) * 2018-04-28 2019-11-19 腾讯科技(深圳)有限公司 Alliance's block chain business network and its federation node, product data storage method
CN108596622A (en) * 2018-05-02 2018-09-28 北京链链信息技术有限公司 The shared system and method for Transaction Information
CN108650328A (en) * 2018-05-22 2018-10-12 河海大学常州校区 The block catenary system of data information record and storage in a kind of cloud service platform
CN108965247A (en) * 2018-06-04 2018-12-07 上海交通大学 A kind of threat information exchange shared system and method based on block chain
CN108717606A (en) * 2018-06-08 2018-10-30 北京工商大学 A kind of food security multiplicity of interests main body credit assessment method based on block chain
CN108961526A (en) * 2018-06-13 2018-12-07 郑州云海信息技术有限公司 A kind of ballot system based on block chain technology
CN108965399A (en) * 2018-06-25 2018-12-07 百度在线网络技术(北京)有限公司 Execution method, apparatus, equipment and the storage medium of intelligent contract
CN108989019A (en) * 2018-06-27 2018-12-11 天闻数媒科技(湖南)有限公司 Content resource safety system based on block chain technology
CN108694584B (en) * 2018-07-10 2021-11-30 湖北大学知行学院 Grain safety tracing and exciting method and system based on block chain
CN108694584A (en) * 2018-07-10 2018-10-23 武汉星云智慧科技有限公司 A kind of method and system that the grain security based on block chain is traced to the source with excitation
CN109067516A (en) * 2018-07-20 2018-12-21 杭州复杂美科技有限公司 A kind of drawing method, common recognition method, equipment and storage medium
CN109118168A (en) * 2018-07-20 2019-01-01 北京开普云信息科技有限公司 A kind of government affairs service process traceability system and its construction method based on block chain mechanism
CN109120437A (en) * 2018-08-01 2019-01-01 昧来网络科技(上海)有限公司 The artificial intelligence block cloud ecosystem based on DABFT common recognition mechanism
CN109120437B (en) * 2018-08-01 2021-06-15 上海幼鸢网络科技有限公司 Artificial intelligence block cloud ecosystem based on DABFT consensus mechanism
CN109063179A (en) * 2018-08-23 2018-12-21 靳芯 The extended method and relevant apparatus of block platform chain
EP3850789A4 (en) * 2018-09-12 2022-06-15 LiveRamp, Inc. Consent provenance and compliance tracking over a complex consumer data supply chain using blockchain distributed ledger
CN109102342A (en) * 2018-09-17 2018-12-28 广东成高成数据集成有限公司 Based on block chain and data integration, that is, application system of artificial intelligence, method of servicing
CN109308410A (en) * 2018-10-16 2019-02-05 翟红鹰 Obtain method, system and the computer readable storage medium of block chain data
CN109544354A (en) * 2018-10-19 2019-03-29 中国平安人寿保险股份有限公司 Settlement method, electronic device and readable storage medium storing program for executing are protected again based on block chain
CN109409912A (en) * 2018-10-30 2019-03-01 黄子骞 A kind of anti-fake method for preventing goods from altering of product traceability based on block chain
CN109246248A (en) * 2018-11-02 2019-01-18 清华大学 The credible and secure shared system of data and method based on block chain technology
CN111447000A (en) * 2019-01-16 2020-07-24 鉴真防务技术(上海)有限公司 Unmanned aerial vehicle flight behavior analysis method and encryption system based on block chain technology
CN109815649A (en) * 2019-03-26 2019-05-28 苏州速链数字科技有限公司 System for numeral copyright management based on block chain
CN110009356A (en) * 2019-04-16 2019-07-12 北京艾摩瑞策科技有限公司 A kind of business datum cochain method and its system based on block chain
WO2020211462A1 (en) * 2019-04-16 2020-10-22 北京艾摩瑞策科技有限公司 Blockchain-based service data chaining method and system
CN110247965A (en) * 2019-06-13 2019-09-17 食品安全与营养(贵州)信息科技有限公司 A kind of storage method and system of the IoT data-storage system based on block chain
CN110288348B (en) * 2019-06-20 2021-01-26 中国传媒大学 Block chain consensus method and system based on propagation liveness and asset certification
CN110288348A (en) * 2019-06-20 2019-09-27 中国传媒大学 Based on the block chain common recognition method and system for propagating liveness and assets proof
CN110796452A (en) * 2019-08-07 2020-02-14 南京中诚区块链研究院有限公司 Supply chain traceability system and method based on block chain and big data
CN111131328A (en) * 2020-01-09 2020-05-08 周钰 Safe financial settlement method and system for block chain
CN111327490A (en) * 2020-01-20 2020-06-23 腾讯科技(深圳)有限公司 Byzantine fault-tolerant detection method of block chain and related device
CN111327490B (en) * 2020-01-20 2021-01-29 腾讯科技(深圳)有限公司 Byzantine fault-tolerant detection method of block chain and related device
CN112528308A (en) * 2020-12-18 2021-03-19 临沂呆马区块链网络科技有限公司 Artificial intelligence big data sharing system and method based on block chain
CN112291274A (en) * 2020-12-24 2021-01-29 南京骄扬软件科技有限公司 Decentralized new retail intelligent system and connection method thereof
CN112291274B (en) * 2020-12-24 2021-03-12 南京骄扬软件科技有限公司 Decentralized new retail intelligent system and connection method thereof
CN112651055A (en) * 2021-02-07 2021-04-13 昆明理工大学 Data sharing method based on PoA improvement and intelligent contract technology
CN112651055B (en) * 2021-02-07 2023-10-24 昆明理工大学 Data sharing method based on PoA improvement and intelligent contract technology
CN113193992A (en) * 2021-04-16 2021-07-30 宁波图灵奇点智能科技有限公司 Block chain platform, method and device, computer equipment and storage medium

Similar Documents

Publication Publication Date Title
CN107547529A (en) A kind of method, system that shared retail is realized based on block chain
Jakšič et al. Relationship banking and information technology: The role of artificial intelligence and FinTech
US11188977B2 (en) Method for creating commodity assets from unrefined commodity reserves utilizing blockchain and distributed ledger technology
CN110199308B (en) Computer-implemented system and method for generating and extracting user-related data stored on a blockchain
US20200058071A1 (en) Least decentralized fund trading system and method thereof
Mohapatra et al. Migrant remittances in Africa: An overview
CN106530088A (en) Method for trading stock product based on block chain security nodes
CN109783653B (en) Knowledge graph management and tracing query system based on block chain technology
CN110163740A (en) A kind of credit financing method and device
CN108335179A (en) Staple commodities method of commerce, apparatus and system
KR20200121114A (en) Block chain-based crytography donation server and donation method without limitation to donation target
Stepanova et al. Review of Decentralized Finance Applications and Their Total Value Locked.
CN109859046A (en) One kind being based on block chain technology big data wisdom operation management system
CN109146401A (en) Finishing service transacting method, system, equipment and medium based on block chain technology
KR20200091237A (en) Animal products traceability system using blockchain technology
Bidabad et al. IT role in fulfillment of Profit & Loss Sharing (PLS) mechanism
CN110969530A (en) Real estate transaction system and method based on super account book
ALI et al. The potential of Islamic financial institutions in promoting small and medium enterprises (SMEs) in Ethiopia
Stanton et al. Securitization networks and endogenous financial norms in us mortgage markets
CN109410084A (en) The mobile payment control method and agricultural trade system of agricultural trade system based on e-commerce
CN108596763A (en) A kind of method of commerce and device based on block chain
Liu A novel supply chain model based on smart contract
CN101625747A (en) Merchant redounding-based method and merchant redounding-based system for electronic transaction
CN102411758A (en) Import and export material trading financial service system and data integration exchange method thereof
Janulek Tokenization as a Form of Payment and Valuation Professional, Scientific, Specialist and Technical Activities

Legal Events

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

Application publication date: 20180105