CN105741095A - Dynamic compression and access method of block chain - Google Patents

Dynamic compression and access method of block chain Download PDF

Info

Publication number
CN105741095A
CN105741095A CN201610060080.9A CN201610060080A CN105741095A CN 105741095 A CN105741095 A CN 105741095A CN 201610060080 A CN201610060080 A CN 201610060080A CN 105741095 A CN105741095 A CN 105741095A
Authority
CN
China
Prior art keywords
block
compression
block chain
digital cash
access method
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
CN201610060080.9A
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.)
Deng Di
Original Assignee
彭军红
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 彭军红 filed Critical 彭军红
Priority to CN201610060080.9A priority Critical patent/CN105741095A/en
Publication of CN105741095A publication Critical patent/CN105741095A/en
Pending legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06QINFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
    • G06Q20/00Payment architectures, schemes or protocols
    • G06Q20/08Payment architectures
    • G06Q20/10Payment architectures specially adapted for electronic funds transfer [EFT] systems; specially adapted for home banking systems

Abstract

The invention relates to digital cash, such as Bitcoin wallet software, in particular to a dynamic compression and access method of a block chain. The dynamic compression and access method comprises the following steps: operating a digital cash wallet program; when new block data is written into the block chain in an operation process of the digital cash wallet program, dynamically compressing the block data; creating identification information on the compressed block data; and then, when the digital cash wallet program is operated, storing the compressed block which creates the identification information into a block chain database. In the operation process of the digital cash wallet program, the block is dynamically decompressed through an embedded compression function, meanwhile, the compressed block is decompressed through the embedded decompression function, the volume of the whole block chain data becomes small under a premise that data is not damaged, and a storage space is greatly saved; and in addition, the transmission speed of the block chain data is improved, and transmission time is shortened.

Description

A kind of block chain dynamic compression access method
Technical field
The present invention relates to digital cash such as bit coin wallet class software, specifically a kind of data processing method when digital cash wallet program is run.
Background technology
Existing enciphered digital currency is current main flow enciphered digital currency bit coin such as, is the digital cash of a kind of a kind of decentration attribute integrating P2P, the Internet, encryption principle.In enciphered digital currency wallet program, the money of form of ownership is all agreement (Allformsofmoneyareprotocol), the formal description of the rule that namely all of money must comply with before being traded.If bit coin is exactly the agreement of a kind of higher form, it utilizes Internet technology and cryptography design, and cryptographic application ensure that the safety of payment system.So, bit coin does not have too big difference with other currency in this respect.What bit coin was unique is a bit its general ledger system (ledgersystem) is decentration, and other currency has a central office to issue currency.
First digital cash user installs this digital cash wallet program on computers, and this Program Generating wallet such as ratio treats that coin is saved in computer with wallet.dat form.Wallet generates multiple bit coin addresses, and address is that the account of external disclosure is for receiving the bit coin that others sends.Just there are the corresponding private key in this address and PKI in wallet Program Generating enciphered digital currency address, and current private key and PKI are included in wallet archives (wallet.dat).In enciphered digital currency, private key (privatekey) is stored in a string information in wallet.In bit coin, private key is just saved in wallet archives wallet.dat.The effect of private key is used to produce PKI (this PKI can derive bit coin address), and is used for the digital signature transacted business.This signature ensure that the reliability of transaction, is not tampered with, undeniable integrity.All of transaction record all can be broadcast to customer group, and is confirmed by the whole network in the next stipulated time, and this process is also called digs ore deposit (Mining).
At present, disclosed in the transaction of all enciphered digital currency is all, in bit coin, All Activity confirms just to be integrated into once the whole network " total account book is disclosed " (sharedpublicledger), it is again block chain (Blockchain), the surplus (Balance) of each wallet independent record, is all through the Transaction Information of block chain and calculates owner and take in the surplus of payment.Block chain is through encryption and learns and integrate according to transaction record and time sequencing." transaction of bit coin " is exactly that the value between each bit coin wallet turns money record and is incorporated in block chain.But, along with constantly carrying out of transaction, the data of block chain are inevitable more and more huger, and this brings inconvenience to user.
Summary of the invention
For above-mentioned technical problem, the present invention provide a kind of the block chain of digital cash wallet program can be carried out dynamic compression method, provide the user facility.
This invention address that the technical scheme that above-mentioned technical problem adopts is: a kind of block chain dynamic compression access method, it comprises the following steps:
(1) digital cash wallet program is run;
(2), when having new block data write block chain in digital cash wallet program operation process, this block data is carried out dynamic compression;
(3) on the block of compression, identification information is created;
(4) then when digital cash wallet program is run, above-mentioned establishment have the block data of the compression of identification information be stored in block chain data base.
As preferably, when needing to read certain block in block chain in digital cash wallet program operation process, dynamically decompressing this block according to identification information.
As preferably, in digital cash wallet program, block data is compressed by embedded compression function.
As preferably, preserving embedded described compression function in the function of block in digital cash wallet program.
As preferably, the block of described compression creates identification information by described compression function.
As preferably, described identification information includes the size before block compression and dictionary size.
As preferably, in digital cash wallet program, the block creating the compression having identification information is decompressed by embedded decompression function.
As preferably, reading embedded described decompression function in the function of block in digital cash wallet program.
As preferably, the block of compression is decompressed by described decompression function according to identification information.
As can be known from the above technical solutions, block is carried out dynamic compression by embedded compression function by the present invention in the running of digital cash wallet program, by embedded decompression function, the block of compression is decompressed simultaneously, under ensureing the premise not damaging data, not only make whole block chain data capacity diminish, be greatly saved memory space;And improve the transmission speed of block chain data, shorten the transmission time.
Detailed description of the invention
The present invention is described more detail below, and illustrative examples and explanation in this present invention are used for explaining the present invention, but not as a limitation of the invention.
A kind of block chain dynamic compression access method, it comprises the following steps:
Run digital cash wallet program, this program realize such function: for bit coin, if B want pay 100 bit coin to C, then B not only need on trading card indicate the amount of money, and need indicate these 100 bit coin source.If the 100 of B bit coin are in fact from A, being that B passes through transaction and 0 obtains, transaction 0 here has already been through the certification of the whole network user, is saved in the block chain data base of digital cash wallet program of user computer.The information filled on trading card for completing transaction 1, B to need includes: the source of 100 bit coin, here for the ID of trading card 0;The PKI of C, namely the bit coin gathering address of C;Then the PKI of the content of trading card 0 and C is inputted hash function, obtain string number.B this string numeral of the encrypted private key of oneself, is placed in trading card 1 as digital signature.C is after receiving trading card 1, it is possible to finds trading card 0 by the ID wherein deposited, and obtains the PKI of B.C can use this PKI that the digital signature in trading card 1 is decrypted.Meanwhile, C the content of the PKI of oneself and trading card 0, can input hash function in the same way, and the result of the numeral obtained with digital signature deciphering is compared, if comparison success, then concluding the business successfully, transaction record will be saved in block chain.
When digital cash wallet program operation process has new block data write block chain, this block data is carried out dynamic compression;Preserve embedded compression function in the function of block specifically in digital cash wallet program this block data is compressed, in WriteToDisk function, namely add herein below:
boolWriteToDisk(unsignedint&nFileRet,unsignedint&nBlockPosRet)
{
... // omit, code originally
nSize=pack_block(this,sRzt);//pack_block is compression function, and nSize is the block data size after compression, and sRzt is the block data after compression
fileout.write(sRzt.c_str(),nSize);// block counts after compression is saved in block chain database file
... // omit, code originally
};
Thus achieve the purpose of dynamic compression.
In implementation process, also need to creating identification information on the block of compression, identification information can be created by above-mentioned compression function, and identification information generally comprises the parameters such as the amount of capacity before block compression, compression dictionary size, and these information are used for decompressing;After creating identification information, the block data of compression is saved in block chain data base, thus ensureing the reliability of block data.
The present invention also reads embedded decompression function in the function of block and decompresses creating the block of compression having identification information in digital cash wallet program;Time in digital cash wallet program operation process as read the block of certain compression in block chain, decompression function dynamically decompresses this block according to identification information, thus reducing the block data of correspondence, is conducive to user accurately to read.As added the decompression function of herein below in the function of ReadFromDisk reading block:
boolReadFromDisk(unsignedintnFile,unsignedintnBlockPos,boolfReadTransactions=true)
{
... // omit, code originally
getCBlockByFilePos(filein,nBlockPos,this);// in getCBlockByFilePos function according to nBlockPos reduce block
... // omit, code originally
};
Thus achieve the purpose of dynamically decompression.The visible present invention realizes the dynamic compression to block data and decompression in digital cash wallet program operation process, is not only damaged from data, and is greatly saved storage area.
The technical scheme above embodiment of the present invention provided is described in detail, principle and the embodiment of the embodiment of the present invention are set forth by specific case used herein, and the explanation of above example is only applicable to help to understand the principle of the embodiment of the present invention;Simultaneously for one of ordinary skill in the art, according to the embodiment of the present invention, all will change in detailed description of the invention and range of application, in sum, this specification content should not be construed as limitation of the present invention.

Claims (9)

1. a block chain dynamic compression access method, it comprises the following steps:
(1) digital cash wallet program is run;
(2), when having new block data write block chain in digital cash wallet program operation process, this block data is carried out dynamic compression;
(3) on the block of compression, identification information is created;
(4) then when digital cash wallet program is run, above-mentioned establishment have the block data of the compression of identification information be stored in block chain data base.
2. block chain dynamic compression access method according to claim 1, it is characterised in that: when needing to read certain block in block chain in digital cash wallet program operation process, dynamically decompress this block according to identification information.
3. block chain dynamic compression access method according to claim 1 or claim 2, it is characterised in that: in digital cash wallet program, block data is compressed by embedded compression function.
4. block chain dynamic compression access method according to claim 3, it is characterised in that: preserve embedded described compression function in the function of block in digital cash wallet program.
5. block chain dynamic compression access method according to claim 3, it is characterised in that: the block of described compression creates identification information by described compression function.
6. block chain dynamic compression access method according to claim 5, it is characterised in that: described identification information includes the size before block compression and dictionary size.
7. block chain dynamic compression access method according to claim 2, it is characterised in that: in digital cash wallet program, the block creating the compression having identification information is decompressed by embedded decompression function.
8. block chain dynamic compression access method according to claim 7, it is characterised in that: read embedded described decompression function in the function of block in digital cash wallet program.
9. block chain dynamic compression access method according to claim 7 or 8, it is characterised in that: the block of compression is decompressed by described decompression function according to identification information.
CN201610060080.9A 2016-01-29 2016-01-29 Dynamic compression and access method of block chain Pending CN105741095A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201610060080.9A CN105741095A (en) 2016-01-29 2016-01-29 Dynamic compression and access method of block chain

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201610060080.9A CN105741095A (en) 2016-01-29 2016-01-29 Dynamic compression and access method of block chain

Publications (1)

Publication Number Publication Date
CN105741095A true CN105741095A (en) 2016-07-06

Family

ID=56247881

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201610060080.9A Pending CN105741095A (en) 2016-01-29 2016-01-29 Dynamic compression and access method of block chain

Country Status (1)

Country Link
CN (1) CN105741095A (en)

Cited By (18)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106549933A (en) * 2016-09-22 2017-03-29 中金云金融(北京)大数据科技股份有限公司 The data transmission system and method for block chain
CN107181797A (en) * 2017-05-11 2017-09-19 中国农业银行股份有限公司 The block compression method and system of a kind of block chain
CN107728941A (en) * 2017-09-28 2018-02-23 中国银行股份有限公司 A kind of block chain data compression method and system
CN107918612A (en) * 2016-10-08 2018-04-17 腾讯科技(深圳)有限公司 The implementation method and device of key assignments memory system data structure
CN107992492A (en) * 2016-10-26 2018-05-04 中国移动通信有限公司研究院 A kind of storage method of data block, read method, its device and block chain
CN108959280A (en) * 2017-05-17 2018-12-07 中国移动通信有限公司研究院 A kind of method and device storing virtual resource related information
CN109345386A (en) * 2018-08-31 2019-02-15 阿里巴巴集团控股有限公司 Transaction common recognition processing method and processing device, electronic equipment based on block chain
CN109379397A (en) * 2018-08-31 2019-02-22 阿里巴巴集团控股有限公司 Transaction common recognition processing method and processing device, electronic equipment based on block chain
CN109656882A (en) * 2017-10-10 2019-04-19 上海能链众合科技有限公司 Data record method, extracting method and device, storage medium, terminal
CN109711839A (en) * 2018-12-13 2019-05-03 平安科技(深圳)有限公司 Block chain storage method, device, equipment and storage medium based on data compression
CN109726146A (en) * 2018-12-29 2019-05-07 杭州趣链科技有限公司 The scalable caching method of customizable replacement policy based on block height
CN110019347A (en) * 2018-01-02 2019-07-16 中国移动通信有限公司研究院 A kind of data processing method, device and the terminal device of block chain
US10445302B2 (en) * 2017-01-03 2019-10-15 International Business Machines Corporation Limiting blockchain size to optimize performance
WO2020019779A1 (en) * 2018-07-27 2020-01-30 阿里巴巴集团控股有限公司 Compression processing method and apparatus for block chain data
WO2020199028A1 (en) * 2019-03-29 2020-10-08 华为技术有限公司 Security chip, security processing method and related device
CN111901350A (en) * 2020-07-30 2020-11-06 平安科技(深圳)有限公司 Block chain system, data processing method, computer device and storage medium
US10846281B2 (en) * 2017-01-31 2020-11-24 Sony Corporation Electronic node and method for maintaining a distributed ledger
US11449262B1 (en) * 2021-03-19 2022-09-20 Dell Products L.P. Optimal and dynamic selection of compression dictionary size and data buffer coalesce infrastructure for greater data reduction and lowered network bandwidth usage of remote data facility replication systems

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101441639A (en) * 2007-11-21 2009-05-27 英业达股份有限公司 Generating method of mapping file
CN103927659A (en) * 2014-04-18 2014-07-16 刘志望 Immediate transfer and secure payment method of virtual currency
CN104134141A (en) * 2014-08-11 2014-11-05 济南曼维信息科技有限公司 E-wallet system payment method based on time synchronization
CN105245327A (en) * 2015-08-21 2016-01-13 北京比特大陆科技有限公司 Optimizing method, device and circuit for Hash computing chip of bitcoin proof of work

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101441639A (en) * 2007-11-21 2009-05-27 英业达股份有限公司 Generating method of mapping file
CN103927659A (en) * 2014-04-18 2014-07-16 刘志望 Immediate transfer and secure payment method of virtual currency
CN104134141A (en) * 2014-08-11 2014-11-05 济南曼维信息科技有限公司 E-wallet system payment method based on time synchronization
CN105245327A (en) * 2015-08-21 2016-01-13 北京比特大陆科技有限公司 Optimizing method, device and circuit for Hash computing chip of bitcoin proof of work

Cited By (35)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106549933A (en) * 2016-09-22 2017-03-29 中金云金融(北京)大数据科技股份有限公司 The data transmission system and method for block chain
CN106549933B (en) * 2016-09-22 2020-11-03 中金云金融(北京)大数据科技股份有限公司 Data transmission system and method of block chain
CN107918612B (en) * 2016-10-08 2019-03-05 腾讯科技(深圳)有限公司 The implementation method and device of key assignments memory system data structure
US10642515B2 (en) 2016-10-08 2020-05-05 Tencent Technology (Shenzhen) Company Limited Data storage method, electronic device, and computer non-volatile storage medium
CN107918612A (en) * 2016-10-08 2018-04-17 腾讯科技(深圳)有限公司 The implementation method and device of key assignments memory system data structure
CN107992492A (en) * 2016-10-26 2018-05-04 中国移动通信有限公司研究院 A kind of storage method of data block, read method, its device and block chain
CN107992492B (en) * 2016-10-26 2020-06-30 中国移动通信有限公司研究院 Data block storage method, data block reading method, data block storage device, data block reading device and block chain
US10915512B2 (en) 2017-01-03 2021-02-09 International Business Machines Corporation Limiting blockchain size to optimize performance
US10445302B2 (en) * 2017-01-03 2019-10-15 International Business Machines Corporation Limiting blockchain size to optimize performance
US10846281B2 (en) * 2017-01-31 2020-11-24 Sony Corporation Electronic node and method for maintaining a distributed ledger
CN107181797B (en) * 2017-05-11 2020-03-06 中国农业银行股份有限公司 Block compression method and system of block chain
CN107181797A (en) * 2017-05-11 2017-09-19 中国农业银行股份有限公司 The block compression method and system of a kind of block chain
CN108959280A (en) * 2017-05-17 2018-12-07 中国移动通信有限公司研究院 A kind of method and device storing virtual resource related information
CN108959280B (en) * 2017-05-17 2021-08-06 中国移动通信有限公司研究院 Method and device for storing virtual resource associated information
CN107728941A (en) * 2017-09-28 2018-02-23 中国银行股份有限公司 A kind of block chain data compression method and system
CN109656882A (en) * 2017-10-10 2019-04-19 上海能链众合科技有限公司 Data record method, extracting method and device, storage medium, terminal
CN110019347A (en) * 2018-01-02 2019-07-16 中国移动通信有限公司研究院 A kind of data processing method, device and the terminal device of block chain
CN110019347B (en) * 2018-01-02 2021-05-25 中国移动通信有限公司研究院 Data processing method and device of block chain and terminal equipment
WO2020019779A1 (en) * 2018-07-27 2020-01-30 阿里巴巴集团控股有限公司 Compression processing method and apparatus for block chain data
CN109345386B (en) * 2018-08-31 2020-04-14 阿里巴巴集团控股有限公司 Transaction consensus processing method and device based on block chain and electronic equipment
CN109345386A (en) * 2018-08-31 2019-02-15 阿里巴巴集团控股有限公司 Transaction common recognition processing method and processing device, electronic equipment based on block chain
US11698840B2 (en) 2018-08-31 2023-07-11 Advanced New Technologies Co., Ltd. Transaction consensus processing method and apparatus for blockchain and electronic device
TWI711287B (en) * 2018-08-31 2020-11-21 開曼群島商創新先進技術有限公司 Block chain-based transaction consensus processing method and device, and electronic equipment
US11614994B2 (en) 2018-08-31 2023-03-28 Advanced New Technologies Co., Ltd. Method, apparatus and electronic device for blockchain-based transaction consensus processing
US11144411B2 (en) 2018-08-31 2021-10-12 Advanced New Technologies Co., Ltd. Transaction consensus processing method and apparatus for blockchain and electronic device
CN109379397A (en) * 2018-08-31 2019-02-22 阿里巴巴集团控股有限公司 Transaction common recognition processing method and processing device, electronic equipment based on block chain
US11023309B2 (en) 2018-08-31 2021-06-01 Advanced New Technologies Co., Ltd. Method, apparatus and electronic device for blockchain-based transaction consensus processing
CN109711839A (en) * 2018-12-13 2019-05-03 平安科技(深圳)有限公司 Block chain storage method, device, equipment and storage medium based on data compression
CN109726146A (en) * 2018-12-29 2019-05-07 杭州趣链科技有限公司 The scalable caching method of customizable replacement policy based on block height
CN109726146B (en) * 2018-12-29 2020-12-15 杭州趣链科技有限公司 Scalable caching method based on block height customizable elimination strategy
WO2020199028A1 (en) * 2019-03-29 2020-10-08 华为技术有限公司 Security chip, security processing method and related device
WO2021174787A1 (en) * 2020-07-30 2021-09-10 平安科技(深圳)有限公司 Blockchain system, data processing method, computer device, and storage medium
CN111901350A (en) * 2020-07-30 2020-11-06 平安科技(深圳)有限公司 Block chain system, data processing method, computer device and storage medium
US11449262B1 (en) * 2021-03-19 2022-09-20 Dell Products L.P. Optimal and dynamic selection of compression dictionary size and data buffer coalesce infrastructure for greater data reduction and lowered network bandwidth usage of remote data facility replication systems
US20220300161A1 (en) * 2021-03-19 2022-09-22 EMC IP Holding Company LLC Optimal and dynamic selection of compression dictionary size and data buffer coalesce infrastructure for greater data reduction and lowered network bandwidth usage of remote data facility replication systems

Similar Documents

Publication Publication Date Title
CN105741095A (en) Dynamic compression and access method of block chain
US20240029037A1 (en) Systems and methods for math-based currency (mbc) exchanges
US11328292B2 (en) Systems and methods for use of distributed ledger technology for recording and utilizing credit account transaction information
CN107465505B (en) Key data processing method and device and server
US11080665B1 (en) Cryptographically concealing amounts and asset types for independently verifiable transactions
US10262378B2 (en) Transaction identification and recognition
CN112602083A (en) Multi-blockchain digital transaction information isolation system
US20200082388A1 (en) Authenticating server and method for transactions on blockchain
CN104463001A (en) Method for independently generating and storing encrypted digital currency private key and device for bearing encrypted digital currency private key
CN106097101A (en) A kind of block chain realizes the management method of financial transaction
EP4315214A2 (en) Advanced transactional protocols and ecosystem for smart contract authoring and deployment
Bosamia et al. Current trends and future implementation possibilities of the Merkel tree
US20220067717A1 (en) Blockchain system that includes bank nodes each having separate ledgers for identity, digital currency and other functions, and operation method thereof
CN110930152A (en) Data processing method based on block chain and related equipment
KR20200061783A (en) Computing device for providing selective goods donation service using block chain
US20210004791A1 (en) Guaranteeing server and method for transaction on blockchain
KR102542866B1 (en) ELECTRONIC DEVICE GENERATING NFTs(NON-FUNGIBLE TOKENS) FOR A REAL ESTATE STAKE
Van Hee et al. A new digital currency system
TWI524289B (en) Data transfer method between bit currency trading devices
KR102070821B1 (en) Payment processing agent service apparatus and operating method thereof
CN105659267B (en) Method and equipment for processing electronic money
KR102421051B1 (en) Method and apparatus for providing fast transaction in virtual currency payment based on blockchain
JP7040815B2 (en) Trading systems, trading equipment, trading methods and trading programs
US11526874B2 (en) Offline value transfer using asymmetric cryptography
Banger A Study On BlockChain And Cryptography

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
CB03 Change of inventor or designer information
CB03 Change of inventor or designer information

Inventor after: Deng Di

Inventor before: Peng Junhong

TA01 Transfer of patent application right
TA01 Transfer of patent application right

Effective date of registration: 20170707

Address after: 410007 Hunan province Changsha Kaifu District Station Road and 31 Avenue at the junction of Washington route 2502-2503

Applicant after: Deng Di

Address before: 410007 Hunan province Changsha Kaifu District Station Road and 31 Avenue at the junction of Washington route 2502-2503

Applicant before: Peng Junhong

RJ01 Rejection of invention patent application after publication
RJ01 Rejection of invention patent application after publication

Application publication date: 20160706