[go: up one dir, main page]

CN114004611A - Stream type payment acceleration method, system and storage medium based on FPGA - Google Patents

Stream type payment acceleration method, system and storage medium based on FPGA Download PDF

Info

Publication number
CN114004611A
CN114004611A CN202111276476.4A CN202111276476A CN114004611A CN 114004611 A CN114004611 A CN 114004611A CN 202111276476 A CN202111276476 A CN 202111276476A CN 114004611 A CN114004611 A CN 114004611A
Authority
CN
China
Prior art keywords
payment
streaming
streaming payment
contract
fpga
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202111276476.4A
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.)
Shanghai Zhaoxi Network Technology Co ltd
Zhengzhou Normal University
Original Assignee
Shanghai Zhaoxi Network Technology Co ltd
Zhengzhou Normal University
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 Shanghai Zhaoxi Network Technology Co ltd, Zhengzhou Normal University filed Critical Shanghai Zhaoxi Network Technology Co ltd
Priority to CN202111276476.4A priority Critical patent/CN114004611A/en
Publication of CN114004611A publication Critical patent/CN114004611A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING OR CALCULATING; 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/22Payment schemes or models
    • GPHYSICS
    • G06COMPUTING OR CALCULATING; 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/30Payment architectures, schemes or protocols characterised by the use of specific devices or networks
    • G06Q20/34Payment architectures, schemes or protocols characterised by the use of specific devices or networks using cards, e.g. integrated circuit [IC] cards or magnetic cards
    • G06Q20/341Active cards, i.e. cards including their own processing means, e.g. including an IC or chip
    • GPHYSICS
    • G06COMPUTING OR CALCULATING; 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/389Keeping log of transactions for guaranteeing non-repudiation of a transaction
    • GPHYSICS
    • G06COMPUTING OR CALCULATING; 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/40Authorisation, e.g. identification of payer or payee, verification of customer or shop credentials; Review and approval of payers, e.g. check credit lines or negative lists
    • G06Q20/405Establishing or using transaction specific rules

Landscapes

  • Business, Economics & Management (AREA)
  • Engineering & Computer Science (AREA)
  • Accounting & Taxation (AREA)
  • Physics & Mathematics (AREA)
  • Strategic Management (AREA)
  • General Business, Economics & Management (AREA)
  • General Physics & Mathematics (AREA)
  • Theoretical Computer Science (AREA)
  • Finance (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Microelectronics & Electronic Packaging (AREA)
  • Development Economics (AREA)
  • Economics (AREA)
  • Computer Security & Cryptography (AREA)
  • Financial Or Insurance-Related Operations Such As Payment And Settlement (AREA)

Abstract

The invention provides a stream type payment acceleration method based on FPGA, which is characterized in that a stream type payment contract is defined; transmitting the streaming payment contract to a streaming payment accelerator, and calling the streaming payment accelerator according to the streaming payment contract; converting the streaming payment contract into bytecode, and calculating the bytecode through the streaming payment accelerator to realize acceleration of streaming payment; the acceleration of the streaming payment is realized through a streaming payment accelerator integrated with an FPGA chip, and the streaming payment accelerator directly obtains a defined streaming payment contract, so that the quick interaction with a block chain system can be realized, and the efficiency of the streaming payment is improved; and when the system needs to be upgraded and iterated, only the instruction set integrated in the FPGA chip needs to be updated.

Description

Stream type payment acceleration method, system and storage medium based on FPGA
Technical Field
The invention relates to the technical field of block chain streaming payment, in particular to a streaming payment acceleration method based on an FPGA (field programmable gate array).
Background
At present, after a decade of rapid development, blockchain technology has produced various blockchain products that enrich inherent functions and are based on different application scenarios. Among them, the stream payment is one of the new application products in this field, and the stream payment allows a plurality of transaction parties to perform fund transaction in real time or at a self-determined time interval, or to perform transaction by dividing the amount of money into several shares according to a set transaction time interval.
The characteristic that the transaction is executed in real time or according to the set time by the streaming payment determines that the streaming payment can generate a great amount of data in the transaction process, and has high requirements on the execution efficiency; to meet the instantaneity and security of streaming payment, acceleration of streaming payment is required; and the streaming payment methods of different manufacturers adopt different intelligent contracts and algorithms, and the compatibility problem caused by updating iteration of a block chain system is difficult to overcome while calculation acceleration is met by accelerating through hardware.
Disclosure of Invention
The invention provides a stream type payment acceleration method based on an FPGA (field programmable gate array), which is used for overcoming the defects in the prior art.
The invention provides a stream type payment acceleration method based on an FPGA (field programmable gate array), which comprises the following steps of:
defining a streaming payment contract;
transmitting the streaming payment contract to a streaming payment accelerator, and calling the streaming payment accelerator according to the streaming payment contract;
converting the streaming payment contract into bytecode, the bytecode being calculated by the streaming payment accelerator;
transmitting the calculation result to the block chain system;
wherein the streaming payment contract comprises a payment start time and a payment end time after which streaming payment is ended;
the stream payment accelerator is an FPGA chip integrated with a bytecode instruction set and used for calculating the bytecode.
Further, the streaming payment contract further includes a sender account, a recipient account, a streaming payment balance, and a total payment amount; the streaming payment contract is set to pay single payment amount according to a preset time interval;
wherein,
Figure BDA0003329511900000021
further, before the streaming payment contract is defined, acquiring a numerical value of the streaming payment balance, and if the numerical value is 0, terminating the definition of the streaming payment contract;
terminating the streaming payment if the streaming payment balance is less than the single payment amount prior to the payment end time.
Preferably, before the payment ending time, the method further comprises:
when the sender account initiates a pause instruction, pausing the streaming payment;
suspending streaming payment and withdrawing the streaming payment balance when redemption instructions are initiated by the sender account;
terminating the streaming payment when the sender account initiates a termination instruction.
Preferably, after the calculation result is transmitted to the block chain system, the streaming payment transaction state is updated at intervals of a preset updating time;
or, updating a streaming payment transaction status when the sender account initiates the suspend or terminate instruction;
the streaming payment transaction state includes: the total amount and the transaction duration of the completed streaming payment transaction, and the total amount and the remaining transaction duration of the to-be-completed streaming payment transaction.
On the other hand, the invention also provides a streaming payment acceleration method based on the FPGA, which comprises the following steps:
the block chain system acquires a streaming payment contract defined by the local block chain equipment;
the blockchain system passes the streaming payment contract to a streaming payment accelerator;
converting the streaming payment contract into byte codes through the streaming payment accelerator, and executing calculation;
the blockchain system receives a calculation result of the streaming payment accelerator;
the block chain system transmits the calculation result to the local block chain equipment;
wherein the streaming payment contract comprises a payment start time and a payment end time after which streaming payment is ended;
the stream payment accelerator is an FPGA chip integrated with a bytecode instruction set and used for calculating the bytecode.
Further, after the blockchain system receives the calculation result of the streaming payment accelerator, the blockchain system completes consensus on the execution result of the streaming payment contract and returns the consensus to the user, and the blockchain system transmits the calculation result to the local blockchain device.
In another aspect, the present invention further provides a streaming payment acceleration system based on FPGA, including: the system comprises a definition module, a transcoding module, a streaming payment acceleration module and a data module;
wherein the definition module is used for defining the streaming payment contract;
the transcoding module is used for converting the streaming payment contract into byte codes
The streaming payment acceleration module is used for calculating the byte codes;
the data module is used for carrying out data interaction with the local block chain equipment and the block chain system.
The stream payment acceleration module is an FPGA chip integrated with a bytecode instruction set and comprises a query unit, a calling unit, a calculation unit and a scheduling unit module;
the scheduling unit module is used for calling the query unit, the calling unit and the calculating unit in the streaming payment acceleration module;
the query unit is used for querying the transaction amount and the transaction duration of the streaming payment;
the calling unit is used for calling a corresponding instruction set according to the byte codes;
the computing unit is used for computing according to the corresponding instruction set.
The present invention also provides a non-transitory computer readable storage medium having stored thereon a computer program which, when executed by a processor, implements the steps of the FPGA-based streaming payment acceleration method as described in any one of the above.
The invention provides a stream type payment acceleration method based on FPGA, which is characterized in that a stream type payment contract is defined; transmitting the streaming payment contract to a streaming payment accelerator, and calling the streaming payment accelerator according to the streaming payment contract; converting the streaming payment contract into bytecode, and calculating the bytecode through the streaming payment accelerator to realize acceleration of streaming payment; the acceleration of the streaming payment is realized through a streaming payment accelerator integrated with an FPGA chip, and the streaming payment accelerator directly obtains a defined streaming payment contract, so that the quick interaction with a block chain system can be realized, and the efficiency of the streaming payment is improved; and when the system needs to be upgraded and iterated, only the instruction set integrated in the FPGA chip needs to be updated.
Drawings
In order to more clearly illustrate the technical solutions of the present invention or the prior art, the drawings needed for the description of the embodiments or the prior art will be briefly described below, and it is obvious that the drawings in the following description are some embodiments of the present invention, and those skilled in the art can also obtain other drawings according to the drawings without creative efforts.
FIG. 1 is a schematic flow chart of a method for accelerating streaming payment based on FPGA according to the present invention;
FIG. 2 is one of the schematic diagrams of the operation of the FPGA-based streaming payment acceleration method provided by the present invention;
FIG. 3 is a second schematic diagram illustrating the operation of the FPGA-based streaming payment acceleration method provided by the present invention;
FIG. 4 is a second schematic diagram illustrating the operation of the FPGA-based streaming payment acceleration method provided by the present invention;
fig. 5 is a schematic structural diagram of the streaming payment acceleration system based on the FPGA provided in the present invention.
Detailed Description
In order to make the objects, technical solutions and advantages of the present invention clearer, the technical solutions of the present invention will be clearly and completely described below with reference to the accompanying drawings, and it is obvious that the described embodiments are some, but not all embodiments of the present invention. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
As shown in fig. 1-2, an embodiment of the present invention provides a streaming payment acceleration method based on an FPGA, including the steps of:
the local blockchain device defines a streaming payment contract;
the local block chain equipment transmits the streaming payment contract to a streaming payment accelerator, and calls the streaming payment accelerator according to the streaming payment contract;
the streaming payment accelerator converts the streaming payment contract into byte codes and calculates the byte codes;
transmitting the calculation result to the block chain system by the local block chain equipment;
wherein the streaming payment contract comprises a payment start time and a payment end time after which streaming payment is ended;
specifically, the streaming payment accelerator is an FPGA chip integrated with a bytecode instruction set, and is configured to calculate the bytecode.
Wherein the streaming payment contract further comprises a sender account, a recipient account, a streaming payment balance, and a total payment amount; the streaming payment contract is set to pay single payment amount according to a preset time interval;
wherein the total payment amount is calculated according to a formula:
Figure BDA0003329511900000061
it should be noted that the streaming payment defines a directional relationship between two accounts (initiator and receiver), and the payment stream is created by the initiator of the transaction and continuously flows to the receiver in real time according to the flow rate per second; the actual amount transferred in streaming payment is not the real amount, but a "streaming payment balance", which defines the amount the initiator or recipient has at some point in time; the initiator and the receiver can finish the streaming payment at any time point before finishing the streaming payment, and the balance of the streaming payment is settled; the initiator and the receiver are both local clients, namely local blockchain equipment; the initiator and the receiver respectively correspond to a sender account and a receiver account;
after the initiator initiates the streaming payment, defining single payment amount of the streaming payment, and paying the preset word payment amount once per second if the preset time interval is set to be 1 s;
wherein, the streaming payment contract also sets the payment starting time and the payment ending time of the payment process, if the payment of the total payment amount is finished within a time difference of 20 minutes by defining 20 minutes to 9 minutes and 40 minutes, and the payment is finished once per minute by defining a preset time interval, the payment times are calculated according to a formula:
Figure BDA0003329511900000062
further, multiplying the single payment sum by the payment times to obtain a total streaming payment sum;
it should be noted that the content of the streaming payment contract is defined by the transaction initiator in the local blockchain device; or selecting a suitable streaming payment contract in the blockchain system by the transaction initiator and filling and editing the content of the streaming payment contract;
further, before the streaming payment contract is defined, acquiring a numerical value of the streaming payment balance, and if the numerical value is 0, terminating the definition of the streaming payment contract;
terminating the streaming payment if the streaming payment balance is less than the single payment amount before the payment end time;
specifically, the initiator of the streaming payment needs to recharge its sender account before initiating the transaction request, and can initiate the streaming payment only on the premise that the streaming payment balance in the account is not 0;
specifically, if the value of the streaming payment balance is smaller than the minimum single payment amount defined by the streaming payment contract, the transaction is terminated in advance;
optionally, after the local blockchain device transmits the calculation result of the streaming payment accelerator to the blockchain system, updating the streaming payment transaction state at intervals of a preset update time;
or, updating a streaming payment transaction status when the sender account initiates the suspend or terminate instruction;
the streaming payment transaction state includes: the total amount and the transaction duration of the completed streaming payment transaction, and the total amount and the remaining transaction duration of the to-be-completed streaming payment transaction.
Preferably, the initiator and the receiver can both query the balance in the respective account in the streaming payment transaction in real time;
preferably, the originator and the recipient are each redeemable for virtual currency, such as "ethernet currency", in their respective sender and recipient accounts;
preferably, before the payment ending time, the method further comprises:
when the sender account initiates a pause instruction, pausing the streaming payment;
suspending streaming payment and withdrawing the streaming payment balance when redemption instructions are initiated by the sender account;
terminating the streaming payment when the sender account initiates a termination instruction.
Specifically, a payment end time and a payment start time are defined in the streaming payment contract, and any one of the initiator and the receiver can terminate the streaming payment at any time node in advance as needed.
In another embodiment, as shown in fig. 3 to 4, the present invention further provides a streaming payment acceleration method based on FPGA, including:
the block chain system acquires a streaming payment contract defined by the local block chain equipment;
the blockchain system passes the streaming payment contract to a streaming payment accelerator;
converting the streaming payment contract into byte codes through the streaming payment accelerator, and executing calculation;
the blockchain system receives a calculation result of the streaming payment accelerator;
the block chain system transmits the calculation result to the local block chain equipment;
wherein the streaming payment contract comprises a payment start time and a payment end time after which streaming payment is ended;
the stream payment accelerator is an FPGA chip integrated with a byte code instruction set and used for calculating the byte code
3-4 are compared with the embodiments shown in fig. 1-2, the embodiment shown in fig. 2 provides a computed streaming payment contract through the blockchain system without being configured by a local blockchain device at the user end, and invokes an alternative streaming contract directly from the blockchain system when initiating streaming payment;
after the blockchain system receives the calculation result of the streaming payment accelerator, the blockchain system completes consensus on the execution result of the streaming payment contract and returns the consensus to the user, and the blockchain system transmits the calculation result to the local blockchain device;
and the acceleration of each node in the blockchain system is finished through the streaming payment accelerator, and the local blockchain equipment does not perform data interaction with the blockchain streaming payment accelerator.
It should be noted that the streaming payment accelerator adopts an FPGA circuit module, a preset instruction set, and a scheduling method executed by the instruction set:
the FPGA circuit module comprises a scheduling unit module (FMS), and the FMS is used for inquiring the streaming payment state, storing the streaming payment state and mapping an instruction set; the FPGA chip circuit can be upgraded on line, and various parameters of related functional modules can be modified in real time so as to adapt to various updates of the block chain system in real time;
wherein, the streaming payment contract code written in the high-level language is converted into an instruction set; the byte code instruction set program is converted into a special circuit, the state machine FMS completes the calling of the special circuit, and the FMS stores the scheduling information of all instructions. For Example, calling of an "Example ()" function program, a plurality of POPs are included in a bytecode instruction set corresponding to the "Example ()", and an FMS stores the calling sequence of each POP, thereby realizing corresponding mapping of the instruction set; each created streaming payment will be encapsulated into an independent functional module; and calling different functional modules according to the different functional modules.
On the other hand, as shown in fig. 5, an embodiment of the present invention further provides a streaming payment acceleration system based on an FPGA, where the streaming payment acceleration system based on the FPGA described below and the streaming payment acceleration method based on the FPGA described above may be referred to in a corresponding manner, and specifically includes: the system comprises a definition module, a transcoding module, a streaming payment acceleration module and a data module;
a definition module to define a streaming payment contract;
a transcoding module for converting the streaming payment contract into bytecode
The streaming payment acceleration module is used for calculating the byte codes;
and the data module is used for carrying out data interaction with the local block chain equipment and the block chain system.
The invention also provides an entity structure schematic diagram of the streaming payment accelerating device based on the FPGA, and the device can comprise: the system comprises a processor (processor), a communication interface (communication interface), a memory (memory) and a communication bus, wherein the processor, the communication interface and the memory are communicated with each other through the communication bus. The processor may invoke logic instructions in the memory to perform an FPGA-based streaming payment acceleration method, comprising: defining a streaming payment contract; transmitting the streaming payment contract to a streaming payment accelerator, and calling the streaming payment accelerator according to the streaming payment contract; converting the streaming payment contract into bytecode, the bytecode being calculated by the streaming payment accelerator; transmitting the calculation result to the block chain system; wherein the streaming payment contract comprises a payment start time and a payment end time after which streaming payment is ended; the stream payment accelerator is an FPGA chip integrated with a bytecode instruction set and used for calculating the bytecode.
In addition, the logic instructions in the memory may be implemented in the form of software functional units and may be stored in a computer readable storage medium when sold or used as a stand-alone product. Based on such understanding, the technical solution of the present invention may be embodied in the form of a software product, which is stored in a storage medium and includes instructions for causing a computer device (which may be a personal computer, a server, or a network device) to execute all or part of the steps of the method according to the embodiments of the present invention. And the aforementioned storage medium includes: various media capable of storing program codes, such as a usb disk, a removable hard disk, a Read-only memory (ROM), a Random Access Memory (RAM), a magnetic disk, or an optical disk.
In another aspect, the present invention also provides a computer program product comprising a computer program stored on a non-transitory computer readable storage medium, the computer program comprising program instructions which, when executed by a computer, enable the computer to perform the methods of performing an FPGA-based streaming payment acceleration method provided by the above methods, comprising: defining a streaming payment contract; transmitting the streaming payment contract to a streaming payment accelerator, and calling the streaming payment accelerator according to the streaming payment contract; converting the streaming payment contract into bytecode, the bytecode being calculated by the streaming payment accelerator; transmitting the calculation result to the block chain system; wherein the streaming payment contract comprises a payment start time and a payment end time after which streaming payment is ended; the stream payment accelerator is an FPGA chip integrated with a bytecode instruction set and used for calculating the bytecode.
In yet another aspect, the present invention also provides a non-transitory computer readable storage medium having stored thereon a computer program which, when executed by a processor, implements an FPGA-based streaming payment acceleration method, comprising: defining a streaming payment contract; transmitting the streaming payment contract to a streaming payment accelerator, and calling the streaming payment accelerator according to the streaming payment contract; converting the streaming payment contract into bytecode, the bytecode being calculated by the streaming payment accelerator; transmitting the calculation result to the block chain system; wherein the streaming payment contract comprises a payment start time and a payment end time after which streaming payment is ended; the stream payment accelerator is an FPGA chip integrated with a bytecode instruction set and used for calculating the bytecode. The above-described embodiments of the apparatus are merely illustrative, and the units described as separate parts may or may not be physically separate, and parts displayed as units may or may not be physical units, may be located in one place, or may be distributed on a plurality of network units. Some or all of the modules may be selected according to actual needs to achieve the purpose of the solution of the present embodiment. One of ordinary skill in the art can understand and implement it without inventive effort.
Through the above description of the embodiments, those skilled in the art will clearly understand that each embodiment can be implemented by software plus a necessary general hardware platform, and certainly can also be implemented by hardware. With this understanding in mind, the above-described technical solutions may be embodied in the form of a software product, which can be stored in a computer-readable storage medium such as ROM/RAM, magnetic disk, optical disk, etc., and includes instructions for causing a computer device (which may be a personal computer, a server, or a network device, etc.) to execute the methods described in the embodiments or some parts of the embodiments.
Finally, it should be noted that: the above examples are only intended to illustrate the technical solution of the present invention, but not to limit it; although the present invention has been described in detail with reference to the foregoing embodiments, it will be understood by those of ordinary skill in the art that: the technical solutions described in the foregoing embodiments may still be modified, or some technical features may be equivalently replaced; and such modifications or substitutions do not depart from the spirit and scope of the corresponding technical solutions of the embodiments of the present invention.

Claims (10)

1.一种基于FPGA的流式支付加速方法,其特征在于,包括:1. a stream payment acceleration method based on FPGA, is characterized in that, comprises: 定义流式支付合约;Define the streaming payment contract; 将所述流式支付合约传至流式支付加速器,根据所述流式支付合约调用流式支付加速器;transmitting the streaming payment contract to the streaming payment accelerator, and calling the streaming payment accelerator according to the streaming payment contract; 将所述流式支付合约转化为字节码,通过所述流式支付加速器计算所述字节码;converting the streaming payment contract into bytecode, and calculating the bytecode through the streaming payment accelerator; 将计算结果传至区块链系统;Transfer the calculation results to the blockchain system; 其中,所述流式支付合约包括支付起始时间和支付结束时间,在所述支付结束时间后结束流式支付;Wherein, the streaming payment contract includes a payment start time and a payment end time, and the streaming payment ends after the payment end time; 所述流式支付加速器为集成有字节码指令集的FPGA芯片,用于计算所述字节码。The streaming payment accelerator is an FPGA chip integrated with a bytecode instruction set, and is used to calculate the bytecode. 2.根据权利要求1所述的一种基于FPGA的流式支付加速方法,其特征在于,所述流式支付合约还包括发送者账户、接收者账户、流式支付余额和支付总金额;所述流式支付合约设置按预设时间间隔支付单次支付金额;2. a kind of FPGA-based streaming payment acceleration method according to claim 1, is characterized in that, described streaming payment contract also comprises sender account, receiver account, streaming payment balance and payment total amount; The streaming payment contract is set to pay a single payment amount at preset time intervals; 其中,所述
Figure FDA0003329511890000011
Among them, the
Figure FDA0003329511890000011
3.根据权利要求2所述的一种基于FPGA的流式支付加速方法,其特征在于,在定义所述流式支付合约之前,获取所述流式支付余额的数值,若所述数值为0,则终止定义所述流式支付合约;3. An FPGA-based streaming payment acceleration method according to claim 2, characterized in that, before defining the streaming payment contract, the numerical value of the streaming payment balance is obtained, if the numerical value is 0 , the definition of the streaming payment contract is terminated; 在所述支付结束时间之前,若所述流式支付余额小于所述单次支付金额,则终止流式支付。Before the payment end time, if the streaming payment balance is less than the single payment amount, the streaming payment is terminated. 4.根据权利要求1-3任一项所述的一种基于FPGA的流式支付加速方法,其特征在于,在将所述支付结束时间之前,还包括:4. a kind of FPGA-based streaming payment acceleration method according to any one of claims 1-3, is characterized in that, before the described payment end time, also comprises: 当所述发送者账户发起暂停指令时,暂停流式支付;When the sender account initiates a suspension instruction, the streaming payment is suspended; 当所述发送者账户发起赎回指令时,暂停流式支付并取出所述流式支付余额;When the sender account initiates a redemption instruction, suspend the streaming payment and withdraw the streaming payment balance; 当所述发送者账户发起终止指令时,终止流式支付。When the sender account initiates a termination instruction, the streaming payment is terminated. 5.根据权利要求4所述的一种基于FPGA的流式支付加速方法,其特征在于,将计算结果传至区块链系统后,每间隔一预设更新时间,更新流式支付交易状态;5. A kind of FPGA-based streaming payment acceleration method according to claim 4, characterized in that, after the calculation result is transmitted to the blockchain system, the streaming payment transaction status is updated every preset update time; 或,当所述发送者账户发起所述暂停指令或终止指令时,更新流式支付交易状态;Or, when the sender account initiates the suspension instruction or termination instruction, update the streaming payment transaction status; 所述流式支付交易状态包括:已完成的流式支付交易总额及交易时长,待完成的流式支付交易总额及剩余交易时长。The streaming payment transaction status includes: the total amount and transaction duration of the streaming payment transactions that have been completed, the total amount of streaming payment transactions to be completed and the remaining transaction duration. 6.一种基于FPGA的流式支付加速方法,其特征在于,包括:6. a kind of FPGA-based streaming payment acceleration method, is characterized in that, comprises: 区块链系统获取本地区块链设备定义的流式支付合约;The blockchain system obtains the streaming payment contract defined by the local blockchain device; 所述区块链系统将所述流式支付合约传至流式支付加速器;The blockchain system transmits the streaming payment contract to the streaming payment accelerator; 通过所述流式支付加速器将所述流式支付合约转为字节码,并执行计算;Convert the streaming payment contract into bytecode through the streaming payment accelerator, and perform computation; 所述区块链系统接收所述流式支付加速器的计算结果;the blockchain system receives the calculation result of the streaming payment accelerator; 所述区块链系统将所述计算结果传至所述本地区块链设备;The blockchain system transmits the calculation result to the local blockchain device; 其中,所述流式支付合约包括支付起始时间和支付结束时间,在所述支付结束时间后结束流式支付;The streaming payment contract includes a payment start time and a payment end time, and the streaming payment ends after the payment end time; 所述流式支付加速器为集成有字节码指令集的FPGA芯片,用于计算所述字节码。The streaming payment accelerator is an FPGA chip integrated with a bytecode instruction set, which is used to calculate the bytecode. 7.根据权利要求6所述的一种基于FPGA的流式支付加速方法,其特征在于,所述区块链系统接收所述流式支付加速器的计算结果后,所述区块链系统完成对流式支付合约执行结果的共识,并返回给用户,所述区块链系统将计算结果传至所述本地区块链设备。7. The FPGA-based streaming payment acceleration method according to claim 6, wherein after the blockchain system receives the calculation result of the streaming payment accelerator, the blockchain system completes the convection The consensus of the execution result of the payment contract is returned to the user, and the blockchain system transmits the calculation result to the local blockchain device. 8.一种基于FPGA的流式支付加速系统,其特征在于,包括:8. An FPGA-based streaming payment acceleration system, comprising: 定义模块,用于定义流式支付合约;Define a module for defining a streaming payment contract; 转码模块,用于将所述流式支付合约转换为字节码A transcoding module for converting the streaming payment contract into bytecode 流式支付加速模块,用于计算所述字节码;a streaming payment acceleration module for calculating the bytecode; 数据模块,用于与本地区块链设备和区块链系统进行数据交互。A data module for data interaction with local blockchain devices and blockchain systems. 9.根据权利要求8所述的一种基于FPGA的流式支付系统,其特征在于,所述流式支付加速模块为集成有字节码指令集的FPGA芯片,包括查询单元、调用单元、计算单元及调度单元模块;9. A FPGA-based streaming payment system according to claim 8, wherein the streaming payment acceleration module is an FPGA chip integrated with a bytecode instruction set, comprising a query unit, a calling unit, a computing unit and scheduling unit module; 所述调度单元模块用于调用所述流式支付加速模块中的所述查询单元、所述调用单元及所述计算单元;The scheduling unit module is configured to call the query unit, the calling unit and the computing unit in the streaming payment acceleration module; 所述查询单元用于查询流式支付交易额及交易时长;The query unit is used to query the transaction amount and transaction duration of streaming payment; 所述调用单元用于根据字节码调用对应的指令集;The calling unit is used to call the corresponding instruction set according to the bytecode; 所述计算单元用于根据所述对应的指令集进行计算。The computing unit is used for computing according to the corresponding instruction set. 10.一种非暂态计算机可读存储介质,其上存储有计算机程序,其特征在于,所述计算机程序被处理器执行时实现如权利要求1至5任一项所述基于FPGA的流式支付方法的步骤。10. A non-transitory computer-readable storage medium on which a computer program is stored, characterized in that, when the computer program is executed by a processor, the FPGA-based streaming according to any one of claims 1 to 5 is implemented. The steps of the payment method.
CN202111276476.4A 2021-10-29 2021-10-29 Stream type payment acceleration method, system and storage medium based on FPGA Pending CN114004611A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202111276476.4A CN114004611A (en) 2021-10-29 2021-10-29 Stream type payment acceleration method, system and storage medium based on FPGA

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202111276476.4A CN114004611A (en) 2021-10-29 2021-10-29 Stream type payment acceleration method, system and storage medium based on FPGA

Publications (1)

Publication Number Publication Date
CN114004611A true CN114004611A (en) 2022-02-01

Family

ID=79925598

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202111276476.4A Pending CN114004611A (en) 2021-10-29 2021-10-29 Stream type payment acceleration method, system and storage medium based on FPGA

Country Status (1)

Country Link
CN (1) CN114004611A (en)

Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103425746A (en) * 2013-07-18 2013-12-04 大连理工大学 Real-time financial index market information parallel computing method based on FPGA
US8676689B1 (en) * 2011-03-28 2014-03-18 Keith Whelan Financial status measurement and management tool
CN107430725A (en) * 2014-12-22 2017-12-01 曼弗雷德·内斯蒂夫特 continuous stream payment
CN111541726A (en) * 2020-07-08 2020-08-14 支付宝(杭州)信息技术有限公司 Replay transaction identification method and device based on block chain all-in-one machine
CN111738859A (en) * 2020-07-08 2020-10-02 支付宝(杭州)信息技术有限公司 Block chain all-in-one machine and block chain network
WO2021047364A1 (en) * 2019-09-09 2021-03-18 赵汕可 Pledge-payable online transaction system and method
CN112612482A (en) * 2020-12-28 2021-04-06 杭州趣链科技有限公司 Method, device, equipment and storage medium for executing intelligent contract
CN112882774A (en) * 2021-02-08 2021-06-01 北京微芯区块链与边缘计算研究院 Intelligent contract chip device and method executed in parallel and block chain link point device

Patent Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US8676689B1 (en) * 2011-03-28 2014-03-18 Keith Whelan Financial status measurement and management tool
CN103425746A (en) * 2013-07-18 2013-12-04 大连理工大学 Real-time financial index market information parallel computing method based on FPGA
CN107430725A (en) * 2014-12-22 2017-12-01 曼弗雷德·内斯蒂夫特 continuous stream payment
WO2021047364A1 (en) * 2019-09-09 2021-03-18 赵汕可 Pledge-payable online transaction system and method
CN111541726A (en) * 2020-07-08 2020-08-14 支付宝(杭州)信息技术有限公司 Replay transaction identification method and device based on block chain all-in-one machine
CN111738859A (en) * 2020-07-08 2020-10-02 支付宝(杭州)信息技术有限公司 Block chain all-in-one machine and block chain network
CN112612482A (en) * 2020-12-28 2021-04-06 杭州趣链科技有限公司 Method, device, equipment and storage medium for executing intelligent contract
CN112882774A (en) * 2021-02-08 2021-06-01 北京微芯区块链与边缘计算研究院 Intelligent contract chip device and method executed in parallel and block chain link point device

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
YFGEEK: "[Defi] 走进流式付款的世界 Sablier 源码解读", pages 1620, Retrieved from the Internet <URL:https://www.jianshu.com/p/091027f4985e> *

Similar Documents

Publication Publication Date Title
CN115222630B (en) Image generation method, training method and training equipment for image denoising model
US20220391771A1 (en) Method, apparatus, and computer device and storage medium for distributed training of machine learning model
CN111813869B (en) Distributed data-based multi-task model training method and system
WO2020220761A1 (en) Method and device for signing payment deduction agreement employing blockchain, and electronic apparatus.
TW202016815A (en) Method, apparatus and system for executing block chain transaction in parallelized manner
CN108986063A (en) The method, apparatus and computer readable storage medium of gradient fusion
CN105225109A (en) A method and device for order processing
WO2021031472A1 (en) Intelligent contract processing method and device, computer device and storage medium
CN110264358A (en) A transaction processing method and device
CN112070503A (en) Contract execution method, device, equipment and storage medium based on block chain
TWI709924B (en) Method and device for realizing resource transfer, and method and device for realizing collection and payment
CN112258188B (en) A method, device, device and system for processing blockchain transactions
CN110933000A (en) Distributed data multi-stage aggregation method, device, server and storage medium
CN114004611A (en) Stream type payment acceleration method, system and storage medium based on FPGA
CN103299298B (en) The method and system of process business
CN114301907B (en) Service processing method, system and device in cloud computing network and electronic equipment
CN113742078B (en) Resource processing method and device
CN109670579A (en) Model generating method and device
CN108876339A (en) Electronic pet method of commerce and device based on logical card
CN114169992A (en) Financial product publishing method and device
CN103731495B (en) The extension of PAAS platforms and the method and system of the resource quantity of contraction resource pool
CN116095074B (en) Resource allocation methods, devices, related equipment and storage media
CN106302231B (en) The method and device of traffic queue shaping
CN111639741B (en) Automatic service combination agent system for multi-objective QoS optimization
CN115862117A (en) Face recognition method and device with occlusion

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
RJ01 Rejection of invention patent application after publication

Application publication date: 20220201

RJ01 Rejection of invention patent application after publication