A kind of trustship of digital cash assets and transfer method based on intelligent contract

文档序号:1756501 发布日期:2019-11-29 浏览:16次 中文

阅读说明:本技术 一种基于智能合约的数字货币资产托管与转移方法 (A kind of trustship of digital cash assets and transfer method based on intelligent contract ) 是由 何道敬 李世豪 于 2019-08-22 设计创作,主要内容包括:本发明公开了一种基于智能合约的数字货币资产托管与转移方法,包括:记录用户充值的类型与金额;保存用户的资产条件转移设置;用户申请手动转账时处理转账请求;用户申请提现时处理提现请求;资产转移条件满足时执行资产转移操作。本发明利用了智能合约技术的特性,保障了被托管的资产在用户私钥丢失或被盗情况下的安全,与此同时用户仍能够方便地自由使用资产。(The invention discloses a kind of digital cash assets trustship based on intelligent contract and transfer methods, comprising: the type and the amount of money that record user supplements with money;Save the assets conditional jump setting of user;User's application handles transfer request when transferring accounts manually;User's application handles request of withdrawing deposit when withdrawing deposit;Assets transfer operation is executed when assets transfer condition meets.Present invention utilizes the characteristics of intelligent contract technology, have ensured the safety of assets in trust under private key for user loss or stolen situation, user still is able to easily freely use assets at the same time.)

1. a kind of trustship of digital cash assets and transfer method based on intelligent contract, which is characterized in that this method includes following Specific steps:

Step S1, processing are supplemented with money

User supplements with money, i.e., when the assets for oneself needing trustship being transferred accounts to intelligent contract corresponding account, intelligent contract record The type and the amount of money for the assets that the user is supplemented with money, and update user's assets remaining sum;

Step S2, preservation condition transfer setting

Intelligent contract saves the one or more assets conditional jump setting that user is configured, and assets conditional jump setting includes being intended to Assets transfer type, shift the amount of money, the account that diverts the aim, assets transfer condition, assets transfer mode and the transfer setting be It is no to allow to be revoked or modify;

Step S3, processing are transferred accounts manually

When user's application is directly transferred accounts using all or part of assets in advance, intelligent contract is by all or part of trustship Assets, which are transferred accounts, gives user's destiny account, if user transfers accounts whole funds, entire method is terminated in advance;

Step S4, processing are withdrawn deposit

When user's application terminates the trustship of all or part of fund in advance, intelligent contract proposes all or part of assets of trustship It is existing, i.e., used account when supplementing with money of the assets of specified quantity being transferred accounts to user, if user withdraws deposit whole funds, entirely Method terminates in advance;

Step S5 executes condition assets transfer

When the assets transfer condition being arranged in step S2 meets, intelligent contract executes assets transfer operation, by specified assets It transfers accounts to target account, if executing user's assets remaining sum after assets transfer is 0, entire method terminates, and otherwise waits for user hand Dynamic to re-execute the steps after S2-S4 makes all assets be transferred or withdraw deposit, entire method terminates.

2. digital cash assets trustship according to claim 1 and transfer method, which is characterized in that in the step S1 In, it further include that intelligent contract saves verification condition when the assets of user setting use and corresponding verification mode;At this point, described In step S2-S4, intelligent contract will also judge which kind of verifying the operation request user and assets need to carry out, and then carry out Corresponding verifying, respective operations are carried out if being verified, otherwise prevent the operation;The verification condition of user setting includes operation Type, accumulative period, asset class and assets amount of money threshold value;Verification mode is then when user operates within the accumulative period of setting Fund have reached or when more than respective operations type in verification condition, the assets amount of money threshold value of asset class setting, need The verification method of progress.

3. digital cash assets trustship according to claim 1 and transfer method, which is characterized in that in the step S2 In, it also include the revocation phase of certain time in the assets conditional jump setting that user is configured;Then in the step S5, when turn After shifting condition meets, intelligent contract will wait the revocation phase corresponding time, if user is within the revocation phase without this time of application to set aside Assets transfer then executes this assets transfer operation, otherwise cancels this assets transfer operation.

4. digital cash assets trustship according to claim 1 and transfer method, which is characterized in that in the step S2 In, it also include whether to need to divert the aim after account is actively applied just to turn in the assets conditional jump setting that user is configured It moves;If desired, then in the step S5, need etc. target accounts actively application transfer after, just progress assets transfer operation.

5. digital cash assets trustship according to claim 1 and transfer method, which is characterized in that in the step S2 In, jump condition includes that intelligent contract can directly be confirmed whether that the condition met, and intelligent contract are needed from block catenary system It can just be confirmed whether the condition met after obtaining information from the external system other than block catenary system.

6. digital cash assets trustship according to claim 1 and transfer method, which is characterized in that in the step S2- In S3, according to the setting of user, assets transfer or transfers accounts manually including two ways: updating assets transfer in this intelligence contract Or it is transferred to the assets remaining sum for producing both sides after generation of transferring accounts manually, and mentioned without actual assets transfer, or by the assets Now arrive the side's of producing account.

7. digital cash assets trustship according to claim 1 and transfer method, which is characterized in that in the step S2- In S4, if execute setting, transfer accounts or operation of withdrawing deposit after, condition set by account surplus assets number less-than condition assets transfer Assets transfer total value or account surplus assets number are less than 0, then intelligent contract will prevent the execution of the operation;User needs The operation is abandoned, or returns to step S2 and the condition assets transfer setting for being allowed to modify or cancel is modified or removed Pin, or return to step S1 and supplemented with money, until the operation is not prevented by above-mentioned limitation.

8. digital cash assets trustship according to claim 1 and transfer method, which is characterized in that in the step S3 In, if the corresponding digital cash platform of intelligent contract provides the transfer operation interface of standard, behavior of originally transferring accounts uses this turn Account interface.

9. digital cash assets trustship according to claim 3 and transfer method, which is characterized in that removed if user has been arranged Pin phase, system will remind whether user exercises revocation power when entering the revocation phase;The interim revocation of user setting further includes hanging The reward phase, i.e., revocation the phase close to an end before one period;If other users are reminded to put user on someone's head and successfully exercise within the phase of putting on someone's head and be removed Pin power, then system will put on someone's head and transfer accounts to reminder as the assets put on someone's head as reward specified by user.

10. digital cash assets trustship according to claim 5 and transfer method, which is characterized in that if user setting Jump condition needs to obtain whether external data ability Rule of judgment meets, then judgment mode includes: actively will by external system Judged after external data deposit block catenary system by intelligent contract, and the judgement for whether being met condition by external system As a result deposit block catenary system is used for intelligent contract;Wherein external system includes: the system controlled by believable single organization, And by it is multiple form, every time execute when selected part or all tissue codetermine result system.

Technical field

The present invention relates to block chain technical field, in particular to a kind of digital cash assets trustship based on intelligent contract with Transfer method.

Background technique

With the development of block chain technology, people constantly propose the enthusiasm of the encryption digital cash based on block chain technology It rises.Digital cash type has been developed to thousands of kinds, and total market capitalisation has reached more than 8,000 hundred million dollars in January, 2018.Digital cash tool There are decentralization, anonymization, be difficult to tamper with and the characteristics such as forge, therefore is received by more and more people.

However, the characteristics of due to digital cash itself, the digital cash that user possesses under an account is gathered around and if only if it There is the corresponding private key of account.As a result, when account private key is grasped by other people, other people just have the complete control to entire account System power.Due to the trade system of digital cash decentralization, there is no the authoritative institutions of centralization can carry out Frozen Account, removes The operations such as pin transaction, so can not almost prevent the assets in other people hijack accounts.Likewise, if user forgets the close of oneself Key, perhaps because equal fortuitous events dead suddenly lose the assets in the control account to account be also difficult to be given for change or after It holds.Existing assets management method attempt solve subproblem, but often bring technology complexity be difficult with and verify, center Change mode brings a series of new problems such as security risk, limitation assets circulation.So existing digital cash assets trustship with turn Problems demand existing for shifting method solves.

Summary of the invention

The purpose of the present invention is to overcome the shortcomings of the existing technology and deficiency, provides a kind of digital goods based on intelligent contract The trustship of coin assets and transfer method, be utilized intelligent contract technology it is open and clear, can not distort, decentralization and force hold Capable characteristic so that when private key for user is stolen or loses, still be able to guarantee digital cash assets in trust can by by It is handled according to the wish of user.

Realizing the specific technical solution of the object of the invention is:

A kind of trustship of digital cash assets and transfer method based on intelligent contract, this method comprising the following specific steps

Step S1, processing are supplemented with money

User supplements with money, i.e., when the assets for oneself needing trustship being transferred accounts to intelligent contract corresponding account, intelligent contract The type and the amount of money of the assets that the user is supplemented with money are recorded, and updates user's assets remaining sum;

Step S2, preservation condition transfer setting

Intelligent contract saves the one or more assets conditional jump setting that user is configured, assets conditional jump setting packet Type to be transferred assets is included, the amount of money, the account that diverts the aim, assets transfer condition, assets transfer mode and the transfer is shifted and sets Whether set allows to be revoked or modify;

Step S3, processing are transferred accounts manually

When user's application is directly transferred accounts using all or part of assets in advance, intelligent contract by the whole of trustship or Part assets, which are transferred accounts, gives user's destiny account, if user transfers accounts whole funds, entire method is terminated in advance;

Step S4, processing are withdrawn deposit

When user's application terminates the trustship of all or part of fund in advance, intelligent contract provides all or part of trustship Production is withdrawn deposit, i.e., used account when supplementing with money of the assets of specified quantity being transferred accounts to user, if user withdraws deposit whole funds, Entire method terminates in advance;

Step S5 executes condition assets transfer

When the assets transfer condition being arranged in step S2 meets, intelligent contract executes assets transfer operation, will be specified Assets are transferred accounts to target account, if executing user's assets remaining sum after assets transfer is 0, entire method terminates, and otherwise waits for using Family is re-execute the steps manually after S2-S4 makes all assets be transferred or withdraw deposit, and entire method terminates.

In step S1 of the invention, further include intelligent contract save verification condition when the assets of user setting use with it is right Answer verification mode;At this point, intelligent contract will also judge the operation and money requested user in step S2-S4 of the invention Which kind of verifying production needs to carry out, and is then verified accordingly, respective operations are carried out if being verified, otherwise prevent the behaviour Make;The verification condition of user setting includes operation species, accumulative period, asset class and assets amount of money threshold value;Verification mode is then For when the fund that user operates within the accumulative period of setting has reached or is more than respective operations type, assets in verification condition When the assets amount of money threshold value of type setting, the verification method carried out is needed.

It also include the revocation of certain time in step S2 of the invention, in the assets conditional jump setting that user is configured Phase;Then in step S5 of the invention, after jump condition meets, intelligent contract will wait the revocation phase corresponding time, if with Family secondary assets transfer without application to set aside within the revocation phase then executes this assets transfer operation, otherwise cancels this assets Transfer operation.

If the revocation phase has been arranged in user, system will remind whether user exercises revocation power when entering the revocation phase;User The interim revocation of setting further includes the phase of putting on someone's head, i.e., revocation the phase close to an end before one period;If other users are within the phase of putting on someone's head Prompting puts user on someone's head and successfully exercises the rights of rescission, then system will put on someone's head specified by user and transfer accounts as the assets put on someone's head to reminder As reward.

In step S2 of the invention, also comprising whether needing to divert the aim in the assets conditional jump setting that user is configured Account is just shifted after actively applying;If desired, then in step S5 of the invention, the actively application transfer of the target accounts such as need Afterwards, assets transfer operation is just carried out.

In step S2 of the invention, jump condition includes that intelligent contract directly can be confirmed whether to meet from block catenary system Condition, and intelligent contract needs just be confirmed whether after obtaining information from the external system other than block catenary system to meet Condition.

If the jump condition of user setting needs to obtain external data, whether ability Rule of judgment meets, judgment mode packet It includes: actively external data being stored in after block catenary system by external system and is judged by intelligent contract, and by external system The judgement result deposit block catenary system whether condition meets is used for intelligent contract;Wherein external system includes: by credible Single organization control system, and by it is multiple form, every time execute when selected part or all tissue co-determination As a result system.

In step S2-S3 of the invention, according to the setting of user, assets transfer or transfer accounts manually including two ways: In It is transferred to the assets remaining sum for producing both sides after updating assets transfer in this intelligence contract or generation of transferring accounts manually, and without actual Assets transfer is withdrawn deposit to save issuable service charge, or by the assets to the side's of producing account.

In step S2-S4 of the invention, if execute setting, transfer accounts or operation of withdrawing deposit after, account surplus assets number is less than Conditional jump total assets or account surplus assets number set by condition assets transfer are less than 0, then intelligent contract will hinder The only execution of the operation;User needs to abandon the operation, or returns to step S2 to the condition for being allowed to modify or cancel Assets transfer setting is modified or is cancelled, or is returned to step S1 and supplemented with money, until the operation is not prevented by above-mentioned limitation.

In step S3 of the invention, if the transfer operation that the corresponding digital cash platform of intelligent contract provides standard connects Mouthful, then originally the interface of transferring accounts can be used in the behavior of transferring accounts.

The beneficial effects of the present invention are:

After digital cash assets are stored in intelligent contract by user, it can be set and shift certain property when certain condition occurs To designated user.User can use this characteristic, and when oneself, which is arranged, can not access the account, the surplus assets of oneself are shifted To destiny account.Conditional jump be arranged based on intelligent contract technology it is open and clear, can not distort, decentralization and force hold Capable characteristic has ensured the accurate execution of user setting.

Other automatic jump conditions can also be arranged in user, or are transferred accounts and withdrawn deposit manually, wherein transferring accounts manually Other systems such as third party's digital cash wallet can be directly compatible with, so that the assets of user still have biggish mobility.With Family also can operate open-authentication to these, need double factor to verify when such as transferring accounts, so that even if leading because account private key is revealed Account is caused to be controlled by attacker, attacker still cannot directly shift assets in trust.

Wish based on user, whole operation can be based entirely on block chains to ensure maximum safety, Huo Zheyun Perhaps more multi-functional to bring with the interaction of external system.External system is not limited only to specific centralized system, can also be The system of the heart, to increase cost of doing evil.This method is also provided with the revocation phase and puts on someone's head the phase, therefore even if what this method was relied on External system is fully controlled by attacker, remains to ensure that user is notified the operation that revocation attack generates by intelligent contract.

To sum up, the present invention has ensured the safety of assets in trust under private key for user loss or stolen situation, same with this When user still be able to easily freely use assets.

Detailed description of the invention

Fig. 1 is flow chart of the present invention.

Specific embodiment

Below with reference to following specific embodiments and attached drawing, the present invention is described in further detail.Implement of the invention Procedures, conditions, experimental methods etc. are among the general principles and common general knowledge in the art in addition to what is specifically mentioned below, There are no special restrictions to content by the present invention.

10页详细技术资料下载
上一篇:一种医用注射器针头装配设备
下一篇:支付账单的方法、设备和计算机存储介质

网友询问留言

已有0条留言

还没有人留言评论。精彩留言会获得点赞!

精彩留言,会给你点赞!