CN108829749A - A kind of object association sealed storage method based on block chain - Google Patents
A kind of object association sealed storage method based on block chain Download PDFInfo
- Publication number
- CN108829749A CN108829749A CN201810510888.1A CN201810510888A CN108829749A CN 108829749 A CN108829749 A CN 108829749A CN 201810510888 A CN201810510888 A CN 201810510888A CN 108829749 A CN108829749 A CN 108829749A
- Authority
- CN
- China
- Prior art keywords
- block chain
- article
- storage method
- transaction
- program
- 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
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F21/00—Security arrangements for protecting computers, components thereof, programs or data against unauthorised activity
- G06F21/60—Protecting data
- G06F21/64—Protecting data integrity, e.g. using checksums, certificates or signatures
-
- 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
Abstract
The invention discloses a kind of, and the object based on block chain is associated with sealed storage method, includes the following steps:Upper-layer service system and bottom block chain establish the movement of connection;According to the article that user provides, operation system encapsulated object JSON string is passed to block chain program;Block chain program is by business datum cochain;The Hash of transaction and block where returning an object value;Operation layer by call block chain program provide rpc inquire the object whether cochain.Structure of the invention is reasonable, and data are easy to encapsulate, and data efficient storage, light cochain can not be distorted;Any article can use the object structure, and block chain is then written after formatting, deposits card for the later period and provides foundation, and the compression algorithms such as snappy, zip, lz4 can be used and carry out compression storage, save space.
Description
Technical field
The present invention relates to block chain field, specifically a kind of object based on block chain is associated with sealed storage method.
Background technique
Block chain is the novel of the computer technologies such as Distributed Storage, point-to-point transmission, common recognition mechanism, Encryption Algorithm
Application model.So-called common recognition mechanism is that the mathematics calculation established between different nodes and trust, obtain equity is realized in block catenary system
Method.
Block chain (Blockchain) is a key concept of bit coin, it is substantially the data of a decentralization
Library, while the Floor layer Technology as bit coin.Block chain is a string using the associated data block generated of cryptography method, each
The information of a bit coin network trading is contained in a data block, under verifying the validity (anti-fake) of its information and generating
One block.
Block chain technology is distributed account book technology, is a kind of internet database technology, its main feature is that decentralization, public affairs
It opens transparent, everyone is allowed to each may participate in data-base recording.The block chain program of major corporate facility exploitation is only supported to issue at present
Token, the transfer of virtual machine digital cash, without actual application.Such as the tracking of the life cycle to some item object
Record, and record the association between each item object and how to be stored on block chain.
Therefore, for this status, there is an urgent need to develop a kind of, and the object based on block chain is associated with sealed storage method, with
Overcome the shortcomings of in currently practical application.
Summary of the invention
The purpose of the present invention is to provide a kind of, and the object based on block chain is associated with sealed storage method, to solve above-mentioned back
The problem of being proposed in scape technology.
To achieve the above object, the present invention provides the following technical solutions:
A kind of object association sealed storage method based on block chain, includes the following steps:
S10:Upper-layer service system and bottom block chain establish the movement of connection;
S20:According to the article that user provides, operation system encapsulated object JSON string is passed to block chain program;
S30:Block chain program is by business datum cochain;
S40:The Hash of transaction and block where returning an object value;
S50:Operation layer by call block chain program provide rpc inquire the object whether cochain.
As a further solution of the present invention:In step slo, the movement for establishing connection is endowed service and bit coin journey
Sequence runs operation system and bottom block chain program, then establishes socket communication by tcp/ip agreement, and connection management is complete
Finish.
As a further solution of the present invention:In step S20, according to the item object that user provides, it is in operation layer
This article application one unique Object ID, and by the longitude and latitude of article, the time, key message, article state tag,
Third party's URL information is formatted into a JSON string, is gone here and there by socket connection transmission JSON and gives the processing of bottom block chain program.
As a further solution of the present invention:In step s 30, after block chain program receives JSON string, it is solved
Analysis, is filled into corresponding object structure, and item object is saved in corresponding trading object, and trading by creation transaction
When signature, item object Hash is signed together, guarantee can not distorting for transaction, transaction broadcast is packaged to mine node is dug
To block chain.
As a further solution of the present invention:In step s 40, article is after 7 block confirmations, by the article pair
As place transaction and block Hash return to operation layer by socket.
Compared with prior art, the beneficial effects of the invention are as follows:
The object based on block chain is associated with sealed storage method, and structurally reasonable, data are easy to encapsulate, and data efficient is deposited
Storage, light cochain can not be distorted;Any article can use the object structure, and block chain is then written after formatting,
Card is deposited for the later period, foundation is provided, and the compression algorithms such as snappy, zip, lz4 can be used and carry out compression storage, save space.
Detailed description of the invention
Fig. 1 is the flow chart of the primary endowed association sealed storage method of object in this method embodiment.
Specific embodiment
Following will be combined with the drawings in the embodiments of the present invention, and technical solution in the embodiment of the present invention carries out clear, complete
Site preparation description, it is clear that described embodiments are only a part of the embodiments of the present invention, instead of all the embodiments.It is based on
Embodiment in the present invention, it is obtained by those of ordinary skill in the art without making creative efforts every other
Embodiment shall fall within the protection scope of the present invention.
Fig. 1 is the flow chart (given article is paid endowed) of primary object association sealed storage in one embodiment, this method
Include the following steps:
S10:Upper-layer service system and bottom block chain establish the movement of connection;
Such as:Endowed service and bit coin program, the specific steps are that:Operation system and bottom block chain program are run,
Then socket communication is established by tcp/ip agreement, connection management finishes.
S20:According to the article that user provides, operation system encapsulated object JSON string is passed to block chain program;
The specific steps are that:It is this article application one unique in operation layer according to the item object that user provides
Object ID, and by the longitude and latitude of article, time, key message, the state tag (primary Flag=0) of article, third party
The information formats such as URL are melted into a JSON string, are gone here and there by socket connection transmission JSON and give the processing of bottom block chain program.
S30:Block chain program is by business datum cochain;
After block chain program receives JSON string, it is parsed, is filled into corresponding object structure, creation transaction,
Item object is saved in corresponding trading object, and when trading signature, item object Hash is signed together, protected
Card transaction can not distort, and transaction broadcast is packed into block chain to mine node is dug.
S40:The Hash of transaction and block where returning an object value;
Article is returned after 7 block confirmations, by transaction where the item object and block Hash by socket
To operation layer.
S50:Operation layer by call block chain program provide rpc inquire the object whether cochain.
Using object oriented language (c++), objectification description carried out to article, each article it is endowed by unified tax
Code service creation, and the movements such as the fractionation of article, packing, the fruits, conversion are marked using corresponding label, if at this
There is new article to generate during a, apply it is endowed, then by this series of information by JSON Object Markup Language by this
A little information are formatted and are stored in corresponding field, are stored in transaction, dig mine finally by miner and are packaged write area
On block chain, behind the Hash return recording of transaction and block where this object is got off, provide foundation for later retrieval, this
A little data can configure whether compress when disk is written, and make full use of to memory space.
Explanation of nouns:
【1】It is primary endowed:It is endowed to an earnest product.
【2】It polymerize endowed:Endowed more articles aggregate into new article and endowed (packing and binding).
【3】It splits endowed:Endowed article splits into multiple new articles and endowed, it can be understood as the inverse process of polymerization.
【4】The fruits are endowed:The endowed article fruits generate new article.Example:Chicken raw egg.
【5】It converts endowed:Endowed article is converted into other articles.Example:Egg hatching goes out chicken.
Design principle-is done based on bit coin block chain to be extended, and extended field has brief information for user after simply decoding
It distinguishes, relationship classification between object object;
It is endowed to give article pair by Flag=0;
Flag=1, endowed article position circulation/state change;
Flag=2, endowed article right circulation;
Flag=3, endowed more articles aggregate into new article and endowed (packing and binding);
Flag=4, endowed article split into multiple new articles and endowed, it can be understood as 3 inverse process;
Flag=5, the article fruits generate new article;
Flag=6/7, single object association/de-association, article paste waybill/interim container etc., and waybill change in location is equivalent
Change in article position;
Flag=8, article conversion is endowed, and egg hatches chicken.
Needing to download the block chain code (bitcoin) of a open source, oneself defines a class and is used for packaged articles object,
Then structure of deal is found, increases the object of object encapsulation in its attribute, and increases type of transaction, if it is general transaction,
This object can not create, and after increasing these attributes, the cryptographic Hash entirely traded is varied by, and wound generation block needs again
It calculates, then when creation transaction, needs to sign to it, prevent malicious node from attacking.
The object based on block chain is associated with sealed storage method, and structurally reasonable, data are easy to encapsulate, and data efficient is deposited
Storage, light cochain can not be distorted;Any article can use the object structure, and block chain is then written after formatting,
Card is deposited for the later period, foundation is provided, and the compression algorithms such as snappy, zip, lz4 can be used and carry out compression storage, save space.
The above are merely the preferred embodiment of the present invention, it is noted that for those skilled in the art, not
Under the premise of being detached from present inventive concept, several modifications and improvements can also be made, these also should be considered as protection model of the invention
It encloses, these all will not influence the effect and patent practicability that the present invention is implemented.
Claims (5)
1. a kind of object based on block chain is associated with sealed storage method, which is characterized in that include the following steps:
S10:Upper-layer service system and bottom block chain establish the movement of connection;
S20:According to the article that user provides, operation system encapsulated object JSON string is passed to block chain program;
S30:Block chain program is by business datum cochain;
S40:The Hash of transaction and block where returning an object value;
S50:Operation layer by call block chain program provide rpc inquire the object whether cochain.
2. the object according to claim 1 based on block chain is associated with sealed storage method, which is characterized in that in step
In S10, the movement for establishing connection is endowed service and bit coin program, runs operation system and bottom block chain program, then
Socket communication is established by tcp/ip agreement, connection management finishes.
3. the object according to claim 1 based on block chain is associated with sealed storage method, which is characterized in that in step
It is this article application one unique Object ID in operation layer according to the item object that user provides, and by article in S20
Longitude and latitude, time, key message, the state tag of article, third party's URL information be formatted into a JSON string, pass through
Socket connection transmission JSON, which goes here and there, gives the processing of bottom block chain program.
4. the object according to claim 1 based on block chain is associated with sealed storage method, which is characterized in that in step
In S30, after block chain program receives JSON string, it is parsed, is filled into corresponding object structure, creation transaction will
Item object is saved in corresponding trading object, and when trading signature, and item object Hash is signed together, is guaranteed
Transaction can not distort, and transaction broadcast is packed into block chain to mine node is dug.
5. the object according to claim 1 based on block chain is associated with sealed storage method, which is characterized in that in step
In S40, article is returned to after 7 block confirmations, by transaction where the item object and block Hash by socket
Operation layer.
Priority Applications (2)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201810510888.1A CN108829749A (en) | 2018-05-24 | 2018-05-24 | A kind of object association sealed storage method based on block chain |
PCT/CN2019/077931 WO2019223401A1 (en) | 2018-05-24 | 2019-03-13 | Blockchain-based associated object packaging and storage method |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201810510888.1A CN108829749A (en) | 2018-05-24 | 2018-05-24 | A kind of object association sealed storage method based on block chain |
Publications (1)
Publication Number | Publication Date |
---|---|
CN108829749A true CN108829749A (en) | 2018-11-16 |
Family
ID=64145518
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201810510888.1A Pending CN108829749A (en) | 2018-05-24 | 2018-05-24 | A kind of object association sealed storage method based on block chain |
Country Status (2)
Country | Link |
---|---|
CN (1) | CN108829749A (en) |
WO (1) | WO2019223401A1 (en) |
Cited By (11)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
WO2019223401A1 (en) * | 2018-05-24 | 2019-11-28 | 深圳前海益链网络科技有限公司 | Blockchain-based associated object packaging and storage method |
WO2020147563A1 (en) * | 2019-01-18 | 2020-07-23 | 阿里巴巴集团控股有限公司 | Method and device for service file storage based on blockchain |
CN111934998A (en) * | 2020-09-25 | 2020-11-13 | 支付宝(杭州)信息技术有限公司 | Message transmission method and device |
US11218402B2 (en) | 2020-09-25 | 2022-01-04 | Alipay (Hangzhou) Information Technology Co., Ltd. | Blockchain systems, and message transmission methods and apparatuses |
US11233849B2 (en) | 2020-09-25 | 2022-01-25 | Alipay (Hangzhou) Information Technology Co., Ltd. | Message transmission methods and apparatuses |
US11316921B2 (en) | 2020-09-25 | 2022-04-26 | Alipay (Hangzhou) Information Technology Co., Ltd. | Block synchronization methods and apparatuses |
US11336558B2 (en) | 2020-09-25 | 2022-05-17 | Alipay (Hangzhou) Information Technology Co., Ltd. | Message transmission methods and apparatuses |
US11388229B2 (en) | 2020-09-25 | 2022-07-12 | Alipay (Hangzhou) Information Technology Co., Ltd. | Methods and apparatuses for transmitting messages |
US11445016B2 (en) | 2020-09-25 | 2022-09-13 | Alipay (Hangzhou) Information Technology Co., Ltd. | Methods and apparatuses for transmitting messages |
US11722318B2 (en) | 2020-09-25 | 2023-08-08 | Alipay (Hangzhou) Information Technology Co., Ltd. | Message transmission methods and apparatuses |
CN117251889A (en) * | 2023-11-13 | 2023-12-19 | 腾讯科技(深圳)有限公司 | Block chain consensus method, related device and medium |
Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN106339875A (en) * | 2016-08-25 | 2017-01-18 | 江苏通付盾科技有限公司 | Operation record review method and operation record review device based on public block chain |
CN106357612A (en) * | 2016-08-25 | 2017-01-25 | 江苏通付盾科技有限公司 | Method and device for review of authentication records based on public block chains |
CN106991164A (en) * | 2017-03-31 | 2017-07-28 | 北京京东金融科技控股有限公司 | Method, device and electronic equipment that finance data is handled are used for based on block chain |
CN107395353A (en) * | 2017-04-24 | 2017-11-24 | 阿里巴巴集团控股有限公司 | A kind of block chain common recognition method and device |
Family Cites Families (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN104320262B (en) * | 2014-11-05 | 2017-07-21 | 中国科学院合肥物质科学研究院 | The method and system of client public key address binding, retrieval and the verification of account book technology are disclosed based on encryption digital cash |
CN106230852A (en) * | 2016-08-29 | 2016-12-14 | 中国银联股份有限公司 | Financial service application system based on ether mill block chain technology |
CN108829749A (en) * | 2018-05-24 | 2018-11-16 | 深圳前海益链网络科技有限公司 | A kind of object association sealed storage method based on block chain |
-
2018
- 2018-05-24 CN CN201810510888.1A patent/CN108829749A/en active Pending
-
2019
- 2019-03-13 WO PCT/CN2019/077931 patent/WO2019223401A1/en active Application Filing
Patent Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN106339875A (en) * | 2016-08-25 | 2017-01-18 | 江苏通付盾科技有限公司 | Operation record review method and operation record review device based on public block chain |
CN106357612A (en) * | 2016-08-25 | 2017-01-25 | 江苏通付盾科技有限公司 | Method and device for review of authentication records based on public block chains |
CN106991164A (en) * | 2017-03-31 | 2017-07-28 | 北京京东金融科技控股有限公司 | Method, device and electronic equipment that finance data is handled are used for based on block chain |
CN107395353A (en) * | 2017-04-24 | 2017-11-24 | 阿里巴巴集团控股有限公司 | A kind of block chain common recognition method and device |
Cited By (14)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
WO2019223401A1 (en) * | 2018-05-24 | 2019-11-28 | 深圳前海益链网络科技有限公司 | Blockchain-based associated object packaging and storage method |
WO2020147563A1 (en) * | 2019-01-18 | 2020-07-23 | 阿里巴巴集团控股有限公司 | Method and device for service file storage based on blockchain |
US11336558B2 (en) | 2020-09-25 | 2022-05-17 | Alipay (Hangzhou) Information Technology Co., Ltd. | Message transmission methods and apparatuses |
US11218402B2 (en) | 2020-09-25 | 2022-01-04 | Alipay (Hangzhou) Information Technology Co., Ltd. | Blockchain systems, and message transmission methods and apparatuses |
US11233849B2 (en) | 2020-09-25 | 2022-01-25 | Alipay (Hangzhou) Information Technology Co., Ltd. | Message transmission methods and apparatuses |
US11316921B2 (en) | 2020-09-25 | 2022-04-26 | Alipay (Hangzhou) Information Technology Co., Ltd. | Block synchronization methods and apparatuses |
CN111934998A (en) * | 2020-09-25 | 2020-11-13 | 支付宝(杭州)信息技术有限公司 | Message transmission method and device |
US11388229B2 (en) | 2020-09-25 | 2022-07-12 | Alipay (Hangzhou) Information Technology Co., Ltd. | Methods and apparatuses for transmitting messages |
US11445016B2 (en) | 2020-09-25 | 2022-09-13 | Alipay (Hangzhou) Information Technology Co., Ltd. | Methods and apparatuses for transmitting messages |
US11463278B2 (en) | 2020-09-25 | 2022-10-04 | Alipay (Hangzhou) Information Technology Co., Ltd. | Message transmission methods and apparatuses |
US11722318B2 (en) | 2020-09-25 | 2023-08-08 | Alipay (Hangzhou) Information Technology Co., Ltd. | Message transmission methods and apparatuses |
US11924276B2 (en) | 2020-09-25 | 2024-03-05 | Alipay (Hangzhou) Information Technology Co., Ltd. | Methods and apparatuses for transmitting messages |
CN117251889A (en) * | 2023-11-13 | 2023-12-19 | 腾讯科技(深圳)有限公司 | Block chain consensus method, related device and medium |
CN117251889B (en) * | 2023-11-13 | 2024-03-01 | 腾讯科技(深圳)有限公司 | Block chain consensus method, related device and medium |
Also Published As
Publication number | Publication date |
---|---|
WO2019223401A1 (en) | 2019-11-28 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN108829749A (en) | A kind of object association sealed storage method based on block chain | |
CN111507709B (en) | Data tracing system | |
Mukhopadhyay | Ethereum Smart Contract Development: Build blockchain-based decentralized applications using solidity | |
US10489864B1 (en) | Systems and methods for generating customer transaction test data that simulates real world customer transaction data | |
CN112686671B (en) | Intelligent contract deployment method, device, equipment and medium based on block chain | |
JP2022509788A (en) | Systems and methods for efficient and secure processing, access, and transmission of data over blockchain networks | |
CN111967610A (en) | Block chain-based federal learning incentive method, device, equipment and storage medium | |
CN110930152B (en) | Data processing method based on block chain and related equipment | |
US11882205B2 (en) | Systems for multi-blockchain, multi-token interoperability via common blockchain integration | |
CN110110005A (en) | The management-control method of key message basic data assets based on block chain | |
CN114399320B (en) | Bill supply chain anti-counterfeiting traceability system and method based on block chain NFT | |
CN109918375A (en) | It is a kind of based on block chain and the big text of distributed storage storage, index and search method | |
CN108829691A (en) | A kind of rural area electronic commerce date storage method | |
CN111915301A (en) | Data processing method and device based on block chain, electronic equipment and readable medium | |
CN112561510A (en) | Payment system, method, device, equipment and storage medium | |
CN101189594B (en) | Method and system for mapping between components of a packaging model and features of a physical representation of a package | |
CN111464658A (en) | Tea leaf credible tracing system based on block chain and use method thereof | |
CN106599241A (en) | Big data visual management method for GIS software | |
Karode et al. | Performance analysis of trustworthy online review system using blockchain | |
CN106156356A (en) | OAIS Information encapsulation method and system based on XML | |
US20230205761A1 (en) | Method of creating a distributed ledger for a blockchain via encapsulation of off-chain data | |
Guo | Application of blockchain based on deep learning algorithm in enterprise Internet of Things system | |
Vijayalakshmi et al. | Revamp perception of bitcoin using cognizant Merkle | |
CN112115235A (en) | Entity attribute data query and configuration method, device and server | |
Luhanga | WHY BUSINESS SCHOOLS IN TANZANIA SHOULD TEACH BLOCK CHAIN TECHNOLOGY |
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: 20181116 |