CN116542669A - User-friendly online transfer method and system based on intelligent contracts - Google Patents

User-friendly online transfer method and system based on intelligent contracts Download PDF

Info

Publication number
CN116542669A
CN116542669A CN202310139271.4A CN202310139271A CN116542669A CN 116542669 A CN116542669 A CN 116542669A CN 202310139271 A CN202310139271 A CN 202310139271A CN 116542669 A CN116542669 A CN 116542669A
Authority
CN
China
Prior art keywords
relay
transaction
intelligent contract
user
chain
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
CN202310139271.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 Wanxiang Blockchain Inc
Original Assignee
Shanghai Wanxiang Blockchain Inc
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 Wanxiang Blockchain Inc filed Critical Shanghai Wanxiang Blockchain Inc
Priority to CN202310139271.4A priority Critical patent/CN116542669A/en
Publication of CN116542669A publication Critical patent/CN116542669A/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/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/401Transaction verification
    • G06Q20/4014Identity check for transactions
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06QINFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
    • G06Q20/00Payment architectures, schemes or protocols
    • G06Q20/38Payment protocols; Details thereof
    • G06Q20/382Payment protocols; Details thereof insuring higher security of transaction
    • G06Q20/3825Use of electronic signatures
    • 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/32Cryptographic mechanisms or cryptographic arrangements for secret or secure communications; Network security protocols including means for verifying the identity or authority of a user of the system or for message authentication, e.g. authorization, entity authentication, data integrity or data verification, non-repudiation, key authentication or verification of credentials
    • H04L9/3234Cryptographic mechanisms or cryptographic arrangements for secret or secure communications; Network security protocols including means for verifying the identity or authority of a user of the system or for message authentication, e.g. authorization, entity authentication, data integrity or data verification, non-repudiation, key authentication or verification of credentials involving additional secure or trusted devices, e.g. TPM, smartcard, USB or software token
    • 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/32Cryptographic mechanisms or cryptographic arrangements for secret or secure communications; Network security protocols including means for verifying the identity or authority of a user of the system or for message authentication, e.g. authorization, entity authentication, data integrity or data verification, non-repudiation, key authentication or verification of credentials
    • H04L9/3247Cryptographic mechanisms or cryptographic arrangements for secret or secure communications; Network security protocols including means for verifying the identity or authority of a user of the system or for message authentication, e.g. authorization, entity authentication, data integrity or data verification, non-repudiation, key authentication or verification of credentials involving digital signatures

Landscapes

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

Abstract

The invention provides a user-friendly chain transfer method and system based on intelligent contracts, comprising the following steps: step S1: registering an on-chain account to generate an on-chain intelligent contract account; step S2: sending a transaction request through an intelligent contract; step S3: enabling the relay server to verify the transaction request; step S4: enabling the relay server to execute transaction and sign, and returning to the user; step S5: the relay server invokes the transaction recipient contract to send the transaction to the transaction recipient's smart contract. The invention solves the problem that the transfer of the original asset of the necessary chain on the user chain is solved by introducing a relay (layer) to become an actual payer of the transaction, and reduces the threshold of using the blockchain by the user; the intelligent contract is adopted to execute the request of the user, so that the programmability is higher, and the on-chain behavior of the user is more flexible and expandable.

Description

User-friendly online transfer method and system based on intelligent contracts
Technical Field
The invention relates to the technical field of blockchains, in particular to a user-friendly chain transfer method and system based on intelligent contracts.
Background
Current public chain transfers require users to hold the chain-native digital asset as a transaction Gas (i.e., commission), but in many cases users may only need to transfer other assets on the chain, such as NFTs, forcing users to additionally purchase the public chain-native digital asset to pay commission, greatly increasing user inconvenience and use costs.
Patent document CN109816361a (application number: CN 201910024055.9) discloses a blockchain mining fee-free signature transfer method comprising the steps of: the client sends out transaction hash composed of the transfer address, the transfer quantity and the receipt address information of the medal to the server; the server receives the transaction hash and provides an address stored with a certain amount of main coins for paying the miner fees packaged by the uplink, and the server acquires UTXO information, UTXO addresses and related change addresses from the block chain link points to the client; the client receives the UTXO information, the UTXO address and the related change address, and the user signs and creates a uplink transaction based on the client to confirm a first result; the server performs information integrity verification, the verification passes through the back server to perform second signature, and the client confirms the second signature result and broadcasts the second signature result to the blockchain network; and each target block chain node receives the broadcast and packages, and after the package confirmation is completed, the transfer is successful. But the invention does not introduce a relay (layer) to become the actual payer of the transaction.
Disclosure of Invention
In view of the defects in the prior art, the invention aims to provide an intelligent contract-based user-friendly chain transfer method and system.
The invention provides an intelligent contract-based user-friendly online transfer method, which comprises the following steps:
step S1: registering an on-chain account to generate an on-chain intelligent contract account;
step S2: sending a transaction request through an intelligent contract;
step S3: enabling the relay server to verify the transaction request;
step S4: enabling the relay server to execute the successfully verified transaction and sign, and returning to the user;
step S5: the relay server invokes the transaction recipient contract to send the transaction to the transaction recipient's smart contract.
Preferably, in said step S1:
the user registers an on-chain account at the client to generate a local external account, and corresponding on-chain intelligent contract accounts are automatically generated and deployed
Preferably, in said step S2:
step S2.1: the server side comprises a relay routing intelligent contract, the relay routing intelligent contract maintains a relay list, and the relay is connected with a corresponding payer intelligent contract to determine the transaction of payment cost;
step S2.2: the client is connected to the relay routing intelligent contract to inquire an available relay list;
step S2.3: and the user initiates a transaction request through the client, provides the encrypted core data and signature signed by the user, and sends the core data and the signature to the relay server.
Preferably, in said step S3:
the transaction request is connected to the relay server, and the identity of the transaction requester is verified by signature by invoking the intelligent contract to query whether the relay in the server has stored a preset number of commission assets.
Preferably, in said step S4:
after verification is successful, the relay signs the transaction, the relay server sends the signed transaction to the client and the intelligent contract of the relay, and the transaction is paid by the relay.
According to the present invention, there is provided an intelligent contract-based user-friendly online transfer system, comprising:
module M1: registering an on-chain account to generate an on-chain intelligent contract account;
module M2: sending a transaction request through an intelligent contract;
module M3: enabling the relay server to verify the transaction request;
module M4: enabling the relay server to execute the successfully verified transaction and sign, and returning to the user;
module M5: the relay server invokes the transaction recipient contract to send the transaction to the transaction recipient's smart contract.
Preferably, in said module M1:
the user registers an on-chain account at the client to generate a local external account, and corresponding on-chain intelligent contract accounts are automatically generated and deployed
Preferably, in said module M2:
module M2.1: the server side comprises a relay routing intelligent contract, the relay routing intelligent contract maintains a relay list, and the relay is connected with a corresponding payer intelligent contract to determine the transaction of payment cost;
module M2.2: the client is connected to the relay routing intelligent contract to inquire an available relay list;
module M2.3: and the user initiates a transaction request through the client, provides the encrypted core data and signature signed by the user, and sends the core data and the signature to the relay server.
Preferably, in said module M3:
the transaction request is connected to the relay server, and the identity of the transaction requester is verified by signature by invoking the intelligent contract to query whether the relay in the server has stored a preset number of commission assets.
Preferably, in said module M4:
after verification is successful, the relay signs the transaction, the relay server sends the signed transaction to the client and the intelligent contract of the relay, and the transaction is paid by the relay.
Compared with the prior art, the invention has the following beneficial effects:
1. the invention solves the problem that the transfer of the original asset of the necessary chain on the user chain is solved by introducing a relay (layer) to become an actual payer of the transaction, and reduces the threshold of using the blockchain by the user;
2. the intelligent contract is adopted to execute the request of the user, so that the programmability is higher, and the on-chain behavior of the user is more flexible and expandable.
3. According to the invention, by adding the payment agent based on the intelligent contract between the sender and the receiver of the transfer, such as the service provider of some Dapp, the transfer step of the user is simpler, the experience is more friendly, and enterprises can choose to help the user pay the commission, so that the business mode is more flexible.
Drawings
Other features, objects and advantages of the present invention will become more apparent upon reading of the detailed description of non-limiting embodiments, given with reference to the accompanying drawings in which:
FIG. 1 is a schematic flow chart of the present invention.
Detailed Description
The present invention will be described in detail with reference to specific examples. The following examples will assist those skilled in the art in further understanding the present invention, but are not intended to limit the invention in any way. It should be noted that variations and modifications could be made by those skilled in the art without departing from the inventive concept. These are all within the scope of the present invention.
Example 1:
according to the invention, a user-friendly chain transfer method based on intelligent contracts is provided, as shown in fig. 1, comprising the following steps:
step S1: registering an on-chain account to generate an on-chain intelligent contract account;
specifically, in the step S1:
the user registers an on-chain account at the client to generate a local external account, and corresponding on-chain intelligent contract accounts are automatically generated and deployed
Step S2: sending a transaction request through an intelligent contract;
specifically, in the step S2:
step S2.1: the server side comprises a relay routing intelligent contract, the relay routing intelligent contract maintains a relay list, and the relay is connected with a corresponding payer intelligent contract to determine the transaction of payment cost;
step S2.2: the client is connected to the relay routing intelligent contract to inquire an available relay list;
step S2.3: and the user initiates a transaction request through the client, provides the encrypted core data and signature signed by the user, and sends the core data and the signature to the relay server.
Step S3: enabling the relay server to verify the transaction request;
specifically, in the step S3:
the transaction request is connected to the relay server, and the identity of the transaction requester is verified by signature by invoking the intelligent contract to query whether the relay in the server has stored a preset number of commission assets.
Step S4: enabling the relay server to execute the successfully verified transaction and sign, and returning to the user;
specifically, in the step S4:
after verification is successful, the relay signs the transaction, the relay server sends the signed transaction to the client and the intelligent contract of the relay, and the transaction is paid by the relay.
Step S5: the relay server invokes the transaction recipient contract to send the transaction to the transaction recipient's smart contract.
Example 2:
example 2 is a preferable example of example 1 to more specifically explain the present invention.
The present invention also provides an intelligent contract user-friendly on-chain transfer system, which can be implemented by performing the flow steps of the intelligent contract user-friendly on-chain transfer method, i.e., a person skilled in the art can understand the intelligent contract user-friendly on-chain transfer method as a preferred embodiment of the intelligent contract user-friendly on-chain transfer system.
According to the present invention, there is provided an intelligent contract-based user-friendly online transfer system, comprising:
module M1: registering an on-chain account to generate an on-chain intelligent contract account;
specifically, in the module M1:
the user registers an on-chain account at the client to generate a local external account, and corresponding on-chain intelligent contract accounts are automatically generated and deployed
Module M2: sending a transaction request through an intelligent contract;
specifically, in the module M2:
module M2.1: the server side comprises a relay routing intelligent contract, the relay routing intelligent contract maintains a relay list, and the relay is connected with a corresponding payer intelligent contract to determine the transaction of payment cost;
module M2.2: the client is connected to the relay routing intelligent contract to inquire an available relay list;
module M2.3: and the user initiates a transaction request through the client, provides the encrypted core data and signature signed by the user, and sends the core data and the signature to the relay server.
Module M3: enabling the relay server to verify the transaction request;
specifically, in the module M3:
the transaction request is connected to the relay server, and the identity of the transaction requester is verified by signature by invoking the intelligent contract to query whether the relay in the server has stored a preset number of commission assets.
Module M4: enabling the relay server to execute the successfully verified transaction and sign, and returning to the user;
specifically, in the module M4:
after verification is successful, the relay signs the transaction, the relay server sends the signed transaction to the client and the intelligent contract of the relay, and the transaction is paid by the relay.
Module M5: the relay server invokes the transaction recipient contract to send the transaction to the transaction recipient's smart contract.
Example 3:
example 3 is a preferable example of example 1 to more specifically explain the present invention.
Step one: the user registers on-chain accounts with the client, generates a local EOA (Externally Owned Accounts, external account), and simultaneously automatically generates and deploys corresponding on-chain smart contract accounts.
Step two: a user initiates a transaction request through a client, and forms a transaction request through an on-chain intelligent contract account, wherein the transaction request comprises a signature of the user, an encrypted receiver contract address and other related data.
Step three: the transaction request is connected to a relay server (relay server) by invoking an intelligent contract to inquire whether a relay (relay) in the server has stored sufficient commission assets, while verifying the identity of the transaction requester by signing;
step four: after verification is successful, the relay signs the transaction, and the relay server sends the signed transaction to the client and the intelligent contract of the relay, and at the moment, the transaction is paid by the relay.
Step five: the relay server invokes the receiver contract and sends the transaction to the intelligent contract of the transaction receiver to complete the transfer.
Wherein, the second step comprises the following substeps:
step 2.1: the server contains a relay routing (relay hub) intelligent contract that maintains a list of relays (relays) that connect to the corresponding payer intelligent contract to determine which transactions can be paid for.
Step 2.2: the client connects to a relay hub intelligent contract, querying a list of available relays (relay).
Step 2.3: the user initiates a transaction request through the client, provides the core data and the signature after signing and encrypting, and sends the core data and the signature to the relay server.
Those skilled in the art will appreciate that the systems, apparatus, and their respective modules provided herein may be implemented entirely by logic programming of method steps such that the systems, apparatus, and their respective modules are implemented as logic gates, switches, application specific integrated circuits, programmable logic controllers, embedded microcontrollers, etc., in addition to the systems, apparatus, and their respective modules being implemented as pure computer readable program code. Therefore, the system, the apparatus, and the respective modules thereof provided by the present invention may be regarded as one hardware component, and the modules included therein for implementing various programs may also be regarded as structures within the hardware component; modules for implementing various functions may also be regarded as being either software programs for implementing the methods or structures within hardware components.
The foregoing describes specific embodiments of the present invention. It is to be understood that the invention is not limited to the particular embodiments described above, and that various changes or modifications may be made by those skilled in the art within the scope of the appended claims without affecting the spirit of the invention. The embodiments of the present application and features in the embodiments may be combined with each other arbitrarily without conflict.

Claims (10)

1. A smart contract-based user-friendly online transfer method, comprising:
step S1: registering an on-chain account to generate an on-chain intelligent contract account;
step S2: sending a transaction request through an intelligent contract;
step S3: enabling the relay server to verify the transaction request;
step S4: enabling the relay server to execute the successfully verified transaction and sign, and returning to the user;
step S5: the relay server invokes the transaction recipient contract to send the transaction to the transaction recipient's smart contract.
2. The smart contract-based user-friendly on-chain transfer method according to claim 1, wherein in the step S1:
the user registers an on-chain account at the client to generate a local external account, and a corresponding on-chain intelligent contract account is automatically generated and deployed.
3. The smart contract-based user-friendly on-chain transfer method according to claim 1, wherein in the step S2:
step S2.1: the server side comprises a relay routing intelligent contract, the relay routing intelligent contract maintains a relay list, and the relay is connected with a corresponding payer intelligent contract to determine the transaction of payment cost;
step S2.2: the client is connected to the relay routing intelligent contract to inquire an available relay list;
step S2.3: and the user initiates a transaction request through the client, provides the encrypted core data and signature signed by the user, and sends the core data and the signature to the relay server.
4. The smart contract-based user-friendly on-chain transfer method according to claim 1, wherein in the step S3:
the transaction request is connected to the relay server, and the identity of the transaction requester is verified by signature by invoking the intelligent contract to query whether the relay in the server has stored a preset number of commission assets.
5. The smart contract-based user-friendly on-chain transfer method according to claim 1, wherein in the step S4:
after verification is successful, the relay signs the transaction, the relay server sends the signed transaction to the client and the intelligent contract of the relay, and the transaction is paid by the relay.
6. A smart contract-based user-friendly online transfer system, comprising:
module M1: registering an on-chain account to generate an on-chain intelligent contract account;
module M2: sending a transaction request through an intelligent contract;
module M3: enabling the relay server to verify the transaction request;
module M4: enabling the relay server to execute the successfully verified transaction and sign, and returning to the user;
module M5: the relay server invokes the transaction recipient contract to send the transaction to the transaction recipient's smart contract.
7. The smart contract-based user-friendly on-chain transfer system according to claim 6, wherein in the module M1:
the user registers an on-chain account at the client to generate a local external account, and a corresponding on-chain intelligent contract account is automatically generated and deployed.
8. The smart contract-based user-friendly on-chain transfer system according to claim 6, wherein in the module M2:
module M2.1: the server side comprises a relay routing intelligent contract, the relay routing intelligent contract maintains a relay list, and the relay is connected with a corresponding payer intelligent contract to determine the transaction of payment cost;
module M2.2: the client is connected to the relay routing intelligent contract to inquire an available relay list;
module M2.3: and the user initiates a transaction request through the client, provides the encrypted core data and signature signed by the user, and sends the core data and the signature to the relay server.
9. The smart contract-based user-friendly on-chain transfer system according to claim 6, wherein in the module M3:
the transaction request is connected to the relay server, and the identity of the transaction requester is verified by signature by invoking the intelligent contract to query whether the relay in the server has stored a preset number of commission assets.
10. The smart contract-based user-friendly on-chain transfer system according to claim 6, wherein in the module M4:
after verification is successful, the relay signs the transaction, the relay server sends the signed transaction to the client and the intelligent contract of the relay, and the transaction is paid by the relay.
CN202310139271.4A 2023-02-20 2023-02-20 User-friendly online transfer method and system based on intelligent contracts Pending CN116542669A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202310139271.4A CN116542669A (en) 2023-02-20 2023-02-20 User-friendly online transfer method and system based on intelligent contracts

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202310139271.4A CN116542669A (en) 2023-02-20 2023-02-20 User-friendly online transfer method and system based on intelligent contracts

Publications (1)

Publication Number Publication Date
CN116542669A true CN116542669A (en) 2023-08-04

Family

ID=87449423

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202310139271.4A Pending CN116542669A (en) 2023-02-20 2023-02-20 User-friendly online transfer method and system based on intelligent contracts

Country Status (1)

Country Link
CN (1) CN116542669A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN118075282A (en) * 2024-02-20 2024-05-24 北京锐融天下科技股份有限公司 Block chain intelligent contract non-inductive interaction method and system based on trusted relay

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN118075282A (en) * 2024-02-20 2024-05-24 北京锐融天下科技股份有限公司 Block chain intelligent contract non-inductive interaction method and system based on trusted relay

Similar Documents

Publication Publication Date Title
US11004044B2 (en) Method for paying cost of IoT device based on blockchain, and server, service providing device, and digital wallet using the same
CN110612546B (en) Method and apparatus for digital asset account management
KR102573433B1 (en) Platform for trading energy using block chain and method thereof
US10592985B2 (en) Systems and methods for a commodity contracts market using a secure distributed transaction ledger
CN108197944B (en) Resource transaction method and device based on block chain technology
TWI640937B (en) Online payment method and equipment
CN108510276B (en) Data processing method, device and system
US20230081978A1 (en) Localized blockchain utilizing mesh networks for localized events
KR20110037666A (en) Method of electronic payment through multi-step certification using portable terminal
CN110659906B (en) Bill information processing method, related device and medium
CN111314172B (en) Block chain-based data processing method, device, equipment and storage medium
CN108876538B (en) A kind of order information processing method
CN111831996B (en) Service system of multiple digital certificate certification authorities
CN104852884A (en) Registration method of third party payment platform, device, and system
CN112070484B (en) Block chain-based data processing method and device
CN110910000A (en) Block chain asset management method and device
CN112907244B (en) Block chain-based data processing method, device, equipment and readable storage medium
CN113706313A (en) Financing method, system and computer readable storage medium based on block chain
CN110659993A (en) Resource management method and device based on block chain network
CN116542669A (en) User-friendly online transfer method and system based on intelligent contracts
CN109978542B (en) Accounts payable data management method, system, storage medium and electronic device
US7483863B2 (en) Electronic commerce information processing system and method
CN105046478A (en) Method of processing article and system thereof
CN112256799A (en) Data processing method and device based on block chain, server and storage medium
CN113362064B (en) Multiple signature method, computer device, and storage 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