[go: up one dir, main page]
More Web Proxy on the site http://driver.im/

CN109003184A - Block chain assets management method and device - Google Patents

Block chain assets management method and device Download PDF

Info

Publication number
CN109003184A
CN109003184A CN201810651828.1A CN201810651828A CN109003184A CN 109003184 A CN109003184 A CN 109003184A CN 201810651828 A CN201810651828 A CN 201810651828A CN 109003184 A CN109003184 A CN 109003184A
Authority
CN
China
Prior art keywords
asset
assets
identification
account
relevant information
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.)
Withdrawn
Application number
CN201810651828.1A
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.)
Suzhou Lang run innovation intellectual property operation Co.,Ltd.
Original Assignee
Chain 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 Chain Technology Co Ltd filed Critical Chain Technology Co Ltd
Priority to CN201810651828.1A priority Critical patent/CN109003184A/en
Publication of CN109003184A publication Critical patent/CN109003184A/en
Withdrawn 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
    • G06Q40/00Finance; Insurance; Tax strategies; Processing of corporate or income taxes
    • G06Q40/04Trading; Exchange, e.g. stocks, commodities, derivatives or currency exchange
    • 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/3823Payment protocols; Details thereof insuring higher security of transaction combining multiple encryption tools for a transaction
    • 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

Landscapes

  • Business, Economics & Management (AREA)
  • Engineering & Computer Science (AREA)
  • Accounting & Taxation (AREA)
  • Finance (AREA)
  • Physics & Mathematics (AREA)
  • Strategic Management (AREA)
  • General Business, Economics & Management (AREA)
  • General Physics & Mathematics (AREA)
  • Theoretical Computer Science (AREA)
  • Computer Security & Cryptography (AREA)
  • Development Economics (AREA)
  • Economics (AREA)
  • Marketing (AREA)
  • Technology Law (AREA)
  • Financial Or Insurance-Related Operations Such As Payment And Settlement (AREA)

Abstract

The present invention provides a kind of block chain assets management method and devices, this method comprises: receiving asset management request;The asset management request includes asset account and management instruction, or also includes asset class;According to the asset identification create-rule in intelligent contract, asset identification is generated according to the asset account or the asset account and the asset class;The asset identification create-rule is stated in the intelligent contract for predetermined asset account with predetermined asset class in advance;Corresponding assets number relevant information is searched in asset identification and the one-to-one relationship of assets number relevant information according to the asset identification;Asset identification in the one-to-one relationship is generated according to the asset identification create-rule;The assets number relevant information found is performed corresponding processing according to management instruction.The present invention can reduce the cost and risk of contract asset management.

Description

Block chain assets management method and device
Technical field
The present invention relates to block chain technical field more particularly to a kind of block chain assets management methods, block chain Assets Reorganization Taking Manage device, computer readable storage medium and computer equipment.
Background technique
It can be realized basic digital asset transaction, and the friendship that can be realized real time settlement, and realize by block chain Easily having can not tamper.Current block chain transaction can be realized by two ways: the transaction in assets of block chain and contract money Produce transaction.The transaction in assets of block chain is completed generally by creation transaction, signature, broadcast transaction, and contract transaction in assets one As be the end-state for changing contract assets by the transaction in assets of block chain.Contract transaction in assets, which has, avoids manual processes, The method mind for utmostly reducing malice and occasional irregularity, reduces the advantages such as the dependence to trusted intermediary to greatest extent.
If carrying out contract transaction in assets, corresponding intelligent bond service must be just installed.Currently, an intelligent contract Service is used to identify a kind of digital asset, if user will operate 100 parts of digital assets simultaneously, it is necessary to virtual in user's wallet Start 100 kinds of intelligent bond services in machine.In this way, the maintenance cost of intelligent bond service can greatly increase, moreover, because Exchange needs between contract assets will also increase therewith across intelligent bond service, across logic chain, overhead and unpredictable risk Add.
Summary of the invention
The present invention provides a kind of block chain assets management method, block chain asset management device, computer-readable storage medium Matter and computer equipment, to reduce the cost and risk of contract asset management.
The embodiment of the invention provides a kind of block chain assets management methods, comprising: receives asset management request;The money It produces management request and includes asset account and management instruction, or also include asset class;According to the asset identification in intelligent contract Create-rule generates asset identification according to the asset account or the asset account and the asset class;The assets mark Know create-rule and is stated in advance in the intelligent contract for predetermined asset account with predetermined asset class;According to described Asset identification searches corresponding assets number correlation letter in asset identification and the one-to-one relationship of assets number relevant information Breath;Asset identification in the one-to-one relationship is generated according to the asset identification create-rule;According to the management Instruction performs corresponding processing the assets number relevant information found.
The embodiment of the invention also provides a kind of block chain asset management devices, comprising: request reception unit is used for: being connect Receive asset management request;The asset management request includes asset account and management instruction, or also includes asset class;Mark Generation unit is used for: according to the asset identification create-rule in intelligent contract, according to the asset account or the asset account Asset identification is generated with the asset class;The asset identification create-rule is for predetermined asset account and predetermined assets kind What class was stated in advance in the intelligent contract;Data searching unit is used for: according to the asset identification in asset identification and money It produces in the one-to-one relationship of number relevant information and searches corresponding assets number relevant information;In the one-to-one relationship Asset identification is generated according to the asset identification create-rule;Data Management Unit is used for: according to management instruction pair The assets number relevant information found performs corresponding processing.
The embodiment of the invention also provides a kind of computer readable storage mediums, are stored thereon with computer program, the journey The step of above-described embodiment the method is realized when sequence is executed by processor.
The embodiment of the invention provides a kind of computer equipment, including memory, processor and storage are on a memory simultaneously The computer program that can be run on a processor, the processor realize above-described embodiment the method when executing described program Step.
Block chain assets management method, the block chain asset management device, computer-readable storage medium of the embodiment of the present invention Matter and computer equipment can be used according to the asset identification that the asset identification create-rule stated in intelligent contract generates It distinguishes different user or distinguishes different user and corresponding asset class, thus, it can be in the intelligence by this kind of asset identification It is provided in contract with a large amount of block chain number of the formal definition of asset identification and the one-to-one relationship of assets number relevant information It produces.The service for installing a intelligence contract can realize the operation to a large amount of block chain digital assets, so intelligent contract The maintenance cost of service is very low.The transaction in assets between block chain digital asset in the intelligence contract is not needed across servicing, be not required to It will be across logic chain, so overhead and unpredictable risk are smaller.
Detailed description of the invention
In order to more clearly explain the embodiment of the invention or the technical proposal in the existing technology, to embodiment or will show below There is attached drawing needed in technical description to be briefly described, it should be apparent that, the accompanying drawings in the following description is only this Some embodiments of invention for those of ordinary skill in the art without creative efforts, can be with It obtains other drawings based on these drawings.In the accompanying drawings:
Fig. 1 is the flow diagram of the block chain assets management method of one embodiment of the invention;
Fig. 2 is that the method flow for generating asset identification according to asset account and asset class of one embodiment of the invention is illustrated Figure;
Fig. 3 is the interaction schematic diagram in the block chain asset management of one embodiment of the invention;
Fig. 4 is the structural schematic diagram of the block chain asset management device of one embodiment of the invention.
Specific embodiment
Understand in order to make the object, technical scheme and advantages of the embodiment of the invention clearer, with reference to the accompanying drawing to this hair Bright embodiment is described in further details.Here, the illustrative embodiments of the present invention and their descriptions are used to explain the present invention, but simultaneously It is not as a limitation of the invention.
Need to start a large amount of intelligent bond services simultaneously for a large amount of contract transactions in assets when carrying out, and between contract assets Exchange need across service, it is across logic chain the features such as bring the problem of, the present invention proposes one by improving to intelligent contract Kind block chain assets management method.
Fig. 1 is the flow diagram of the block chain assets management method of one embodiment of the invention.As shown in Figure 1, this implementation The block chain assets management method of example, it may include:
Step S110: asset management request is received;The asset management request includes asset account and management instruction, or It also include asset class;
Step S120: according to the asset identification create-rule in intelligent contract, according to the asset account or the assets Account and the asset class generate asset identification;The asset identification create-rule is for predetermined asset account and predetermined money Produce what type was stated in advance in the intelligent contract;
Step S130: according to asset identification and assets number relevant information of the asset identification in the intelligent contract One-to-one relationship in search corresponding assets number relevant information;Asset identification in the one-to-one relationship is basis What the asset identification create-rule generated;
Step S140: the assets number relevant information found is performed corresponding processing according to management instruction.
Above-mentioned steps S110~step S140 is the management that the block chain assets of user how are realized from the description of the block end of the chain. The block chain assets management method can be realized by equipment that block chain is based on, such as server, personal computer etc.. It can be communicated based on existing various communication protocols between block chain equipment and user equipment.
In above-mentioned steps S110, asset management request can be sent to block chain by user equipment by user and set It is standby, for example, corresponding asset management request can be sent when user needs to carry out transaction in assets, queries the balance.The Assets Reorganization Taking Reason request may include asset account and management instruction, or include asset account, asset class and management instruction.Wherein, should Asset account can refer to the block chain account address of user, for distinguishing different users.User can be personal or mechanism, For example, bank, electric business etc..The asset class is used to distinguish the type of different assets, for example, gold coin, stock etc..The management refers to The content being managed for describing user to block chain digital asset is enabled, for example, producing the assets of certain number, queries asset Remaining sum, inquiry Transaction Details etc..
In above-mentioned steps S120, intelligent contract, which may include, meets the various rules for calculating scene.The asset identification is raw It needs to can be used for calculating generation asset identification according to it according to requiring to be pre-designed at rule.The asset identification can be used in The ownership of identification asset, such as identify assets which user possesses or which user possesses which kind of assets.The asset identification Create-rule is for designed by predetermined asset account and predetermined asset class.Money can be set in the asset identification create-rule It produces account and asset class may be to user as it can be seen that only asset account may be to user as it can be seen that asset account It can not be visible to user with asset class.Asset account may be in the visible situation of user, can be according only to the money It produces account and generates asset identification, for searching the Asset List of the asset account.Asset account and asset class can not be right In the visible situation of user, it is only capable of generating asset identification according to the asset account and the asset class, it is unique right to search The assets number relevant information answered.
In above-mentioned steps S130, the one-to-one relationship of asset identification and assets number relevant information can pass through list Mode indicate, can store in the database in block chain equipment or user equipment, specifically for example can store in area In the database of block chain.The assets number relevant information may include: assets remaining sum, transaction ID number (TSID) etc..It can incite somebody to action The asset identification is compared one by one with the asset identification in above-mentioned one-to-one relationship, finds matched asset identification, then According to matched asset identification find it corresponding to assets number relevant information.When the asset identification is according to the assets When account and the asset class generate, it can be searched in the one-to-one relationship according to the asset identification unique corresponding Assets number relevant information.When the asset identification is generated according to the asset account, since the asset account may Corresponding multiple assets type, so, multiple groups assets may be found in the one-to-one relationship according to the asset identification Number relevant information, one group of assets number relevant information of each corresponding asset class correspondence of asset account.
In above-mentioned steps S140, the assets number relevant information found can be carried out according to different management instructions Different processing carries out increasing or decreasing for assets number for example, instructing according to transaction in assets, is instructed and exported according to asset search The assets number to be inquired.In the case where carrying out transaction in assets processing, the asset account in foregoing assets management request can Asset account is produced so that comprising producing asset account and being transferred to asset account, the asset class in asset management request be may include Corresponding asset class asset class corresponding with asset account is transferred to.It is searched respectively according to the relevant information of different asset accounts Corresponding assets number.Producing the corresponding asset class of asset account asset class corresponding with asset account is transferred to can be identical Or it is different, in the case where asset class difference, it can be transferred to according to producing assets number and calculating according to setting trading rules Assets number.
It, can according to the asset identification that the asset identification create-rule stated in intelligent contract generates in the present embodiment For distinguishing different user or distinguishing different user and corresponding asset class, thus, it can be as a means of by this kind of asset identification The form for producing mark and the one-to-one relationship of assets number relevant information defines a large amount of block chain number in intelligent contract Assets.The service for installing a intelligence contract can realize the operation to a large amount of block chain digital assets, so intelligence is closed The maintenance cost about serviced is very low.The transaction in assets between block chain digital asset in the intelligence contract is not needed across service, no It needs across logic chain, so overhead and unpredictable risk are smaller.
In above-mentioned steps S120, which needs for predetermined asset account and predetermined asset account simultaneously It is designed according to different requirements.The specific embodiment that several different asset identifications generate is presented below, uses To illustrate the different embodiments of asset identification create-rule.
In the first embodiment, in above-mentioned steps S120, according to the asset identification create-rule in intelligent contract, according to The asset account and the asset class generate the specific embodiment of asset identification, it may include: by the asset account and The asset class is bound, and using binding result as asset identification.It, can be by the assets in more specific embodiment Account is as prefix, by the asset class after the asset account, forms the asset account and the assets The binding result of type.
In the present embodiment, asset identification create-rule refers to, substantially directly according to the binding of asset account and asset class As a result asset identification is obtained.In the case, it is had recorded in asset identification and the one-to-one relationship of assets number relevant information It, can be by the binding result about asset account and asset class about the information of asset account and the binding result of asset class Information as index, corresponding assets number relevant information is searched in the one-to-one relationship.Due to about asset account Information be recorded in above-mentioned one-to-one relationship, so, in other embodiments, can be by the information about asset account As prefix index, the assets number that the corresponding various asset class of the asset account are searched in the one-to-one relationship is related Information, for example, the Asset List of user.
In this second embodiment, in above-mentioned steps S120, according to the asset identification create-rule in intelligent contract, according to The asset account and the asset class generate the specific embodiment of asset identification, it may include: by the asset account and The asset class is bound, and generates the first unique string by carrying out encryption to binding result, as asset identification. It, can be using the asset account as prefix, by the asset class immediately the asset account in more specific embodiment Later, the binding result of the asset account and the asset class is formed.Then encryption is carried out to binding result and generates first Unique string.The algorithm of encryption for example can be symmetric encipherment algorithm, Hash Encryption Algorithm etc..Utilizing symmetric encipherment algorithm In the case where being encrypted to binding result, it can use the first unique string of key pair and be decrypted, obtain the assets The binding result of account and the asset class.
In the present embodiment, asset identification create-rule refers to, according to pair of asset account and the binding result of asset class Encrypted result is claimed to obtain asset identification.In the case, in the one-to-one relationship of asset identification and assets number relevant information The information about encrypted result is only had recorded, without recording the information about asset account and asset class, so intelligence is closed User in about can not be obtained according to asset identification in the case where cannot get key active user about asset account and money Produce the information of type.So this kind of asset identification create-rule can play the purpose of secret protection, but can not be by that will close The corresponding all assets kinds of active user are searched in above-mentioned one-to-one relationship as prefix index in the information of asset account The assets number relevant information of class.In the embodiment, key when symmetric cryptography can only be issued to corresponding user, only useful Family oneself can obtain the information of its asset account and asset class.Alternatively, the key of symmetric cryptography can only be issued to intelligence The manager of contract, the manager of intelligent contract can carry out unified decryption, in the case, intelligent contract to the information of lookup Internal user can access the information of asset account and asset class, but the user outside intelligent contract is unable to get intelligence The information of asset account and asset class inside contract, in this way, which this kind of asset identification create-rule can both play one Fixed privacy effect, and can know together in order to the information of intelligent contract internal user.
Fig. 2 is that the method flow for generating asset identification according to asset account and asset class of one embodiment of the invention is illustrated Figure.As shown in Fig. 2, in the third embodiment, in above-mentioned steps S120, generating rule according to the asset identification in intelligent contract Then, the method for asset identification being generated according to the asset account and the asset class, it may include:
Step S121: being bound and encrypted with the asset class to the partial character of the asset account, generates the Two unique strings, with the corresponding relationship of asset account described in unique identification and the asset class;
Step S122: the asset account and second unique string are bound, and using binding result as Asset identification.
In above-mentioned steps S121, for example, can by first four of the asset account and it is rear four with the asset class It is bound.The partial character of the asset account should be able to be used to distinguish the different asset accounts in the intelligence contract.
In the present embodiment, asset identification create-rule refers to, according to tying up for the partial character of asset account and asset class The fixed and result of symmetric cryptography and the binding result of asset account obtain asset identification.In the case, asset identification and assets The encryption of the binding result about asset account and asset class is not only had recorded in the one-to-one relationship of number relevant information As a result information, is also recorded the information about asset account, but without record the partial character about the asset account with The information of the binding result of the asset class.According to the encrypted result about asset account and the binding result of asset class Information is capable of corresponding relationship (but the partial character of the asset account and the assets of queries asset account and asset class The binding result of type can not be seen by the user), it is thus possible to it is closed according to asset account and asset class in above-mentioned one-to-one correspondence The assets number relevant information for which kind of asset class which user possesses is found in system.In addition, according to about asset account Information, can be found in above-mentioned one-to-one relationship the corresponding all asset class of user assets number correlation letter Breath, for example, the Asset List of user.
In the fourth embodiment, in above-mentioned steps S120, according to the asset identification create-rule in intelligent contract, according to The asset account generates the specific embodiment of asset identification can include: using the asset account as asset identification.Herein In the case of, if having recorded the information about asset account in the one-to-one relationship of asset identification and assets number relevant information (the case where to be encrypted to asset account), can be inquired according to the asset identification asset identification in the one-to-one relationship about The information of asset account part, such as the prefix index generated according to asset account, each money that available user is possessed The assets number relevant information of type is produced, such as obtains the Asset List of user.It generates and does not include asset class in asset identification, And asset identification create-rule is for predetermined asset account and predetermined asset class, at this point it is possible to which the asset identification is raw It is set as empty at the position for corresponding to asset class in rule.
In some embodiments, in the case where the asset identification is generated according to the asset account, above-mentioned steps S130, according to the asset identification in asset identification money corresponding with lookup in the one-to-one relationship of assets number relevant information Produce the specific embodiment of number relevant information, it may include: it is related to assets number in asset identification according to the asset identification The corresponding assets number relevant information of the corresponding each asset class of the asset account is searched in the one-to-one relationship of information.
In the present embodiment, the corresponding each money of the asset account that finds of asset identification that is generated according to the asset account The assets number relevant information for producing type, can be used for carrying out the work such as asset statistical, analysis.
In other embodiments, above-mentioned steps S130 is related to assets number in asset identification according to the asset identification The specific embodiment of corresponding assets number relevant information is searched in the one-to-one relationship of information, it may include: by the money It produces mark and is used as key, and search corresponding value in key assignments corresponding relationship according to the key, it is corresponding to obtain the asset identification Assets number relevant information;The key assignments corresponding relationship is used to indicate the one-to-one correspondence of asset identification Yu assets number relevant information Relationship.
In the present embodiment, the one-to-one relationship of asset identification and assets number relevant information be can store in block chain In KV database (key value database), key is used as the index value of the KV database, and value can be used for recording assets number Volume relevant information.Asset identification is usually not easy to change, and assets number relevant information is typically easy to change, so, pass through key assignments Mode realizes the one-to-one relationship of asset identification Yu assets number relevant information in which can be convenient just.
In above-mentioned steps S110, management instruction may include various different assets processing information, for example, assets are handed over Easily, asset search.Different management is instructed, in above-mentioned steps S140, is instructed according to the management to the money found The specific embodiment that production number relevant information is handled can be different.
In wherein some embodiments, in the case where management instruction is comprising transaction in assets instruction, above-mentioned steps S140 instructs the specific embodiment performed corresponding processing to the assets number relevant information found according to the management, Can include: more than the assets in assets number relevant information found according to the number of deals update in transaction in assets instruction Volume.More specifically, transaction in assets instruction can be the assets for producing above-mentioned number of deals, at this point, in above-mentioned steps S110, it should Asset management request can be issued by the user for producing assets, moreover, the asset account in asset management request may include It produces asset account and is transferred to asset account, which, which may include, produces the corresponding asset class of asset account and be transferred to The corresponding asset class of asset account produces the corresponding asset class of asset account asset class corresponding with asset account is transferred to It can be identical or different.Producing, the corresponding asset class of asset account asset class corresponding with asset account is transferred to is identical In the case of, it can find respectively and produce asset account to correspond to the assets number of this kind of asset class related to asset account is transferred to Then the assets number relevant information for producing asset account is reduced by a number of deals, will be transferred to the money of asset account by information It produces number relevant information and increases the number of deals.Producing, the corresponding asset class of asset account is corresponding with asset account is transferred to In the different situation of asset class, the assets number relevant information for producing the corresponding asset class of asset account is found respectively It, then can be according between two asset class after the assets number relevant information of asset class corresponding with asset account is transferred to Transformation rule, such as currency exchange rule, according to transaction in assets instruct in number of deals calculate and be transferred to asset account and answer Then increased assets number relevant information is respectively believed the assets number correlation for producing the corresponding asset class of asset account The assets number relevant information for ceasing asset class corresponding with asset account is transferred to accordingly is updated.
In further embodiments, in the case where management instruction is comprising asset search instruction, according to the management Instruct the specific embodiment performed corresponding processing to the assets number relevant information, it may include: it is looked into according to the assets The assets remaining sum in the instruction output assets number relevant information is ask, or the money is exported according to asset search instruction Produce the corresponding historical trading number of transaction ID number in number relevant information.The assets number relevant information includes more than assets Volume, transaction ID number (TSID) etc..Historical trading details can be found in block chain according to TSID.Asset search instruction It may include the instruction of queries asset remaining sum, the instruction etc. for inquiring Transaction Details, it can be defeated according to the instruction of queries asset remaining sum Assets remaining sum out can export historical trading number according to the instruction of inquiry Transaction Details.It is inquiry in asset search instruction In the case where assets remaining sum, assets remaining sum can be exported directly as a numerical value;It is query history in asset search instruction In the case where number of deals, the assets number relevant information found may include TSID, can be in block chain according to TSID Retrieve required Transaction Information.
Illustrate implementation of the invention with the specific embodiment of a transaction in assets below.
Fig. 3 is the interaction schematic diagram in the block chain asset management of one embodiment of the invention.Assuming that user 1 needs assets The asset class B that assets number a in type A transfers accounts to user 2.Referring to Fig. 3, user 1 can be by user equipment 1 by user 1 account address address1, asset class A, the account address address2 of user 2, assets number a, asset class B, turn Account instruction etc. is input to the service of intelligent contract of the invention.
Tens of thousands of a block chain digital assets are defined in intelligent bond service of the invention.Intelligent contract records block chain The binding relationship of account address, the end-state of block chain contract assets and account and asset class symbol, in turn Corresponding amount of assets, for distinguishing some account, possessing certain digital asset, how many amount.The intelligence contract is according to address It is identification information with symbol, generates assets unique identification using sha256 encryption or symmetric cryptography (AES).Use unique identification As key value, remaining sum amount, the Value=amount of value record identification are stored in KV in a manner of key=value In database.Thus, so that it may by an intelligent contract administration and record several hundred thousands of kinds of digital assets.Wherein key It can be arranged by following three kinds of modes.
Mode one: Key=address_symbol is carried out by account address address, assets symbol symbol in this way Binding is used as unique index, queries asset balance information;It can be simultaneously prefix index by address, inquire address pairs All assets remaining sum lists answered, but this mode can be in contract storage inside account address and assets symbol, concealment is not By force.
Mode two: key=AES (address_symbol) passes through AES using the character string after address+symbol The mode of encryption generates a unique string as index value, can play the purpose of secret protection in this way, but cannot lead to Address is crossed as prefix, inquires the corresponding all Asset Lists of account.
Mode three: asset addresses: Address+base64 (AES (preceding the four of four+symbol+address after address Position)), it by the list of asset addresses queries asset and can be parsed according to account address and assets symbol inquiry assets remaining sum Assets remaining sum out can also pass through asset addresses queries asset remaining sum.
Assets mark can be generated according to one of aforesaid way according to the account address address1 of user 1 and asset class A Know address1_A, according to asset identification address1_A as index value, inquires KV database, account address can be found The corresponding assets remaining sum x of address1 and asset class A;According to the account address address2 of user 2 and asset class B foundation Asset identification address2_B can be generated in one of aforesaid way, according to asset identification address2_B as index value, inquiry KV database can find the corresponding assets remaining sum y of account address address2 and asset class B.
If, can be only in a contract, and in the identical situation of the trading rules of asset class A and asset class B Realize the exchange that two kinds of assets of A and B are carried out between user 1 and user 2 by x-a, y+a, the transaction of block chain realize across Assets circulation.If needing the external common recognition of contract in different contracts.It is then possible to by transaction in assets as a result, including account Family address address1 and asset class A corresponding new assets remaining sum x ', account address address2 and asset class B is corresponding The information such as new assets remaining sum y ' be sent in block chain, record gets up.
It can be seen that user only with installation one service, so that it may trade hundreds of, thousands of kinds of digital assets, reduce dimension Cost is protected, trading efficiency is improved.Generally contract code is all disclosed, some have programming basis, some do not have, many leaky Contract assets, it is so huge wind for the user of no technical capability that publisher, which deliberately increases the loophole for being conducive to oneself, Danger, user can not often identify, if multiple assets contract follows the assets contract template of official, be sent out based on a template Row has thus prevented problems to a certain extent, reduces user to the assessed cost of contract, new user can pass through group Realization knows identification contract technical risk, improves identification, can also reduce trust cost with this.Such contract can be by authoritative machine Structure is runed and is safeguarded, with a high credibility, highly-safe.
Based on inventive concept identical with block chain assets management method shown in FIG. 1, the embodiment of the present application also provides A kind of block chain asset management device, as described in following example.The original solved the problems, such as due to the block chain asset management device Reason is similar to block chain assets management method, therefore the implementation of the block chain asset management device may refer to block chain Assets Reorganization Taking The implementation of reason method, overlaps will not be repeated.
Fig. 4 is the structural schematic diagram of the block chain asset management device of one embodiment of the invention.As shown in figure 4, this implementation The block chain asset management device of example, it may include: request reception unit 210, identification generation unit 220, data searching unit 230 And Data Management Unit 240, above-mentioned each unit are linked in sequence.
Request reception unit 210, is used for: receiving asset management request;Asset management request comprising asset account and Management instruction, or also include asset class;
Identification generation unit 220, is used for: according to the asset identification create-rule in intelligent contract, according to the assets account Family or the asset account and the asset class generate asset identification;The asset identification create-rule is for predetermined assets What account and predetermined asset class were stated in advance in the intelligent contract;
Data searching unit 230, is used for: according to the asset identification in asset identification and the one of assets number relevant information Corresponding assets number relevant information is searched in one corresponding relationship;Asset identification in the one-to-one relationship is according to What asset identification create-rule generated;
Data Management Unit 240, is used for: carrying out phase to the assets number relevant information found according to the management instruction The processing answered.
In some embodiments, identification generation unit 220 may include first identifier generation module, be used for the assets account Family and the asset class are bound, and using binding result as asset identification.
In another embodiment, identification generation unit 220 may include second identifier generation module, be used for the assets account Family and the asset class are bound, and generate the first unique string by carrying out symmetric cryptography to binding result, as Asset identification.
In another embodiment, identification generation unit 220 may include third identifier generation module, be used for: to the assets The partial character of account is bound and is encrypted with the asset class, the second unique string is generated, described in unique identification The corresponding relationship of asset account and the asset class;The asset account and second unique string are bound, And using binding result as asset identification.
In some embodiments, data searching unit 230 includes the first data search module, is used for: in the asset identification It is in the case where being generated according to the asset account, according to the asset identification in asset identification and assets number relevant information The corresponding assets number relevant information of the corresponding each asset class of the asset account is searched in one-to-one relationship.
In other embodiments, data searching unit 230 includes the second data search module, is used for: by the assets mark Know and be used as key, and search corresponding value in key assignments corresponding relationship according to the key, obtains the corresponding assets of the asset identification Number relevant information;The key assignments corresponding relationship is used to indicate that the one-to-one correspondence of asset identification and assets number relevant information to close System.
In some embodiments, Data Management Unit 240 is used for: in the feelings of the management instruction comprising transaction in assets instruction Under condition, updated more than the assets in the assets number relevant information that finds according to the number of deals in transaction in assets instruction Volume;In the case where management instruction is comprising asset search instruction, the assets number is exported according to asset search instruction Assets remaining sum in volume relevant information, or according to the friendship in the asset search instruction output assets number relevant information The corresponding historical trading number of easy identification number.
The embodiment of the present invention also provides a kind of computer readable storage medium, is stored thereon with computer program, the program The step of the various embodiments described above the method is realized when being executed by processor.
The embodiment of the present invention also provides a kind of computer equipment, including memory, processor and storage are on a memory simultaneously The computer program that can be run on a processor, the processor realize the various embodiments described above the method when executing described program The step of.
In conclusion the block chain assets management method of the embodiment of the present invention, block chain asset management device, computer can Storage medium and computer equipment are read, according to the asset identification that the asset identification create-rule stated in intelligent contract generates, It can be used in distinguishing different user or distinguish different user and corresponding asset class, thus, it can be with by this kind of asset identification With a large amount of block of formal definition of asset identification and the one-to-one relationship of assets number relevant information in the intelligence contract Chain digital asset.The service for installing a intelligence contract can realize the operation to a large amount of block chain digital assets, so The maintenance cost of intelligent bond service is very low.The transaction in assets between block chain digital asset in the intelligence contract is not needed across clothes It is engaged in, do not need across logic chain, so overhead and unpredictable risk are smaller.
In the description of this specification, reference term " one embodiment ", " specific embodiment ", " some implementations Example ", " such as ", the description of " example ", " specific example " or " some examples " etc. mean it is described in conjunction with this embodiment or example Particular features, structures, materials, or characteristics are included at least one embodiment or example of the invention.In the present specification, Schematic expression of the above terms may not refer to the same embodiment or example.Moreover, the specific features of description, knot Structure, material or feature can be combined in any suitable manner in any one or more of the embodiments or examples.Each embodiment Involved in the step of sequence be used to schematically illustrate implementation of the invention, sequence of steps therein is not construed as limiting, can be as needed It appropriately adjusts.
It should be understood by those skilled in the art that, the embodiment of the present invention can provide as method, system or computer program Product.Therefore, complete hardware embodiment, complete software embodiment or reality combining software and hardware aspects can be used in the present invention Apply the form of example.Moreover, it wherein includes the computer of computer usable program code that the present invention, which can be used in one or more, The computer program implemented in usable storage medium (including but not limited to magnetic disk storage, CD-ROM, optical memory etc.) produces The form of product.
The present invention be referring to according to the method for the embodiment of the present invention, the process of equipment (system) and computer program product Figure and/or block diagram describe.It should be understood that every one stream in flowchart and/or the block diagram can be realized by computer program instructions The combination of process and/or box in journey and/or box and flowchart and/or the block diagram.It can provide these computer programs Instruct the processor of general purpose computer, special purpose computer, Embedded Processor or other programmable data processing devices to produce A raw machine, so that being generated by the instruction that computer or the processor of other programmable data processing devices execute for real The device for the function of being specified in present one or more flows of the flowchart and/or one or more blocks of the block diagram.
These computer program instructions, which may also be stored in, is able to guide computer or other programmable data processing devices with spy Determine in the computer-readable memory that mode works, so that it includes referring to that instruction stored in the computer readable memory, which generates, Enable the manufacture of device, the command device realize in one box of one or more flows of the flowchart and/or block diagram or The function of being specified in multiple boxes.
These computer program instructions also can be loaded onto a computer or other programmable data processing device, so that counting Series of operation steps are executed on calculation machine or other programmable devices to generate computer implemented processing, thus in computer or The instruction executed on other programmable devices is provided for realizing in one or more flows of the flowchart and/or block diagram one The step of function of being specified in a box or multiple boxes.
Particular embodiments described above has carried out further in detail the purpose of the present invention, technical scheme and beneficial effects Describe in detail it is bright, it should be understood that the above is only a specific embodiment of the present invention, the guarantor being not intended to limit the present invention Range is protected, all within the spirits and principles of the present invention, any modification, equivalent substitution, improvement and etc. done should be included in this Within the protection scope of invention.

Claims (10)

1. a kind of block chain assets management method characterized by comprising
Receive asset management request;The asset management request includes asset account and management instruction, or also includes assets kind Class;
According to the asset identification create-rule in intelligent contract, according to the asset account or the asset account and the assets Type generates asset identification;The asset identification create-rule is for predetermined asset account and predetermined asset class in the intelligence It is stated in advance in energy contract;
According to the asset identification in asset identification money corresponding with lookup in the one-to-one relationship of assets number relevant information Produce number relevant information;Asset identification in the one-to-one relationship is generated according to the asset identification create-rule;
The assets number relevant information found is performed corresponding processing according to management instruction.
2. block chain assets management method as described in claim 1, which is characterized in that according to the asset identification in intelligent contract Create-rule generates asset identification according to the asset account and the asset class, comprising:
The asset account and the asset class are bound, and using binding result as asset identification.
3. block chain assets management method as described in claim 1, which is characterized in that according to the asset identification in intelligent contract Create-rule generates asset identification according to the asset account and the asset class, comprising:
The asset account and the asset class are bound, and generate first uniquely by carrying out encryption to binding result Character string, as asset identification.
4. block chain assets management method as described in claim 1, which is characterized in that according to the asset identification in intelligent contract Create-rule generates asset identification according to the asset account and the asset class, comprising:
The partial character of the asset account is bound and is encrypted with the asset class, the second unique string is generated, With the corresponding relationship of asset account described in unique identification and the asset class;
The asset account and second unique string are bound, and using binding result as asset identification.
5. block chain assets management method as claimed in claim 2 or 4, which is characterized in that in the asset identification be basis In the case that the asset account generates, according to the asset identification in the one a pair of of asset identification and assets number relevant information It should be related to the middle corresponding assets number relevant information of lookup, comprising:
The assets are searched in the one-to-one relationship of asset identification and assets number relevant information according to the asset identification The corresponding assets number relevant information of the corresponding each asset class of account.
6. block chain assets management method as described in claim 1, which is characterized in that according to the asset identification in assets mark Know and search corresponding assets number relevant information in the one-to-one relationship of assets number relevant information, comprising:
Using the asset identification as key, and corresponding value is searched in key assignments corresponding relationship according to the key, obtains the money It produces and identifies corresponding assets number relevant information;The key assignments corresponding relationship is for indicating asset identification letter related to assets number The one-to-one relationship of breath.
7. block chain assets management method as described in claim 1, which is characterized in that
In the case where management instruction is comprising transaction in assets instruction, instructed according to the management to the assets number found Relevant information performs corresponding processing, comprising:
The assets remaining sum in the assets number relevant information found is updated according to the number of deals in transaction in assets instruction;
In the case where management instruction is comprising asset search instruction, instructed according to the management to the assets number found Relevant information performs corresponding processing, comprising:
The assets remaining sum in the assets number relevant information is exported according to asset search instruction, or according to the assets Inquiry instruction exports the corresponding historical trading number of transaction ID number in the assets number relevant information.
8. a kind of block chain asset management device characterized by comprising
Request reception unit is used for: receiving asset management request;The asset management request refers to comprising asset account and management It enables, or also includes asset class;
Identification generation unit is used for: according to the asset identification create-rule in intelligent contract, according to the asset account or described Asset account and the asset class generate asset identification;The asset identification create-rule is for predetermined asset account and pre- Determine what asset class was stated in advance in the intelligent contract;
Data searching unit is used for: according to the asset identification asset identification and assets number relevant information one-to-one correspondence Corresponding assets number relevant information is searched in relationship;Asset identification in the one-to-one relationship is according to the assets mark Know what create-rule generated;
Data Management Unit is used for: being located accordingly according to management instruction to the assets number relevant information found Reason.
9. a kind of computer readable storage medium, is stored thereon with computer program, which is characterized in that the program is held by processor The step of claim 1 to 7 the method is realized when row.
10. a kind of computer equipment including memory, processor and stores the meter that can be run on a memory and on a processor Calculation machine program, which is characterized in that the step of processor realizes claim 1 to 7 the method when executing described program.
CN201810651828.1A 2018-06-22 2018-06-22 Block chain assets management method and device Withdrawn CN109003184A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201810651828.1A CN109003184A (en) 2018-06-22 2018-06-22 Block chain assets management method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201810651828.1A CN109003184A (en) 2018-06-22 2018-06-22 Block chain assets management method and device

Publications (1)

Publication Number Publication Date
CN109003184A true CN109003184A (en) 2018-12-14

Family

ID=64601985

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201810651828.1A Withdrawn CN109003184A (en) 2018-06-22 2018-06-22 Block chain assets management method and device

Country Status (1)

Country Link
CN (1) CN109003184A (en)

Cited By (13)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109669955A (en) * 2018-12-20 2019-04-23 姚前 A kind of digital asset inquiry system and method based on block chain
CN110009496A (en) * 2019-03-21 2019-07-12 海南新软软件有限公司 A kind of block voucher is supplemented with money and extracting method, apparatus and system
CN110457398A (en) * 2019-08-15 2019-11-15 广州蚁比特区块链科技有限公司 Block data storage method and device
CN110728579A (en) * 2019-10-11 2020-01-24 深圳市网心科技有限公司 Asset management method, block chain platform, equipment and storage medium
US10700850B2 (en) 2018-11-27 2020-06-30 Alibaba Group Holding Limited System and method for information protection
US10715500B2 (en) 2018-11-27 2020-07-14 Alibaba Group Holding Limited System and method for information protection
US10726657B2 (en) 2018-11-27 2020-07-28 Alibaba Group Holding Limited System and method for information protection
CN111475849A (en) * 2019-11-08 2020-07-31 支付宝(杭州)信息技术有限公司 Private data query method and device based on block chain account
CN111815309A (en) * 2020-08-28 2020-10-23 支付宝(杭州)信息技术有限公司 Block chain-based cross-currency settlement method and device and electronic equipment
US10938549B2 (en) 2018-11-27 2021-03-02 Advanced New Technologies Co., Ltd. System and method for information protection
US11080694B2 (en) 2018-11-27 2021-08-03 Advanced New Technologies Co., Ltd. System and method for information protection
US11102184B2 (en) 2018-11-27 2021-08-24 Advanced New Technologies Co., Ltd. System and method for information protection
US11144918B2 (en) 2018-08-06 2021-10-12 Advanced New Technologies Co., Ltd. Method, apparatus and electronic device for blockchain transactions

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105976246A (en) * 2016-04-29 2016-09-28 北京太云科技有限公司 Block chain-based digital asset superposition method and device
CN106022741A (en) * 2016-05-19 2016-10-12 北京太云科技有限公司 Indivisible digital asset transfer method based on block chain
CN106600403A (en) * 2016-11-07 2017-04-26 北京金股链科技有限公司 Asset management method, device and system
CN107481140A (en) * 2017-07-24 2017-12-15 湖南搜云网络科技股份有限公司 Voucher identification code processing method and system, server and storage medium
US20170366516A1 (en) * 2016-06-16 2017-12-21 The Bank Of New York Mellon Managing verifiable, cryptographically strong transactions
CN107844978A (en) * 2017-11-30 2018-03-27 中链科技有限公司 A kind of staple commodities transaction processing method and system based on block chain

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105976246A (en) * 2016-04-29 2016-09-28 北京太云科技有限公司 Block chain-based digital asset superposition method and device
CN106022741A (en) * 2016-05-19 2016-10-12 北京太云科技有限公司 Indivisible digital asset transfer method based on block chain
US20170366516A1 (en) * 2016-06-16 2017-12-21 The Bank Of New York Mellon Managing verifiable, cryptographically strong transactions
CN106600403A (en) * 2016-11-07 2017-04-26 北京金股链科技有限公司 Asset management method, device and system
CN107481140A (en) * 2017-07-24 2017-12-15 湖南搜云网络科技股份有限公司 Voucher identification code processing method and system, server and storage medium
CN107844978A (en) * 2017-11-30 2018-03-27 中链科技有限公司 A kind of staple commodities transaction processing method and system based on block chain

Cited By (26)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US11144918B2 (en) 2018-08-06 2021-10-12 Advanced New Technologies Co., Ltd. Method, apparatus and electronic device for blockchain transactions
US11295303B2 (en) 2018-08-06 2022-04-05 Advanced New Technologies Co., Ltd. Method, apparatus and electronic device for blockchain transactions
US10726657B2 (en) 2018-11-27 2020-07-28 Alibaba Group Holding Limited System and method for information protection
US11080694B2 (en) 2018-11-27 2021-08-03 Advanced New Technologies Co., Ltd. System and method for information protection
US10700850B2 (en) 2018-11-27 2020-06-30 Alibaba Group Holding Limited System and method for information protection
US10715500B2 (en) 2018-11-27 2020-07-14 Alibaba Group Holding Limited System and method for information protection
US10938549B2 (en) 2018-11-27 2021-03-02 Advanced New Technologies Co., Ltd. System and method for information protection
US11282325B2 (en) 2018-11-27 2022-03-22 Advanced New Technologies Co., Ltd. System and method for information protection
US10748370B2 (en) 2018-11-27 2020-08-18 Alibaba Group Holding Limited System and method for information protection
US11277389B2 (en) 2018-11-27 2022-03-15 Advanced New Technologies Co., Ltd. System and method for information protection
US10885735B2 (en) 2018-11-27 2021-01-05 Advanced New Technologies Co., Ltd. System and method for information protection
US10892888B2 (en) 2018-11-27 2021-01-12 Advanced New Technologies Co., Ltd. System and method for information protection
US11218455B2 (en) 2018-11-27 2022-01-04 Advanced New Technologies Co., Ltd. System and method for information protection
US11127002B2 (en) 2018-11-27 2021-09-21 Advanced New Technologies Co., Ltd. System and method for information protection
US11102184B2 (en) 2018-11-27 2021-08-24 Advanced New Technologies Co., Ltd. System and method for information protection
CN109669955B (en) * 2018-12-20 2022-05-31 姚前 Digital asset query system and method based on block chain
CN109669955A (en) * 2018-12-20 2019-04-23 姚前 A kind of digital asset inquiry system and method based on block chain
CN110009496B (en) * 2019-03-21 2021-06-29 海南新软软件有限公司 Recharging and extracting method, device and system for block voucher
CN110009496A (en) * 2019-03-21 2019-07-12 海南新软软件有限公司 A kind of block voucher is supplemented with money and extracting method, apparatus and system
CN110457398A (en) * 2019-08-15 2019-11-15 广州蚁比特区块链科技有限公司 Block data storage method and device
CN110728579A (en) * 2019-10-11 2020-01-24 深圳市网心科技有限公司 Asset management method, block chain platform, equipment and storage medium
WO2021068508A1 (en) * 2019-10-11 2021-04-15 深圳市网心科技有限公司 Asset management method, blockchain platform, device, and storage medium
CN111475849B (en) * 2019-11-08 2024-03-12 支付宝(杭州)信息技术有限公司 Private data query method and device based on blockchain account
CN111475849A (en) * 2019-11-08 2020-07-31 支付宝(杭州)信息技术有限公司 Private data query method and device based on block chain account
CN111815309A (en) * 2020-08-28 2020-10-23 支付宝(杭州)信息技术有限公司 Block chain-based cross-currency settlement method and device and electronic equipment
US11354744B2 (en) 2020-08-28 2022-06-07 Alipay (Hangzhou) Information Technology Co., Ltd. Blockchain-based cross-currency settlement methods, apparatuses, and devices

Similar Documents

Publication Publication Date Title
CN109003184A (en) Block chain assets management method and device
US11438167B2 (en) Method and server for providing notary service for file and verifying file recorded by notary service
Gao et al. CoC: A unified distributed ledger based supply chain management system
Gai et al. Security and privacy issues: A survey on FinTech
US20190354606A1 (en) Private Cryptocoinage in Blockchain Environments
US20200042982A1 (en) Digital Contracts in Blockchain Environments
KR101936756B1 (en) Apparatus for Supporting Sharing Economy using Blockchain
US10318932B2 (en) Payment card processing system with structure preserving encryption
CN110224808A (en) Bank data sharing method and relevant device based on block chain
Knirsch et al. Privacy-preserving smart grid tariff decisions with blockchain-based smart contracts
KR101936757B1 (en) Distributed Ledger Device and Distributed Ledger Method for Supporting Sharing Economy
KR101962290B1 (en) Distributed Ledger Device for Supporting Sharing Economy
KR101962289B1 (en) Distributed Ledger Device for Supporting Sharing Economy
CN108197214B (en) Method and system for inquiring digital currency transaction information
CN108092778B (en) Method and system for inquiring related account based on digital currency wallet
CN103973668A (en) Server-side personal privacy data protecting method in network information system
CN114900290A (en) Data transaction model and privacy protection method based on block chain
CN108876593A (en) A kind of online transaction method and apparatus
US20210374724A1 (en) Secure digital wallet processing system
CN111667270A (en) Region-based digital currency using method and device and electronic equipment
CN111667273A (en) Digital currency using method and device based on region and main body and electronic equipment
KR101962288B1 (en) Apparatus for Sharing Economy using Blockchain
CN113626853A (en) Searchable encryption method based on block chain and information data processing terminal
CN111667271A (en) Digital currency using method and device based on region and time and electronic equipment
CN109685448A (en) A kind of engineering project bidding Management method and 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
TA01 Transfer of patent application right

Effective date of registration: 20210121

Address after: 215163 No. 9 Xuesen Road, Science and Technology City, Suzhou High-tech Zone, Jiangsu Province

Applicant after: Suzhou Lang run innovation intellectual property operation Co.,Ltd.

Address before: 100034 4008, 4 floor, 9 building, 56 half moon street, Xicheng District, Beijing.

Applicant before: SINOCHAIN TECHNOLOGY Co.,Ltd.

TA01 Transfer of patent application right
WW01 Invention patent application withdrawn after publication

Application publication date: 20181214

WW01 Invention patent application withdrawn after publication