CN110335038A - A kind of gas pays out method - Google Patents
A kind of gas pays out method Download PDFInfo
- Publication number
- CN110335038A CN110335038A CN201910421696.8A CN201910421696A CN110335038A CN 110335038 A CN110335038 A CN 110335038A CN 201910421696 A CN201910421696 A CN 201910421696A CN 110335038 A CN110335038 A CN 110335038A
- Authority
- CN
- China
- Prior art keywords
- transaction
- paying out
- gas
- address
- account
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Pending
Links
- 238000000034 method Methods 0.000 title claims abstract description 17
- 230000005540 biological transmission Effects 0.000 claims abstract description 7
- 238000012795 verification Methods 0.000 claims abstract description 4
- RTZKZFJDLAIYFH-UHFFFAOYSA-N Diethyl ether Chemical compound CCOCC RTZKZFJDLAIYFH-UHFFFAOYSA-N 0.000 description 10
- 238000005516 engineering process Methods 0.000 description 3
- 238000004458 analytical method Methods 0.000 description 1
- 230000009286 beneficial effect Effects 0.000 description 1
- 238000004364 calculation method Methods 0.000 description 1
- 239000000446 fuel Substances 0.000 description 1
- 238000012986 modification Methods 0.000 description 1
- 230000004048 modification Effects 0.000 description 1
- 238000002360 preparation method Methods 0.000 description 1
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06Q—INFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
- G06Q20/00—Payment architectures, schemes or protocols
- G06Q20/38—Payment protocols; Details thereof
- G06Q20/382—Payment protocols; Details thereof insuring higher security of transaction
- G06Q20/3825—Use of electronic signatures
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06Q—INFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
- G06Q20/00—Payment architectures, schemes or protocols
- G06Q20/38—Payment protocols; Details thereof
- G06Q20/382—Payment protocols; Details thereof insuring higher security of transaction
- G06Q20/3829—Payment protocols; Details thereof insuring higher security of transaction involving key management
Landscapes
- Business, Economics & Management (AREA)
- Engineering & Computer Science (AREA)
- Accounting & Taxation (AREA)
- Computer Security & Cryptography (AREA)
- Finance (AREA)
- Strategic Management (AREA)
- Physics & Mathematics (AREA)
- General Business, Economics & Management (AREA)
- General Physics & Mathematics (AREA)
- Theoretical Computer Science (AREA)
- Management, Administration, Business Operations System, And Electronic Commerce (AREA)
Abstract
The present invention relates to a kind of gas to pay out method, comprising the following steps: S1, transaction transmitting portion send account and fill in the address of the account that gas is paid out in help and sign and send to construct transaction, then by paying out gas account;S2, transaction parsing part, parse transmission account address and pay out account address;S3, trading pit verification portion, if the remaining sum for paying out account is less than gas value, is verified and are not passed through if the remaining sum for paying out account is just verified not less than gas value;S4, transaction execution part deduct gas from paying out if paying out address in address, if not paying out address, gas is just deducted from account balance.The present invention can be signed and then be paid by the person of paying out gas in the case where sending the insufficient situation of account balance and take, so that transaction can normally be packaged and be performed.
Description
Technical field
The present invention relates to block chain fields, it particularly relates to which a kind of gas pays out method.
Background technique
The running environment in ether mill, also referred to as ether mill virtual machine (EVM).The node for each participating in network can be transported
The a part of row EVM as block indentification protocol.Full node in each network can carry out identical calculating and store identical
Value.Contract execution can be repeated as many times as required in all nodes, and anyone can issue execution contract, this makes contract
The consumption of execution is very expensive, so there is a phenomenon where calculated attack or abuse, ether mill agreement rule to prevent ether mill network
Each calculation step that fixed transaction or contract call requires to charge.This expense is using gas as unit count, that is, is commonly called as
Fuel.
Existing block chain transaction such as bit coin, ether mill, user is by sending the transaction comprising sending account address signature
Information, while user needs to pay corresponding gas guarantee and trades successfully, and if transaction can not without enough gas expenses
It executes.
The payment that gas takes needs to initiate bill payment by transaction, and cannot be by other accounts on behalf of payment.
For the problems in the relevant technologies, currently no effective solution has been proposed.
Summary of the invention
For above-mentioned technical problem in the related technology, the present invention proposes that a kind of gas pays out method, can send account not
In the case where paying gas, taken by paying gas by the person of paying out, so that transaction can be executed normally.
To realize the above-mentioned technical purpose, the technical scheme of the present invention is realized as follows:
A kind of gas pays out method, comprising the following steps:
S1, transaction transmitting portion send account and fill in the address for the account for paying out gas that helps to construct transaction, then by paying out gas
Account is signed and is sent;
S2, transaction parsing part, parse transmission account address and pay out account address;
S3, trading pit verification portion, if the remaining sum for paying out account is just verified, not less than gas value if paying out the remaining sum of account
Less than gas value, then verifies and do not pass through;
S4, transaction execution part deduct gas from paying out if paying out address in address, if not paying out address, just from account
Gas is deducted in remaining sum.
Further, in the step S1, transaction transmitting portion specifically comprises the following steps:
S1.1, user initiate a transaction;
S1.2, user make a summary to the essential information of transaction;
Generation signing messages is encrypted to abstract described in step S1.2 with the private key of oneself in S1.3, user;
S1.4, the person of paying out make a summary to the signing messages of transaction itself and user;
S1.5, the person of paying out are encrypted abstract described in step S1.4 to obtain the person's of paying out A.L.S. with the private key of oneself
Breath.
Further, in the step S1.2, the essential information of transaction includes station address, the person of paying out address.
Further, in the step S2, transaction parsing part specifically comprises the following steps:
S2.1, client receive a transaction;
S2.2, it makes a summary to the essential information of transaction;
S2.3, it parses station address and judges validity;
S2.4, it makes a summary to the essential information of transaction and the signing messages of user;
S2.5, it parses the person of paying out address and judges validity.
Further, in the step S2.1, it includes user's signature information that the transaction, which is the transaction after the person's of paying out signature,
And the person's of paying out signing messages.
Beneficial effects of the present invention: the present invention solves in existing block chain network, and user is not easy to the payment time-consuming nothing of gas
Method, which sends transaction, can not also execute intelligent contract problem.User is by requesting other accounts on behalf of payment gas, so that inconvenient
It can be packaged and be executed in a network in the transaction of payment gas expense family transmission or intelligent contract.
Detailed description of the invention
It in order to more clearly explain the embodiment of the invention or the technical proposal in the existing technology, below will be to institute in embodiment
Attached drawing to be used is needed to be briefly described, it should be apparent that, the accompanying drawings in the following description is only some implementations of the invention
Example, for those of ordinary skill in the art, without creative efforts, can also obtain according to these attached drawings
Obtain other attached drawings.
Fig. 1 is that a kind of gas described according to embodiments of the present invention pays out method overall flow figure.
Fig. 2 is that the gas described according to embodiments of the present invention pays out transaction transmission flow figure.
Fig. 3 is that the gas described according to embodiments of the present invention pays out transaction process of analysis figure.
Specific embodiment
Following will be combined with the drawings in the embodiments of the present invention, and technical solution in the embodiment of the present invention carries out clear, complete
Site preparation description, it is clear that described embodiments are only a part of the embodiments of the present invention, instead of all the embodiments.It is based on
Embodiment in the present invention, those of ordinary skill in the art's every other embodiment obtained belong to what the present invention protected
Range.
As shown in Figure 1, a kind of gas pays out method according to embodiments of the present invention, comprising the following steps:
S1, transaction transmitting portion pay out address parameter sending addition inside method of commerce, and transmission account is filled in help and paid out
It signs and sends to construct transaction, then by paying out gas account in the address of the account of gas;
S2, transaction parsing part, increase the parsing to address is paid out, parse transmission account address and pay out account address;
S3, trading pit verification portion modify original direct judgement account balance are as follows: if there is paying out address, then judgement pays out ground
Whether location remaining sum is sufficient, directly judges whether account balance is greater than gas expense if nothing pays out address, if paying out the remaining of account
Volume is not less than gas value, is just verified, if the remaining sum for paying out account is less than gas value, verifies and does not pass through;
S4, transaction execution part, modify original direct deduction account balance are as follows: if paying out address, deduct from paying out in address
Gas just deducts gas if not paying out address from account balance.
As shown in Fig. 2, transaction transmitting portion specifically comprises the following steps: in the step S1
S1.1, user initiate a transaction;
S1.2, user make a summary to the essential information of transaction;
Generation signing messages is encrypted to abstract described in step S1.2 with the private key of oneself in S1.3, user;
S1.4, the person of paying out make a summary to the signing messages of transaction itself and user;
S1.5, the person of paying out are encrypted abstract described in step S1.4 to obtain the person's of paying out A.L.S. with the private key of oneself
Breath.
Preferably, in the step S1.2, the essential information of transaction includes station address, the person of paying out address.
As shown in figure 3, transaction parsing part specifically comprises the following steps: in the step S2
S2.1, client receive a transaction;
S2.2, it makes a summary to the essential information of transaction;
S2.3, it parses station address and judges validity;
S2.4, it makes a summary to the essential information of transaction and the signing messages of user;
S2.5, it parses the person of paying out address and judges validity.
Preferably, in the step S2.1, the transaction is the transaction after the person's of paying out signature, comprising user's signature information and
The person's of paying out signing messages.
In order to facilitate understanding above-mentioned technical proposal of the invention, below by way of in specifically used mode to of the invention above-mentioned
Technical solution is described in detail.
In the preferred embodiment of the present invention one (issuing intelligent contract), Zhang San wants that issue name is in block chain network
The intelligent contract of AA, but Zhang San is not used to pay the gas of expense, thus he can not issue name be AA intelligent contract.But
Wang Wuyou is used to pay the gas of expense and is ready to pay expense for Zhang San, and Zhang San is to pay out address by filling in the address of king five,
After king five agrees to, a certain number of gas expenses of king five will be deducted in network, Zhang San has just smoothly issued the intelligence of entitled AA
Contract.
In the preferred embodiment of the present invention two (digital asset of transferring accounts), Zhang San has entitled AA in the network of block chain
A certain number of digital assets, he, which wants to transfer accounts, gives Li Si 100AA, due to not be used for transfer of payment expense gas, so he
It can not carry out transferring accounts to Li Si 100AA, but Wang Wuyou is used to pay the gas of expense and is ready to pay expense, Zhang San for Zhang San
Address by filling in king five is to pay out address after king five agrees to deduct a certain number of gas expenses of king five in network,
The 100AA that Zhang San issues Li Si just smoothly runs succeeded.
The foregoing is merely illustrative of the preferred embodiments of the present invention, is not intended to limit the invention, all in essence of the invention
Within mind and principle, any modification, equivalent replacement, improvement and so on be should all be included in the protection scope of the present invention.
Claims (5)
1. a kind of gas pays out method, which comprises the following steps:
S1, transaction transmitting portion send account and fill in the address for the account for paying out gas that helps to construct transaction, then by paying out gas
Account is signed and is sent;
S2, transaction parsing part, parse transmission account address and pay out account address;
S3, trading pit verification portion, if the remaining sum for paying out account is just verified, not less than gas value if paying out the remaining sum of account
Less than gas value, then verifies and do not pass through;
S4, transaction execution part deduct gas from paying out if paying out address in address, if not paying out address, just from account
Gas is deducted in remaining sum.
2. a kind of gas according to claim 1 pays out method, which is characterized in that in the step S1, transmitting portion of trading
Specifically comprise the following steps:
S1.1, user initiate a transaction;
S1.2, user make a summary to the essential information of transaction;
Generation signing messages is encrypted to abstract described in step S1.2 with the private key of oneself in S1.3, user;
S1.4, the person of paying out make a summary to the signing messages of transaction itself and user;
S1.5, the person of paying out are encrypted abstract described in step S1.4 to obtain the person's of paying out A.L.S. with the private key of oneself
Breath.
3. a kind of gas according to claim 2 pays out method, which is characterized in that in the step S1.2, transaction it is basic
Information includes station address, the person of paying out address.
4. a kind of gas according to claim 1 pays out method, which is characterized in that in the step S2, transaction parsing part
Specifically comprise the following steps:
S2.1, client receive a transaction;
S2.2, it makes a summary to the essential information of transaction;
S2.3, it parses station address and judges validity;
S2.4, it makes a summary to the essential information of transaction and the signing messages of user;
S2.5, it parses the person of paying out address and judges validity.
5. a kind of gas according to claim 4 pays out method, which is characterized in that in the step S2.1, the transaction is
Transaction after the person's of paying out signature, includes user's signature information and the person's of paying out signing messages.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201910421696.8A CN110335038A (en) | 2019-05-21 | 2019-05-21 | A kind of gas pays out method |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201910421696.8A CN110335038A (en) | 2019-05-21 | 2019-05-21 | A kind of gas pays out method |
Publications (1)
Publication Number | Publication Date |
---|---|
CN110335038A true CN110335038A (en) | 2019-10-15 |
Family
ID=68139105
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201910421696.8A Pending CN110335038A (en) | 2019-05-21 | 2019-05-21 | A kind of gas pays out method |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN110335038A (en) |
Cited By (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN111242591A (en) * | 2020-01-10 | 2020-06-05 | 厦门顺势共识信息科技有限公司 | Block chain transaction processing method, system and storage medium based on joint signature |
CN111401866A (en) * | 2020-03-13 | 2020-07-10 | 杭州复杂美科技有限公司 | Method, apparatus and storage medium for pre-storing and deducting commission fee |
CN112581110A (en) * | 2021-02-22 | 2021-03-30 | 支付宝(杭州)信息技术有限公司 | Fuel deduction method and device, electronic equipment and storage medium |
GB2614295A (en) * | 2021-12-23 | 2023-07-05 | Nchain Licensing Ag | Methods and systems for recipient-facilitated blockchain transactions |
Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20170344983A1 (en) * | 2016-05-30 | 2017-11-30 | Business Information Exchange System Corp. | BIXCoin: A Secure Peer-to-Peer Payment System Based on the Public Payments Ledger |
CN107480978A (en) * | 2017-08-04 | 2017-12-15 | 现在(北京)支付股份有限公司 | Based on block chain technology for mode of payment |
CN108364229A (en) * | 2018-01-19 | 2018-08-03 | 阿里巴巴集团控股有限公司 | Fund flow method and device, electronic equipment |
-
2019
- 2019-05-21 CN CN201910421696.8A patent/CN110335038A/en active Pending
Patent Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20170344983A1 (en) * | 2016-05-30 | 2017-11-30 | Business Information Exchange System Corp. | BIXCoin: A Secure Peer-to-Peer Payment System Based on the Public Payments Ledger |
CN107480978A (en) * | 2017-08-04 | 2017-12-15 | 现在(北京)支付股份有限公司 | Based on block chain technology for mode of payment |
CN108364229A (en) * | 2018-01-19 | 2018-08-03 | 阿里巴巴集团控股有限公司 | Fund flow method and device, electronic equipment |
Non-Patent Citations (1)
Title |
---|
宋文鹏等: "区块链在众筹平台中的应用", 《信息技术与标准化》 * |
Cited By (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN111242591A (en) * | 2020-01-10 | 2020-06-05 | 厦门顺势共识信息科技有限公司 | Block chain transaction processing method, system and storage medium based on joint signature |
CN111401866A (en) * | 2020-03-13 | 2020-07-10 | 杭州复杂美科技有限公司 | Method, apparatus and storage medium for pre-storing and deducting commission fee |
WO2021179736A1 (en) * | 2020-03-13 | 2021-09-16 | 江苏复杂美科技有限公司 | Method for pre-storing and deducting service charge, device, and storage medium |
CN112581110A (en) * | 2021-02-22 | 2021-03-30 | 支付宝(杭州)信息技术有限公司 | Fuel deduction method and device, electronic equipment and storage medium |
GB2614295A (en) * | 2021-12-23 | 2023-07-05 | Nchain Licensing Ag | Methods and systems for recipient-facilitated blockchain transactions |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN110335038A (en) | A kind of gas pays out method | |
US11316690B2 (en) | Blockchain token-based cloud orchestration architecture for discrete virtual network instances | |
US20220084020A1 (en) | System and method for scaling blockchain networks with secure off-chain payment hubs | |
US11528147B2 (en) | Verifying integrity and secure operations of cloud-based software services | |
US11283865B2 (en) | Service meshes and smart contracts for zero-trust systems | |
US7716129B1 (en) | Electronic payment methods | |
CN110163590A (en) | Payment based on block chain withholds method and device, electronic equipment, storage medium | |
AU708404B2 (en) | Billing procedure and system for data-transmission networks | |
JP5264510B2 (en) | Method and system for billing an account | |
CN110599323B (en) | Resource processing method and processing equipment | |
CN109508970B (en) | Remittance method and device based on block chain | |
CN109242483A (en) | A kind of dual trading method and system based on centralization and decentralization | |
US20200211109A1 (en) | Methods and systems for margin lending and trading on a decentralized exchange | |
CN108352037A (en) | Resource conveys | |
US11316933B2 (en) | Service meshes and smart contracts for zero-trust systems | |
CN110135964A (en) | A kind of financial accounting method based on block chain technology | |
CN110084594A (en) | A kind of block chain method of commerce and device by lightning network | |
CN108520413A (en) | A kind of efficient secure virtual pre-paid method and device | |
JPWO2019167116A1 (en) | Blockchain management system, blockchain management device, information providing device and blockchain management method | |
CN112015576A (en) | Calling method and device of intelligent contract | |
WO2023045501A1 (en) | Offline payment authorization method and apparatus, offline payment method and apparatus, and collection method and apparatus | |
CN110223066A (en) | A pair of of pay this extra method and system under a kind of chain based on block chain | |
Saravanan et al. | Smart contracts in mobile telecom networks | |
KR101120059B1 (en) | Billing verifying apparatus, billing apparatus and method for cloud computing environment | |
JP2006221462A (en) | Device for service user, device for service provider, device for charging management, network connection service system, and charging method in network connection service |
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: 20210122 Address after: Room 6062, building 3, No.1 Yunmeng Road, Zhuantang street, Xihu District, Hangzhou City, Zhejiang Province 310000 Applicant after: Zhejiang Taike Digital Information Technology Co.,Ltd. Address before: 2101, unit 3, liwaili apartment, Chaoyang District, Beijing 100102 Applicant before: Beijing Columbus Times Technology Development Co.,Ltd. |
|
TA01 | Transfer of patent application right | ||
RJ01 | Rejection of invention patent application after publication |
Application publication date: 20191015 |
|
RJ01 | Rejection of invention patent application after publication |