CN112583811B - Wallet finding method, equipment and storage medium - Google Patents

Wallet finding method, equipment and storage medium Download PDF

Info

Publication number
CN112583811B
CN112583811B CN202011426902.3A CN202011426902A CN112583811B CN 112583811 B CN112583811 B CN 112583811B CN 202011426902 A CN202011426902 A CN 202011426902A CN 112583811 B CN112583811 B CN 112583811B
Authority
CN
China
Prior art keywords
wallet
transaction
retrieval
retrieving
signature
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.)
Active
Application number
CN202011426902.3A
Other languages
Chinese (zh)
Other versions
CN112583811A (en
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.)
Hangzhou Fuzamei Technology Co Ltd
Original Assignee
Hangzhou Fuzamei 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 Hangzhou Fuzamei Technology Co Ltd filed Critical Hangzhou Fuzamei Technology Co Ltd
Priority to CN202011426902.3A priority Critical patent/CN112583811B/en
Publication of CN112583811A publication Critical patent/CN112583811A/en
Priority to PCT/CN2021/111852 priority patent/WO2022121346A1/en
Application granted granted Critical
Publication of CN112583811B publication Critical patent/CN112583811B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L63/00Network architectures or network communication protocols for network security
    • H04L63/08Network architectures or network communication protocols for network security for authentication of entities
    • H04L63/0876Network architectures or network communication protocols for network security for authentication of entities based on the identity of the terminal or configuration, e.g. MAC address, hardware or software configuration or device fingerprint
    • 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/36Payment architectures, schemes or protocols characterised by the use of specific devices or networks using electronic wallets or electronic money safes
    • G06Q20/367Payment architectures, schemes or protocols characterised by the use of specific devices or networks using electronic wallets or electronic money safes involving electronic purses or money safes
    • G06Q20/3672Payment architectures, schemes or protocols characterised by the use of specific devices or networks using electronic wallets or electronic money safes involving electronic purses or money safes initialising or reloading thereof
    • 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

Abstract

The invention provides a wallet retrieving method, equipment and a storage medium, which relate to the technical field of block chains and the like, and the method comprises the following steps: generating a first wallet retrieval transaction in response to retrieving the assets in the second account of the second public key into the first account of the first public key; sending the first wallet retrieval transaction to the blockchain network for the blockchain node to: caching the first wallet finding transaction, and determining the initial packaging time according to the delay information; when the packaging right of the latest first block after the initial packaging time is reached and the packaging right of the latest first block after the initial packaging time is possessed, executing a first wallet retrieval transaction: transferring the plurality of assets from the second account to the first account; the first block including the first wallet retrieval transaction is broadcast to other blockchain nodes for deletion of local first wallet retrieval transactions by other blockchain nodes. The above application enables the retrieval of any asset.

Description

Wallet finding method, equipment and storage medium
Technical Field
The application relates to the technical field of blockchain, in particular to a wallet retrieving method, equipment and a storage medium.
Background
In the existing blockchain configured with an account model, to implement the wallet retrieving function, a number of assets need to be transferred to the wallet retrieving contract first, that is, only the assets in the wallet retrieving contract can be retrieved. The above mechanism makes assets that are not in a wallet retrieval contract unable to be retrieved.
Disclosure of Invention
In view of the above-described deficiencies or inadequacies in the prior art, it would be desirable to provide a wallet retrieval method, apparatus, and storage medium capable of retrieving any asset.
In a first aspect, the present invention provides a wallet retrieving method suitable for a client, where a blockchain is configured with an account model, the method includes:
generating a first wallet retrieval transaction in response to retrieving assets in a second account of the second public key into a first account of the first public key; the signature information of the first wallet retrieving transaction comprises a wallet retrieving identifier, delay information, a first public key and a second public key;
sending the first wallet retrieval transaction to the blockchain network for the blockchain node to:
caching the first wallet retrieval transaction, and determining the initial packaging time according to the delay information;
when the packaging right of the latest first block after the initial packaging time is reached and the packaging right of the latest first block after the initial packaging time is possessed, executing a first wallet retrieval transaction: transferring assets from the second account to the first account; and the number of the first and second groups,
the first block including the first wallet retrieval transaction is broadcast to other blockchain nodes for deletion of local first wallet retrieval transactions by other blockchain nodes.
In a second aspect, the present invention provides a wallet retrieving method for a blockchain node, where the blockchain is configured with an account model, the method including:
receiving a first wallet retrieval transaction; the first wallet retrieving transaction is generated by the client in response to the fact that a plurality of assets in a second account of the second public key are retrieved to a first account of the first public key, and signature information of the first wallet retrieving transaction comprises a wallet retrieving identifier, delay information, the first public key and the second public key;
caching the first wallet retrieval transaction, and determining the initial packaging time according to the delay information;
when the packaging right of the latest first block after the initial packaging time is reached and the latest first block is owned, executing a first wallet finding transaction: transferring assets from the second account to the first account;
the first block including the first wallet retrieval transaction is broadcast to other blockchain nodes for deletion of local first wallet retrieval transactions by other blockchain nodes.
In a third aspect, the present invention also provides an apparatus comprising one or more processors and memory, wherein the memory contains instructions executable by the one or more processors to cause the one or more processors to perform a wallet retrieval method provided in accordance with embodiments of the present invention.
In a fourth aspect, the present invention further provides a storage medium storing a computer program, the computer program causing a computer to execute the wallet retrieving method according to the embodiments of the present invention.
Embodiments of the present invention provide methods, apparatus, and storage medium for wallet recovery that generate a first wallet recovery transaction by, in response to recovering assets in a second account of a second public key to a first account of a first public key; the signature information of the first wallet retrieving transaction comprises a wallet retrieving identifier, delay information, a first public key and a second public key; sending the first wallet retrieval transaction to the blockchain network for the blockchain node to: caching the first wallet retrieval transaction, and determining the initial packaging time according to the delay information; when the packaging right of the latest first block after the initial packaging time is reached and the packaging right of the latest first block after the initial packaging time is possessed, executing a first wallet retrieval transaction: a method of transferring assets from a second account to a first account enables retrieval of any asset.
Drawings
Other features, objects and advantages of the present application will become more apparent upon reading of the following detailed description of non-limiting embodiments thereof, made with reference to the accompanying drawings in which:
fig. 1 is a flowchart of a wallet retrieving method according to an embodiment of the present invention.
Fig. 2 is a flowchart of another wallet retrieving method according to an embodiment of the present invention.
Fig. 3 is a schematic structural diagram of an apparatus according to an embodiment of the present invention.
Detailed Description
The present application will be described in further detail with reference to the following drawings and examples. It is to be understood that the specific embodiments described herein are merely illustrative of the relevant invention and not restrictive of the invention. It should be noted that, for convenience of description, only the portions related to the present invention are shown in the drawings.
It should be noted that, in the present application, the embodiments and features of the embodiments may be combined with each other without conflict. The present application will be described in detail below with reference to the embodiments with reference to the attached drawings.
In the existing blockchain configured with an account model, business logic is realized based on virtual machines and contracts. To ensure security, one contract cannot call the assets of another contract. If an A contract can call an asset in a B contract, the A contract is a hypervisor and can destroy the business logic of the B contract: for example, a contract B is a trade contract, with a trade that freezes 100MM for a user, and if another user gives him 10NN, he gives 100MM to the other party. At this time, if the a contract directly defrosts and retrieves the 100MM in the B contract, it will cause the user who gave the 10NN to be unable to receive the 100MM.
Therefore, in the prior art, to implement the wallet retrieving function, a plurality of assets need to be transferred to the wallet retrieving contract first, that is, only the assets in the wallet retrieving contract can be retrieved.
Fig. 1 is a flowchart of a wallet retrieving method according to an embodiment of the present invention. As shown in fig. 1, in the present embodiment, a wallet retrieving method suitable for a client, a blockchain is configured with an account model, and the method includes:
s12: generating a first wallet retrieval transaction in response to retrieving assets in a second account of the second public key into a first account of the first public key; the signature information of the first wallet retrieving transaction comprises a wallet retrieving identifier, delay information, a first public key and a second public key;
s14: sending the first wallet retrieval transaction to the blockchain network for the blockchain node to:
caching the first wallet retrieval transaction, and determining the initial packaging time according to the delay information;
when the packaging right of the latest first block after the initial packaging time is reached and the latest first block is owned, executing a first wallet finding transaction: transferring assets from the second account to the first account; and the number of the first and second groups,
broadcasting the first block including the first wallet retrieval transaction to other block link nodes for other block link nodes to delete the local first wallet retrieval transaction.
Specifically, take the example of retrieving contract asset 1000MM from addr (A) to addr (B); assume delay information of 2021 year 1, 1 month, 0;
in response to retrieving the contract asset 1000MM from addr (A) to addr (B), the client executes step S12, and generates a signature of the wallet retrieval transaction tx1, wherein { uwallet: public key (A): public key (B): 2021, 1, 0 00; wherein uwall et is a wallet finding identifier, 00 is time delay information, addr (B) is an account of a public key (B), addr (a) is an account of the public key (a), and sigdata1 is signature data obtained by a transaction initiator signing transaction content of tx1 according to a held private key, wherein uwall et is a wallet finding identifier, 1/0 in 2021;
the client executes step S14, and sends tx1 to the blockchain network;
caching tx1 by a block chain node, and determining the initial packaging time of tx1, wherein the initial packaging time is 2021 year, 1 month, 1 day and 0;
assuming that blockchain node a is at 1 month, 1 day, 0, 2021, 00, and has the packing right of the newest blockblock (100) after 1 month, 1 day, 0, 2021: wipe contract asset 1000MM from addr (A) to addr (B);
and the block chain node A transmits the block (100) comprising the tx1 to other block chain nodes, and the other block chain nodes delete the local tx1 after receiving the block (100).
In further embodiments, the delay information may be configured to be a second time length according to actual requirements, and correspondingly, the initial packing time should be determined according to an additionally set time starting point and the second time length, for example, "cache the first wallet retrieval transaction," determine the initial packing time according to the delay information "is configured to" cache the first wallet retrieval transaction, "and determine the initial packing time according to the generation time of the first wallet retrieval transaction and the second time length," which may achieve the same technical effect.
Those skilled in the art will appreciate that 1000MM pertains to a contract because tx1 specifies a contract executor, and if tx1 does not specify a contract, then the global asset 1000MM is transferred from addr (A) to addr (B).
It will be understood by those skilled in the art that public key (a) and public key (B) may belong to the same user or may belong to different users.
It will be understood by those skilled in the art that assets in the "transfer of assets from the second account to the first account" should be active assets, and if the assets are frozen, the assets are thawed and then thawed assets are transferred from the second account to the first account.
The above embodiments enable any asset to be retrieved.
Preferably, the signature information further includes a third public key of each third account that can manage the second public key, a wallet retrieval determination rule that can successfully execute the first wallet retrieval transaction, and first signature data obtained by signing the transaction content of the first wallet retrieval transaction by a plurality of fourth accounts according to the held private key;
performing the first wallet recovery transaction includes:
judging whether each first signature data in the signature information accords with a wallet retrieval judgment rule:
if so, the first wallet retrieval transaction is executed.
Specifically, the wallet retrieval judgment rule comprises at least a first quantity of first signature data which should be received and a second quantity of first signature data which are correctly signed; judging whether each piece of first signature data in the signature information conforms to the wallet retrieving judgment rule comprises the following steps of judging whether the quantity of the first signature data in the signature information is not less than a first quantity: if yes, judging whether the number of the first signature data with correct signature in the signature information is not less than the second number or not; the public keys of the accounts capable of managing the public key (A) are assumed to have public keys (N1) to (N4); signature information of tx1 includes { uwallet: addr (A): addr (B): 3; wherein, 3; sigdata1: sigdata2: sigdata3 are signature data, and in the current embodiment, it is assumed that sigdata1: sigdata2: sigdata3 are all correct signature data, and corresponding public keys are all included in public keys (N1) -N4);
as sigdata1: sigdata2: sigdata3 are correct signature data and the corresponding public keys are included in the public keys (N1) -N4, the wallet retrieving judgment rule "3" in tx1 is met, and the node a executes tx1: the contract asset 1000MM is swung from addr (A) to addr (B).
In further embodiments, the wallet retrieving determination rule may be further configured according to actual requirements, for example, the configuration is as follows, 3% means that at least 3 signature data need to be obtained, and 50% means that at least 2 signature (rounding up of 1.5) data in the 3 signature data are correct, so as to achieve the same technical effect. And those skilled in the art should understand that the multiple signature rules can be configured not only according to the number, but also according to the actual requirement, according to the weight or other parameters, and the same technical effect can be achieved.
Further, the determining whether each first signature data in the signature information complies with the wallet retrieval determination rule includes:
judging whether the fourth accounts belong to the third accounts or not:
if yes, judging whether the number of the first signature data in the signature information is not less than the first number.
In some blockchain systems, the public keys corresponding to the signature data in the wallet retrieval transaction should all belong to the third account, and in other blockchain systems, the public keys corresponding to the signature data in the wallet retrieval transaction may not all belong to the third account as long as the corresponding public keys belong to the number or weight of the third account or other parameters meet the wallet retrieval judgment rule.
It should be understood by those skilled in the art that, when a first wallet retrieval transaction is received, it should be determined first whether the first wallet retrieval transaction is a multiple signature transaction at the same time, that is, the signature information of the wallet retrieval transaction should not lack any of the following parameters, "the third public keys of the third accounts managing the second public key, the wallet retrieval determination rule that can successfully execute the first wallet retrieval transaction, and the first signature data obtained by signing the transaction content of the first wallet retrieval transaction by the fourth accounts according to the held private key"; if any of the above parameters are absent, the wallet retrieval transaction is processed according to actual requirements, e.g., the wallet retrieval transaction is not executed.
Those skilled in the art will appreciate that blockchains support multiple signature types.
In the prior art, the current blockchain only supports some basic signature types such as secp, and in the present application, the blockchain can support more kinds of signature types according to actual requirements. The key space of different signature types is different, for example, the key space of the secp is 0xFFFF FFF FFFF FFFF FFFF FFFF FFFF FFFE BAAE DCE6 AF48 A03B BFD2 5E8C D036 4140, while the key space of the bls is 0x73eda753299d7d483339d80809a1d80553bda402FFFE5 bfeffffffffff 00000001, and then the block chain node needs to be verified according to the signature type specified by the signature data when verifying the signature data of the wallet finding transaction.
Further, the wallet retrieving determination rule includes at least a first amount of the first signature data that should be received and a second amount of the first signature data that is correctly signed;
judging whether each first signature data in the signature information accords with the wallet retrieving judgment rule comprises the following steps:
judging whether the number of the first signature data in the signature information is not less than a first number:
if yes, judging whether the number of the first signature data with correct signature in the signature information is not less than a second number.
The wallet retrieving principle of the above embodiment can refer to a method of a preferred embodiment shown in fig. 1, and is not described herein again.
Preferably, generating the first wallet retrieval transaction comprises:
generating a first wallet recovery credentialing transaction comprising a first wallet recovery transaction; wherein, the first wallet recovery transaction is included in payload of the first wallet recovery evidence transaction;
caching the first wallet retrieval transaction, and determining the initial packaging time according to the delay information comprises:
deducting the commission charge of the first wallet for recovering the deposit certificate transaction, and storing the first wallet for recovering the deposit certificate transaction deposit certificate on the blockchain;
and caching the transaction retrieved by the first wallet, and determining the initial packaging time according to the delay information.
Specifically, tx1 is included in the payload of the wallet credentialing transaction tx 2;
deducting the commission charge of tx2 by the block chain node, and storing tx2 on the block chain;
and the block chain link point caches tx1 in payload of tx2, and determines the initial packing time of tx1 according to the delay information of tx1.
In the above embodiment, the block link point does not provide a storage service for the multi-signature transaction with the delayed information for free, but needs to charge a certain handling fee, and the above embodiment can prevent the client from sending a large number of multi-signatures with the delayed information and occupying a large amount of local storage space of the block link point, thereby enhancing the security of the block link network.
Further, the delay information is a first time length which is required to be prolonged by the wallet to retrieve the transaction; caching the first wallet to retrieve the transaction, and determining the initial packaging time according to the delay information comprises the following steps:
determining the initial packing time of the first wallet finding transaction according to the first time and the first time length of the first wallet finding transaction when the evidence-saving transaction is packed;
storing the first wallet retrieving transaction to the local, and storing a first corresponding relation between a first hash value of the first wallet retrieving transaction and a second hash value of the first wallet retrieving transaction;
wherein the first correspondence is for other blockchain nodes:
when the first wallet retrieving transaction is executed, the first wallet retrieving and evidence storing transaction is found according to the second hash value, and the initial packaging time of the first wallet retrieving and evidence storing transaction is determined according to the first time and the first time length when the first wallet retrieving and evidence storing transaction is packaged;
judging whether the packaging time of the first wallet retrieving transaction is not earlier than the initial packaging time:
otherwise, the first wallet finds that the transaction execution is unsuccessful.
Specifically, assuming that tx2 is packed at a first time of day 0 at 11/24/2020;
the block link point determines the starting packing time of tx1 according to the time 2020, 11, 24, 0, and 7 days when tx2 is packed, wherein the starting packing time of tx1 is 2021, 1, 0;
the block chain link point stores tx1 locally and stores the corresponding relation between hash (tx 2) and hash (tx 1);
when the other block chain nodes receive the block generated by A, when the block is executed to tx1, find tx2 according to hash (tx 1), and determine the initial packing time of tx1 according to the time 2020 that tx1 is packed, 11, 24, 000 and the first time length of 7 days, wherein the initial packing time of tx1 is 2021, 1, 0;
the other block chain node judges whether or not the node 00 is not earlier than the initial packing time 2021, month 1, day 0;
since 12/30/2020, day 0.
Due to the failure of most nodes to execute tx1, the error block generated by the block chain node a becomes a block on the side chain, and finally the safety of the asset of addr (a) is guaranteed.
Fig. 2 is a flowchart of another wallet retrieving method according to an embodiment of the present invention. As shown in fig. 2, in this embodiment, the present invention provides a wallet retrieving method applied to a blockchain node, where a blockchain is configured with an account model, and the method includes:
s22: receiving a first wallet retrieval transaction; the first wallet retrieving transaction is generated by the client in response to the fact that a plurality of assets in a second account of the second public key are retrieved to the first account of the first public key, and signature information of the first wallet retrieving transaction comprises a wallet retrieving identifier, delay information, the first public key and the second public key;
s24: caching the first wallet finding transaction, and determining the initial packaging time according to the delay information;
s26: when the packaging right of the latest first block after the initial packaging time is reached and the latest first block is owned, executing a first wallet finding transaction: transferring assets from the second account to the first account;
s28: broadcasting the first block including the first wallet retrieval transaction to other block link nodes for other block link nodes to delete the local first wallet retrieval transaction.
The wallet retrieving principle of the above embodiment can refer to the method shown in fig. 1, and is not described herein again.
Preferably, the signature information further includes a third public key of each third account that can manage the second public key, a wallet retrieval determination rule that can successfully execute the first wallet retrieval transaction, and first signature data obtained by signing the transaction content of the first wallet retrieval transaction by a plurality of fourth accounts according to the held private key;
performing the first wallet recovery transaction includes:
judging whether each first signature data in the signature information accords with a wallet retrieval judgment rule:
if so, the first wallet retrieval transaction is executed.
The wallet retrieving principle of the above embodiment can refer to a method of a preferred embodiment shown in fig. 1, and is not described herein again.
Further, the wallet retrieving judgment rule comprises at least a first amount of the first signature data which should be received and a second amount of the first signature data which is correctly signed;
judging whether each first signature data in the signature information conforms to the wallet retrieving judgment rule comprises the following steps:
judging whether the quantity of the first signature data in the signature information is not less than a first quantity:
if yes, judging whether the number of the first signature data with correct signature in the signature information is not less than a second number.
The wallet retrieving principle of the above embodiment can refer to a method of a preferred embodiment shown in fig. 1, and is not described herein again.
Preferably, generating the first wallet retrieval transaction comprises:
generating a first wallet recovery credentialing transaction comprising a first wallet recovery transaction; wherein the first wallet recovery transaction is included in a payload of the first wallet recovery credentialing transaction;
caching the first wallet to retrieve the transaction, and determining the initial packaging time according to the delay information comprises the following steps:
deducting the commission charge of the first wallet for recovering the deposit certificate transaction, and storing the first wallet for recovering the deposit certificate transaction deposit certificate on the blockchain;
and caching the first wallet retrieval transaction, and determining the initial packaging time according to the delay information.
The wallet retrieving principle of the above embodiment can refer to a method of a preferred embodiment shown in fig. 1, and is not described herein again.
Further, the delay information is a first time length which is required to be prolonged by the first wallet for retrieving the transaction; caching the first wallet retrieval transaction, and determining the initial packaging time according to the delay information comprises:
determining the initial packing time of the first wallet finding transaction according to the first time and the first time length of the first wallet finding transaction when the evidence-saving transaction is packed;
storing the first wallet retrieving transaction to the local, and storing a first corresponding relation between a first hash value of the first wallet retrieving transaction and a second hash value of the first wallet retrieving transaction;
wherein the first correspondence is for other blockchain nodes:
when the first wallet finding transaction is executed, finding the first wallet finding transaction for finding the evidence and saving according to the second hash value, and determining the initial packaging time of the first wallet finding transaction according to the first time and the first time length of the first wallet finding transaction for finding the evidence and saving;
judging whether the packaging time of the first wallet retrieving transaction is not earlier than the initial packaging time:
if not, the first wallet finds that the transaction execution is not successful.
The wallet retrieving principle of the above embodiment can refer to a method of a preferred embodiment shown in fig. 1, and is not described herein again.
Fig. 3 is a schematic structural diagram of an apparatus according to an embodiment of the present invention.
As shown in fig. 3, as another aspect, the present application also provides an apparatus including one or more 3-Central Processing Units (CPUs) 301 that can perform various appropriate actions and processes according to a program stored in a Read Only Memory (ROM) 302 or a program loaded from a storage section 308 into a Random Access Memory (RAM) 303. In the RAM303, various programs and data necessary for the operation of the apparatus 300 are also stored. The CPU301, ROM302, and RAM303 are connected to each other via a bus 304. An input/output (I/O) interface 305 is also connected to bus 304.
The following components are connected to the I/O interface 305: an input portion 306 including a keyboard, a mouse, and the like; an output section 307 including a display such as a Cathode Ray Tube (CRT), a Liquid Crystal Display (LCD), and the like, and a speaker; a storage section 308 including a hard disk and the like; and a communication section 309 including a network interface card such as a LAN card, a modem, or the like. The communication section 309 performs communication processing via a network such as the internet. A drive 310 is also connected to the I/O interface 305 as needed. A removable medium 311 such as a magnetic disk, an optical disk, a magneto-optical disk, a semiconductor memory, or the like is mounted on the drive 310 as necessary, so that a computer program read out therefrom is mounted into the storage section 308 as necessary.
In particular, according to an embodiment of the present disclosure, the method described in any of the above embodiments may be implemented as a computer software program. For example, embodiments of the present disclosure include a computer program product comprising a computer program tangibly embodied on a machine-readable medium, the computer program comprising program code for performing any of the methods described above. In such an embodiment, the computer program may be downloaded and installed from a network through the communication section 309, and/or installed from the removable medium 311.
As yet another aspect, the present application also provides a computer-readable storage medium, which may be the computer-readable storage medium included in the apparatus of the above-described embodiment; or it may be a separate computer readable storage medium not incorporated into the device. The computer readable storage medium stores one or more programs for use by one or more processors in performing the methods described in the present application.
The flowchart 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 invention. 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 that perform the specified functions or acts, or combinations of special purpose hardware and computer instructions.
The units or modules described in the embodiments of the present application may be implemented by software or hardware. The described units or modules may also be provided in a processor, for example, each of the described units may be a software program provided in a computer or a mobile intelligent device, or may be a separately configured hardware device. Wherein the designation of a unit or module does not in some way constitute a limitation of the unit or module itself.
The above description is only a preferred embodiment of the application and is illustrative of the principles of the technology employed. It will be appreciated by those skilled in the art that the scope of the invention herein disclosed is not limited to the particular combination of features described above, but also encompasses other arrangements formed by any combination of the above features or their equivalents without departing from the spirit of the present application. For example, the above features may be replaced with (but not limited to) features having similar functions disclosed in the present application.

Claims (8)

1. A wallet retrieving method, wherein a blockchain is configured with an account model, the method is applicable to a client, and the method comprises the following steps:
generating a first wallet retrieval transaction in response to retrieving assets in a second account of the second public key into a first account of the first public key; the signature information of the first wallet retrieving transaction comprises a wallet retrieving identifier, delay information, the first public key and the second public key;
sending the first wallet retrieval transaction to a blockchain network for a blockchain node to:
caching the first wallet retrieval transaction, and determining the initial packaging time according to the delay information;
when the packaging right of the latest first block after the starting packaging time is reached and the packaging right of the latest first block after the starting packaging time is possessed, executing the first wallet retrieval transaction: transferring the number of assets from the second account to the first account; and the number of the first and second groups,
broadcasting the first block including the first wallet retrieval transaction to other block link nodes for other block link nodes to delete the local first wallet retrieval transaction;
the signature information further comprises third public keys of all third accounts which can manage the second public key, wallet retrieval judgment rules which can successfully execute the first wallet retrieval transaction, and first signature data which is obtained by signing the transaction content of the first wallet retrieval transaction by a plurality of fourth accounts according to the held private key;
said performing the first wallet retrieval transaction comprises:
judging whether each first signature data in the signature information conforms to the wallet retrieving judgment rule:
if yes, executing the first wallet retrieval transaction;
said generating a first wallet retrieval transaction comprises:
generating a first wallet recovery credentialing transaction comprising said first wallet recovery transaction; wherein the first wallet recovery transaction is included in a payload of the first wallet recovery credentialing transaction;
the caching the transaction retrieved by the first wallet, and determining the initial packaging time according to the delay information comprises:
deducting the commission charge of the first wallet for recovering the deposit certificate transaction, and storing the first wallet for recovering the deposit certificate transaction on a blockchain;
and caching the first wallet retrieval transaction, and determining the initial packaging time according to the delay information.
2. The method of claim 1, wherein the wallet retrieval determination rule includes at least a first amount of first signature data that should be received and a second amount of first signature data that is correctly signed;
the determining whether each piece of first signature data in the signature information conforms to the wallet retrieval determination rule includes:
judging whether the number of the first signature data in the signature information is not less than the first number:
if yes, judging whether the number of the first signature data with correct signature in the signature information is not less than the second number.
3. The method of claim 1, wherein the delay information is a first extended length of time required for the wallet to retrieve a transaction; the caching the first wallet retrieval transaction and determining the initial packaging time according to the delay information comprises:
determining the initial packaging time of the first wallet retrieval transaction according to the first time and the first time length when the first wallet retrieval evidence-saving transaction is packaged;
storing the first wallet retrieval transaction locally, and storing a first corresponding relation between a first hash value of the first wallet retrieval verification transaction and a second hash value of the first wallet retrieval transaction;
wherein the first correspondence is for other blockchain nodes:
when the first wallet retrieving transaction is executed, finding the first wallet retrieving and evidence storing transaction according to the second hash value, and determining the initial packaging time of the first wallet retrieving and evidence storing transaction according to the first time and the first time length when the first wallet retrieving and evidence storing transaction is packaged;
judging whether the packing time of the first wallet finding transaction is not earlier than the initial packing time:
and if not, the first wallet finds that the transaction execution is unsuccessful.
4. A wallet retrieval method, wherein a blockchain is configured with an account model, the method is applicable to a blockchain node, and the method comprises the following steps:
receiving a first wallet retrieval transaction; the first wallet retrieving transaction is generated by a client in response to a plurality of assets in a second account of a second public key being retrieved to a first account of a first public key, and signature information of the first wallet retrieving transaction comprises a wallet retrieving identifier, delay information, the first public key and the second public key;
caching the first wallet retrieval transaction, and determining the initial packaging time according to the delay information;
when the packaging right of the latest first block after the starting packaging time is reached and the packaging right of the latest first block after the starting packaging time is possessed, executing the first wallet retrieval transaction: transferring the number of assets from the second account to the first account;
broadcasting the first block including the first wallet retrieval transaction to other block link nodes for other block link nodes to delete the local first wallet retrieval transaction;
the signature information further includes third public keys of third accounts capable of managing the second public key, wallet retrieval judgment rules capable of successfully executing the first wallet retrieval transaction, and first signature data obtained by signing transaction contents of the first wallet retrieval transaction by a plurality of fourth accounts according to the held private keys;
said performing the first wallet retrieval transaction comprises:
judging whether each first signature data in the signature information accords with the wallet retrieving judgment rule:
if yes, executing the first wallet retrieval transaction;
said generating a first wallet retrieval transaction comprises:
generating a first wallet recovery credentialing transaction comprising the first wallet recovery transaction; wherein the first wallet recovery transaction is included in a payload of the first wallet recovery credentialing transaction;
the caching the first wallet retrieval transaction and determining the initial packaging time according to the delay information comprises:
deducting the commission charge of the first wallet for recovering the deposit certificate transaction, and storing the first wallet for recovering the deposit certificate transaction on a blockchain;
and caching the first wallet retrieval transaction, and determining the initial packaging time according to the delay information.
5. The method of claim 4, wherein the wallet retrieval determination rule includes at least a first amount of first signature data that should be received and a second amount of first signature data that is correctly signed;
the judging whether each piece of first signature data in the signature information conforms to the wallet retrieving judgment rule comprises the following steps:
judging whether the quantity of the first signature data in the signature information is not less than the first quantity:
if yes, judging whether the number of the first signature data with correct signature in the signature information is not less than the second number.
6. The method of claim 4, wherein the delay information is a first length of time that the first wallet needs to extend to retrieve the transaction; the caching the first wallet retrieval transaction and determining the initial packaging time according to the delay information comprises:
determining the initial packaging time of the first wallet retrieval transaction according to the first time and the first time length when the first wallet retrieval evidence-saving transaction is packaged;
storing the first wallet finding transaction to the local, and storing a first corresponding relation between a first hash value of the first wallet finding evidence transaction and a second hash value of the first wallet finding transaction;
wherein the first correspondence is for other blockchain nodes:
when the first wallet retrieving transaction is executed, finding the first wallet retrieving and evidence storing transaction according to the second hash value, and determining the initial packaging time of the first wallet retrieving and evidence storing transaction according to the first time and the first time length when the first wallet retrieving and evidence storing transaction is packaged;
determining whether the packaging time of the first wallet retrieval transaction is not earlier than the initial packaging time:
and if not, the first wallet finds that the transaction execution is unsuccessful.
7. A computer device, characterized in that the device comprises:
one or more processors;
a memory for storing one or more programs,
the one or more programs, when executed by the one or more processors, cause the one or more processors to perform operations
Performing the method of any one of claims 1-6.
8. A storage medium storing a computer program, characterized in that the program, when executed by a processor, implements the method according to any one of claims 1-6.
CN202011426902.3A 2020-12-09 2020-12-09 Wallet finding method, equipment and storage medium Active CN112583811B (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
CN202011426902.3A CN112583811B (en) 2020-12-09 2020-12-09 Wallet finding method, equipment and storage medium
PCT/CN2021/111852 WO2022121346A1 (en) 2020-12-09 2021-08-10 Wallet retrieval method and device, and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202011426902.3A CN112583811B (en) 2020-12-09 2020-12-09 Wallet finding method, equipment and storage medium

Publications (2)

Publication Number Publication Date
CN112583811A CN112583811A (en) 2021-03-30
CN112583811B true CN112583811B (en) 2023-04-14

Family

ID=75127958

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202011426902.3A Active CN112583811B (en) 2020-12-09 2020-12-09 Wallet finding method, equipment and storage medium

Country Status (2)

Country Link
CN (1) CN112583811B (en)
WO (1) WO2022121346A1 (en)

Families Citing this family (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112583811B (en) * 2020-12-09 2023-04-14 杭州复杂美科技有限公司 Wallet finding method, equipment and storage medium
CN112600664B (en) * 2020-12-09 2022-06-24 杭州复杂美科技有限公司 Delayed transaction generation method, delayed transaction execution device and storage medium
CN113222576B (en) * 2021-05-25 2022-09-16 杭州复杂美科技有限公司 Delayed transfer method, computer device and storage medium
CN113379549A (en) * 2021-06-29 2021-09-10 杭州复杂美科技有限公司 Asset extraction method, computer device, and storage medium
CN113592643B (en) * 2021-06-29 2023-11-28 杭州复杂美科技有限公司 Asset periodic thawing method, computer device and storage medium

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111161056A (en) * 2018-11-07 2020-05-15 新明华区块链技术(深圳)有限公司 Method, system and equipment for improving transaction security of digital assets
CN111242614A (en) * 2020-01-12 2020-06-05 杭州复杂美科技有限公司 Wallet account asset retrieving method, collection guarantee method, equipment and storage medium

Family Cites Families (13)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105469510B (en) * 2014-10-12 2018-01-09 吴思进 The encryption currency wallet that delay pays or given for change can be predicted
EP3396612A1 (en) * 2017-04-24 2018-10-31 BlockSettle AB Method and system for creating a user identity
CN107609876A (en) * 2017-08-18 2018-01-19 北京云知科技有限公司 A kind of method and system for recovering block chain assets
WO2020009718A1 (en) * 2018-07-03 2020-01-09 Esmart Tech, Inc. Cryptocurrency wallet with secure backup and restore
US20200027080A1 (en) * 2018-07-18 2020-01-23 Regal RA DMCC Scalable reconciliation of crypto assets in a blockchain network
US10790976B1 (en) * 2018-08-01 2020-09-29 Bloomio Ag System and method of blockchain wallet recovery
CN109377358A (en) * 2018-08-09 2019-02-22 杭州复杂美科技有限公司 A kind of assets method for retrieving, equipment and storage medium
CN109345259A (en) * 2018-09-29 2019-02-15 腾讯科技(深圳)有限公司 Virtual resource transfer method, device, medium and electronic equipment based on block chain
CN111159774B (en) * 2019-12-11 2022-07-15 马上游科技股份有限公司 Decentralized intelligent contract escrow wallet method and system
CN111210217A (en) * 2020-01-02 2020-05-29 腾讯科技(深圳)有限公司 Data processing method, device and storage medium
CN111369242B (en) * 2020-03-06 2023-05-16 上海简苏网络科技有限公司 Method for recovering blockchain assets through intelligent contracts, wallet and blockchain nodes
CN111476571B (en) * 2020-04-02 2023-09-15 百度国际科技(深圳)有限公司 Asset processing method, device, equipment and storage medium based on blockchain
CN112583811B (en) * 2020-12-09 2023-04-14 杭州复杂美科技有限公司 Wallet finding method, equipment and storage medium

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111161056A (en) * 2018-11-07 2020-05-15 新明华区块链技术(深圳)有限公司 Method, system and equipment for improving transaction security of digital assets
CN111242614A (en) * 2020-01-12 2020-06-05 杭州复杂美科技有限公司 Wallet account asset retrieving method, collection guarantee method, equipment and storage medium

Also Published As

Publication number Publication date
WO2022121346A1 (en) 2022-06-16
CN112583811A (en) 2021-03-30

Similar Documents

Publication Publication Date Title
CN112583811B (en) Wallet finding method, equipment and storage medium
US10698885B2 (en) Method and device for writing service data in block chain system
US11343103B2 (en) Sending cross-chain authenticatable messages
CN112600664B (en) Delayed transaction generation method, delayed transaction execution device and storage medium
CN110060161B (en) Client service implementation method and service assembly for block chain transaction repetition prevention
CN112381543A (en) Multiple signature transaction method, device and storage medium
CN113094396A (en) Data processing method, device, equipment and medium based on node memory
CN110597839A (en) Transaction data processing method, device, equipment and storage medium
CN111666745B (en) File downloading method, device, server and medium
CN111447069B (en) Low-frequency access data processing method based on block chain
CN111226206A (en) Taking snapshots of blockchain data
CN112291372A (en) Asynchronous posting method, device, medium and electronic equipment for block chain
WO2019067533A1 (en) System and methods for resolving data discrepancies in a distributed system with blockchain controls
CN111523896B (en) Attack prevention method, apparatus and storage medium
WO2023142605A1 (en) Blockchain-based data processing method and related apparatus
CN111316256A (en) Taking snapshots of blockchain data
CN116414628A (en) Transaction request processing method and device in new and old system switching process
US11568399B2 (en) Distributed ledger management system, distributed ledger management method, and node
CN113592653B (en) Proxy delay transaction method, computer device and storage medium
CN113590715A (en) Block chain-based information push method, apparatus, device, medium, and program product
CN111523897B (en) Anti-attack method, device and storage medium
CN113592652B (en) Delay transaction method, computer device and storage medium
CN104881479A (en) Method and device for limiting minimum operating interval of users
CN113592643B (en) Asset periodic thawing method, computer device and storage medium
CN116804949B (en) Block chain-based data processing method, device, equipment and readable 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
GR01 Patent grant
GR01 Patent grant