CN112583811A - Wallet retrieving method, equipment and storage medium - Google Patents

Wallet retrieving method, equipment and storage medium Download PDF

Info

Publication number
CN112583811A
CN112583811A CN202011426902.3A CN202011426902A CN112583811A CN 112583811 A CN112583811 A CN 112583811A CN 202011426902 A CN202011426902 A CN 202011426902A CN 112583811 A CN112583811 A CN 112583811A
Authority
CN
China
Prior art keywords
wallet
transaction
retrieval
retrieving
account
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.)
Granted
Application number
CN202011426902.3A
Other languages
Chinese (zh)
Other versions
CN112583811B (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

Landscapes

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

Abstract

The invention provides a wallet retrieving method, equipment and a storage medium, and relates to the technical field of block chains and the like, wherein 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; 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; 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 retrieving 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 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;
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;
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 also provides a storage medium storing a computer program that causes a computer to execute the wallet retrieving method provided according to the embodiments of the present invention.
Embodiments of the present invention provide methods, apparatus, and storage media for wallet recovery by generating a first wallet recovery transaction 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 the embodiments and features of the embodiments in the present application 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 invoke 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, the B-contract is a trade contract, which has a trade that freezes 100MM for a certain user, and gives 100MM to another user if he gives 10NN to him. 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 100 MM.
Therefore, in the prior art, to implement the wallet retrieving function, it is first necessary to transfer several assets to the wallet retrieving contract, 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 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.
Specifically, take the example of retrieving an excavation contract asset 1000MM intended to be excavated from addr (a) to addr (b); suppose the delay information is 2021 year, 1 month, 1 day 0:00: 00;
in response to retrieving the excavation contract asset 1000MM intended to excavate from addr (A) to addr (B), the client performs step S12 to generate a wallet retrieval transaction tx1, wherein signature information of tx1 includes { uwallet: public key (A): public key (B): 1/0: 00:00: sigdata1 }; uwallet is a wallet finding identifier, 1 st 0:00:00 in 2021 is 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 after a transaction initiator signs transaction content of tx1 according to a held private key;
the client executes the step S14 to send tx1 to the blockchain network;
the block chain node caches tx1, and determines the initial packing time of tx1, wherein the initial packing time is 2021 year, 1 month, 1 day, 0:00: 00;
assuming that blockchain node A is up to 1 month, 1 day, 0:00:00, 2021 and has packing right of the newest block (100) after 1 month, 1 day, 0:00:00, 2021, node A performs tx 1: transferring the mine excavation contract asset 1000MM from addr (A) to addr (B);
block chain node A will include the block of tx1 (100) to other block chain nodes, which upon receipt of the block (100) delete the local tx 1.
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 mine excavation contract because tx1 specifies a mine excavation contract executor, and if tx1 does not specify a contract, the global asset 1000MM is divided 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.
Those skilled in the art will appreciate that the 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 the thawed assets are transferred from the second account to the first account.
The above embodiments allow 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 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; judging whether each first signature data in the signature information conforms to the wallet retrieval judgment rule includes "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 the second number or not; the public keys of the accounts capable of managing the public key (A) are assumed to be public keys (N1) to (N4); the signature information of tx1 includes { uwallest: addr (A): addr (B):3:2:2021, 1, 0:00:00: sigdata1: sigdata2: sigdata3 }; wherein 3:2 is a recovery judgment rule, 3 indicates that at least 3 signature data need to be obtained, the public keys corresponding to the 3 signature data should be included in the public keys (N1) -public key (N4), and 2 indicates that at least 2 signature data in the 3 signature data are correct; sigdata1: sigdata2: sigdata3 are signature data, and in the current embodiment, it is assumed that sigdata1: sigdata2: sigdata3 are all correct signature data, and the corresponding public keys are all included in public keys (N1) -public key (N4);
because sigdata1, sigdata2, sigdata3 are correct signature data and the corresponding public keys are included in the public keys (N1) -public key (N4), the wallet retrieving judgment rule "3: 2" in tx1 is met, and the node a executes tx 1: divide the mine excavation contract asset 1000MM 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 3: 50%, where 3 indicates that at least 3 signature data need to be obtained, and 50% indicates that at least 2 signature (rounding up of 1.5) data out of the 3 signature data are correct, which can 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 FFFF FFFF FFFF FFFF FFFF FFFF FFFE BAAE DCE6 AF48 a03B BFD 25E 8C D0364140, and the key space of the bls is 0x73eda753299D7D483339D80809a1D80553bda402fffe5 bfffffffffffff 00000001, 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 recovery 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 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 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 first wallet retrieval transaction, and determining the initial packaging time according to the delay information.
Specifically, tx1 is included in the payload of wallet credentialing transaction tx 2;
deducting the commission charge of tx2 by the blockchain node, and storing tx2 on the blockchain;
the block chain node buffers tx1 in payload of tx2, and determines the starting packing time of tx1 according to the delay information of tx 1.
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 retrieval transaction, and determining the initial packaging time according to the delay information comprises:
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 and evidence storing transaction;
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 verification 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 the first time of 24/11/2020/0: 00/00, the first time duration is 7 days, and the generation time of the block generated by a is 30/0: 00/12/2020;
determining the starting packing time of tx1 according to the time 2020 of 11, 24, 0:00:00 and 7 days when the block link points are packed according to tx2, wherein the starting packing time of tx1 is 2021, 1, 0:00: 00;
the block chain link point stores tx1 locally and stores the corresponding relation between hash (tx2) and hash (tx 1);
when the other blockchain nodes receive the blocks generated by A and execute to tx1, tx2 is found according to hash (tx1), the initial packaging time of tx1 is determined according to the time 2020 of tx1 being packaged, 11, 24, 0:00:00 and the first time length 7 days, and the initial packaging time of tx1 is 2021, 1, 0:00: 00;
judging whether the node of the other block chains is 0:00:00 not earlier than the initial packaging time 2021, 1 month and 1 day 0:00:00 at 12 months and 30 days in 2020;
since 30/12/2020/0: 00:00 is earlier than 1/2021/0: 00:00 at the start packing time, the other blockchain nodes fail to execute tx 1.
Since most nodes fail to execute tx1, the error block generated by the blockchain 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 for 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 retrieval 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 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;
s28: 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 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 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 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 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 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 to retrieve the transaction; 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 finding transaction according to the first time and the first time length of the first wallet finding and evidence storing transaction;
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 verification 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.
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 which 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 (12)

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 blockchain nodes for other blockchain nodes to delete the local first wallet retrieval transaction.
2. The method according to claim 1, wherein 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 transaction content of the first wallet retrieval transaction by a plurality of fourth accounts according to a 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, the first wallet retrieval transaction is executed.
3. The method of claim 2, 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 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.
4. The method of claim 1, wherein generating the 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 delay information is an extended first 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;
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.
6. 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 blockchain nodes for other blockchain nodes to delete the local first wallet retrieval transaction.
7. The method according to claim 6, wherein 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 transaction content of the first wallet retrieval transaction by a plurality of fourth accounts according to a 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, the first wallet retrieval transaction is executed.
8. The method of claim 7, 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 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.
9. The method of claim 6, wherein generating the 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.
10. The method of claim 9, wherein the delay information is an extended first length of time required for the first 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;
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.
11. A computer device, the device comprising:
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 the method recited in any of claims 1-10.
12. 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-10.
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 true CN112583811A (en) 2021-03-30
CN112583811B 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)

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113222576A (en) * 2021-05-25 2021-08-06 杭州复杂美科技有限公司 Delayed transfer method, computer device and storage medium
CN113379549A (en) * 2021-06-29 2021-09-10 杭州复杂美科技有限公司 Asset extraction method, computer device, and storage medium
CN113592643A (en) * 2021-06-29 2021-11-02 杭州复杂美科技有限公司 Asset periodic thawing method, computer device and storage medium
WO2022121348A1 (en) * 2020-12-09 2022-06-16 杭州复杂美科技有限公司 Delayed transaction generation method, delayed transaction execution method, and device and storage medium
WO2022121346A1 (en) * 2020-12-09 2022-06-16 杭州复杂美科技有限公司 Wallet retrieval method and device, and storage medium

Citations (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105469510A (en) * 2014-10-12 2016-04-06 吴思进 Encryption currency wallet capable of noticing in advance delayed payment or finding
CN107609876A (en) * 2017-08-18 2018-01-19 北京云知科技有限公司 A kind of method and system for recovering block chain assets
CN109377358A (en) * 2018-08-09 2019-02-22 杭州复杂美科技有限公司 A kind of assets method for retrieving, equipment and storage medium
WO2020009718A1 (en) * 2018-07-03 2020-01-09 Esmart Tech, Inc. Cryptocurrency wallet with secure backup and restore
CN111159774A (en) * 2019-12-11 2020-05-15 马上游科技股份有限公司 Decentralized intelligent contract escrow wallet method and system
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
CN111369242A (en) * 2020-03-06 2020-07-03 上海佩俪信息科技有限公司 Method for recovering block chain assets through intelligent contracts, wallet and block chain link points
CN111476571A (en) * 2020-04-02 2020-07-31 百度国际科技(深圳)有限公司 Asset processing method, device, equipment and storage medium based on block chain
US10790976B1 (en) * 2018-08-01 2020-09-29 Bloomio Ag System and method of blockchain wallet recovery

Family Cites Families (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP3396612A1 (en) * 2017-04-24 2018-10-31 BlockSettle AB Method and system for creating a user identity
US20200027080A1 (en) * 2018-07-18 2020-01-23 Regal RA DMCC Scalable reconciliation of crypto assets in a blockchain network
CN109345259A (en) * 2018-09-29 2019-02-15 腾讯科技(深圳)有限公司 Virtual resource transfer method, device, medium and electronic equipment based on block chain
CN111210217A (en) * 2020-01-02 2020-05-29 腾讯科技(深圳)有限公司 Data processing method, device and storage medium
CN112583811B (en) * 2020-12-09 2023-04-14 杭州复杂美科技有限公司 Wallet finding method, equipment and storage medium

Patent Citations (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105469510A (en) * 2014-10-12 2016-04-06 吴思进 Encryption currency wallet capable of noticing in advance delayed payment or finding
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
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
CN111161056A (en) * 2018-11-07 2020-05-15 新明华区块链技术(深圳)有限公司 Method, system and equipment for improving transaction security of digital assets
CN111159774A (en) * 2019-12-11 2020-05-15 马上游科技股份有限公司 Decentralized intelligent contract escrow wallet method and system
CN111242614A (en) * 2020-01-12 2020-06-05 杭州复杂美科技有限公司 Wallet account asset retrieving method, collection guarantee method, equipment and storage medium
CN111369242A (en) * 2020-03-06 2020-07-03 上海佩俪信息科技有限公司 Method for recovering block chain assets through intelligent contracts, wallet and block chain link points
CN111476571A (en) * 2020-04-02 2020-07-31 百度国际科技(深圳)有限公司 Asset processing method, device, equipment and storage medium based on block chain

Non-Patent Citations (2)

* Cited by examiner, † Cited by third party
Title
比特元公链: "找回钱包,让你的数字资产真正安全", 《HTTPS://MP.WEIXIN.QQ.COM/S/O7XMC_TM5JSBOZDLBUCFGG》 *
鑫盛志科技: "丢失私钥后的数字资产能找回吗?比特元"钱包找回"获专利授权", 《HTTPS://WWW.163.COM/DY/ARTICLE/DMVBJ1320511LPU9.HTML》 *

Cited By (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2022121348A1 (en) * 2020-12-09 2022-06-16 杭州复杂美科技有限公司 Delayed transaction generation method, delayed transaction execution method, and device and storage medium
WO2022121346A1 (en) * 2020-12-09 2022-06-16 杭州复杂美科技有限公司 Wallet retrieval method and device, and storage medium
CN113222576A (en) * 2021-05-25 2021-08-06 杭州复杂美科技有限公司 Delayed transfer method, computer 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
CN113592643A (en) * 2021-06-29 2021-11-02 杭州复杂美科技有限公司 Asset periodic thawing method, computer device and storage medium
CN113592643B (en) * 2021-06-29 2023-11-28 杭州复杂美科技有限公司 Asset periodic thawing method, computer device and storage medium

Also Published As

Publication number Publication date
WO2022121346A1 (en) 2022-06-16
CN112583811B (en) 2023-04-14

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
KR102120703B1 (en) Apparatus for managing group of nodes which comprises transaction of dual signature based on group key on blockchain network and computing apparatus
US20210326867A1 (en) Fork-Tolerant Consensus Protocol
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
CN110597839A (en) Transaction data processing method, device, equipment and storage medium
CN109447601B (en) Method for performing witness transfer transactions in blockchain networks
CN110187831B (en) Block data storage system and method of block chain alliance chain
CN111597567A (en) Data processing method, data processing device, node equipment and storage medium
CN111226206A (en) Taking snapshots of blockchain data
CN111316256A (en) Taking snapshots of blockchain data
CN112132574A (en) Block chain data checking method, data processing method, device and equipment
CN111523896B (en) Attack prevention method, apparatus and storage medium
CN112804359A (en) Method and apparatus for providing cross-chain messages
CN112700240A (en) UTXO architecture-based transaction commission fee promotion method and system in block chain
CN111047444A (en) Data transaction method and device based on block chain network
US11568399B2 (en) Distributed ledger management system, distributed ledger management method, and node
CN113590715A (en) Block chain-based information push method, apparatus, device, medium, and program product
CN111523897B (en) Anti-attack method, device and storage medium
CN116542668A (en) Block chain-based data processing method, equipment and readable storage medium
US20220138050A1 (en) Method for storage management, electronic device, and computer program product
CN113592653A (en) Proxy delayed transaction 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
GR01 Patent grant
GR01 Patent grant