CN116319792A - Resource transfer medium attribution changing method and device based on block chain system - Google Patents

Resource transfer medium attribution changing method and device based on block chain system Download PDF

Info

Publication number
CN116319792A
CN116319792A CN202310337430.1A CN202310337430A CN116319792A CN 116319792 A CN116319792 A CN 116319792A CN 202310337430 A CN202310337430 A CN 202310337430A CN 116319792 A CN116319792 A CN 116319792A
Authority
CN
China
Prior art keywords
node
attribution
information
request information
transfer medium
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202310337430.1A
Other languages
Chinese (zh)
Inventor
魏婉思
房国标
高旋辉
张婷
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Industrial and Commercial Bank of China Ltd ICBC
Original Assignee
Industrial and Commercial Bank of China Ltd ICBC
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 Industrial and Commercial Bank of China Ltd ICBC filed Critical Industrial and Commercial Bank of China Ltd ICBC
Priority to CN202310337430.1A priority Critical patent/CN116319792A/en
Publication of CN116319792A publication Critical patent/CN116319792A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06QINFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
    • G06Q40/00Finance; Insurance; Tax strategies; Processing of corporate or income taxes
    • G06Q40/04Trading; Exchange, e.g. stocks, commodities, derivatives or currency exchange
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L63/00Network architectures or network communication protocols for network security
    • H04L63/04Network architectures or network communication protocols for network security for providing a confidential data exchange among entities communicating through data packet networks
    • H04L63/0428Network architectures or network communication protocols for network security for providing a confidential data exchange among entities communicating through data packet networks wherein the data content is protected, e.g. by encrypting or encapsulating the payload
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L63/00Network architectures or network communication protocols for network security
    • H04L63/10Network architectures or network communication protocols for network security for controlling access to devices or network resources
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/10Protocols in which an application is distributed across nodes in the network
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L9/00Cryptographic mechanisms or cryptographic arrangements for secret or secure communications; Network security protocols
    • H04L9/32Cryptographic mechanisms or cryptographic arrangements for secret or secure communications; Network security protocols including means for verifying the identity or authority of a user of the system or for message authentication, e.g. authorization, entity authentication, data integrity or data verification, non-repudiation, key authentication or verification of credentials
    • H04L9/3247Cryptographic mechanisms or cryptographic arrangements for secret or secure communications; Network security protocols including means for verifying the identity or authority of a user of the system or for message authentication, e.g. authorization, entity authentication, data integrity or data verification, non-repudiation, key authentication or verification of credentials involving digital signatures

Landscapes

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

Abstract

The embodiment of the application provides an account transfer method, an account transfer device, an account transfer system, a account transfer system, computer equipment, a storage medium and a computer program product based on a blockchain system, and relates to the technical field of blockchains. The method comprises the following steps: receiving request information of a target resource transfer medium, and transmitting the request information to a first server node under the condition that the request information meets a first verification condition; the attribution change block can be verified, and when the attribution change block meets the second verification condition, the attribution change block is transmitted to a second server node; and under the condition that the auditing result indicates that the auditing is passed, transferring the server node where the target resource transfer medium is positioned from the first server node to the second server node. The method can improve the security of account information and media information in the number carrying attribution change.

Description

Resource transfer medium attribution changing method and device based on block chain system
Technical Field
The present disclosure relates to the field of blockchain technologies, and in particular, to a method, an apparatus, a system, a computer device, a storage medium, and a computer program product for changing attribution of a resource transfer medium based on a blockchain system.
Background
With the continuous development of internet technology, the demand for keeping the medium identifier unchanged when the target account of the user changes the attribution of the resource transfer medium by different service parties is increasing.
At present, when a user needs to change a service side of a resource transfer medium, the user needs to re-open an account at a new service side, and the requirement of the service side of the resource transfer medium for reserving a medium identifier cannot be met.
Disclosure of Invention
In view of the foregoing, it is desirable to provide a method, apparatus, system, computer device, storage medium and computer program product for changing the attribution of a resource transfer medium based on a blockchain system.
In a first aspect, the present application provides a method for changing attribution of a resource transfer medium based on a blockchain system, which is applied to an attribution change processing node in the blockchain system. The method comprises the following steps:
receiving a home change request triggered by a target account aiming at an associated target resource transfer medium, and transmitting request information to the first server node under the condition that request information corresponding to the home change request meets a first verification condition; the first server node is a server node to which the target resource transfer medium belongs currently and is used for constructing a belonging change block matched with the request information in the block chain system under the condition that the auditing of the request information is passed;
Transmitting the home change block to a second server node based on the request information when the home change block satisfies a second verification condition; the second server node is a server node after the attribution change of the target resource transfer medium, and is used for returning the auditing result of the medium information of the target resource transfer medium contained in the attribution change block to the attribution change processing node;
and under the condition that the auditing result represents that the auditing is passed, transferring the server node to which the target resource transfer medium belongs from the first server node to the second server node.
In one embodiment, the transmitting the request information to the first server node includes: generating a first public key and a first private key corresponding to the attribution change processing node; carrying out hash processing on the request information to obtain first abstract information; the first private key is utilized to encrypt the request information and the first abstract information respectively, so as to obtain ciphertext of the request information and digital signature of the first abstract information; uploading the ciphertext, the digital signature, and the first public key to the blockchain system; the first server node is configured to obtain the first ciphertext, the first digital signature, and the first public key from the blockchain system, and decrypt the first ciphertext and the first digital signature with the first public key to obtain the request information.
In one embodiment, the generating the first public key and the first private key corresponding to the home change processing node includes: acquiring an encryption index and a decryption index corresponding to the attribution change processing node; and generating a first public key and a first private key corresponding to the attribution change processing node according to the encryption index and the decryption index.
In one embodiment, the obtaining the encryption index and the decryption index corresponding to the home change processing node includes: generating a first random initial value and a second random initial value; obtaining a third random initial value according to the first random initial value and the second random initial value; taking the minimum values of the first random initial value, the second random initial value and the third random initial value as encryption indexes; and determining the inverse of the encryption exponent as the decryption exponent.
In one embodiment, the generating, according to the encryption exponent and the decryption exponent, a first public key and a first private key corresponding to the account transfer processing node includes: generating the first public key from the third random initial value and the encryption exponent; the first private key is generated from a third random initial value and the decryption exponent.
In one embodiment, the receiving the home change request triggered by the target account for the associated target resource transfer medium includes: acquiring a second ciphertext, a second digital signature and a second public key of the request information uploaded by the master control node in the blockchain system; the master control node is used for generating a second public key and a second private key corresponding to the master control node; under the condition that the request information corresponding to the attribution change request meets the verification condition, carrying out hash processing on the request information to obtain third abstract information; respectively carrying out encryption processing on the request information and the third abstract information by using the second private key to obtain a second ciphertext of the request information and a second digital signature of the third abstract information; uploading the second ciphertext, the second digital signature, and the second public key to the blockchain system; and decrypting the second ciphertext and the second digital signature by using the second public key to obtain the request information.
In one embodiment, the decrypting the second ciphertext and the second digital signature with the second public key to obtain the request information includes: respectively decrypting the second ciphertext and the second digital signature by using the second public key to obtain second decryption information and the third abstract information corresponding to the request information; carrying out hash processing on the request information to obtain fourth abstract information; and determining the second decryption information as the request information when the third digest information and the fourth digest information are consistent.
In a second aspect, the present application provides a resource transfer medium attribution changing method based on a blockchain system, which is applied to a first server node in the blockchain system. The method comprises the following steps:
acquiring an attribution change request triggered by a target account aiming at an associated target resource transfer medium, and verifying attribution information corresponding to request information corresponding to the attribution change request;
when the attribution information indicates that the service side node to which the target resource transfer medium currently attributions is the first service side node, verifying the number carrying authority of the target resource transfer medium and obtaining an authority auditing result;
under the condition that the authority auditing result represents that the auditing is passed, constructing a attribution changing block matched with the request information in the block chain system; the home change processing node is used for transmitting the home change block to a second service side node when the home change block meets a second verification condition; the second server node is a server node after the attribution change of the target resource transfer medium, and is used for returning the auditing result of the medium information of the target resource transfer medium contained in the attribution change block to the attribution change processing node; the attribution change processing node is further used for transferring the server node to which the target resource transfer medium belongs from the first server node to the second server node under the condition that the auditing result represents that the auditing is passed.
In one embodiment, the obtaining the home change request triggered by the target account for the associated target resource transfer medium includes: acquiring ciphertext, a digital signature and a first public key of the request information uploaded by the attribution change processing node in the blockchain system; the attribution change processing node is used for generating a first public key and a first private key corresponding to the attribution change processing node; carrying out hash processing on the request information to obtain first abstract information; the first private key is utilized to encrypt the request information and the first abstract information respectively, so as to obtain ciphertext of the request information and digital signature of the first abstract information; uploading the ciphertext, the digital signature, and the first public key to the blockchain system; respectively decrypting the ciphertext and the digital signature by using the first public key to obtain decryption information and first abstract information corresponding to the request information; carrying out hash processing on the request information to obtain second abstract information; and determining the decryption information as the request information when the first summary information and the second summary information are consistent.
In one embodiment, the verifying the attribution information of the request information includes: acquiring an account identifier of the account to be transferred and a corresponding first service side identifier according to the request information; and verifying the attribution information of the request information according to the account identifier and the first service party identifier.
In one embodiment, the constructing a home change block in the blockchain system that matches the request information includes: carrying out hash processing on the request information to obtain record information corresponding to the request information; and packaging the record information into a attribution change block matched with the request information, and uploading the attribution change block to the blockchain system.
In a third aspect, the present application provides a method for changing attribution of a resource transfer medium based on a blockchain system, which is applied to a master control node in the blockchain system. The method comprises the following steps:
responding to a request of a target account for a service side list, and acquiring a pre-stored service side list;
returning the service side list to the target account;
transmitting the home change request to a home change processing node under the condition that the home change request triggered by the target account aiming at a second server node contained in the server list is received; the home change processing node is configured to transfer, from a first server node to the second server node, a server node to which a target resource transfer medium belongs, based on request information corresponding to the home change request.
In one embodiment, the transmitting the home change request to a home change processing node includes: generating a second public key and a second private key corresponding to the main control node; under the condition that the request information corresponding to the attribution change request meets the verification condition, carrying out hash processing on the request information to obtain third abstract information; respectively carrying out encryption processing on the request information and the third abstract information by using the second private key to obtain a second ciphertext of the request information and a second digital signature of the third abstract information; uploading the second ciphertext, the second digital signature, and the second public key to the blockchain system; the attribution change processing node is used for acquiring the second ciphertext, the second digital signature and the second public key from the blockchain system, and decrypting the second ciphertext and the second digital signature by using the second public key to obtain the request information.
In one embodiment, the method further comprises: receiving joining application information of a to-be-joined server, and constructing a server block matched with the to-be-joined server in the blockchain system under the condition that the joining application information meets verification conditions; listing the service side to be added into the service side list; the server list is used for inquiring whether the second server node exists in the server list or not through the target account.
In a fourth aspect, the present application provides a resource transfer medium attribution changing device based on a blockchain system, which is applied to an attribution changing processing node in the blockchain system. The device comprises:
the first processing module is used for receiving a home change request triggered by a target account aiming at an associated target resource transfer medium, and transmitting request information corresponding to the home change request to the first server node under the condition that the request information meets a first verification condition; the first server node is a server node to which the target resource transfer medium belongs currently and is used for constructing a belonging change block matched with the request information in the block chain system under the condition that the auditing of the request information is passed;
a second processing module, configured to transmit the home change block to a second server node based on the request information when the home change block satisfies a second verification condition; the second server node is a server node after the attribution change of the target resource transfer medium, and is used for returning the auditing result of the medium information of the target resource transfer medium contained in the attribution change block to the attribution change processing node;
And the transfer module is used for transferring the server node to which the target resource transfer medium belongs from the first server node to the second server node under the condition that the auditing result represents that the auditing is passed.
In a fifth aspect, the present application provides a resource transfer medium attribution changing device based on a blockchain system, which is applied to a first server node in the blockchain system. The device comprises:
the first verification module is used for acquiring a home change request triggered by a target account aiming at an associated target resource transfer medium and verifying home information corresponding to request information corresponding to the home change request;
the second verification module is used for verifying the number carrying authority of the target resource transfer medium when the attribution information indicates that the current attribution server node of the target resource transfer medium is the first server node, and obtaining an authority auditing result;
the block construction module is used for constructing a attribution change block matched with the request information in the block chain system under the condition that the authority auditing result represents that auditing is passed; the home change processing node is used for transmitting the home change block to a second service side node when the home change block meets a second verification condition; the second server node is a server node after the attribution change of the target resource transfer medium, and is used for returning the auditing result of the medium information of the target resource transfer medium contained in the attribution change block to the attribution change processing node; the attribution change processing node is further used for transferring the server node to which the target resource transfer medium belongs from the first server node to the second server node under the condition that the auditing result represents that the auditing is passed.
In a sixth aspect, the present application provides a resource transfer medium attribution changing device based on a blockchain system, which is applied to a master control node in the blockchain system. The device comprises:
the acquisition module is used for responding to a request of the target account for the server list and acquiring a pre-stored server list;
the first sending module is used for returning the service side list to the target account;
the second sending module is used for transmitting the attribution change request to an attribution change processing node under the condition that the attribution change request triggered by the target account aiming at a second service side node contained in the service side list is received; the home change processing node is configured to transfer, from a first server node to the second server node, a server node to which a target resource transfer medium belongs, based on request information corresponding to the home change request.
In a seventh aspect, the present application provides a resource transfer medium attribution change system based on a blockchain system. The system comprises:
the main control node is used for responding to a request of a target account for a server list and acquiring a pre-stored server list; returning the service side list to the target account;
The master control node is further configured to transmit, when receiving a home change request triggered by the target account for the second server node included in the server list, the home change request to the home change processing node;
the attribution change processing node is configured to receive the attribution change request triggered by the target account for the associated target resource transfer medium, and transmit request information corresponding to the attribution change request to the first server node when the request information meets a first verification condition;
the first service side node is configured to obtain the home change request triggered by the target account for the associated target resource transfer medium, and verify home information corresponding to request information corresponding to the home change request; when the attribution information indicates that the service side node to which the target resource transfer medium currently attributions is the first service side node, verifying the number carrying authority of the target resource transfer medium and obtaining an authority auditing result;
the home change processing node is further configured to transmit the home change block to the second server node based on the request information when the home change block meets a second verification condition;
The second service side node is configured to return an audit result of the media information of the target resource transfer media included in the home change block to the home change processing node;
the attribution change processing node is further configured to transfer, from the first server node to the second server node, a server node to which the target resource transfer medium belongs, if the audit result indicates that the audit is passed.
In an eighth aspect, the present application also provides a computer device. The computer device comprises a memory storing a computer program and a processor which when executing the computer program performs the steps of:
receiving a home change request triggered by a target account aiming at an associated target resource transfer medium, and transmitting request information to the first server node under the condition that request information corresponding to the home change request meets a first verification condition; the first server node is a server node to which the target resource transfer medium belongs currently and is used for constructing a belonging change block matched with the request information in the block chain system under the condition that the auditing of the request information is passed;
Transmitting the home change block to a second server node based on the request information when the home change block satisfies a second verification condition; the second server node is a server node after the attribution change of the target resource transfer medium, and is used for returning the auditing result of the medium information of the target resource transfer medium contained in the attribution change block to the attribution change processing node;
and under the condition that the auditing result represents that the auditing is passed, transferring the server node to which the target resource transfer medium belongs from the first server node to the second server node.
In a ninth aspect, the present application also provides a computer-readable storage medium. The computer readable storage medium having stored thereon a computer program which when executed by a processor performs the steps of:
receiving a home change request triggered by a target account aiming at an associated target resource transfer medium, and transmitting request information to the first server node under the condition that request information corresponding to the home change request meets a first verification condition; the first server node is a server node to which the target resource transfer medium belongs currently and is used for constructing a belonging change block matched with the request information in the block chain system under the condition that the auditing of the request information is passed;
Transmitting the home change block to a second server node based on the request information when the home change block satisfies a second verification condition; the second server node is a server node after the attribution change of the target resource transfer medium, and is used for returning the auditing result of the medium information of the target resource transfer medium contained in the attribution change block to the attribution change processing node;
and under the condition that the auditing result represents that the auditing is passed, transferring the server node to which the target resource transfer medium belongs from the first server node to the second server node.
In a tenth aspect, the present application also provides a computer program product. The computer program product comprises a computer program which, when executed by a processor, implements the steps of:
receiving a home change request triggered by a target account aiming at an associated target resource transfer medium, and transmitting request information to the first server node under the condition that request information corresponding to the home change request meets a first verification condition; the first server node is a server node to which the target resource transfer medium belongs currently and is used for constructing a belonging change block matched with the request information in the block chain system under the condition that the auditing of the request information is passed;
Transmitting the home change block to a second server node based on the request information when the home change block satisfies a second verification condition; the second server node is a server node after the attribution change of the target resource transfer medium, and is used for returning the auditing result of the medium information of the target resource transfer medium contained in the attribution change block to the attribution change processing node;
and under the condition that the auditing result represents that the auditing is passed, transferring the server node to which the target resource transfer medium belongs from the first server node to the second server node.
In the above method, device, system, computer equipment, storage medium and computer program product for changing attribution of resource transfer medium based on blockchain system, the attribution change processing node may receive an attribution change request triggered by a target account for an associated target resource transfer medium in the blockchain system, and transmit request information to the first service node when request information corresponding to the attribution change request meets a first verification condition; the first service side node can audit the request information and construct a home change block matched with the request information in the block chain system under the condition that the request information is audited; then, the home change processing node can verify the home change block, and when the home change block meets the second verification condition, the home change block is transmitted to the second server node; the second server node can audit the medium information of the target resource transfer medium contained in the attribution change block, and returns the obtained audit result to the attribution change processing node; and the attribution change processing node transfers the service side node to which the target resource transfer medium belongs from the first service side node to the second service side node under the condition that the auditing result represents that the auditing is passed. In the method provided by the embodiment of the application, the barrier among different service parties is broken through by using the blockchain technology, so that the requirement that a medium identifier (for example, the card number of a credit card) is kept unchanged when a user performs attribution change of a resource transfer medium (for example, the credit card) in different service parties can be met, and the security of medium information in the attribution change process of a carried number is ensured by using the non-falsifiability of the block.
Drawings
FIG. 1 is a block chain system according to an embodiment of the present disclosure;
fig. 2 is a schematic structural diagram of a master control node according to an embodiment of the present application;
FIG. 3 is a schematic flow chart of a system for joining a blockchain to a joining server according to an embodiment of the present disclosure;
fig. 4 is a schematic structural diagram of a server node according to an embodiment of the present application;
FIG. 5 is a flowchart of a method for changing attribution of a resource transfer medium based on a blockchain system according to an embodiment of the present application;
fig. 6 is a schematic flow chart of encrypting request information according to an embodiment of the present application;
FIG. 7 is a flowchart of a method for changing attribution of a resource transfer medium based on a blockchain system according to another embodiment of the present application;
FIG. 8 is a flowchart of a method for changing attribution of a resource transfer medium based on a blockchain system according to still another embodiment of the present application;
FIG. 9 is a flowchart of a method for changing attribution of a resource transfer medium based on a blockchain system according to still another embodiment of the present application;
FIG. 10 is a schematic diagram of a resource transfer medium attribution changing device based on a blockchain system according to an embodiment of the present application;
FIG. 11 is a schematic diagram of a resource transfer medium attribution changing device based on a blockchain system according to another embodiment of the present application;
FIG. 12 is a schematic diagram of a resource transfer medium attribution changing device based on a blockchain system according to another embodiment of the present application;
FIG. 13 is a schematic diagram of a resource transfer medium home modification system based on a blockchain system according to an embodiment of the present disclosure;
fig. 14 is an internal structural diagram of a computer device according to an embodiment of the present application.
Detailed Description
In order to make the objects, technical solutions and advantages of the present application more apparent, the present application will be further described in detail with reference to the accompanying drawings and examples. It should be understood that the specific embodiments described herein are for purposes of illustration only and are not intended to limit the present application.
The resource transfer medium attribution changing method based on the blockchain system provided by the embodiment of the application can be applied to the blockchain system shown in fig. 1, and fig. 1 is a schematic structural diagram of the blockchain system. The block chain system comprises a main control node, a home change processing node and a plurality of server nodes; the plurality of server nodes may include a first server node and a second server node; the first server node is the server node to which the target resource transfer medium belongs currently, and the second server node is the server node to which the target resource transfer medium belongs after being changed.
As shown in fig. 2, the master control node may include an creation block establishment module, a bank qualification audit module, a disclosure module, and a server list module. The original module is an creation block of the blockchain system, and the creation block can comprise identification information (for example, ID number) of a main control node, personal information record of a creator of the blockchain system, a public key and the like; all record information of the master node can be encrypted by using the private key of the master node. As shown in fig. 3, the bank qualification auditing module, that is, the service side (for example, a credit card issuing bank) applies for joining the blockchain system, after receiving the joining application information of the service side to be joined, the master control node audits the qualification and record information of the service side to be joined, and constructs a service side block matched with the service side to be joined in the blockchain system under the condition that the joining application information meets the verification condition. And the public module is used for storing the service side identification (for example, ID), record information, public key and other related attribute information of the service side to be added after the verification of the service side to be added passes, encrypting by using the private key of the main control node and broadcasting the encrypted information to the blockchain system, and displaying the related attribute information of the service side to be added to indicate that the service side to be added is a service side node in the blockchain system. And the server list module stores all relevant attribute information of the server nodes added into the blockchain system in the server list module.
As shown in fig. 4, the service node may include an creation block checking module, a transmission application module, an address acquisition module, a service processing module, a confirmation module, and a number-carrying home change information recording module. Taking a to-be-added service side node as an example for explanation, an creation block checking module of the to-be-added service side node sends a message for inquiring a creation block of a blockchain to two or more adjacent service side nodes of the blockchain system, and the inquiry message is signed by using a private key of the to-be-added service side node; after the adjacent service side nodes return the information of the query block chain generation blocks, the to-be-added service side nodes can compare the percentages of the true and false information of the block chain generation blocks returned by more than two adjacent service side nodes, and the authenticity of the generation blocks of the main control node is confirmed. And after the authenticity of the creation block of the master control node is confirmed, the node to be added with the application module sends application information application to be the service node in the blockchain system, the application information is broadcasted in the blockchain system, the application information comprises a service side identifier (for example, ID), a public key and identity information of the node to be added with the service, and the identity information at least comprises the name, legal representative, registration number, establishment time, operation qualification, registration capital, registration address, contact mode and the like of the node to be added with the service. The address acquisition module refers to a node to be added into a server to inquire the information of the main control node and extract and record the address of the creation block of the main control node. And the service processing module is responsible for processing the internal service of the service party to be added. And the confirmation module broadcasts a corresponding processing message to the blockchain system after the service processing is completed. The number-carrying attribution change information recording module refers to the record of all number-carrying attribution change transactions on the blockchain system.
The attribution change processing node can receive an attribution change request triggered by a target account aiming at an associated target resource transfer medium in the blockchain system, perform first verification on request information corresponding to the attribution change request, and transmit the request information to a first service side node under the condition that the request information meets first verification conditions; the first server node is a server node to which a target resource transfer medium belongs currently; the first service side node can audit the request information and construct a home change block matched with the request information in the block chain system under the condition that the request information is audited; then, the home change processing node can verify the home change block, and when the home change block meets the second verification condition, the home change block is transmitted to the second server node; the second server node is a server node after the attribution change of the target resource transfer medium, and can audit the medium information of the target resource transfer medium contained in the attribution change block and return the obtained audit result to the attribution change processing node; the method comprises the steps of carrying out a first treatment on the surface of the And the attribution change processing node transfers the service side node to which the target resource transfer medium belongs from the first service side node to the second service side node under the condition that the auditing result represents that the auditing is passed.
In one embodiment, as shown in fig. 5, a resource transfer medium attribution changing method based on a blockchain system is provided, and this embodiment is exemplified by the application of the method to a server, it can be understood that the method can also be applied to a terminal, and can also be applied to a system including the terminal and the server, and implemented through interaction between the terminal and the server. In this embodiment, the method is applied to a home change processing node in a blockchain system, and may include the following steps:
step S501, receiving a home change request triggered by a target account for an associated target resource transfer medium, and transmitting request information to a first server node when request information corresponding to the home change request meets a first verification condition.
The attribution change processing node can acquire an attribution change request triggered by a target account aiming at an associated target resource transfer medium in the blockchain system, wherein the target account is an account with a number-carrying attribution change requirement, the target account can be associated with one or more resource transfer mediums, and the target resource transfer medium is a resource transfer medium with the number-carrying attribution change requirement in the one or more resource transfer mediums. In one possible implementation, the target account here may be the user initiating the credit card carry number attribution change; the target resource transfer medium may be a medium for a resource transfer transaction that requires a change in the ownership of the carrier number, such as a credit card. The home change request may be used for a target resource transfer medium request to make a number-carrying home change, where the number-carrying home change is that, when a service node to which the target resource transfer medium belongs is transferred from a first service node to a second service node, a medium identifier (such as a credit card number) of the target resource transfer medium remains unchanged, and the request information may include relevant attribute information of the target resource transfer medium, the first service node, and the second service node, for example, a medium identifier (such as a credit card number) of the target resource transfer medium, a first service identifier (such as a service name and an ID) of the first service node, and a second service identifier (such as a service name and an ID) of the second service node, and so on. In some possible implementations, the home change processing node may audit the request information based on a first verification condition, where the first verification condition may be a condition based on validity of the target resource transfer medium to make the home change and accuracy of the request information, for example, whether there are multiple pieces of number-carrying home change information about the target resource transfer medium in the blockchain system in the current time period, and in a case that there are multiple pieces of number-carrying home change information, verify accuracy of the request information. The first server node may be a server node to which the target resource transfer medium currently belongs. When the first server node receives the request information, the first server node can audit the request information, and under the condition that the request information is audited, a home change block matched with the request information is constructed in the block chain system.
Step S502, when the attribution changing block meets the second verification condition, the attribution changing block is transmitted to the second service side node based on the request information.
After the home change block exists in the blockchain system, the home change processing node may audit the home change block based on a second verification condition, where the second verification condition may be a condition set based on a record form of media information in the home change block, and wind control information, credit information and the like of a target resource transfer medium corresponding to the home change block, for example, a blacklist for determining whether the target resource transfer medium exists in each server. When the attribution change block meets the second verification condition, the attribution change processing node can encrypt the attribution change block based on the generated private key, upload the encrypted attribution change block and the generated public key to the blockchain system, after the attribution change block is acquired by the second service side node in the blockchain system, decrypt the attribution change block based on the public key of the attribution change processing node, acquire the medium information in the attribution change block after decryption, and audit the current state of the target resource transfer medium according to the medium information, and judge whether the current state is a state of not allowing the attribution change of the number, wherein the state of not allowing the attribution change of the number can include but is not limited to freezing, barred cards, unfinished payment records and the like. Under the condition that the current state does not exist in a state which does not allow the number carrying attribution to be changed, the auditing result is that the auditing is passed; if any one of the states of disallowing the number-carrying attribution change exists in the current state, the auditing result is that the auditing is not passed, then the second server node can encrypt the auditing result of the media information of the target resource transfer medium contained in the attribution change block by utilizing the private key generated by the second server node, and upload the auditing result after the encryption and the public key generated by the second server node to the blockchain system, wherein the second server node is the server node after the attribution change of the target resource transfer medium. When the home change block does not satisfy the second verification condition, the home change processing node may discard the home change block.
Step S503, when the auditing result represents that the auditing is passed, the server node to which the target resource transfer medium belongs is transferred from the first server node to the second server node.
The attribution change processing node obtains an auditing result uploaded by the second server node in the blockchain system, and transfers the server node to which the target resource transfer medium belongs from the first server node to the second server node under the condition that the auditing result characterizes that the auditing is passed.
According to the method, the attribution change processing node can receive an attribution change request triggered by a target account aiming at an associated target resource transfer medium in a blockchain system, and transmits request information to a first service side node under the condition that request information corresponding to the attribution change request meets a first verification condition; the first service side node can audit the request information and construct a home change block matched with the request information in the block chain system under the condition that the request information is audited; then, the home change processing node can verify the home change block, and when the home change block meets the second verification condition, the home change block is transmitted to the second server node; the second server node can audit the medium information of the target resource transfer medium contained in the attribution change block, and returns the obtained audit result to the attribution change processing node; and the attribution change processing node transfers the service side node to which the target resource transfer medium belongs from the first service side node to the second service side node under the condition that the auditing result represents that the auditing is passed. In the method provided by the embodiment of the application, the barrier among different service parties is broken through by using the blockchain technology, so that the requirement that a medium identifier (for example, the card number of a credit card) is kept unchanged when a user performs attribution change of a resource transfer medium (for example, the credit card) in different service parties can be met, and the security of medium information in the attribution change process of a carried number is ensured by using the non-falsifiability of the block.
In some embodiments, as shown in fig. 6, transmitting the request information to the first service node in step S501 may include:
generating a first public key and a first private key corresponding to the attribution change processing node; carrying out hash processing on the request information to obtain first abstract information; respectively carrying out encryption processing on the request information and the first abstract information by using a first private key to obtain a ciphertext of the request information and a digital signature of the first abstract information; uploading the ciphertext, the digital signature and the first public key to a blockchain system; the first server node is configured to obtain ciphertext, a digital signature, and a first public key in a blockchain system.
In some possible implementations, the security of the target resource transfer medium in the process of performing the attribution change may be ensured based on an asymmetric encryption mode, and each node in the blockchain system may generate a key pair through an encryption algorithm, where the key pair may include a public key and a private key, the public key is a shared key, that is, an external public key, and the private key is a private key, that is, a key reserved by itself. Here, taking the home change processing node as an example for explanation, the home change processing node may generate a first public key and a first private key corresponding to the home change processing node through an encryption algorithm, encrypt information to be uploaded by using the first private key, upload the encrypted information to be uploaded and the first public key to a blockchain system, and when other nodes except the home change processing node in the blockchain system acquire the information to be uploaded, decrypt the encrypted information to be uploaded by using the first public key of the home change processing node, so as to acquire the information to be uploaded. In addition, the first public key and the first private key are only used for encrypting and decrypting the information to be uploaded currently, and the security of account information interaction is further improved by one exchange at a time.
The hash processing is performed on the request information, that is, the request information is converted into an irreversible hash character string with the same length, and the hash character string can be called as first digest information, where the first digest information is used for subsequently judging whether the decrypted request information of other nodes is consistent with the original request information.
The method of the embodiment can encrypt the information to be uploaded to the blockchain system based on an asymmetric encryption mode and hash processing, and ensures the security of account information and media information interaction in attribution change.
In some embodiments, the step of generating the first public key and the first private key corresponding to the home change processing node may include:
obtaining an encryption index and a decryption index corresponding to the attribution change processing node; and generating a first public key and a first private key corresponding to the attribution change processing node according to the encryption index and the decryption index.
In some embodiments, the step of obtaining the encryption index and the decryption index corresponding to the home change processing node may include: generating a first random initial value and a second random initial value; obtaining a third random initial value according to the first random initial value and the second random initial value; taking the minimum values of the first random initial value, the second random initial value and the third random initial value as encryption indexes; and the inverse of the encryption exponent is determined as the decryption exponent.
Taking the home change processing node as an example for explanation, the home change processing node can generate a first random initial value and a second random initial value based on an encryption algorithm; and determining a product of the first random initial value and the second random initial value as a third random initial value; thus, the minimum value of the first random initial value, the second random initial value, and the third random initial value can be used as the encryption exponent; and the inverse of the encryption exponent is determined as the decryption exponent.
In some embodiments, the step of generating the first public key and the first private key corresponding to the home change processing node according to the encryption exponent and the decryption exponent may include:
generating a first public key from the third random initial value and the encryption exponent; the first private key is generated from the third random initial value and the decryption exponent.
In some embodiments, receiving the home change request triggered by the target account for the associated target resource transfer medium in step S501 may include:
acquiring a second ciphertext, a second digital signature and a second public key of the request information uploaded by the master control node in the blockchain system; the master control node is used for generating a second public key and a second private key corresponding to the master control node; under the condition that request information corresponding to the attribution change request meets the verification condition, carrying out hash processing on the request information to obtain third abstract information; respectively carrying out encryption processing on the request information and the third abstract information by using a second private key to obtain a second ciphertext of the request information and a second digital signature of the third abstract information; uploading the second ciphertext, the second digital signature, and the second public key to the blockchain system; and decrypting the second ciphertext and the second digital signature by using the second public key to obtain the request information. In some embodiments, the step of decrypting the second ciphertext and the second digital signature using the second public key to obtain the request information may include:
Respectively decrypting the second ciphertext and the second digital signature by using the second public key to obtain second decryption information and third abstract information corresponding to the request information; carrying out hash processing on the request information to obtain fourth abstract information; and determining the second decryption information as the request information when the third digest information and the fourth digest information coincide.
In another embodiment, as shown in fig. 7, a method for changing attribution of a resource transfer medium based on a blockchain system is provided, and in this embodiment, the method is applied to a first server node in the blockchain system, and may include the following steps:
step S701, acquiring a home change request triggered by the target account for the associated target resource transfer medium, and verifying home information corresponding to request information corresponding to the home change request.
When the request information meets the second verification condition, the attribution change processing node encrypts the request information by using a first private key, uploads the encrypted request information and a first public key to the blockchain system, and the first service side node can acquire the encrypted request information and the first public key in the blockchain system and decrypt the encrypted request information by using the first public key so as to acquire the request information of the target resource transfer medium. The attribution information may be used to represent a service party to which the target resource transfer medium currently attributions, and the service party to which the target resource transfer medium currently attributions may be judged based on the medium identifier of the target resource transfer medium in the request information and the first service party identifier of the first service party node, which may be the service party node to which the target resource transfer medium currently belongs. In some possible implementations, the first server node may further verify current status information of the target resource transfer medium, where the status information may include, but is not limited to, whether the target resource transfer medium has an unremoved payment, or whether an account status, a medium status is abnormal, and the transaction cannot be triggered if the current status information of the target resource transfer medium is abnormal.
Step S702, when the attribution information indicates that the current attribution server node of the target resource transfer medium is the first server node, verifying the number carrying authority of the target resource transfer medium, and obtaining an authority checking result.
The number-carrying authority can be used for indicating whether the target resource transfer medium can be transferred from the first server node to the second server node, and the medium identification is kept unchanged, namely the number-carrying attribution is changed. The first service node may determine whether the target resource transfer medium has the authority to carry the number based on a preset condition of changing the attribution of the carried number. Under the condition that the target resource transfer medium meets the preset number carrying attribution change condition, the authority auditing result is that auditing is passed; and under the condition that the target resource transfer medium does not meet the preset number-carrying attribution change condition, the authority auditing result is that auditing is not passed. Failing to satisfy the carry number attribution change condition in some possible implementations may include, but is not limited to, freezing, a waste card, the existence of an outstanding installment record, and so forth.
Step S703, under the condition that the authority auditing result represents that the auditing is passed, constructing a attribution change block matched with the request information in the block chain system.
In one embodiment, constructing a home change block in the blockchain system that matches the request information in step S703 may include:
carrying out hash processing on the request information to obtain record information corresponding to the request information; and packaging the record information into a attribution change block matched with the request information, and uploading the attribution change block to the block chain system.
After the attribution change block exists in the blockchain system, the attribution change processing node can audit the attribution change block based on a second verification condition, wherein the second verification condition can be a condition set based on a record form of account information in the attribution change block, wind control information, credit information and the like of a target resource transfer medium corresponding to the attribution change block, for example, a blacklist for judging whether the target resource transfer medium exists in each server. When the attribution change block meets the second verification condition, the attribution change processing node can encrypt the attribution change block based on the generated private key, upload the encrypted attribution change block and the generated public key to the blockchain system, after the attribution change block is acquired by the second service side node in the blockchain system, decrypt the attribution change block based on the public key of the attribution change processing node, acquire the medium information in the attribution change block after decryption, and audit the current state of the target resource transfer medium according to the medium information, and judge whether the current state is a state of not allowing the attribution change of the number, wherein the state of not allowing the attribution change of the number can include but is not limited to freezing, barred cards, unfinished payment records and the like. Under the condition that the current state does not exist in a state which does not allow the number carrying attribution to be changed, the auditing result is that the auditing is passed; and under the condition that any one of the states which do not allow the attribution change of the carried number exists in the current state, the auditing result is that the auditing is not passed, then the second server node can encrypt the auditing result of the medium information of the target resource transfer medium contained in the attribution change block by utilizing the private key generated by the second server node, and the auditing result after the encrypting and the public key generated by the second server node are uploaded to the blockchain system, wherein the second server node is the server node to which the target resource transfer medium is to be transferred.
According to the method, the attribution change processing node can receive request information of a target resource transfer medium in the blockchain system, and transmits the request information to a first service side node under the condition that the request information meets a first verification condition; the first service side node can audit the request information and construct a home change block matched with the request information in the block chain system under the condition that the request information is audited; then, the attribution change processing node can verify the attribution change block, and when the attribution change block meets a second verification condition, the attribution change block is transmitted to a second server node; the second server node can audit the medium information of the target resource transfer medium contained in the attribution change block, and returns the obtained audit result to the attribution change processing node; and the home change processing node transfers the server node where the target resource transfer medium is located from the first server node to the second server node under the condition that the auditing result represents that the auditing is passed. In the method provided by the embodiment of the application, the barrier among different service parties is broken through by using the blockchain technology, so that the requirement that a medium identifier (for example, the card number of a credit card) is kept unchanged when a user performs attribution change of a resource transfer medium (for example, the credit card) in different service parties can be met, and the security of medium information in the attribution change process of a carried number is ensured by using the non-falsifiability of the block.
In one embodiment, as shown in fig. 6, the acquiring the home change request triggered by the target account for the associated target resource transfer medium in step S701 may include:
acquiring ciphertext, a digital signature and a first public key of request information uploaded by a attribution change processing node in a block chain system; decrypting the ciphertext and the digital signature by using the first public key to obtain decryption information and first abstract information corresponding to the request information; carrying out hash processing on the request information to obtain second abstract information; and determining the decryption information as the request information when the first digest information and the second digest information coincide.
Before the step, the home change processing node can generate a first public key and a first private key corresponding to the home change processing node; carrying out hash processing on the request information to obtain first abstract information; then, the first private key is used for respectively carrying out encryption processing on the request information and the first abstract information to obtain ciphertext of the request information and a digital signature of the first abstract information; finally, the ciphertext, the digital signature, and the first public key are uploaded to the blockchain system. Thus, the first service side node can acquire the ciphertext, the digital signature and the first public key of the request information uploaded by the attribution change processing node in the blockchain system.
According to the method, the security of the account information of the target resource transfer medium can be ensured based on an asymmetric encryption mode and hash processing, and the decryption information can be determined as the request information only when the first abstract information and the second abstract information are consistent, so that the security of the request information is further ensured.
In yet another embodiment, as shown in fig. 8, a method for changing attribution of a resource transfer medium based on a blockchain system is provided, and in this embodiment, the method is applied to a master node in the blockchain system, and may include the following steps:
in step S801, a pre-stored service party list is acquired in response to a request for the service party list from the target account.
Step S802, returning the service side list to the target account.
Step S803, when receiving the home change request triggered by the target account for the second server node included in the server list, transmits the home change request to the home change processing node.
The home change processing node is used for transferring the service side node to which the target resource transfer medium belongs from the first service side node to the second service side node based on the request information corresponding to the home change request.
In one embodiment, transmitting the home change request to the home change processing node in step S803 may include:
generating a second public key and a second private key corresponding to the main control node; under the condition that request information corresponding to the attribution change request meets the verification condition, carrying out hash processing on the request information to obtain third abstract information; respectively carrying out encryption processing on the request information and the third abstract information by using a second private key to obtain a second ciphertext of the request information and a second digital signature of the third abstract information; uploading the second ciphertext, the second digital signature, and the second public key to the blockchain system; the attribution change processing node is used for acquiring a second ciphertext, a second digital signature and a second public key from the blockchain system, and decrypting the second ciphertext and the second digital signature by using the second public key to obtain the request information.
In one embodiment, the step of joining the blockchain system by the joining server may include:
receiving joining application information of a to-be-joined server, and constructing a server block matched with the to-be-joined server in a block chain system under the condition that the joining application information meets verification conditions; listing the service side to be added into a service side list; the server list is used for inquiring whether the second server node exists in the server list by the target account.
In yet another embodiment, as shown in fig. 9, a resource transfer medium attribution changing method based on a blockchain system is provided, and the method may include:
in step S901, in response to a server list request triggered by the target account for the associated target resource transfer medium, the master control node returns the server list to the target account.
The server list may include a plurality of servers corresponding to a plurality of server nodes in the blockchain system.
Step S902, according to the service side list, the target account judges whether the first service side corresponding to the first service side node exists in the service side list.
In step S903, when the first server corresponding to the first server node exists in the server list, the request information corresponding to the home change request is sent to the master node.
Step S904, the main control node encrypts the request information and uploads the encrypted request information to the blockchain system.
The method comprises the steps that a main control node generates a public key and a private key of the main control node based on an encryption algorithm; carrying out hash processing on the request information to obtain corresponding first abstract information; the private key of the master control node is used for respectively carrying out encryption processing on the request information and the corresponding first abstract information to obtain ciphertext of the request information and a digital signature of the corresponding first abstract information; uploading the ciphertext, the digital signature and the public key of the master node to the blockchain system.
In step S905, the home change processing node acquires the request information in the blockchain system, and performs an audit on the request information based on the first verification condition.
The attribution change processing node acquires ciphertext, a digital signature and a public key of the main control node of request information uploaded by the main control node in the blockchain system; decrypting the ciphertext and the digital signature by using a public key of the master control node to obtain decryption information corresponding to the request information and corresponding first abstract information; carrying out hash processing on the request information to obtain corresponding second abstract information; and determining the decryption information as the request information when the first digest information and the second encryption information coincide.
Step S906, in the case that the request information meets the first verification condition, the request information and the first verification result are encrypted, and the blockchain system is uploaded.
In step S907, the first server node obtains the request information from the blockchain system, and verifies the home information of the request information.
Specifically, a medium identifier of a target resource transfer medium and a corresponding first service side identifier are obtained according to request information; and verifying the attribution information of the request information according to the medium identifier and the first service party identifier.
Step S908, when the attribution information indicates that the server node to which the target resource transfer medium belongs is the first server node, the first server node verifies the number-carrying authority of the target resource transfer medium, and obtains an authority auditing result.
Step S909, under the condition that the authority verification result represents that verification passes, the first server node hashes the request information to obtain the record information corresponding to the request information.
Step S910, the record information is encapsulated into a home change block matched with the request information, and the home change block is uploaded to the blockchain system.
In step S911, the home change processing node may audit the home change block based on the second verification condition.
In step S912, when the home change block meets the second verification condition, the home change block is transmitted to the second server node.
Step S913, the second service side node obtains the attribution change block from the block chain system and examines the current state of the target resource transfer medium according to the medium information to obtain an examination result.
In some possible implementations, other service side nodes except the first service side node and the second service side node in the blockchain system can also acquire request information and record information of the node uploaded by each node in the blockchain system; therefore, the account identifier of the target resource transfer medium and the service side identifier of the service side to be transferred out are obtained according to the request information, and whether the service side to be transferred out is the service side is judged according to the account identifier and the service side identifier of the service side to be transferred out; when the service party to be transferred is the service party, the service party can be determined to be the first service party; when the service party to be transferred out is not the own service party, record information of the own service party is generated, wherein the record information can include, but is not limited to, account identification, service party identification of the service party to be transferred out, service party identification of the service party to be transferred in and the like.
Step S914, when the auditing result represents that the auditing is passed, the attribution change processing node transfers the service side node to which the target resource transfer medium belongs from the first service side node to the second service side node.
According to the method, the attribution change processing node can receive request information of a target resource transfer medium in the blockchain system, and transmits the request information to a first service side node under the condition that the request information meets a first verification condition; the first service side node can audit the request information and construct a home change block matched with the request information in the block chain system under the condition that the request information is audited; then, the attribution change processing node can verify the attribution change block, and when the attribution change block meets a second verification condition, the attribution change block is transmitted to a second server node; the second server node can audit the account information of the target resource transfer medium contained in the attribution change block, and returns the obtained audit result to the attribution change processing node; and the home change processing node transfers the server node where the target resource transfer medium is located from the first server node to the second server node under the condition that the auditing result represents that the auditing is passed. In the method provided by the embodiment of the application, the barrier among different service parties is broken through by using the blockchain technology, so that the requirement that a medium identifier (for example, the card number of a credit card) is kept unchanged when a user performs attribution change of a resource transfer medium (for example, the credit card) in different service parties can be met, and the security of medium information in the attribution change process of a carried number is ensured by using the non-falsifiability of the block. It should be understood that, although the steps in the flowcharts related to the embodiments described above are sequentially shown as indicated by arrows, these steps are not necessarily sequentially performed in the order indicated by the arrows. The steps are not strictly limited to the order of execution unless explicitly recited herein, and the steps may be executed in other orders. Moreover, at least some of the steps in the flowcharts described in the above embodiments may include a plurality of steps or a plurality of stages, which are not necessarily performed at the same time, but may be performed at different times, and the order of the steps or stages is not necessarily performed sequentially, but may be performed alternately or alternately with at least some of the other steps or stages.
Based on the same inventive concept, the embodiment of the application also provides a resource transfer medium attribution changing device based on the blockchain system, which is used for realizing the resource transfer medium attribution changing method based on the blockchain system. The implementation of the solution provided by the apparatus is similar to the implementation described in the above method, so the specific limitation in the embodiments of the resource transfer medium attribution changing apparatus based on a blockchain system provided below may be referred to the limitation of the resource transfer medium attribution changing method based on a blockchain system hereinabove, and will not be repeated herein.
In one embodiment, as shown in fig. 10, there is provided a resource transfer medium attribution changing device based on a blockchain system, including: a first processing module 1001, a second processing module 1002, and a transfer module 1003, wherein:
a first processing module 1001, configured to receive a home change request triggered by a target account for an associated target resource transfer medium, and transmit request information corresponding to the home change request to the first server node if the request information meets a first verification condition; the first server node is a server node to which the target resource transfer medium belongs currently and is used for constructing a belonging change block matched with the request information in the block chain system under the condition that the auditing of the request information is passed;
A second processing module 1002, configured to transmit the home change block to the second server node when the home change block meets a second verification condition; the second service node is a service node after the attribution change of the target resource transfer medium, and is used for returning an auditing result of the medium information of the target resource transfer medium contained in the attribution change block to the attribution change processing node; and a transferring module 1003, configured to transfer, from the first server node to the second server node, a server node to which the target resource transfer medium belongs, if the audit result indicates that the audit is passed.
The first processing module 1001 is further configured to: generating a first public key and a first private key corresponding to the attribution change processing node; carrying out hash processing on the request information to obtain first abstract information; the first private key is utilized to encrypt the request information and the first abstract information respectively, so as to obtain ciphertext of the request information and digital signature of the first abstract information; uploading the ciphertext, the digital signature, and the first public key to the blockchain system; the first server node is configured to obtain the ciphertext, the digital signature, and the first public key in the blockchain system.
The first processing module 1001 is further configured to: acquiring an encryption index and a decryption index corresponding to the attribution change processing node; and generating a first public key and a first private key corresponding to the attribution change processing node according to the encryption index and the decryption index.
The first processing module 1001 is further configured to: generating a first random initial value and a second random initial value; obtaining a third random initial value according to the first random initial value and the second random initial value; taking the minimum values of the first random initial value, the second random initial value and the third random initial value as encryption indexes; and determining the inverse of the encryption exponent as the decryption exponent.
Further, the first processing module 1001 is further configured to: generating the first public key from the third random initial value and the encryption exponent; the first private key is generated from a third random initial value and the decryption exponent.
In one embodiment, as shown in fig. 11, there is provided a resource transfer medium attribution changing device based on a blockchain system, including: a first authentication module 1101, a second authentication module 1102, and a build block module 1103, wherein:
a first verification module 1101, configured to obtain a home change request triggered by a target account for an associated target resource transfer medium, and verify home information corresponding to request information corresponding to the home change request;
A second verification module 1102, configured to verify a number-carrying authority of the target resource transfer medium when the attribution information indicates that a server node currently attributing to the target resource transfer medium is the first server node, and obtain an authority auditing result;
a building block module 1103, configured to build a home change block matching the request information in the blockchain system if the authority verification result indicates that the verification passes; the attribution change processing node is used for transmitting the attribution change block to the second server node when the attribution change block meets a second verification condition; the second service side node is used for returning the auditing result of the medium information of the target resource transfer medium contained in the attribution change block to the attribution change processing node; the attribution change processing node is further used for transferring the server node to which the target resource transfer medium belongs from the first server node to the second server node under the condition that the auditing result represents that the auditing is passed.
The first verification module 1101 is further configured to: acquiring ciphertext, a digital signature and a first public key of the request information uploaded by the attribution change processing node in the blockchain system; the attribution change processing node is used for generating a first public key and a first private key corresponding to the attribution change processing node; carrying out hash processing on the request information to obtain first abstract information; the first private key is utilized to encrypt the request information and the first abstract information respectively, so as to obtain ciphertext of the request information and digital signature of the first abstract information; uploading the ciphertext, the digital signature, and the first public key to the blockchain system. Respectively decrypting the ciphertext and the digital signature by using the first public key to obtain decryption information and first abstract information corresponding to the request information; carrying out hash processing on the request information to obtain second encryption information; and determining the decryption information as the request information when the first summary information and the second encryption information are consistent.
Further, the first verification module 1101 is further configured to: acquiring an account identifier of the target resource transfer medium and a corresponding first service side identifier according to the request information; and verifying the attribution information of the request information according to the account identifier and the first service party identifier.
The building block module 1103 is also configured to: carrying out hash processing on the request information to obtain record information corresponding to the request information; and packaging the record information into a attribution change block matched with the request information, and uploading the attribution change block to the blockchain system.
In one embodiment, as shown in fig. 12, there is provided a resource transfer medium attribution changing device based on a blockchain system, including: an acquisition module 1201, a first sending module 1202 and a second sending module 1203, wherein:
an obtaining module 1201, configured to obtain a pre-stored service party list in response to a request of a target account for the service party list;
a first sending module 1202, configured to return the service side list to the target account;
a second sending module 1203, configured to, when receiving a home change request triggered by the target account for a second server node included in the server list, transmit the home change request to a home change processing node; the home change processing node is configured to transfer, from a first server node to the second server node, a server node to which a target resource transfer medium belongs, based on request information corresponding to the home change request.
In one embodiment, as shown in FIG. 13, there is provided a resource transfer medium attribution changing system based on a blockchain system, the system comprising: a master node 1301, a home change processing node 1302, a first server node 1303 and a second server node 1304, wherein,
the master control node 1301 is configured to obtain a pre-stored server list in response to a request of a target account for the server list; returning the service side list to the target account;
the master control node 1301 is further configured to transmit, when receiving a home change request triggered by the target account for the second server node included in the server list, the home change request to the home change processing node;
the home change processing node 1302 is configured to receive the home change request triggered by the target account for the associated target resource transfer medium, and transmit the request information to the first server node when the request information corresponding to the home change request meets a first verification condition;
the first service node 1303 is configured to obtain the home change request triggered by the target account for the associated target resource transfer medium, and verify home information corresponding to request information corresponding to the home change request; when the attribution information indicates that the service side node to which the target resource transfer medium currently attributions is the first service side node, verifying the number carrying authority of the target resource transfer medium and obtaining an authority auditing result;
The home change processing node 1302 is further configured to transmit the home change block to the second server node based on the request information when the home change block meets a second verification condition;
the second server node 1304 is configured to return an audit result of the media information of the target resource transfer medium included in the home change block to the home change processing node;
the home change processing node 1302 is further configured to transfer, from the first server node to the second server node, a server node to which the target resource transfer medium belongs if the audit result indicates that the audit is passed.
The various modules in the account screening apparatus described above may be implemented in whole or in part in software, hardware, and combinations thereof. The above modules may be embedded in hardware or may be independent of a processor in the computer device, or may be stored in software in a memory in the computer device, so that the processor may call and execute operations corresponding to the above modules.
In one embodiment, a computer device is provided, which may be a server, and the internal structure of which may be as shown in fig. 14. The computer device includes a processor, a memory, and a network interface connected by a system bus. Wherein the processor of the computer device is configured to provide computing and control capabilities. The memory of the computer device includes a non-volatile storage medium and an internal memory. The non-volatile storage medium stores an operating system, computer programs, and a database. The internal memory provides an environment for the operation of the operating system and computer programs in the non-volatile storage media. The database of the computer equipment is used for storing the data related to the attribution change of the resource transfer medium. The network interface of the computer device is used for communicating with an external terminal through a network connection. The computer program, when executed by a processor, implements a blockchain system-based account transfer method.
It will be appreciated by those skilled in the art that the structure shown in fig. 14 is merely a block diagram of a portion of the structure associated with the present application and is not limiting of the computer device to which the present application applies, and that a particular computer device may include more or fewer components than shown, or may combine certain components, or have a different arrangement of components.
In an embodiment, there is also provided a computer device comprising a memory and a processor, the memory having stored therein a computer program, the processor implementing the steps of the method embodiments described above when the computer program is executed.
In one embodiment, a computer-readable storage medium is provided, on which a computer program is stored which, when executed by a processor, carries out the steps of the method embodiments described above.
In an embodiment, a computer program product is provided, comprising a computer program which, when executed by a processor, implements the steps of the method embodiments described above.
It should be noted that, user information (including but not limited to user equipment information, user personal information, etc.) and data (including but not limited to data for analysis, stored data, presented data, etc.) referred to in the present application are information and data authorized by the user or sufficiently authorized by each party.
Those skilled in the art will appreciate that implementing all or part of the above described methods may be accomplished by way of a computer program stored on a non-transitory computer readable storage medium, which when executed, may comprise the steps of the embodiments of the methods described above. Any reference to memory, database, or other medium used in the various embodiments provided herein may include at least one of non-volatile and volatile memory. The nonvolatile Memory may include Read-Only Memory (ROM), magnetic tape, floppy disk, flash Memory, optical Memory, high density embedded nonvolatile Memory, resistive random access Memory (ReRAM), magnetic random access Memory (Magnetoresistive Random Access Memory, MRAM), ferroelectric Memory (Ferroelectric Random Access Memory, FRAM), phase change Memory (Phase Change Memory, PCM), graphene Memory, and the like. Volatile memory can include random access memory (Random Access Memory, RAM) or external cache memory, and the like. By way of illustration, and not limitation, RAM can be in the form of a variety of forms, such as static random access memory (Static Random Access Memory, SRAM) or dynamic random access memory (Dynamic Random Access Memory, DRAM), and the like. The databases referred to in the various embodiments provided herein may include at least one of relational databases and non-relational databases. The non-relational database may include, but is not limited to, a blockchain-based distributed database, and the like. The processors referred to in the embodiments provided herein may be general purpose processors, central processing units, graphics processors, digital signal processors, programmable logic units, quantum computing-based data processing logic units, etc., without being limited thereto.
The technical features of the above embodiments may be arbitrarily combined, and all possible combinations of the technical features in the above embodiments are not described for brevity of description, however, as long as there is no contradiction between the combinations of the technical features, they should be considered as the scope of the description.
The above examples only represent a few embodiments of the present application, which are described in more detail and are not to be construed as limiting the scope of the present application. It should be noted that it would be apparent to those skilled in the art that various modifications and improvements could be made without departing from the spirit of the present application, which would be within the scope of the present application. Accordingly, the scope of protection of the present application shall be subject to the appended claims.

Claims (21)

1. A resource transfer medium attribution change method based on a blockchain system, which is characterized by being applied to an attribution change processing node in the blockchain system, the method comprising:
receiving a home change request triggered by a target account aiming at an associated target resource transfer medium, and transmitting request information to the first server node under the condition that request information corresponding to the home change request meets a first verification condition; the first server node is a server node to which the target resource transfer medium belongs currently and is used for constructing a belonging change block matched with the request information in the block chain system under the condition that the auditing of the request information is passed;
Transmitting the home change block to a second server node based on the request information when the home change block satisfies a second verification condition; the second server node is a server node after the attribution change of the target resource transfer medium, and is used for returning the auditing result of the medium information of the target resource transfer medium contained in the attribution change block to the attribution change processing node;
and under the condition that the auditing result represents that the auditing is passed, transferring the server node to which the target resource transfer medium belongs from the first server node to the second server node.
2. The method of claim 1, wherein said transmitting said request information to said first server node comprises:
generating a first public key and a first private key corresponding to the attribution change processing node;
carrying out hash processing on the request information to obtain first abstract information;
respectively carrying out encryption processing on the request information and the first abstract information by using the first private key to obtain a first ciphertext of the request information and a first digital signature of the first abstract information;
Uploading the first ciphertext, the first digital signature, and the first public key to the blockchain system; the first server node is configured to obtain the first ciphertext, the first digital signature, and the first public key from the blockchain system, and decrypt the first ciphertext and the first digital signature with the first public key to obtain the request information.
3. The method of claim 2, wherein generating the first public key and the first private key corresponding to the home change processing node comprises:
acquiring an encryption index and a decryption index corresponding to the attribution change processing node;
and generating a first public key and a first private key corresponding to the attribution change processing node according to the encryption index and the decryption index.
4. The method of claim 3, wherein the obtaining the encryption index and the decryption index corresponding to the home change processing node comprises:
generating a first random initial value and a second random initial value;
obtaining a third random initial value according to the first random initial value and the second random initial value;
taking the minimum values of the first random initial value, the second random initial value and the third random initial value as encryption indexes; and determining the inverse of the encryption exponent as the decryption exponent.
5. The method of claim 4, wherein generating the first public key and the first private key corresponding to the home change processing node based on the encryption exponent and the decryption exponent comprises:
generating the first public key from the third random initial value and the encryption exponent;
the first private key is generated from a third random initial value and the decryption exponent.
6. The method of claim 1, wherein receiving a home change request triggered by a target account for an associated target resource transfer medium comprises:
acquiring a second ciphertext, a second digital signature and a second public key of the request information uploaded by the master control node in the blockchain system; the master control node is used for generating a second public key and a second private key corresponding to the master control node; under the condition that the request information corresponding to the attribution change request meets the verification condition, carrying out hash processing on the request information to obtain third abstract information; respectively carrying out encryption processing on the request information and the third abstract information by using the second private key to obtain a second ciphertext of the request information and a second digital signature of the third abstract information; uploading the second ciphertext, the second digital signature, and the second public key to the blockchain system;
And decrypting the second ciphertext and the second digital signature by using the second public key to obtain the request information.
7. The method of claim 6, wherein decrypting the second ciphertext and the second digital signature using the second public key to obtain the request message comprises:
respectively decrypting the second ciphertext and the second digital signature by using the second public key to obtain second decryption information and the third abstract information corresponding to the request information;
carrying out hash processing on the request information to obtain fourth abstract information;
and determining the second decryption information as the request information when the third digest information and the fourth digest information are consistent.
8. A method for changing attribution of a resource transfer medium based on a blockchain system, wherein the method is applied to a first server node in the blockchain system, and comprises the following steps:
acquiring an attribution change request triggered by a target account aiming at an associated target resource transfer medium, and verifying attribution information corresponding to request information corresponding to the attribution change request;
When the attribution information indicates that the service side node to which the target resource transfer medium currently attributions is the first service side node, verifying the number carrying authority of the target resource transfer medium and obtaining an authority auditing result;
under the condition that the authority auditing result represents that the auditing is passed, constructing a attribution changing block matched with the request information in the block chain system; the home change processing node is used for transmitting the home change block to a second service side node when the home change block meets a second verification condition; the second server node is a server node after the attribution change of the target resource transfer medium, and is used for returning the auditing result of the medium information of the target resource transfer medium contained in the attribution change block to the attribution change processing node; the attribution change processing node is further used for transferring the server node to which the target resource transfer medium belongs from the first server node to the second server node under the condition that the auditing result represents that the auditing is passed.
9. The method of claim 8, wherein the obtaining a home change request triggered by the target account for the associated target resource transfer medium comprises:
Acquiring ciphertext, a digital signature and a first public key of the request information uploaded by the attribution change processing node in the blockchain system; the attribution change processing node is used for generating a first public key and a first private key corresponding to the attribution change processing node; carrying out hash processing on the request information to obtain first abstract information; the first private key is utilized to encrypt the request information and the first abstract information respectively, so as to obtain ciphertext of the request information and digital signature of the first abstract information; uploading the ciphertext, the digital signature, and the first public key to the blockchain system;
respectively decrypting the ciphertext and the digital signature by using the first public key to obtain decryption information and first abstract information corresponding to the request information;
carrying out hash processing on the request information to obtain second abstract information;
and determining the decryption information as the request information when the first summary information and the second summary information are consistent.
10. The method of claim 8, wherein verifying the home information of the request information comprises:
Acquiring a medium identifier of the target resource transfer medium and a corresponding first server identifier according to the request information;
and verifying the attribution information of the request information according to the medium identifier and the first service party identifier.
11. The method of claim 8, wherein said constructing a home change block in the blockchain system that matches the request information comprises:
carrying out hash processing on the request information to obtain record information corresponding to the request information;
and packaging the record information into a attribution change block matched with the request information, and uploading the attribution change block to the blockchain system.
12. A resource transfer medium attribution changing method based on a blockchain system, which is characterized by being applied to a main control node in the blockchain system, the method comprising:
responding to a request of a target account for a service side list, and acquiring a pre-stored service side list;
returning the service side list to the target account;
transmitting the home change request to a home change processing node under the condition that the home change request triggered by the target account aiming at a second server node contained in the server list is received; the home change processing node is configured to transfer, from a first server node to the second server node, a server node to which a target resource transfer medium belongs, based on request information corresponding to the home change request.
13. The method of claim 12, wherein said transmitting the home change request to a home change processing node comprises:
generating a second public key and a second private key corresponding to the main control node;
under the condition that the request information corresponding to the attribution change request meets the verification condition, carrying out hash processing on the request information to obtain third abstract information;
respectively carrying out encryption processing on the request information and the third abstract information by using the second private key to obtain a second ciphertext of the request information and a second digital signature of the third abstract information;
uploading the second ciphertext, the second digital signature, and the second public key to the blockchain system; the attribution change processing node is used for acquiring the second ciphertext, the second digital signature and the second public key from the blockchain system, and decrypting the second ciphertext and the second digital signature by using the second public key to obtain the request information.
14. The method according to claim 12, wherein the method further comprises:
receiving joining application information of a to-be-joined server, and constructing a server block matched with the to-be-joined server in the blockchain system under the condition that the joining application information meets verification conditions;
Listing the service side to be added into the service side list; the server list is used for inquiring whether the second server node exists in the server list or not through the target account.
15. A resource transfer medium attribution changing device based on a block chain system, which is applied to an attribution changing processing node in the block chain system, and is characterized in that the device comprises:
the first processing module is used for receiving a home change request triggered by a target account aiming at an associated target resource transfer medium, and transmitting request information corresponding to the home change request to the first server node under the condition that the request information meets a first verification condition; the first server node is a server node to which the target resource transfer medium belongs currently and is used for constructing a belonging change block matched with the request information in the block chain system under the condition that the auditing of the request information is passed;
a second processing module, configured to transmit the home change block to a second server node based on the request information when the home change block satisfies a second verification condition; the second server node is a server node after the attribution change of the target resource transfer medium, and is used for returning the auditing result of the medium information of the target resource transfer medium contained in the attribution change block to the attribution change processing node;
And the transfer module is used for transferring the server node to which the target resource transfer medium belongs from the first server node to the second server node under the condition that the auditing result represents that the auditing is passed.
16. A resource transfer medium attribution changing device based on a blockchain system, which is applied to a first server node in the blockchain system, the device comprising:
the first verification module is used for acquiring a home change request triggered by a target account aiming at an associated target resource transfer medium and verifying home information corresponding to request information corresponding to the home change request;
the second verification module is used for verifying the number carrying authority of the target resource transfer medium when the attribution information indicates that the current attribution server node of the target resource transfer medium is the first server node, and obtaining an authority auditing result;
the block construction module is used for constructing a attribution change block matched with the request information in the block chain system under the condition that the authority auditing result represents that auditing is passed; the home change processing node is used for transmitting the home change block to a second service side node when the home change block meets a second verification condition; the second server node is a server node after the attribution change of the target resource transfer medium, and is used for returning the auditing result of the medium information of the target resource transfer medium contained in the attribution change block to the attribution change processing node; the attribution change processing node is further used for transferring the server node to which the target resource transfer medium belongs from the first server node to the second server node under the condition that the auditing result represents that the auditing is passed.
17. A resource transfer medium attribution changing device based on a blockchain system, which is applied to a main control node in the blockchain system, and is characterized in that the device comprises:
the acquisition module is used for responding to a request of the target account for the server list and acquiring a pre-stored server list;
the first sending module is used for returning the service side list to the target account;
the second sending module is used for transmitting the attribution change request to an attribution change processing node under the condition that the attribution change request triggered by the target account aiming at a second service side node contained in the service side list is received; the home change processing node is configured to transfer, from a first server node to the second server node, a server node to which a target resource transfer medium belongs, based on request information corresponding to the home change request.
18. A resource transfer medium attribution changing system based on a block chain system is characterized in that the resource transfer medium attribution changing system comprises a main control node, an attribution changing processing node, a first service side node and a second service side node, wherein,
the main control node is used for responding to a request of a target account for a server list and acquiring a pre-stored server list; returning the service side list to the target account;
The master control node is further configured to transmit, when receiving a home change request triggered by the target account for the second server node included in the server list, the home change request to the home change processing node;
the attribution change processing node is configured to receive the attribution change request triggered by the target account for the associated target resource transfer medium, and transmit request information corresponding to the attribution change request to the first server node when the request information meets a first verification condition;
the first service side node is configured to obtain the home change request triggered by the target account for the associated target resource transfer medium, and verify home information corresponding to request information corresponding to the home change request; when the attribution information indicates that the service side node to which the target resource transfer medium currently attributions is the first service side node, verifying the number carrying authority of the target resource transfer medium and obtaining an authority auditing result;
the home change processing node is further configured to transmit the home change block to the second server node based on the request information when the home change block meets a second verification condition;
The second service side node is configured to return an audit result of the media information of the target resource transfer media included in the home change block to the home change processing node;
the attribution change processing node is further configured to transfer, from the first server node to the second server node, a server node to which the target resource transfer medium belongs, if the audit result indicates that the audit is passed.
19. A computer device comprising a memory and a processor, the memory storing a computer program, characterized in that the processor implements the steps of the method of any of claims 1-14 when the computer program is executed.
20. A computer readable storage medium, on which a computer program is stored, characterized in that the computer program, when being executed by a processor, implements the steps of the method of any of claims 1-14.
21. A computer program product comprising a computer program, characterized in that the computer program, when being executed by a processor, implements the steps of the method of any of claims 1-14.
CN202310337430.1A 2023-03-31 2023-03-31 Resource transfer medium attribution changing method and device based on block chain system Pending CN116319792A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202310337430.1A CN116319792A (en) 2023-03-31 2023-03-31 Resource transfer medium attribution changing method and device based on block chain system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202310337430.1A CN116319792A (en) 2023-03-31 2023-03-31 Resource transfer medium attribution changing method and device based on block chain system

Publications (1)

Publication Number Publication Date
CN116319792A true CN116319792A (en) 2023-06-23

Family

ID=86803197

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202310337430.1A Pending CN116319792A (en) 2023-03-31 2023-03-31 Resource transfer medium attribution changing method and device based on block chain system

Country Status (1)

Country Link
CN (1) CN116319792A (en)

Similar Documents

Publication Publication Date Title
Ma et al. Blockchain for digital rights management
CN109417478B (en) Multi-link cipher logical block chain
KR101974060B1 (en) Method and system for validating ownership of digital assets using distributed hash tables and peer-to-peer distributed decoys
CN111047324B (en) Method and apparatus for updating a set of public keys at a blockchain node
CN111523133B (en) Block chain and cloud data collaborative sharing method
CN111556120B (en) Data processing method and device based on block chain, storage medium and equipment
CN110096903B (en) Asset verification method based on block chain and block chain network system
CN111526197B (en) Cloud data secure sharing method
CN110881063A (en) Storage method, device, equipment and medium of private data
US20200387859A1 (en) Methods, Application Server, Block Chain Node and Media For Logistics Tracking and Source Tracing
CN112801778B (en) Alliance type bad asset block chain system
CN115314321B (en) Searchable encryption method based on block chain without need of secure channel
Ma et al. CP‐ABE‐Based Secure and Verifiable Data Deletion in Cloud
Tu et al. Privacy‐Preserving Outsourced Auditing Scheme for Dynamic Data Storage in Cloud
Xu et al. Towards efficient verifiable multi-keyword search over encrypted data based on blockchain
CN110351292A (en) Private key management method, device, equipment and storage medium
Xiao et al. Blockchain‐based reliable image copyright protection
CN113722749A (en) Data processing method and device for block chain BAAS service based on encryption algorithm
CN113342802A (en) Method and device for storing block chain data
CN115964730A (en) Block chain information storage method based on alliance chain multi-chain
Deepika et al. Blockchain-based decentralized security using Crypto-Proof of Stake for securing sensitive personal health care records
CN116319792A (en) Resource transfer medium attribution changing method and device based on block chain system
CN110798321B (en) Article information service method based on block chain
Liu et al. Video data integrity verification method based on full homomorphic encryption in cloud system
Qureshi et al. Secure and anonymous multimedia content distribution in peer-to-peer networks

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