CN116976883A - Prepaid card fund supervision method and system based on blockchain - Google Patents

Prepaid card fund supervision method and system based on blockchain Download PDF

Info

Publication number
CN116976883A
CN116976883A CN202310947407.4A CN202310947407A CN116976883A CN 116976883 A CN116976883 A CN 116976883A CN 202310947407 A CN202310947407 A CN 202310947407A CN 116976883 A CN116976883 A CN 116976883A
Authority
CN
China
Prior art keywords
blockchain
billing
value
accounting
intelligent contract
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
CN202310947407.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.)
Beijing Digital China Fangyuan Technology Co ltd
Original Assignee
Beijing Digital China Fangyuan Technology Co ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Beijing Digital China Fangyuan Technology Co ltd filed Critical Beijing Digital China Fangyuan Technology Co ltd
Priority to CN202310947407.4A priority Critical patent/CN116976883A/en
Publication of CN116976883A publication Critical patent/CN116976883A/en
Pending 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
    • G06Q20/00Payment architectures, schemes or protocols
    • G06Q20/22Payment schemes or models
    • G06Q20/28Pre-payment schemes, e.g. "pay before"
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/20Information retrieval; Database structures therefor; File system structures therefor of structured data, e.g. relational data
    • G06F16/27Replication, distribution or synchronisation of data between databases or within a distributed database system; Distributed database system architectures therefor
    • 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/04Payment circuits
    • G06Q20/06Private payment circuits, e.g. involving electronic currency used among participants of a common payment scheme
    • G06Q20/065Private payment circuits, e.g. involving electronic currency used among participants of a common payment scheme using e-cash
    • 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/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/349Rechargeable cards
    • 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/02Banking, e.g. interest calculation or account maintenance
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L9/00Cryptographic mechanisms or cryptographic arrangements for secret or secure communications; Network security protocols
    • H04L9/50Cryptographic mechanisms or cryptographic arrangements for secret or secure communications; Network security protocols using hash chains, e.g. blockchains or hash trees

Landscapes

  • Engineering & Computer Science (AREA)
  • Business, Economics & Management (AREA)
  • Accounting & Taxation (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Strategic Management (AREA)
  • General Business, Economics & Management (AREA)
  • Finance (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Databases & Information Systems (AREA)
  • Computing Systems (AREA)
  • Economics (AREA)
  • Marketing (AREA)
  • Technology Law (AREA)
  • Development Economics (AREA)
  • Microelectronics & Electronic Packaging (AREA)
  • Data Mining & Analysis (AREA)
  • General Engineering & Computer Science (AREA)
  • Computer Security & Cryptography (AREA)
  • Signal Processing (AREA)
  • Financial Or Insurance-Related Operations Such As Payment And Settlement (AREA)

Abstract

The invention discloses a block chain-based prepaid card fund supervision method and a system, wherein the method comprises the following steps: logging in the blockchain based on the user DID; invoking an accounting intelligent contract of funds on the blockchain, wherein the accounting intelligent contract acquires and analyzes invoking parameters to obtain accounting information; wherein the billing information comprises a billing value of an account body; invoking a prophetic machine synchronization interface of the blockchain, synchronizing the accounting value to a bank funds management system outside the chain, and judging whether to return to success; wherein, when successful return is made, the billing intelligent contract is called to modify the billing value; when the return fails, the billing value remains unchanged, either retrying or returning the failure according to the policy of the predictor. By the processing scheme, the refund operation can be completed under the condition that the running path of the merchant and the service of the system are not available.

Description

Prepaid card fund supervision method and system based on blockchain
Technical Field
The invention relates to the technical field of fund supervision, in particular to a prepaid card fund supervision method and system based on a blockchain.
Background
At present, in the consumption of prepaid cards, consumers often encounter the situation of being rolled by bad merchants after paying a prepaid amount of a poor price. On the one hand, lost funds cannot be recovered, on the other hand, if the amount of money is large, the lawsuits are related, because the system is used for providing for merchants at ordinary times, and under the condition that the system does not provide services, the system cannot provide evidence materials, so that consumers are in adverse conditions.
The prior art comprises a 'prepaid card fund supervision method and system based on blockchain' with patent number 202210385547.2, and provides a fund supervision scheme, wherein an operator, a fund supervision mechanism and a bank are signed with a fund collection agreement, and then a three-level account system is built, so that fund data collection and collection are completed, and fund information is checked and paid. The patent mentions that three-level account system is adopted to finish fund supervision and transfer, but because domestic blockchains are coin-free blockchains, the three-level account system is built on a bank fund account system or a blockchain account system, the consistency among the two systems cannot be ensured, the safety of supervision accounts is ensured, and the division of three party responsibilities of a supervisor, an operator and a bank party is not clear.
The patent number 202211329520.8 is a system for managing prepaid transaction, a related method and a blockchain, and an encryption module in the patent is used for encrypting transaction information in a prepaid mode by adopting a preset encryption algorithm; the uplink module is used for uploading the encrypted transaction information to the blockchain through calling the blockchain interface; the block chain module comprises a plurality of block nodes and is used for storing the encrypted transaction information; and the intelligent contract module is used for processing and maintaining transaction information in a prepayment mode through intelligent contracts. This patent only describes the principle of blockchain synchronization and does not guarantee the safety of fund supervision.
"a fund transaction supervision method and system based on intelligent contract" of patent No. 202211697729.X, generate a contract scenario and a second class of users dedicated to the contract scenario according to intelligent contract and merchant credit parameters, the second class of users is used for saving prepaid amount and making money from bank account to merchant; and if the prepaid amount stored in the second class of users exceeds the coordination interval, sending alarm information to the users. The two kinds of users are accounts in banking institutions only, and the consistency of funds of the banking system on and off the chain in the funds supervision can not be ensured because the corresponding current blockchain is a coincidental blockchain.
The method, the system and the storage medium for managing prepaid consumption based on a blockchain of patent number 201910332469.8 are characterized in that the prepaid recharging paid by a customer is stored in a public supervision account of a bank through a second intelligent contract, and in practical situations, the intelligent contract in the blockchain cannot directly call a banking system, because an API which can be called by the intelligent contract on the blockchain must meet the requirements of decentralization and disclosure, namely any node (existing node and added node in future, unknown IP) on the blockchain can call the API, and the banking system is strictly controlled for the security and IP of an access party and cannot meet the requirements.
At present, domestic blockchains are all coin-free blockchains, and for a prepayment fund supervision system based on the blockchains, how to ensure the consistency of account transaction records on the blockchains and fund data of bank accounts outside the chains is a difficulty; in addition, how to ensure that the customer can inquire the balance of the prepaid card at any time and carry out refund operation under the conditions of running of the merchant and downtime of the merchant application system is a difficult point.
It is apparent that the above-mentioned conventional fund supervision method still has inconvenience and defects in use, and further improvement is needed. How to create a new gold supervision method becomes the aim of improvement in the current industry.
Disclosure of Invention
In view of the above, embodiments of the present disclosure provide a blockchain-based prepaid card funds monitoring method, which at least partially solves the problems in the prior art.
In a first aspect, an embodiment of the present disclosure provides a blockchain-based prepaid card funds monitoring method, the method including the steps of:
logging in the blockchain based on the user DID;
invoking an accounting intelligent contract of funds on the blockchain, wherein the accounting intelligent contract acquires and analyzes invoking parameters to obtain accounting information; wherein the billing information comprises a billing value of an account body;
invoking a prophetic machine synchronization interface of the blockchain, synchronizing the accounting value to a bank funds management system outside the chain, and judging whether to return to success; wherein,,
when successful return is made, the billing intelligent contract is called to modify the billing value;
when the return fails, the billing value remains unchanged, either retrying or returning the failure according to the policy of the predictor.
According to a specific implementation manner of the embodiment of the disclosure, the method further comprises a refund method, and specifically comprises the following steps:
logging in a blockchain through a blockchain browser;
checking the balance of the prepaid account value of the current account number on the blockchain;
when the refund operation is carried out, the blockchain browser invokes a refund interface of the billing intelligent contract;
the intelligent accounting contract calls a synchronous interface of the predictor, synchronizes accounting information to a bank funds management system outside the chain, and judges whether the accounting information is returned successfully or not; wherein,,
when successful return is made, the billing intelligent contract is called to modify the billing value;
when the return fails, the billing value remains unchanged, either retrying or returning the failure according to the policy of the predictor.
According to a specific implementation manner of the embodiment of the present disclosure, the call parameter includes: billing information, related billing principals, corresponding billing principal entry and exit operation types and amounts.
According to a specific implementation manner of the embodiment of the present disclosure, the calling the accounting intelligent contract of the funds on the blockchain, the accounting intelligent contract obtaining and analyzing the calling parameters to obtain accounting information, and further includes:
performing security authority check on the billing information; wherein,,
when the security check passes, the locking value in the corresponding account body's accounting value in the accounting information is modified.
According to a specific implementation of an embodiment of the present disclosure, the billing value includes a current value and a lock value, and the lock value defaults to 0;
when the check-in operation is performed, the locking value is positive; when the account-out operation is performed, the locking value is negative;
in the case where the lock value is not 0, the posting or the discharging operation is not allowed.
According to a specific implementation manner of the embodiment of the disclosure, the call parameters include billing information, related billing subjects, corresponding billing subject entry and exit operation types and amounts.
In a second aspect, embodiments of the present disclosure provide a blockchain-based prepaid card funds management system, the system comprising:
a login module configured to login to the blockchain based on the user DID;
the analysis module is configured to call an accounting intelligent contract of funds on the blockchain, and the accounting intelligent contract acquires and analyzes the call parameters to obtain accounting information; wherein the billing information comprises a billing value of an account body;
the synchronization module is configured to call a propulsor synchronization interface of the blockchain, synchronize the accounting value to a bank funds management system outside the chain, and judge whether to return success or not; wherein, when successful return is made, the billing intelligent contract is called to modify the billing value; when the return fails, the billing value remains unchanged, either retrying or returning the failure according to the policy of the predictor.
According to a specific implementation of an embodiment of the disclosure, the system further includes a refund module configured to:
logging in a blockchain through a blockchain browser;
checking the balance of the prepaid account value of the current account number on the blockchain;
when the refund operation is carried out, the blockchain browser invokes a refund interface of the billing intelligent contract;
the intelligent accounting contract calls a synchronous interface of the predictor, synchronizes accounting information to a bank funds management system outside the chain, and judges whether the accounting information is returned successfully or not; wherein,,
when successful return is made, the billing intelligent contract is called to modify the billing value;
when the return fails, the billing value remains unchanged, either retrying or returning the failure according to the policy of the predictor.
In a third aspect, embodiments of the present disclosure further provide an electronic device, including:
at least one processor; the method comprises the steps of,
a memory communicatively coupled to the at least one processor; wherein,,
the memory stores instructions executable by the at least one processor, which when executed by the at least one processor, cause the at least one processor to perform the blockchain-based prepaid card funds management method of the first aspect or any implementation of the first aspect.
In a fourth aspect, the presently disclosed embodiments also provide a non-transitory computer-readable storage medium storing computer instructions that, when executed by at least one processor, cause the at least one processor to perform the blockchain-based prepaid card funds management method of the foregoing first aspect or any implementation of the first aspect.
In a fifth aspect, the presently disclosed embodiments also provide 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, cause the computer to perform the blockchain-based prepaid card funds management method of the foregoing first aspect or any implementation of the first aspect.
The method for supervising the funds of the prepaid card based on the blockchain in the embodiment of the disclosure can enable the funds of the prepaid card to be consistent with the records on the blockchain and bank accounts under the blockchain. And under the condition that the user runs the road at the commercial tenant, the balance can be inquired and the fee is returned under the condition that the commercial tenant application system is down.
Drawings
The foregoing is merely an overview of the present invention, and the present invention is further described in detail below with reference to the accompanying drawings and detailed description.
Fig. 1 is a schematic flow chart of a method for supervising funds of a prepaid card based on a blockchain according to an embodiment of the present disclosure;
FIG. 2 is a schematic flow chart of a method for paying funds back for a prepaid card based on a blockchain according to an embodiment of the present disclosure;
FIG. 3 is a schematic diagram of a blockchain-based prepaid card funds monitoring system according to an embodiment of the present disclosure; and
fig. 4 is a schematic diagram of an electronic device according to an embodiment of the disclosure.
Detailed Description
Embodiments of the present disclosure are described in detail below with reference to the accompanying drawings.
Other advantages and effects of the present disclosure will become readily apparent to those skilled in the art from the following disclosure, which describes embodiments of the present disclosure by way of specific examples. It will be apparent that the described embodiments are merely some, but not all embodiments of the present disclosure. The disclosure may be embodied or practiced in other different specific embodiments, and details within the subject specification may be modified or changed from various points of view and applications without departing from the spirit of the disclosure. It should be noted that the following embodiments and features in the embodiments may be combined with each other without conflict. All other embodiments, which can be made by one of ordinary skill in the art without inventive effort, based on the embodiments in this disclosure are intended to be within the scope of this disclosure.
It is noted that various aspects of the embodiments are described below within the scope of the following claims. It should be apparent that the aspects described herein may be embodied in a wide variety of forms and that any specific structure and/or function described herein is merely illustrative. Based on the present disclosure, one skilled in the art will appreciate that one aspect described herein may be implemented independently of any other aspect, and that two or more of these aspects may be combined in various ways. For example, an apparatus may be implemented and/or a method practiced using any number of the aspects set forth herein. In addition, such apparatus may be implemented and/or such methods practiced using other structure and/or functionality in addition to one or more of the aspects set forth herein.
In addition, in the following description, specific details are provided in order to provide a thorough understanding of the examples. However, it will be understood by those skilled in the art that the aspects may be practiced without these specific details.
The embodiment of the invention provides a prepaid card fund supervision method based on a blockchain, which comprises a blockchain system, a fund accounting intelligent contract on the blockchain, an application system, a prophetic machine and a blockchain browser, wherein the application system calls an interface of the fund accounting intelligent contract to generate accounting information on the blockchain, then the prophetic machine calls the fund supervision according to the accounting intelligent contract, and the prophetic machine calls the fund accounting information to the interfaces of a bank under the chain according to business requirements to complete the fund supervision, and synchronizes the result to the blockchain information. The predictor here is a module in the blockchain that is used to invoke an out-of-chain service to ensure consistency of out-of-chain data and on-chain data. The prepaid card user can check own supervision amount through the blockchain browser and pay-off operation through the blockchain browser without depending on the application system of the merchant. Thus, the refund operation can be completed under the condition that the system service is not available in the running way of the merchant.
Fig. 1 is a schematic diagram of a flow of a blockchain-based prepaid card funds monitoring method according to an embodiment of the present disclosure.
As shown in fig. 1, at step S110, a blockchain is logged in based on a user DID.
More specifically, a user a of an application system logs in to a blockchain using the identity UserADid of DID (decentralised identities).
More specifically, step S120 is next followed.
At step S120, invoking a billing smart contract for funds on the blockchain, the billing smart contract obtaining and parsing the invocation parameters to obtain billing information; wherein the billing information includes a billing value of the account body.
In an embodiment of the present invention, the call parameters include: billing information, related billing principals, corresponding billing principal entry and exit operation types and amounts.
More specifically, a user (UserA) of the application system invokes a funds accounting smart contract (smartcontact-account) on the blockchain, the invocation parameters are params, the invocation parameters include accounting information (acountInfo), include the associated accounting principals, and the corresponding accounting principal entry and exit operation types and amounts.
In the embodiment of the present invention, the calling the accounting intelligent contract of the funds on the blockchain, the accounting intelligent contract obtaining and analyzing the calling parameters to obtain accounting information, and further includes: performing security authority check on the billing information; wherein when the security check passes, the locking value in the accounting value of the corresponding account body in the accounting information is modified.
In the embodiment of the invention, the calling parameters comprise billing information, related billing subjects, corresponding billing subject entry and exit operation types and amounts.
Next, the process goes to step S130.
At step S130, a predictor synchronization interface of the blockchain is invoked to synchronize the accounting value to the off-chain banking funds management system and determine whether to return success.
More specifically, the billing smart contract invokes a propulsor synchronization account interface to synchronize the billing value in the on-chain billing smart contract to the off-chain banking funds management system. The synchronization interface should contain billing information. For an off-chain banking funds management system, the management of account prepaid funds may use a tertiary account system or a secondary account system, again without limiting the invention. Accounting intelligent contracts require all accounting interfaces for funds changes provided to the application system, including, but not limited to, recharging, consuming, refunding, etc. interfaces in prepaid applications.
Next, the process goes to step S140.
At step S140, when successful return is made, the billing smart contract is invoked to modify the billing value.
In an embodiment of the present invention, the accounting value includes a current value and a locking value, and the locking value defaults to 0; when the check-in operation is performed, the locking value is positive; when the account-out operation is performed, the locking value is negative; in the case where the lock value is not 0, the posting or the discharging operation is not allowed.
For example, the initial A account information= { CurrentValue:190, lockedValue:0}; i.e., the current value of account a is 190 and the lock value is 0.
Initial B account information = { CurrentValue:60, lockedValue: +100}; i.e., the current value of account B is 60 and the lock value is 0.
Transferring 100 elements from an A account to a B account, wherein the account information before calling the prophetic machine is:
a account information = { CurrentValue:190, lockvalue: -100}; i.e., the current value of account a is 190 and the locking value is-100.
B account information= { CurrentValue:60, lockvalue: +100}; i.e., the current value of account B is 60 and the locking value is +100.
After the call prophetic machine returns success, the account information of the accounting value is modified as follows:
a account information= { CurrentValue:90, lockvalue: 0};
b account information= { CurrentValue:160, lockvalue: 0}.
And synchronously or asynchronously calling a dynamic account interface of an out-of-chain bank funds management system by the prophetic machine, if the return is successful, calling a modified account value of a SmartContract-account intelligent contract, updating a CurrentValue value on an associated account blockchain to be CurrentValue+LockedValue, modifying LockedValue to be 0, modifying the account, and then modifying the account.
For the refund operation, the account-out party is the merchant, the lockvalue is a negative value, and for the account-in party is the consumer, the lockvalue is a positive value. If the predictor returns failure, retry or return failure is based on the predictor's policy, and the CurrentValue value remains unchanged.
More specifically, the billing smart contract obtains the calling contract parameters (calling parameters), parses the corresponding billing information in the parameters, performs security authority check of the billing information, and if the security check passes, modifies a lock value (lockvalue) in the billing value of the corresponding account body in the billing information. The account body's accounting value contains two parts, the current value (CurrentValue), the lock value (LockedValue), and the default lock value is 0. The billing operation is divided into two types of billing and billing, wherein the billing is positive in locking value (LockedValue), the billing is negative in locking value (LockedValue), and the billing or billing operation is not allowed under the condition that the locking value is not 0.
The prophetic machine synchronously or asynchronously calls a dynamic account interface of an off-chain bank funds management system, if the return is successful, calls a modified accounting value of a accounting intelligent contract (SmartContract-account) intelligent contract, updates a current value (CurrentValue) on an associated account blockchain to a current value (CurrentValue) +locking value (LockedValue), modifies the locking value (LockedValue) to 0, modifies the accounting first, and then modifies the accounting. The lock value (lockvalue) is negative for the checkout and positive for the check-in.
Next, the process goes to step S150.
At step S150, when the return fails, or retries, depending on the policy of the predictor, the accounting value remains unchanged
More specifically, if the predictor returns a failure, the current value (CurrentValue) value remains unchanged, depending on the policy of the predictor, either retries or returns a failure.
Fig. 2 is a schematic flow chart of a prepaid card fund return method based on a blockchain according to an embodiment of the disclosure.
In the embodiment of the invention, the method also comprises a fee refund method, which specifically comprises the following steps:
logging in a blockchain through a blockchain browser;
checking the balance of the prepaid account value of the current account number on the blockchain;
when the refund operation is carried out, the blockchain browser invokes a refund interface of the billing intelligent contract;
the intelligent accounting contract calls a synchronous interface of the predictor, synchronizes accounting information to a bank funds management system outside the chain, and judges whether the accounting information is returned successfully or not; wherein, when successful return is made, the billing intelligent contract is called to modify the billing value; when the return fails, the billing value remains unchanged, either retrying or returning the failure according to the policy of the predictor.
More specifically, the refund method includes the steps of:
(1) The consumer logs into the blockchain through the blockchain browser.
(2) The consumer looks at the prepaid account balance on the blockchain of the current account.
(3) The consumer clicks the prepaid card of the corresponding merchant on the blockchain browser, clicks the refund operation, and the blockchain browser invokes the refund interface of the billing intelligent contract.
(4) The intelligent accounting contract (SmartContract-account) analyzes the corresponding accounting information (accountingInfo) in the parameters after acquiring the calling contract parameter calling parameter (params), performs accounting security authority check (for example, checking whether the access authority of the blockchain calling contract user has the accounting authority of the account number) and if the security check passes, modifies a locking value (LockedValue) in the accounting value of the corresponding account body in the accounting information. The locking value (LockedValue) is positive when checking in, the locking value (LockedValue) is negative when checking out, and the checking-in or checking-out operation is not allowed when the locking value is not 0. Under the condition of customer refund, the account entering party is a customer, and the account exiting party is a merchant.
(5) The billing smart contract invokes the predictor to synchronize billing information to the off-chain banking funds management system. The prophetic machine synchronously or asynchronously calls a dynamic account interface of an off-chain bank funds management system, if the return is successful, calls a modified accounting value of a accounting intelligent contract (SmartContract-account) intelligent contract, updates a current value (CurrentValue) value on an associated account blockchain to be a current value (CurrentValue) +a locking value (LockedValue), modifies the locking value (LockedValue) to be 0, modifies the accounting first, and then modifies the accounting. For the refund operation, the account-out party is the merchant, the locking value (lockvalue) is negative, and for the account-in party is the consumer, lockvalue is positive. If the predictor returns failure, the current value (CurrentValue) value remains unchanged, either retrying or returning failure, depending on the policy of the predictor.
Fig. 3 illustrates a blockchain-based prepaid card funds administration system 300 provided by the present invention, including a login module 310, a resolution module 320, and a synchronization module 330.
The login module 310 is used for logging in the blockchain based on the user DID;
the parsing module 320 is configured to invoke an accounting intelligent contract for funds on the blockchain, where the accounting intelligent contract obtains and parses the invocation parameters to obtain accounting information; wherein the billing information comprises a billing value of an account body;
the synchronization module 330 is configured to invoke a predictor synchronization interface of the blockchain, synchronize the accounting value to an off-chain bank funds management system, and determine whether to return success; wherein, when successful return is made, the billing intelligent contract is called to modify the billing value; when the return fails, the billing value remains unchanged, either retrying or returning the failure according to the policy of the predictor.
In an embodiment of the present invention, the system further comprises a refund module configured to:
logging in a blockchain through a blockchain browser;
checking the balance of the prepaid account value of the current account number on the blockchain;
when the refund operation is carried out, the blockchain browser invokes a refund interface of the billing intelligent contract;
the intelligent accounting contract calls a synchronous interface of the predictor, synchronizes accounting information to a bank funds management system outside the chain, and judges whether the accounting information is returned successfully or not; wherein,,
when successful return is made, the billing intelligent contract is called to modify the billing value;
when the return fails, the billing value remains unchanged, either retrying or returning the failure according to the policy of the predictor.
Referring to fig. 4, the disclosed embodiment also provides an electronic device 40, comprising:
at least one processor; the method comprises the steps of,
a memory communicatively coupled to the at least one processor; wherein,,
the memory stores instructions executable by the at least one processor to enable the at least one processor to perform the blockchain-based prepaid card funds management method of the foregoing method embodiments.
The disclosed embodiments also provide a non-transitory computer readable storage medium storing computer instructions for causing the computer to perform the blockchain-based prepaid card funds monitoring method of the foregoing method embodiments.
The disclosed embodiments also provide a computer program product comprising a computer program stored on a non-transitory computer readable storage medium, the computer program comprising program instructions that, when executed by a computer, cause the computer to perform the blockchain-based prepaid card funds management method of the foregoing method embodiments.
Referring now to fig. 4, a schematic diagram of an electronic device 40 suitable for use in implementing embodiments of the present disclosure is shown. The electronic devices in the embodiments of the present disclosure may include, but are not limited to, mobile terminals such as mobile phones, notebook computers, digital broadcast receivers, PDAs (personal digital assistants), PADs (tablet computers), PMPs (portable multimedia players), in-vehicle terminals (e.g., in-vehicle navigation terminals), and the like, and stationary terminals such as digital TVs, desktop computers, and the like. The electronic device shown in fig. 4 is merely an example and should not be construed to limit the functionality and scope of use of the disclosed embodiments.
As shown in fig. 4, the electronic device 40 may include a processing means (e.g., a central processing unit, a graphics processor, etc.) 401, which may perform various appropriate actions and processes according to a program stored in a Read Only Memory (ROM) 402 or a program loaded from a storage means 408 into a Random Access Memory (RAM) 403. In the RAM 403, various programs and data required for the operation of the electronic device 40 are also stored. The processing device 401, the ROM 402, and the RAM 403 are connected to each other by a bus 404. An input/output (I/O) interface 405 is also connected to bus 404.
In general, the following devices may be connected to the I/O interface 405: input devices 406 including, for example, a touch screen, touchpad, keyboard, mouse, image sensor, microphone, accelerometer, gyroscope, etc.; an output device 407 including, for example, a Liquid Crystal Display (LCD), a speaker, a vibrator, and the like; storage 408 including, for example, magnetic tape, hard disk, etc.; and a communication device 409. The communication means 409 may allow the electronic device 40 to communicate with other devices wirelessly or by wire to exchange data. While an electronic device 40 having various means is shown in the figures, it should be understood that not all of the illustrated means are required to be implemented or provided. More or fewer devices may be implemented or provided instead.
In particular, according to embodiments of the present disclosure, the processes described above with reference to flowcharts may be implemented as computer software programs. For example, embodiments of the present disclosure include a computer program product comprising a computer program embodied on a computer readable medium, the computer program comprising program code for performing the method shown in the flowcharts. In such an embodiment, the computer program may be downloaded and installed from a network via communications device 409, or from storage 408, or from ROM 402. The above-described functions defined in the methods of the embodiments of the present disclosure are performed when the computer program is executed by the processing device 401.
It should be noted that the computer readable medium described in the present disclosure may be a computer readable signal medium or a computer readable storage medium, or any combination of the two. The computer readable storage medium can be, for example, but not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or a combination of any of the foregoing. More specific examples of the computer-readable storage medium may include, but are not limited to: an electrical connection having one or more wires, a portable computer diskette, a hard disk, a Random Access Memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disc read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing. In the context of this disclosure, a computer-readable storage medium may be any tangible medium that can contain, or store a program for use by or in connection with an instruction execution system, apparatus, or device. In the present disclosure, however, the computer-readable signal medium may include a data signal propagated in baseband or as part of a carrier wave, with the computer-readable program code embodied therein. Such a propagated data signal may take any of a variety of forms, including, but not limited to, electro-magnetic, optical, or any suitable combination of the foregoing. A computer readable signal medium may also be any computer readable medium that is not a computer readable storage medium and that can communicate, propagate, or transport a program for use by or in connection with an instruction execution system, apparatus, or device. Program code embodied on a computer readable medium may be transmitted using any appropriate medium, including but not limited to: electrical wires, fiber optic cables, RF (radio frequency), and the like, or any suitable combination of the foregoing.
The computer readable medium may be contained in the electronic device; or may exist alone without being incorporated into the electronic device.
The computer readable medium carries one or more programs which, when executed by the electronic device, cause the electronic device to: acquiring at least two internet protocol addresses; sending a node evaluation request comprising the at least two internet protocol addresses to node evaluation equipment, wherein the node evaluation equipment selects an internet protocol address from the at least two internet protocol addresses and returns the internet protocol address; receiving an Internet protocol address returned by the node evaluation equipment; wherein the acquired internet protocol address indicates an edge node in the content distribution network.
Alternatively, the computer-readable medium carries one or more programs that, when executed by the electronic device, cause the electronic device to: receiving a node evaluation request comprising at least two internet protocol addresses; selecting an internet protocol address from the at least two internet protocol addresses; returning the selected internet protocol address; wherein the received internet protocol address indicates an edge node in the content distribution network.
Computer program code for carrying out operations of the present disclosure may be written in one or more programming languages, including an object oriented programming language such as Java, smalltalk, C ++ and conventional procedural programming languages, such as the "C" programming language or similar programming languages. The program code may execute entirely on the user's computer, partly on the user's computer, as a stand-alone software package, partly on the user's computer and partly on a remote computer or entirely on the remote computer or server. In the case of a remote computer, the remote computer may be connected to the user's computer through any kind of network, including a Local Area Network (LAN) or a Wide Area Network (WAN), or may be connected to an external computer (for example, through the Internet using an Internet service provider).
The flowcharts and block diagrams in the figures illustrate the architecture, functionality, and operation of possible implementations of systems, methods and computer program products according to various embodiments of the present disclosure. In this regard, each block in the flowchart or block diagrams may represent a module, segment, or portion of code, which comprises one or more executable instructions for implementing the specified logical function(s). It should also be noted that, in some alternative implementations, the functions noted in the block may occur out of the order noted in the figures. For example, two blocks shown in succession may, in fact, be executed substantially concurrently, or the blocks may sometimes be executed in the reverse order, depending upon the functionality involved. It will also be noted that each block of the block diagrams and/or flowchart illustration, and combinations of blocks in the block diagrams and/or flowchart illustration, can be implemented by special purpose hardware-based systems which perform the specified functions or acts, or combinations of special purpose hardware and computer instructions.
The units involved in the embodiments of the present disclosure may be implemented by means of software, or may be implemented by means of hardware. The name of the unit does not in any way constitute a limitation of the unit itself, for example the first acquisition unit may also be described as "unit acquiring at least two internet protocol addresses".
It should be understood that portions of the present disclosure may be implemented in hardware, software, firmware, or a combination thereof.
The foregoing is merely specific embodiments of the disclosure, but the protection scope of the disclosure is not limited thereto, and any changes or substitutions that can be easily conceived by those skilled in the art within the technical scope of the disclosure are intended to be covered by the protection scope of the disclosure. Therefore, the protection scope of the present disclosure shall be subject to the protection scope of the claims.

Claims (10)

1. A blockchain-based prepaid card funds monitoring method, the method comprising the steps of:
logging in the blockchain based on the user DID;
invoking an accounting intelligent contract of funds on the blockchain, wherein the accounting intelligent contract acquires and analyzes invoking parameters to obtain accounting information; wherein the billing information comprises a billing value of an account body;
invoking a prophetic machine synchronization interface of the blockchain, synchronizing the accounting value to a bank funds management system outside the chain, and judging whether to return to success; wherein,,
when successful return is made, the billing intelligent contract is called to modify the billing value;
when the return fails, the billing value remains unchanged, either retrying or returning the failure according to the policy of the predictor.
2. The blockchain-based prepaid card funds management method of claim 1, further comprising a refund method, comprising the steps of:
logging in a blockchain through a blockchain browser;
checking the balance of the prepaid account value of the current account number on the blockchain;
when the refund operation is carried out, the blockchain browser invokes a refund interface of the billing intelligent contract;
the intelligent accounting contract calls a synchronous interface of the predictor, synchronizes accounting information to a bank funds management system outside the chain, and judges whether the accounting information is returned successfully or not; wherein,,
when successful return is made, the billing intelligent contract is called to modify the billing value;
when the return fails, the billing value remains unchanged, either retrying or returning the failure according to the policy of the predictor.
3. The blockchain-based prepaid card funds management method of claim 1, wherein the calling parameters include: billing information, related billing principals, corresponding billing principal entry and exit operation types and amounts.
4. The blockchain-based prepaid card funds management method of claim 1, wherein the invoking the accounting smart contract for funds on the blockchain, the accounting smart contract retrieving and parsing invocation parameters to obtain accounting information, further comprises:
performing security authority check on the billing information; wherein,,
when the security check passes, the locking value in the corresponding account body's accounting value in the accounting information is modified.
5. The blockchain-based prepaid card funds management method of any of claims 1-4, wherein the billing value comprises a current value and a lock value, and the lock value defaults to 0;
when the check-in operation is performed, the locking value is positive; when the account-out operation is performed, the locking value is negative;
in the case where the lock value is not 0, the posting or the discharging operation is not allowed.
6. The blockchain-based prepaid card funds management method of claim 4, wherein the call parameters include billing information, related billing principals, corresponding billing principal entry and exit operation types and amounts.
7. A blockchain-based prepaid card funds management system, the system comprising:
a login module configured to login to the blockchain based on the user DID;
the analysis module is configured to call an accounting intelligent contract of funds on the blockchain, and the accounting intelligent contract acquires and analyzes the call parameters to obtain accounting information; wherein the billing information comprises a billing value of an account body;
the synchronization module is configured to call a propulsor synchronization interface of the blockchain, synchronize the accounting value to a bank funds management system outside the chain, and judge whether to return success or not; wherein, when successful return is made, the billing intelligent contract is called to modify the billing value; when the return fails, the billing value remains unchanged, either retrying or returning the failure according to the policy of the predictor.
8. The blockchain-based prepaid card funds management system of claim 7, further comprising a refund module configured to:
logging in a blockchain through a blockchain browser;
checking the balance of the prepaid account value of the current account number on the blockchain;
when the refund operation is carried out, the blockchain browser invokes a refund interface of the billing intelligent contract;
the intelligent accounting contract calls a synchronous interface of the predictor, synchronizes accounting information to a bank funds management system outside the chain, and judges whether the accounting information is returned successfully or not; wherein,,
when successful return is made, the billing intelligent contract is called to modify the billing value;
when the return fails, the billing value remains unchanged, either retrying or returning the failure according to the policy of the predictor.
9. An electronic device, comprising:
at least one processor; the method comprises the steps of,
a memory communicatively coupled to the at least one processor; wherein,,
the memory stores instructions executable by the at least one processor that, when executed by the at least one processor, cause the at least one processor to perform the blockchain-based prepaid card funds monitoring method of any of claims 1 to 6.
10. A non-transitory computer-readable storage medium storing computer instructions that, when executed by at least one processor, cause the at least one processor to perform the blockchain-based prepaid card funds management method of any of claims 1-6.
CN202310947407.4A 2023-07-31 2023-07-31 Prepaid card fund supervision method and system based on blockchain Pending CN116976883A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202310947407.4A CN116976883A (en) 2023-07-31 2023-07-31 Prepaid card fund supervision method and system based on blockchain

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202310947407.4A CN116976883A (en) 2023-07-31 2023-07-31 Prepaid card fund supervision method and system based on blockchain

Publications (1)

Publication Number Publication Date
CN116976883A true CN116976883A (en) 2023-10-31

Family

ID=88470912

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202310947407.4A Pending CN116976883A (en) 2023-07-31 2023-07-31 Prepaid card fund supervision method and system based on blockchain

Country Status (1)

Country Link
CN (1) CN116976883A (en)

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110163595A (en) * 2019-04-24 2019-08-23 吉林大学珠海学院 Pre-payment consumption management method, system and storage medium based on block chain
CN110490562A (en) * 2019-07-10 2019-11-22 布比(北京)网络技术有限公司 A kind of across the chain data processing method and system of multi-tiling chain
WO2022100078A1 (en) * 2020-11-12 2022-05-19 深圳市爱云信息科技有限公司 Blockchain baas cross-border digital payment platform for smart supply chain
US20220398561A1 (en) * 2021-06-11 2022-12-15 Bank Of America Corporation Secured, Unified, Multifunctional, Digital Currency Store with Machine-Readable Card and/or Mobile App
CN116128658A (en) * 2022-12-20 2023-05-16 马上消费金融股份有限公司 Block chain-based data storage insurance method, device, equipment and storage medium
CN116210200A (en) * 2020-07-29 2023-06-02 塔尔迪特有限公司 Blockchain communication syndrome

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110163595A (en) * 2019-04-24 2019-08-23 吉林大学珠海学院 Pre-payment consumption management method, system and storage medium based on block chain
CN110490562A (en) * 2019-07-10 2019-11-22 布比(北京)网络技术有限公司 A kind of across the chain data processing method and system of multi-tiling chain
CN116210200A (en) * 2020-07-29 2023-06-02 塔尔迪特有限公司 Blockchain communication syndrome
WO2022100078A1 (en) * 2020-11-12 2022-05-19 深圳市爱云信息科技有限公司 Blockchain baas cross-border digital payment platform for smart supply chain
US20220398561A1 (en) * 2021-06-11 2022-12-15 Bank Of America Corporation Secured, Unified, Multifunctional, Digital Currency Store with Machine-Readable Card and/or Mobile App
CN116128658A (en) * 2022-12-20 2023-05-16 马上消费金融股份有限公司 Block chain-based data storage insurance method, device, equipment and storage medium

Non-Patent Citations (3)

* Cited by examiner, † Cited by third party
Title
张孜铭著: "WEB3.0赋能数字经济新时代", 30 June 2022, 中国对外翻译出版公司, pages: 72 *
曹锋,付少庆: "区块链知识技术普及版", 31 March 2022, 北京理工大学出版社, pages: 238 *
陈志刚: "可信任的治理 以数字政府推进国家治理能力现代化", 31 January 2023, 北京联合出版公司, pages: 47 *

Similar Documents

Publication Publication Date Title
CN109242453B (en) Transaction method and system based on centralized settlement and block chain deposit certificate
US11861621B2 (en) Payment risk control method and system
CN108920257B (en) Transaction processing method, device, equipment and storage medium
CN114186995A (en) Digital currency payment method and device
CN110428240B (en) Automatic suspicious transaction identification and processing method, terminal and server
WO2022262527A1 (en) Digital currency-based payment method, platform, terminal, and payment system
CN113538151A (en) Block chain-based insurance data processing method, node and system
CN116957560A (en) Method for supervising prepaid transaction funds by using predictor
CN109345249A (en) A kind of payment fail processing method and device
US20220245581A1 (en) Method and apparatus for sharing delivery box
CN113129013B (en) Virtual resource transfer method, device, equipment and medium
CN111144863A (en) Processing method and device for bank card information change of withholding account and related equipment
CN116976883A (en) Prepaid card fund supervision method and system based on blockchain
CN111127221B (en) Method, device, medium and electronic equipment for policy claim settlement
CN114004701A (en) Method and device for generating transaction result, electronic equipment and storage medium
CN112132692A (en) Policy data processing method and device, storage medium and electronic equipment
CN110827009B (en) Fund transfer method and device based on account balance limit
CN112929162B (en) Password management method and system, electronic equipment and readable storage medium
US20240048392A1 (en) System and method for establishing permanent records based on microinteractions
CN115170116A (en) Data processing method and device, electronic equipment and storage medium
CN105321074B (en) Network payment authentication method and device
CN111857876A (en) Service processing method and device, electronic equipment and computer readable medium
CN116702205A (en) Authentication method and device and electronic equipment
CN117132277A (en) Secure payment method, apparatus, electronic device and readable storage medium
CN112927035A (en) Resource allocation method, device, equipment and medium

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