CN110232569A - A kind of read method of transaction record, device and storage medium - Google Patents

A kind of read method of transaction record, device and storage medium Download PDF

Info

Publication number
CN110232569A
CN110232569A CN201910376422.1A CN201910376422A CN110232569A CN 110232569 A CN110232569 A CN 110232569A CN 201910376422 A CN201910376422 A CN 201910376422A CN 110232569 A CN110232569 A CN 110232569A
Authority
CN
China
Prior art keywords
block chain
block
information
transaction
transaction record
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.)
Granted
Application number
CN201910376422.1A
Other languages
Chinese (zh)
Other versions
CN110232569B (en
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.)
Beijing QIYI Century Science and Technology Co Ltd
Original Assignee
Beijing QIYI Century Science and Technology 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 Beijing QIYI Century Science and Technology Co Ltd filed Critical Beijing QIYI Century Science and Technology Co Ltd
Priority to CN201910376422.1A priority Critical patent/CN110232569B/en
Publication of CN110232569A publication Critical patent/CN110232569A/en
Application granted granted Critical
Publication of CN110232569B publication Critical patent/CN110232569B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

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/38Payment protocols; Details thereof
    • G06Q20/382Payment protocols; Details thereof insuring higher security of transaction
    • G06Q20/3829Payment protocols; Details thereof insuring higher security of transaction involving key management

Abstract

The present invention provides a kind of read method of transaction record, device and storage mediums, this method comprises: obtaining the read requests that the first initiator utilizes the first equipment to initiate, first equipment is any external equipment of block chain network, and read requests are used for the transaction record for requesting to read the first block chain;Judge whether the first initiator has the reading permission being read out to transaction record;When the first initiator has and reads permission, the corresponding transaction record of read requests is obtained;According to transaction record, the reading result of read requests is exported.Therefore; in the case where being preset with the scene for checking priority assignation to transaction data; the permission for the second block chain verifying read requests being arranged with the first block chain with interrelational form can be utilized; result is read in output; the priority assignation of data is realized in block chain network; and then secret protection is carried out to data, the safety of transaction data is promoted, the flexibility of block chain network is extended.

Description

A kind of read method of transaction record, device and storage medium
Technical field
The invention belongs to block chain technical fields, more particularly to the read method, device and storage of a kind of transaction record Medium.
Background technique
Block chain technology is a kind of records in chronological order, with point that can not distort characteristic and decentralization characteristic Cloth account book technology.Block chain technology can be by calculating in full chain, storing with a transaction data, and guarantees the number of deals According to open and clear, simplify data sharing operations and simultaneously improve transaction confidence level.Such as be widely used in digital asset prove, assets Transaction, supply chain retrospect, cross-border clearing, public good are deposited under the scenes such as letter.
In the prior art, block chain network can guarantee distort after transaction record is written into, for example, bit coin, with Too mill etc., but concrete restriction is not made yet to the read operation of transaction record simultaneously.Business based on block chain technology is produced Raw mass data, due to the open and clear property of block chain, so that the mass data for not really wanting full disclosure is disclosed, Jin Erwu Method realizes the secrecy to data.
Summary of the invention
In view of this, the present invention provides the read method, device and storage medium of a kind of transaction record, propose a kind of effective Computing mechanism do not done with solving or at least partly solving the read operation existing in the prior art due to transaction record The problem of limiting and the privacy of data caused to lack.
According to the present invention in a first aspect, provide a kind of read method of transaction record, be applied to that there is at least one The block chain network of first block chain and at least one the second block chain, the method are implemented in and the firstth area described at least one The associated second block chain of block chain, this method comprises:
The read requests that the first initiator utilizes the first equipment to initiate are obtained, first equipment is the block chain network Any external equipment, the read requests are used to request the transaction record that stores on the first block chain of reading;
Judge whether first initiator meets with the reading permission being read out to the transaction record;
In the case where first initiator has the reading permission, the reading is obtained from the first block chain Request corresponding transaction record;
According to the transaction record, the reading result of the read requests is exported.
Second aspect according to the present invention provides a kind of reading device of transaction record, is applied to have at least one The block chain network of first block chain and at least one the second block chain, described device setting with the firstth area described at least one The associated second block chain of block chain, described device include:
Request module, the read requests for utilizing the first equipment to initiate for obtaining the first initiator, described first sets Standby is any external equipment of the block chain network, and the read requests are deposited on the first block chain for requesting to read The transaction record of storage;
Condition judgment module, for judging whether first initiator has the reading being read out to the transaction record Weighting limit;
Record obtains module, is used in the case where first initiator has the reading permission, from described first Block chain obtains the corresponding transaction record of the read requests;
As a result output module, for exporting the reading result of the read requests according to the transaction record.
The third aspect according to the present invention provides a kind of computer readable storage medium, the computer-readable storage Computer program is stored on medium, and transaction record as described in relation to the first aspect is realized when the computer program is executed by processor Read method the step of.
For first technology, the present invention has following advantage:
Using presetting the second block chain being associated at least one described first block chain in block chain network, with According to the read requests got, first determine whether first initiator has the reading power being read out to transaction record Limit;Later in the case where first initiator has and reads permission, the corresponding transaction record of read requests is obtained;And then root According to transaction record, the reading result of read requests is exported.Therefore, it after being confirmed by the permission to read requests, then exports With reading corresponding to the read requests for reading permission as a result, in turn by transaction data it is default check priority assignation or Other limitations, realize the secret protection of the data under block chain environment, to promote the safety of transaction data, extend block The flexibility of chain network;In addition, by realized with the associated second block chain of the first block chain transaction data Authority Verification and Data are checked, can be avoided the operation that record queries and output are directly carried out to the first block chain, reduce the behaviour of the first block chain Make pressure, and then promotes the stability and operating rate of the first block chain.
The above description is only an overview of the technical scheme of the present invention, in order to better understand the technical means of the present invention, And it can be implemented in accordance with the contents of the specification, and in order to allow above and other objects of the present invention, feature and advantage can It is clearer and more comprehensible, the followings are specific embodiments of the present invention.
Detailed description of the invention
By reading the following detailed description of the preferred embodiment, various other advantages and benefits are common for this field Technical staff will become clear.The drawings are only for the purpose of illustrating a preferred embodiment, and is not considered as to the present invention Limitation.And throughout the drawings, the same reference numbers will be used to refer to the same parts.In the accompanying drawings:
Fig. 1 is a kind of step flow chart of the read method of transaction record provided in an embodiment of the present invention;
Fig. 2 is a kind of schematic diagram of block chain structure provided in an embodiment of the present invention;
Fig. 3 is a kind of step flow chart of the read method of transaction record provided in an embodiment of the present invention;
Fig. 4 is a kind of specific steps flow chart of the read method of transaction record provided in an embodiment of the present invention;
Fig. 5 is a kind of specific steps flow chart of the read method of transaction record provided in an embodiment of the present invention;
Fig. 6 is a kind of specific steps flow chart of the read method of transaction record provided in an embodiment of the present invention;
Fig. 7 is a kind of block diagram of the reading device of transaction record provided in an embodiment of the present invention;
Fig. 8 is a kind of block diagram of the reading device of transaction record provided in an embodiment of the present invention;
Fig. 9 is a kind of block diagram of condition judgment module provided in an embodiment of the present invention;
Figure 10 is a kind of block diagram of result output module provided in an embodiment of the present invention;
Figure 11 is a kind of block diagram of relating module provided in an embodiment of the present invention.
Specific embodiment
The exemplary embodiment that the present invention will be described in more detail below with reference to accompanying drawings.Although showing the present invention in attached drawing Exemplary embodiment, it being understood, however, that may be realized in various forms the present invention without should be by embodiments set forth here It is limited.It is to be able to thoroughly understand the present invention on the contrary, providing these embodiments, and can be by the scope of the present invention It is fully disclosed to those skilled in the art.
Fig. 1 is a kind of step flow chart of the read method of transaction record provided in an embodiment of the present invention, as shown in Figure 1, Applied to the block chain network at least one the first block chain and at least one the second block chain, this method is implemented in and extremely A few associated second block chain of first block chain, this method may include:
Step 101, the read requests that the first initiator utilizes the first equipment to initiate are obtained.
Wherein, the first equipment is any external equipment of block chain network, and read requests are for requesting to read in the firstth area The transaction record stored on block chain.
Illustratively, include Transaction Information corresponding with the transaction record that the first initiator to be read in read requests, such as wrap Transaction id, counterparty's information, traction equipment information, storage information (such as stored block chain information) are included, therefore, in block chain In the case where including multiple second block chains in network, can according to Transaction Information included in read requests, determine with to The corresponding second block chain of read operation is executed, corresponding second block chain receives the read requests, and corresponding execute walks below Rapid operation.
Shown in Fig. 2 is a kind of structural schematic diagram of block chain network provided in an embodiment of the present invention, including one First block chain and two the second block chains, side chain of the second block chain as the first block chain, the second block chain (i.e. side Chain) it is associated with a block on the first block chain (i.e. main chain) by the metadata of the block.In a particular application, should Block chain network can be ether mill, EOS (English: Enterprise Operation System;Chinese: enterprise operations system System) or super account book alliance's chain or privately owned chain, the first block chain is used to confirming and recording the information of user's operation, the user Operation, which can be, deposits card transaction, some license passport or certification certificate are stored in the operation on the first block chain, also claimed Card transaction is deposited for one, this, which deposits card transaction Transaction Information generated (as included transaction entries information), will be recorded in the firstth area On block chain, and side chain of the second block chain as the first block chain, it can be used to confirm that and record user and read the first block chain On the above-mentioned transaction entries information that is stored, and one or more the first block chain for including in a block chain network and one A or multiple second block chains support the dilatation of automatic or manual elasticity and the block chain network internal node of block chain network The dilatation of automatic or manual elasticity or capacity reducing.
The read requests are that the first initiator (can be a certain user) is issued using the external equipment of block chain network It is requested outside read requests, as chain;The first equipment for issuing the read requests can be it is any can be with the second block chain The terminal or server apparatus for carrying out data communication can be corresponded to and be held after the second block chain receives the read requests The result of read operation is returned to external equipment, i.e. the first equipment again later by row read operation.
It should be noted that Fig. 2 is only the example of the first block chain and the second block chain, it is not used to limit the first block Incidence relation between chain number and the second block chain number and the second block chain and the first block chain.
Step 102, judge whether the first initiator has the reading permission being read out to transaction record.
It in a particular application, can be according to the corresponding payment information of read requests or first included in read requests The corresponding identity information of initiator verifies the reading permission of the first initiator, and wherein the verifying of identity information can be with base In preauthorization information, e.g. there is the user information list or facility information list for reading permission;Payment information is first Initiator to read transaction record carry out source attribute values (token value in this way) operation and the information that generates.That is, working as When user reads permission to the Transaction Information setting in block chain network, after receiving external read requests, the second block Chain can be read out the verifying of permission first.For example, it is pre-set can to the transaction entries information in block chain network into The condition that row is read is: corresponding token value is paid or prepay, therefore, when the first initiator counterpart expenditure or prepayment Token value needed for the read requests, it is determined that first initiator, which has, reads permission;And/or first initiator be Any user in the information of pre-authorization in included user information list, alternatively, first being set used in the first initiator Standby is any appliance in included facility information list in the information of pre-authorization, then may determine that first initiator reads Weighting limit, can carry out acquisition of the below step to transaction record.
Step 103, in the case where the first initiator has and reads permission, it is corresponding that read requests are obtained from the first block chain Transaction record.
In a particular application, the second block chain obtains transaction entries information in response to read requests from the first block chain, Reading result as read requests returns to external request originator.It can be by between first block chain and the second block chain Carry out data interaction according to pre-set data communication protocol, the second block chain as the Function Extension to the first block chain, into And the first block is sent to using the corresponding data-interface of data communication protocol after getting read requests, then by read requests Chain, after transaction entries information corresponding with read requests is found on the first block chain, recycling data-interface that will include should The transaction record of transaction entries information is back to the second block chain, in order to which the second block chain carries out described in below step 104 Operation will read result and be back to the first requesting party.
In addition, can also include being stored with this in read requests when the second block chain is associated with multiple first block chains The information of first block chain of the corresponding transaction record of read requests, e.g. block id information, and then it is convenient for the second block chain By carrying out data interaction with corresponding first block chain, transaction record is obtained.
Step 104, according to transaction record, the reading result of read requests is exported.
It in a particular application, can be directly by the transaction record after getting the transaction record through the above steps As reading as a result, exporting to the initiator of read requests.
It optionally, can also include transaction entries information in the transaction record and be associated with identity information, that is to say, that the Two block chains are after receiving transaction record, first according to association identity information to the first block for sending the transaction entries information Chain carries out authentication, can compare the metadata that the first block chain and the second block chain are associated, and then determines association body Whether part information and the pre-stored metadata in wound generation block are consistent;If under unanimous circumstances, illustrating authentication Pass through, the transaction entries information in transaction record can be exported to the first initiator;Otherwise, in the case of inconsistencies, say The identity of bright the first block chain for sending the transaction entries information is wrong, i.e., transmitted transaction entries information is not read requests Corresponding information needs to reacquire correct transaction entries information.
It is understood that the operation of above-mentioned authentication is for verifying the first block chain identity, to avoid by The case where causing the first block chain identity to be tampered or forge in rogue attacks, generating false transaction entries information.
Technical solution proposed by the present invention is passed through using one in block chain network at least one first block chain Second block chain of data correlation, is read out the acquisition of request and the operation of authority checking, the reading of transaction record and output, It realizes and the permission of transaction record is limited in block chain network, guarantee the confidentiality of data, promote the flexible of block chain network Property.In addition, realizing the Authority Verification sum number of transaction data it is investigated that seeing by the second block chain, it is direct to can be avoided the first block chain The operation for carrying out record queries and output will not cause additional operating pressure to the first block chain, and then promote the first block The stability and operating rate of chain.
In conclusion the read method of transaction record provided by the invention, according to preset in block chain network at least One associated second block chain of the first block chain, to first determine whether read requests have according to the read requests got There is the reading permission being read out to transaction record;Later in the case where the first initiator has and reads permission, from the firstth area Block chain obtains the corresponding transaction record of read requests;And then according to transaction record, the reading result of read requests is exported.Therefore, The permission that the second block chain verifying read requests being arranged with the first block chain with interrelational form can be utilized, will have reading to weigh Reading result corresponding to the read requests of limit is exported, and realizes the secret protection under block chain scene, promotes number of deals According to safety, extend block chain network flexibility.
Optionally, Fig. 3 is a kind of specific steps flow chart of the reading method of transaction record provided in an embodiment of the present invention, such as Shown in Fig. 3, before step 101, this method may include:
Step 105, in the case where being initialized, using the metadata of the first block chain, the second block chain is generated The ancillary data for creating generation block, the second block chain and one or more block on the first block chain are associated.
In a particular application, when the second block chain is initialized, due to including multiple blocks on a block chain, because This, first block of the second block chain of creation is referred to as the initialization for carrying out the second block chain, i.e., by associated one The metadata of the block of first block chain, or i.e. by the metadata of the block of associated multiple first block chains encryption or can also The ancillary data for the wound generation block as the second block chain not encrypted, thus realize the second block chain corresponding one and The association of multiple first block chains.Wherein, in block chain first by earliest created block be known as create generation block, possess One unique ID identification number.
Since side chain (i.e. the second block chain) is carried out being associated with for metadata with main chain (i.e. the first block chain), so that user The operation that cannot achieve on main chain can be realized using side chain;And since side chain is independent block chain, there is the node of oneself Network, code and data be also it is relatively independent, therefore, the side chain after association not will increase the negative of main chain in the process of running The case where carrying on a shoulder pole, data is avoided excessively to expand appearance.In the embodiment of the present invention using using the second block chain as side chain with as master First block chain of chain is associated, and then the operation that script need to be executed on the first block chain, is distributed to the second block chain It is executed, reduces the traffic pressure of the first block chain to ensure the execution efficiency operated, promote the stability of block catenary system; And the interrelational form of the second block chain and the first block chain involved in the embodiment of the present invention, it is by the second block chain and the firstth area One or more block on block chain is associated, that is, the correlation form for taking data particle thinner, and then can be dropped The complexity being associated between block in low block catenary system.
In addition, it should be noted that, the block in the second block chain proposed in the present invention and existing block chain network Chain different from, the function in addition to can be realized the second block chain in block chain network in the prior art, such as can be in area In block chain network except bidirectionally anchoring, additionally it is possible to carry out the reading of transaction record and read to record to the first associated block chain Preservation operation, by verifying the reading permission of the first requesting party, to realize the setting to the reading permission of transaction record, simultaneously It will read and the operation setting of output be on the second block chain, to reduce the operating pressure generated to the first block chain.
Optionally, as shown in figure 4, step 105 may include following sub-step:
Step 1051, target metadata is obtained from the first block chain.
Wherein, target metadata includes the member with one or more block of the associated first block chain of the second block chain Data.
Step 1052, using target metadata as the ancillary data of the wound generation block of the second block chain.
Step 1053, cryptographic Hash conversion is carried out to target metadata, obtains the attached number of the wound generation block of the second block chain According to.
That is, the safety of the metadata in order to guarantee the first block chain, can carry out at encryption the metadata Reason, such as be encrypted using hash value algorithms, using the cryptographic Hash of generation as wound generation block ancillary data, with realization and First block chain it is operation associated.
It in a particular application, can be to this one or more block when the second block chain is associated with multiple blocks Metadata is packaged, so that these metadata (i.e. target metadata) are converted to a cryptographic Hash, and then realizes the firstth area It is operation associated between one or more block of block chain and the second block chain.In addition, when the second block chain and multiple first When block chain is associated with, the metadata of the corresponding multiple blocks of this multiple first block chain can be packaged, i.e., as walked above It is rapid described.It is packaged alternatively, can also separate, the first block chain is utilized to the block on each first block chain for being associated Id information distinguish, that is to say, that the metadata of one or more block associated by a first block chain is synthesized One cryptographic Hash is marked by the id information of the first block chain, in order to carry out the verifying of identity information in step later When, the authentication that corresponding metadata carries out the first block chain can be obtained.
Optionally, Fig. 5 is a kind of specific steps flow chart of the read method of transaction record provided in an embodiment of the present invention, It, can be with as shown in figure 5, judge whether read requests have the reading permission being read out to transaction record described in step 102 Include:
Step 1021, the attribute information for the first initiator for including in read requests is obtained.
Illustratively, the information of pre-authorization can be set in some first block chain in block chain network, for limiting pair All Activity on the first block chain records the permission being read out, e.g. permissions list.Corresponding attribute information can be with Be show the information of first initiator's identity, such as the first initiator User ID or used first equipment equipment ID, in addition, attribute information can also be the first initiator to the payment information of read requests.
Step 1022, according to preset verification condition, attribute information is verified.
Illustratively, in the case where attribute information is identity information, the information of corresponding pre-authorization are as follows: have and read The device id list and/or User ID list of permission, and then corresponding verification condition are as follows: any hair in the User ID list It plays side to meet verification condition and/or meet verification condition using any appliance in device id list, that is, determines the first hair Playing side has reading permission;And the first equipment is not in device id list or the first initiator is not the hair in User ID list When playing side, then it is unsatisfactory for verification condition, that is, do not have and read permission.And/or the case where attribute information is payment information Under, verification condition includes that the first initiator counterpart expenditure or has prepay the reading cost of transaction record.Such as, it is initiated first After side pays reading cost, the successful transaction record information of payment can be generated in block chain network, is and reading Request corresponding transaction successful message preset for the behaviour successfully switched that shows to trade as payment information, or triggering Make, i.e., shows to meet verification condition there are above-mentioned payment information as payment information;And this ought not be paid Needed for read requests when reading cost, then any payment information will not be generated, that is, not meet verification condition, also can not just carried out The operation of step 103.
In addition, attribute information both included identity information and also include to the payment information of read requests in the case where, also It is to say, when step 1022 is verified, i.e., identity information is verified and also payment information is verified.Illustratively, should Verification condition may include: the first initiator User ID belong in User ID list and the first initiator pay it is corresponding In the case where reading cost;Or first the device id of equipment belong to the equipment in device id list and first initiator's branch In the case where having paid corresponding reading cost, it is determined for compliance with verification condition, the specific embodiment of the present invention is with no restrictions.
Step 1023, it in the case where attribute information meets verification condition, determines that the first initiator has and reads permission.
Illustratively, in the case where attribute information meets verification condition, the operation of step 103 can be carried out, i.e. acquisition pair The transaction record answered.Otherwise, read operation can not be continued to execute by illustrating the read requests, return to error message, and expression can not be into The inquiry of row transaction record.
Optionally, Fig. 6 is a kind of specific steps flow chart of the read method of transaction record provided in an embodiment of the present invention, As shown in fig. 6, exporting the reading of read requests as a result, may include: according to transaction record described in step 104
Step 1041, the matching between the ancillary data of the wound generation block of association identity information and the second block chain is obtained Degree.
Wherein, association identity information includes the metadata on the first block chain for the block of store transaction entry information.
Step 1042, the matching degree between association identity information and the ancillary data of the wound generation block of the second block chain is super In the case where crossing preset threshold, determine that transaction record is validation record.
Illustratively, further include association identity information from the transaction record got in the first block chain, that is, store the friendship It should be stored in wound generation block in initialization with the second block chain by the metadata of the block on the first block chain easily recorded In ancillary data carry out data content similarity calculation, using as association identity information and the second block chain wound generation block Ancillary data between matching degree, thus according to matching degree determine transmitted transaction record whether be it is legal, be associated with identity Whether information is tampered.
It should be noted that when a block on the second block chain and a first block chain is bound, then it is right The preset threshold answered is 100%, that is to say, that only when association identity information (i.e. the metadata of block) and the second block chain The ancillary data for creating generation block is completely the same, i.e., when matching degree is 100%, just determines that transaction record is validation record, Ke Yijin Row reads the output of result;Otherwise, there are any inconsistent, illustrate that the transaction record has the possibility distorted, it can not It is exported.
Alternatively, multiple blocks when the second block chain with the block of multiple first block chains or with a first block chain When the metadata of association and this multiple block is packaged with, then corresponding preset threshold is related to associated block number, That is, association identity information needs are (i.e. corresponding with a part in the ancillary data of the wound generation block of the second block chain The part of the first block chain) unanimously, i.e., matching degree is more than corresponding preset threshold, that is, can determine that the transaction record is legal. If the metadata of the block of associated multiple first block chains is separately packaged, believed according to the ID of the first block chain Breath obtains the corresponding metadata in the ancillary data of wound generation block, to be associated identity information and create the attached number of generation block Comparison between.
Step 1043, it in the case where transaction record is validation record, according to transaction entries information, determines and reads result.
In a particular application, it is tied the transaction entries information for including in the transaction record for being determined as validation record as reading Fruit completes the read operation of this transaction record to export to the initiator of read requests.
Alternatively, optional, which can also include:
Sub-step A1: the transaction entries information of the first block chain is encrypted.
Sub-step A2: it is exported using the transaction entries information of the first block chain after encryption as result is read.
That is, being exported after the transaction entries information in transaction record is encrypted, to guarantee the friendship of need for confidentiality The safety of easy entry information, carries out encrypted transmission, further promotes data security.
Step 1044, result is read in output.
Illustratively, after determining that transaction record is validation record, transaction entries information is back to the first initiator, i.e., By transaction entries information directly as reading as a result, sending back the first initiator.Alternatively, can also be carried out to transaction entries information The operation of above-mentioned sub-step, to guarantee the safety of data, the specific embodiment of the present invention is with no restrictions.
In addition, it should be noted that, can also include: after determining that transaction record is validation record
Step 1045, Transaction Information is read caused by record read requests.
Wherein, the information and transaction entries information in Transaction Information including the first initiator are read.
Illustratively, it trades the read operation of a transaction record as a reading, after completing primary reading transaction, It trades to the reading and carries out information record, after generation reading Transaction Information corresponding with reading transaction and store it in second On block chain, convenient for that can be checked to Transaction Information is read.Alternatively, receiving again and the information in reading transaction When consistent read requests, directly the information that the reading stored on the second block chain is traded can be exported, and then simplifies The read operation of Transaction Information reduces the data storage and reading data pressure of the first block chain.Wherein, in the transaction record Transaction entries information in may include the transaction record original counterparty, the information such as transaction content.
Fig. 7 is a kind of block diagram of the reading device of transaction record provided in an embodiment of the present invention, is applied to have at least one The block chain network of a first block chain and at least one the second block chain, the device setting at least one the first block chain On associated second block chain, as shown in fig. 7, the device 700 includes:
Request module 710, the read requests for utilizing the first equipment to initiate for obtaining the first initiator, the first equipment It is any external equipment of block chain network, read requests are used to request to read the transaction record stored on the first block chain.
Condition judgment module 720, for judging whether the first initiator has the reading power being read out to transaction record Limit.
Record obtains module 730, for being obtained from the first block chain in the case where the first initiator has and reads permission The corresponding transaction record of read requests.
As a result output module 740, for exporting the reading result of read requests according to transaction record.
Optionally, on the basis of Fig. 7, as shown in figure 8, the device 700 further include:
Relating module 750, before the step of utilizing the read requests of the first equipment initiation in the first initiator of acquisition, In the case where being initialized, using the metadata of the first block chain, the attached number of the wound generation block of the second block chain is generated According to one or more block of the second block chain and the first block chain is associated.
Optionally, Fig. 9 is a kind of block diagram of condition judgment module provided in an embodiment of the present invention, the condition judgment module 720, as shown in Figure 9, comprising:
Acquisition of information submodule 721, for obtaining the attribute information for the first initiator for including in read requests.
Condition Verification submodule 722, for being verified to attribute information according to preset verification condition.
Permission determines submodule 723, in the case where attribute information meets verification condition, determining that the first initiator has There is reading permission.
It optionally, include transaction entries information in transaction record and to be associated with identity information, Figure 10 be that the embodiment of the present invention mentions A kind of block diagram of the result output module supplied, as shown in Figure 10, the result output module 740, comprising:
Matching degree acquisition submodule 741, for obtaining the attached of association identity information and the wound generation block of the second block chain Matching degree between data, association identity information include first number on the first block chain for the block of store transaction entry information According to.
It records and determines submodule 742, for the ancillary data in association identity information and the wound generation block of the second block chain Between matching degree be more than preset threshold in the case where, determine transaction record be validation record.
As a result submodule 743 is determined, in the case where transaction record is validation record, according to transaction entries information, It determines and reads result.
As a result result is read for exporting in output sub-module 744.
Optionally, submodule 743 is as a result determined, comprising:
Encryption unit 7431 is encrypted for the transaction entries information to the first block chain;
Determination unit 7432, for using the transaction entries information of the first block chain after encryption as read result into Row output.
Optionally, as described in Figure 10, as a result output module 740 can also include:
Information record sub module 745, for the ancillary data in association identity information and the wound generation block of the second block chain Under unanimous circumstances, determine that transaction record is reading Transaction Information, reading caused by record read requests after validation record It include the information and transaction entries information of the first requesting party in Transaction Information.
Optionally, Figure 11 is a kind of block diagram of relating module provided in an embodiment of the present invention, as shown in figure 11, the association mould Block 750, comprising:
Data acquisition submodule 751, for obtaining target metadata, which includes being associated with the second block chain The first block chain on one or more block metadata.
Data generate submodule 752, for using target metadata as the ancillary data of the wound generation block of the second block chain; Alternatively,
Data generate submodule 752, are also used to carry out cryptographic Hash conversion to target metadata, obtain the wound of the second block chain The ancillary data of generation block.
In addition, the embodiment of the present invention also provides a kind of terminal, including processor, memory, storage is on a memory and can The computer program run in processing, the computer program realize the reading side of above-mentioned transaction record when being executed by processor Each process of method embodiment, and identical technical effect can be reached, to avoid repeating, which is not described herein again.
The embodiment of the present invention also provides a kind of computer readable storage medium, and meter is stored on computer readable storage medium Calculation machine program, the computer program realize each mistake of the read method embodiment of above-mentioned transaction record when being executed by processor Journey, and identical technical effect can be reached, to avoid repeating, which is not described herein again.Wherein, the computer-readable storage medium Matter can be read-only memory (Read-Only Memory, abbreviation ROM), random access memory (Random Access Memory, abbreviation RAM), magnetic or disk etc..
For above-mentioned apparatus embodiment, since it is basically similar to the method embodiment, so be described relatively simple, The relevent part can refer to the partial explaination of embodiments of method.
All the embodiments in this specification are described in a progressive manner, the highlights of each of the examples are with The difference of other embodiments, the same or similar parts between the embodiments can be referred to each other.
It would have readily occurred to a person skilled in the art that: any combination application of above-mentioned each embodiment is all feasible, therefore Any combination between above-mentioned each embodiment is all embodiment of the present invention, but this specification exists as space is limited, This is not just detailed one by one.
The read method of transaction record is not solid with any certain computer, virtual system or other equipment provided herein There is correlation.Various general-purpose systems can also be used together with teachings based herein.As described above, construction has this hair Structure required by the system of bright scheme is obvious.In addition, the present invention is also not directed to any particular programming language.It should Understand, can use various programming languages and realize summary of the invention described herein, and language-specific is done above Description is in order to disclose the best mode of carrying out the invention.
In the instructions provided here, numerous specific details are set forth.It is to be appreciated, however, that implementation of the invention Example can be practiced without these specific details.In some instances, well known method, structure is not been shown in detail And technology, so as not to obscure the understanding of this specification.
Similarly, it should be understood that in order to simplify the present invention and help to understand one or more of the various inventive aspects, Above in the description of exemplary embodiment of the present invention, each feature of the invention is grouped together into single implementation sometimes In example, figure or descriptions thereof.However, the method for the invention should not be construed to reflect an intention that i.e. required guarantor Shield the present invention claims features more more than feature expressly recited in each claim.More precisely, such as right As claim reflects, inventive aspect is all features less than single embodiment disclosed above.Therefore, it then follows tool Thus claims of body embodiment are expressly incorporated in the specific embodiment, wherein each claim conduct itself Separate embodiments of the invention.
Those skilled in the art will understand that can be carried out adaptively to the module in the equipment in embodiment Change and they are arranged in one or more devices different from this embodiment.It can be the module or list in embodiment Member or component are combined into a module or unit or component, and furthermore they can be divided into multiple submodule or subelement or Sub-component.Other than such feature and/or at least some of process or unit exclude each other, it can use any Combination is to all features disclosed in this specification (including adjoint claim, abstract and attached drawing) and so disclosed All process or units of what method or apparatus are combined.Unless expressly stated otherwise, this specification is (including adjoint power Benefit require, abstract and attached drawing) disclosed in each feature can carry out generation with an alternative feature that provides the same, equivalent, or similar purpose It replaces.
In addition, it will be appreciated by those of skill in the art that although some embodiments described herein include other embodiments In included certain features rather than other feature, but the combination of the feature of different embodiments mean it is of the invention Within the scope of and form different embodiments.For example, in detail in the claims, embodiment claimed it is one of any Can in any combination mode come using.
Various component embodiments of the invention can be implemented in hardware, or to run on one or more processors Software module realize, or be implemented in a combination thereof.It will be understood by those of skill in the art that can be used in practice Some or all components in read method of the microprocessor to realize transaction record according to an embodiment of the present invention it is some Or repertoire.The present invention is also implemented as some or all equipment for executing method as described herein Or program of device (for example, computer program and computer program product).It is such to realize that program of the invention can store On a computer-readable medium, it or may be in the form of one or more signals.Such signal can be from internet Downloading obtains on website, is perhaps provided on the carrier signal or is provided in any other form.
It should be noted that the above-mentioned embodiments illustrate rather than limit the invention, and ability Field technique personnel can be designed alternative embodiment without departing from the scope of the appended claims.In the claims, Any reference symbol between parentheses should not be configured to limitations on claims.Word "comprising" does not exclude the presence of not Element or step listed in the claims.Word "a" or "an" located in front of the element does not exclude the presence of multiple such Element.The present invention can be by means of including the hardware of several different elements and being come by means of properly programmed computer real It is existing.In the unit claims listing several devices, several in these devices can be through the same hardware branch To embody.The use of word first, second, and third does not indicate any sequence.These words can be explained and be run after fame Claim.

Claims (15)

1. a kind of read method of transaction record, which is characterized in that be applied to that there is at least one first block chain and at least one The block chain network of a second block chain, the method are implemented in and the first block chain associated described second described at least one Block chain, which comprises
The read requests that the first initiator utilizes the first equipment to initiate are obtained, first equipment is appointing for the block chain network One external equipment, the read requests are used to request to read the transaction record stored on the first block chain;
Judge whether first initiator has the reading permission being read out to the transaction record;
In the case where first initiator has the reading permission, the read requests are obtained from the first block chain Corresponding transaction record;
According to the transaction record, the reading result of the read requests is exported.
2. the method according to claim 1, wherein before the acquisition read requests the step of, the side Method further include:
In the case where being initialized, using the metadata of the first block chain, the wound generation of the second block chain is generated The ancillary data of block closes the second block chain and one or more block on the first block chain Connection.
3. according to claim 1 or claim 2, which is characterized in that described to judge whether first initiator has The reading permission that the transaction record is read out, comprising:
Obtain the attribute information for first initiator for including in the read requests;
According to preset verification condition, the attribute information is verified;
In the case where the attribute information meets the verification condition, determine that first initiator weighs with the reading Limit.
4. according to claim 1 or claim 2, which is characterized in that include transaction entries information in the transaction record Be associated with identity information, it is described according to the transaction record, export the reading result of the read requests, comprising:
The matching degree between the ancillary data of the wound generation block of the association identity information and the second block chain is obtained, it is described Association identity information includes on the first block chain for storing the metadata of the block of the transaction entries information;
Matching degree between the association identity information and the ancillary data of the wound generation block of the second block chain is more than pre- If in the case where threshold value, determining that the transaction record is validation record;
In the case where the transaction record is validation record, according to the transaction entries information, the reading result is determined;
Export the reading result.
5. according to the method described in claim 4, it is characterized in that, described the case where the transaction record is validation record Under, determine the reading result, comprising:
The transaction entries information is encrypted;
Using the transaction entries information after encryption as the reading result.
6. according to the method described in claim 5, it is characterized in that, in the association identity information and the second block chain In the case that matching degree between the ancillary data of wound generation block is more than preset threshold, determine that the transaction record is validation record Later, further includes:
It records and reads Transaction Information caused by the read requests, include first initiator in the reading Transaction Information Information and the transaction entries information.
7. according to the method described in claim 2, utilizing described it is characterized in that, described in the case where being initialized The metadata of one block chain generates the ancillary data of the wound generation block of the second block chain, comprising:
Target metadata is obtained from the first block chain, the target metadata includes associated with the second block chain The metadata of one or more block of the first block chain;
Using the target metadata as the ancillary data of the wound generation block of the second block chain;Alternatively, to the target element Data carry out cryptographic Hash conversion, obtain the ancillary data of the wound generation block of the second block chain.
8. a kind of reading device of transaction record, which is characterized in that be applied to that there is at least one first block chain and at least one The block chain network of a second block chain, described device setting with the first block chain associated described second described at least one Block chain, described device include:
Request module, the read requests for utilizing the first equipment to initiate for obtaining the first initiator, first equipment are Any external equipment of the block chain network, what the read requests were used to that reading to be requested to store on the first block chain Transaction record;
Condition judgment module, for judging whether first initiator has the reading power being read out to the transaction record Limit;
Record obtains module, is used in the case where first initiator has the reading permission, from first block Chain obtains the corresponding transaction record of the read requests;
As a result output module, for exporting the reading result of the read requests according to the transaction record.
9. device according to claim 8, which is characterized in that described device further include:
Relating module, before the step of utilizing the read requests of the first equipment initiation in the first initiator of the acquisition, In the case where being initialized, using the metadata of the first block chain, the wound generation block of the second block chain is generated The second block chain and one or more block on the first block chain are associated by ancillary data.
10. according to device described in claim 8 or 9, which is characterized in that the condition judgment module, comprising:
Acquisition of information submodule, for obtaining the attribute information for first initiator for including in the read requests;
Condition Verification submodule, for being verified to the attribute information according to preset verification condition;
Permission determines submodule, in the case where the attribute information meets the verification condition, determining first hair Playing side has the reading permission.
11. according to device described in claim 8 or 9, which is characterized in that include transaction entries information in the transaction record Be associated with identity information, the result output module, comprising:
Matching degree acquisition submodule, for obtaining the attached of association identity information and the wound generation block of the second block chain Matching degree between data, the association identity information include on the first block chain for storing the transaction entries information Block metadata;
It records and determines submodule, for the ancillary data in the association identity information and the wound generation block of the second block chain Between matching degree be more than preset threshold in the case where, determine the transaction record be validation record;
As a result submodule is determined, in the case where the transaction record is validation record, according to the transaction entries information, Determine the reading result;
As a result output sub-module, for exporting the reading result.
12. device according to claim 11, which is characterized in that the result determines submodule, comprising:
Encryption unit, for the transaction entries information to be encrypted;
Determination unit, for using the transaction entries information of the first block chain after encryption as the reading result.
13. device according to claim 12, which is characterized in that the result output module further include:
Information record sub module, for the ancillary data in the association identity information and the wound generation block of the second block chain Under unanimous circumstances, the transaction record is determined to record and reading transaction caused by the read requests after validation record Information, the information and the transaction entries information read in Transaction Information including first requesting party.
14. device according to claim 9, which is characterized in that the relating module, comprising:
Data acquisition submodule, for obtaining target metadata from the first block chain, the target metadata include with The metadata of one or more block of the associated first block chain of the second block chain;
Data generate submodule, for using the target metadata as the attached number of the wound generation block of the second block chain According to;Alternatively,
The data generate submodule, are also used to carry out cryptographic Hash conversion to the target metadata, obtain second block The ancillary data of the wound generation block of chain.
15. a kind of computer readable storage medium, which is characterized in that store computer journey on the computer readable storage medium Sequence realizes the reading of the transaction record as described in any one of claims 1 to 7 when the computer program is executed by processor The step of method.
CN201910376422.1A 2019-05-07 2019-05-07 Method and device for reading transaction record and storage medium Active CN110232569B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910376422.1A CN110232569B (en) 2019-05-07 2019-05-07 Method and device for reading transaction record and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910376422.1A CN110232569B (en) 2019-05-07 2019-05-07 Method and device for reading transaction record and storage medium

Publications (2)

Publication Number Publication Date
CN110232569A true CN110232569A (en) 2019-09-13
CN110232569B CN110232569B (en) 2021-04-16

Family

ID=67860423

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910376422.1A Active CN110232569B (en) 2019-05-07 2019-05-07 Method and device for reading transaction record and storage medium

Country Status (1)

Country Link
CN (1) CN110232569B (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110826095A (en) * 2019-10-22 2020-02-21 中国人民大学 Block chain data encryption method and system
CN111327623A (en) * 2020-02-28 2020-06-23 上海哈世科技有限公司 Alliance link information transmission method, device, equipment and storage medium
CN112019603A (en) * 2020-08-10 2020-12-01 中国联合网络通信集团有限公司 Transaction data processing method and device

Citations (13)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106790431A (en) * 2016-12-05 2017-05-31 同济大学 Cloud manufacturing service Transaction Information record system and method based on block chain
CN107169865A (en) * 2017-04-24 2017-09-15 北京果仁宝科技有限公司 Asset data processing system based on block chain technology
CN107464106A (en) * 2017-07-25 2017-12-12 北京果仁宝科技有限公司 The method and system merchandised between block chain main chain and side chain
WO2017223540A1 (en) * 2016-06-24 2017-12-28 PokitDok, Inc. System and method for cryptographically verified data driven contracts
CN107679857A (en) * 2017-10-10 2018-02-09 马晶瑶 Across the chain method of commerce and storage medium of block chain
CN108563788A (en) * 2018-04-27 2018-09-21 腾讯科技(深圳)有限公司 Data query method, apparatus, server and storage medium based on block chain
CN108616539A (en) * 2018-05-03 2018-10-02 东莞市翔实信息科技有限公司 A kind of method and system that block chain transaction record accesses
CN108632268A (en) * 2018-04-28 2018-10-09 腾讯科技(深圳)有限公司 The method for authenticating and device, storage medium, electronic device that block chain accesses
CN108712257A (en) * 2018-04-03 2018-10-26 阿里巴巴集团控股有限公司 The authentication method and device, electronic equipment of transregional piece of chain
CN108712395A (en) * 2018-04-27 2018-10-26 腾讯科技(深圳)有限公司 Account management method, device, server based on block chain and storage medium
CN109347955A (en) * 2018-10-19 2019-02-15 北京奇艺世纪科技有限公司 A kind of block chain network system and information processing method
CN109493221A (en) * 2018-10-26 2019-03-19 全链通有限公司 Transaction record time slot scrambling, equipment, network and storage medium in block chain
CN109685486A (en) * 2018-11-28 2019-04-26 杭州云象网络技术有限公司 A kind of polymeric chain framework based on block chain technology

Patent Citations (13)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2017223540A1 (en) * 2016-06-24 2017-12-28 PokitDok, Inc. System and method for cryptographically verified data driven contracts
CN106790431A (en) * 2016-12-05 2017-05-31 同济大学 Cloud manufacturing service Transaction Information record system and method based on block chain
CN107169865A (en) * 2017-04-24 2017-09-15 北京果仁宝科技有限公司 Asset data processing system based on block chain technology
CN107464106A (en) * 2017-07-25 2017-12-12 北京果仁宝科技有限公司 The method and system merchandised between block chain main chain and side chain
CN107679857A (en) * 2017-10-10 2018-02-09 马晶瑶 Across the chain method of commerce and storage medium of block chain
CN108712257A (en) * 2018-04-03 2018-10-26 阿里巴巴集团控股有限公司 The authentication method and device, electronic equipment of transregional piece of chain
CN108712395A (en) * 2018-04-27 2018-10-26 腾讯科技(深圳)有限公司 Account management method, device, server based on block chain and storage medium
CN108563788A (en) * 2018-04-27 2018-09-21 腾讯科技(深圳)有限公司 Data query method, apparatus, server and storage medium based on block chain
CN108632268A (en) * 2018-04-28 2018-10-09 腾讯科技(深圳)有限公司 The method for authenticating and device, storage medium, electronic device that block chain accesses
CN108616539A (en) * 2018-05-03 2018-10-02 东莞市翔实信息科技有限公司 A kind of method and system that block chain transaction record accesses
CN109347955A (en) * 2018-10-19 2019-02-15 北京奇艺世纪科技有限公司 A kind of block chain network system and information processing method
CN109493221A (en) * 2018-10-26 2019-03-19 全链通有限公司 Transaction record time slot scrambling, equipment, network and storage medium in block chain
CN109685486A (en) * 2018-11-28 2019-04-26 杭州云象网络技术有限公司 A kind of polymeric chain framework based on block chain technology

Non-Patent Citations (3)

* Cited by examiner, † Cited by third party
Title
SOOHYEONG KIM ET AL.: "A Survey of Scalability Solutions on Blockchain", 《2018 INTERNATIONAL CONFERENCE ON INFORMATION AND COMMUNICATION TECHNOLOGY CONVERGENCE (ICTC)》 *
王醒等: "基于信誉值创建数字资产的区块链系统", 《信息网络安全》 *
白杰,李东云,吴先锋: "发布区块链标准应用模型及应用部署技术研究", 《信息技术与网络安全》 *

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110826095A (en) * 2019-10-22 2020-02-21 中国人民大学 Block chain data encryption method and system
CN111327623A (en) * 2020-02-28 2020-06-23 上海哈世科技有限公司 Alliance link information transmission method, device, equipment and storage medium
CN112019603A (en) * 2020-08-10 2020-12-01 中国联合网络通信集团有限公司 Transaction data processing method and device

Also Published As

Publication number Publication date
CN110232569B (en) 2021-04-16

Similar Documents

Publication Publication Date Title
US11416602B2 (en) Methods and systems for identity creation, verification and management
US11361316B2 (en) Systems and methods for providing a personal distributed ledger
US8818904B2 (en) Generation systems and methods for transaction identifiers having biometric keys associated therewith
WO2020073491A1 (en) Blockchain-based supply chain payment method, payment collection method, device, apparatus, and medium
CN113537984A (en) Content verification method and device based on block chain and electronic equipment
CN109615351A (en) SIM card, terminating machine and digital currency managing system
CN110326251A (en) The system and method that the general dispersion solution of user is verified using cross validation feature are provided
AU2008206397A1 (en) Secure money transfer systems and methods using biometric keys associated therewith
CN110232569A (en) A kind of read method of transaction record, device and storage medium
CN104899741B (en) A kind of on-line payment method and on-line payment system based on IC bank card
US20210365584A1 (en) Portable reputation brokering using linked blockchains and shared events
CN110188550A (en) A kind of data verification method and device of block chain
KR101923943B1 (en) System and method for remitting crypto currency with enhanced security
KR20190107601A (en) Method and system for the generation of user-initiated federated identities
KR102396824B1 (en) Blockchain-based identity system
CN109118377A (en) A kind of processing method, system and the electronic equipment of the Claims Resolution event based on block chain
CN109842616A (en) Account binding method, device and server
US20180315053A1 (en) Systems and methods for identity atomization and usage
CN110766548A (en) Block chain based information processing method and device, storage medium and electronic equipment
US20200252408A1 (en) Graduated accounts using assertions
CN108234125A (en) For the system and method for authentication
KR102376783B1 (en) The blockchain-based transaction history confirmation system
CN113395257A (en) Method and device for realizing tax data processing system
CN113159940A (en) Transaction method, system and computer equipment for enhanced bit currency wallet
CN107809424B (en) On-site certificate storing method and device and related certificate storing system

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
GR01 Patent grant
GR01 Patent grant