Blockchain-based transaction processing method and apparatus
Abstract
A blockchain-based transaction processing method may comprise: in response to a designated account being logged in through an application client, generating, according to input to-be-operated account information and configured operation content, an operation instruction comprising the to-be-operated account information and the operation content; and sending the operation instruction to a node in a blockchain network, causing the node in the blockchain network to invoke a smart contract corresponding to the designated account upon receiving the operation instruction, and to execute an operation according to the operation content on another account corresponding to the to-be-operated account information.
Claims
exact text as granted — not AI-modifiedWhat is claimed is:
1 . A blockchain-based transaction processing system, comprising: a processor and a non-transitory computer-readable storage medium storing instructions that, when executed by the processor, cause the system to perform operations comprising:
acquiring an operation instruction from a first account, the operation instruction comprising operation content and account information of a second account in need of administrative supervision; determining whether the first account corresponds to an account issuing the operation instruction; in response to determining that the first account corresponds to the account issuing the operation instruction, determining a smart contract corresponding to the first account, wherein the first account has one or more administrative supervision capabilities over the second account through one or more smart contracts corresponding to the first account; and executing, by invoking the smart contract, an operation according to the operation content on the second account corresponding to the account information.
2 . The system of claim 1 , wherein determining whether the first account corresponds to the account issuing the operation instruction, comprises:
generating a summary of the operation instruction; using a public key in a public-private key pair corresponding to the account issuing the operation instruction to encrypt the summary to obtain an encrypted summary; and determining whether the encrypted summary corresponds to an encrypted summary comprised in the operation instruction.
3 . The system of claim 1 , wherein executing, by invoking the smart contract, the operation according to the operation content on the second account, comprises: in response to the operation content satisfying an execution condition of the smart contract, executing the operation on the second account according to a transaction processing logic corresponding to the operation content comprised in the smart contract.
4 . The system of claim 3 , wherein executing the operation on the second account according to the transaction processing logic, comprises: in response to the operation content being to freeze an account, executing a freezing operation on the second account according to the transaction processing logic, the freezing operation executed on the second account being used to instruct to stop execution of transactions related to the account information.
5 . The system of claim 3 , wherein executing the operation on the second account according to the transaction processing logic, comprises: in response to the operation content being to unfreeze an account, executing an unfreezing operation on the second account according to the transaction processing logic, the unfreezing operation executed on the second account being used to instruct to resume execution of transactions related to the account information.
6 . The system of claim 5 , wherein the operations further comprise: before executing the unfreezing operation on the second account, determining that the second account is in a frozen state; and wherein executing the unfreezing operation on the second account comprises: in response to determining that the second account is in the frozen state, executing the unfreezing operation on the second account.
7 . The system of claim 3 , wherein executing the operation on the second account according to the transaction processing logic comprises: in response to the operation content being to suspend an account, executing a suspending operation on the second account according to the transaction processing logic, the suspending operation executed on the second account being used to instruct the second account to stop execution of transactions.
8 . The system of claim 3 , wherein executing the operation on the second account according to the transaction processing logic, comprises: in response to the operation content being to resume an account, executing a resuming operation on the second account according to the transaction processing logic, the resuming operation executed on the second account being used to instruct the second account to resume execution of transactions.
9 . The system of claim 8 , wherein the operations further comprise: before executing the resuming operation on the second account, determining whether the second account is in a suspended state; and wherein executing the resuming operation on the second account comprises: in response to determining that the second account is in the suspended state, executing the resuming operation on the second account.
10 . The system of claim 3 , wherein executing the operation on the second account according to the transaction processing logic, comprises: in response to the operation content being to close an account, executing a closing operation on the second account according to the transaction processing logic, the closing operation executed on the second account being used to instruct to stop execution of transactions.
11 . The system of claim 3 , wherein executing the operation on the second account according to the transaction processing logic comprises: in response to the operation content being to open an account, executing an opening operation on the second account according to the transaction processing logic.
12 . The system of claim 3 , wherein executing the operation on the second account according to the transaction processing logic comprises: in response to the operation content being a mandatory transfer, executing a mandatory transfer operation on the second account according to the transaction processing logic, the mandatory transfer operation being used for mandatory transfer of a quantity of resources from the second account according to the operation content.
13 . The system of claim 1 , wherein determining the smart contract corresponding to the first account, comprises: selecting the smart contract according to at least a mapping relationship between different operation contents and different smart contracts corresponding to the first account.
14 . The system of claim 1 , wherein determining the smart contract corresponding to the first account, comprises: selecting the smart contract according to at least a mapping relationship between different issuing accounts and different smart contracts corresponding to the different issuing accounts, the different issuing accounts including the first account.
15 . The system of claim 1 , wherein determining that the account sending the operation instruction corresponds to the account issuing the operation instruction, comprises: decrypting the operation instruction and verifying whether it is signed by the account issuing the operation instruction.
16 . A blockchain-based transaction processing method implementable by a node in a blockchain network, the method comprising:
acquiring an operation instruction from a first account, the operation instruction comprising operation content and account information of a second account in need of administrative supervision; determining whether the first account corresponds to an account issuing the operation instruction; in response to determining that the first account corresponds to the account issuing the operation instruction, determining a smart contract corresponding to the first account, wherein the first account has one or more administrative supervision capabilities over the second account through one or more smart contracts corresponding to the first account; and executing, by invoking the smart contract, an operation according to the operation content on the second account corresponding to the account information.
17 . The method of claim 16 , wherein determining whether the first account corresponds to the account issuing the operation instruction, comprises:
generating a summary of the operation instruction; using a public key in a public-private key pair corresponding to the account issuing the operation instruction to encrypt the summary to obtain an encrypted summary; and determining whether the encrypted summary corresponds to an encrypted summary comprised in the operation instruction.
18 . The method of claim 16 , wherein determining the smart contract corresponding to the first account, comprises: selecting the smart contract according to at least a mapping relationship between different operation contents and different smart contracts corresponding to the first account.
19 . The method of claim 16 , wherein determining the smart contract corresponding to the first account, comprises: selecting the smart contract according to at least a mapping relationship between different issuing accounts and different smart contracts corresponding to the different issuing accounts, the different issuing accounts including the first account.
20 . A non-transitory computer-readable storage medium storing instructions that, when executed by a processor, cause the processor to perform operations comprising:
acquiring an operation instruction from a first account, the operation instruction comprising operation content and account information of a second account in need of administrative supervision; determining whether the first account corresponds to an account issuing the operation instruction; in response to determining that the first account corresponds to the account issuing the operation instruction, determining a smart contract corresponding to the first account, wherein the first account has one or more administrative supervision capabilities over the second account through one or more smart contracts corresponding to the first account; and executing, by invoking the smart contract, an operation according to the operation content on the second account corresponding to the account information.Join the waitlist — get patent alerts
Track US2021073815A1 — get alerts on status changes and closely related new filings.
We store only your email — no account needed. See our privacy policy.