Disclosure of Invention
In order to enable the stakeholders to master the situation of the related asset information, especially, for example, a manager or even a flow direction of the whole-process monitoring money release, and prevent the information from being tampered, the application provides an asset management system based on a blockchain, a user account opening method, an asset registration and uploading method, an asset transfer method and an asset query method which use the system.
In a first aspect of the present invention, there is provided a blockchain-based asset management system comprising
The service subsystem comprises a user account opening unit, a user operation unit and an asset information query unit;
the block chain service subsystem comprises an account opening setting unit and an asset information recording unit, wherein
The user account opening unit is used for collecting enterprise information of a user to be subjected to account opening;
the account opening setting unit is used for generating a secret key pair associated with the user and setting the operation authority of the secret key pair for an account of the user, so that account information is submitted to the affiliated blockchain to generate an account blockchain address corresponding to the user and broadcast the account blockchain address to all nodes of the blockchain;
a user operation unit for submitting an asset information change request of the account to the asset information recording unit in response to a user operation;
the asset information recording unit submits an asset information change request, an account blockchain address, a key pair and an associated user account blockchain address corresponding to asset change of the user to the blockchain, so that the blockchain returns a change identification to the asset information recording unit, and the asset information recording unit records the asset information change;
the asset information querying unit is configured to query the asset information modification in response to input of a modification identifier.
Optionally, the blockchain sends the change identification to the associated user account.
Optionally, the account opening setting unit sets a plurality of key pairs for the same account, where the plurality of key pairs correspond to different account operation rights.
Optionally, the key pair is stored in a database of the system.
Another aspect of the present invention provides a method for user account opening using the system of the first aspect, including
The user account opening unit collects enterprise information of users to be subjected to account opening;
an account opening setting unit generates a secret key pair associated with the user and sets the operation authority of the secret key pair for an account of the user, so that account information is submitted to a affiliated blockchain;
and the blockchain generates an account blockchain address corresponding to the user and broadcasts the account blockchain address to all nodes of the blockchain.
Another aspect of the invention provides a method of asset registration chaining using the system of the first aspect, comprising
The user account opening unit is used for responding to the user login account to collect asset information registered by the user in the account;
the asset information recording unit searches an account blockchain address and key pair according to enterprise information of a login user, and submits a request to a blockchain for the asset information, the account blockchain address and key pair registered by the user;
the blockchain returns the asset registration identification to the asset information recording unit to cause the asset information recording unit to record asset registration information.
Alternatively, the process may be carried out in a single-stage,
a user logs in an account through a short message verification code;
the asset information recording unit extracts a public key of a user needing to write asset information, and encrypts the asset information needing to be written through the public key;
each node in the block chain checks the validity of the submitting request through a consensus mechanism, and after checking, a new data block is added to the data storage node of the user;
another aspect of the present invention provides an asset transfer method using the system of the first aspect, comprising
The user account opening unit is used for responding to the user login account to collect asset information registered by the user in the account;
the asset information recording unit searches an account blockchain address and key pair according to enterprise information of a login user, and submits a request to a blockchain for the asset information, the account blockchain address and key pair registered by the user;
the asset information recording unit responds to a request of a user for transferring registered asset information to an associated account and submits the asset information registered by the user, the account blockchain address, the key pair and the associated account blockchain address to a blockchain;
the blockchain returns an asset transfer identification to the asset information recording unit to cause the asset information recording unit to record the transfer information.
Another aspect of the present invention provides a method of asset querying using the system of the first aspect, comprising
And the asset information inquiry unit sends an inquiry request to the asset information recording unit according to the change identification.
Optionally, the method comprises
Inquiring a user to log in an account through a short message verification code, and requesting to read asset change information of an associated user;
the asset information recording unit submits the request to a blockchain;
each node in the block chain checks the validity of the submitting request through a consensus mechanism, and after the validity is checked, data in a data block connected to the data storage node of the associated user is sent to the inquiring user node;
and the inquiring user decrypts the data in the data block by using the private key of the inquiring user to obtain the corresponding data.
The beneficial effects of the invention are as follows:
the system and method of the present invention enables parties joining the blockchain to oversee their own associated asset information, and the registration and transfer trace of that asset information is unalterable.
Detailed Description
In order to more clearly illustrate the present invention, the present invention will be further described with reference to preferred embodiments and the accompanying drawings. Like parts in the drawings are denoted by the same reference numerals. It is to be understood by persons skilled in the art that the following detailed description is illustrative and not restrictive, and that this invention is not limited to the details given herein.
As shown in FIG. 1, and still taking the situation described in the background, enterprise A10, provider B12, provider C14, the manager 16 joins the blockchain through an asset management system installed on the manager 16 server.
As shown in fig. 2, the blockchain asset management system 20 includes:
the service subsystem 201 comprises a user account opening unit, a user operation unit and an asset information query unit;
the blockchain service subsystem 203 comprises an account opening setting unit and an asset information recording unit, wherein
The user account opening unit is used for collecting enterprise information of a user to be subjected to account opening, and takes a provider C14 as an example in the examples of fig. 1 and 2;
the account opening setting unit is used for generating a secret key pair associated with the user and setting the operation authority of the secret key pair for an account of the user, so that account information is submitted to the affiliated blockchain to generate an account blockchain address corresponding to the user and broadcast the account blockchain address to all nodes of the blockchain;
a user operation unit for submitting an asset information change request of the account to the asset information recording unit in response to a user operation;
the asset information recording unit submits an asset information change request, an account blockchain address, a key pair and an associated user account blockchain address corresponding to asset change of the user to the blockchain, so that the blockchain returns a change identification to the asset information recording unit, and the asset information recording unit records the asset information change;
the asset information querying unit is configured to query the asset information modification in response to input of a modification identifier.
Wherein the asset change includes asset registration, asset transfer, etc., i.e., operations corresponding to creation, addition and deletion, change, etc., of asset information. Such as asset changes between suppliers 12 and 14 due to purchasing transactions.
Preferably, the key pair is generated by an RSA encryption procedure.
The RSA encryption algorithm is fast, the characteristic that the RSA encryption algorithm is difficult to crack is utilized to encrypt and encode the complete authentication process, and then the encoding is added into the blockchain, so that the openness of the whole process is ensured, the privacy of a user is ensured, and meanwhile, the repudiation problem is avoided.
Furthermore, the RSA encryption algorithm encrypts a plaintext generated in the authentication process by using a public key of the user, and can only decrypt by using a private key of the user to acquire the information of the whole authentication process.
By using blockchain technology, it can be ensured that asset information is not tampered with, and user 14 can monitor changes to the asset through asset change identification, such as transaction ID. Other associated users, such as the warranty 16, the provider 12, may also provide asset change information from the system when needed.
In a preferred embodiment, the blockchain may selectively send the change identification to an associated user account through which the associated user can query the asset change information as soon as logging into his own account, while the information is truly valid and tamper-proof due to the blockchain technology.
In a preferred embodiment, the account opening setting unit sets a plurality of key pairs for the same account, wherein the plurality of key pairs correspond to different account operation rights.
This mainly considers that an enterprise creates an account, modifies enterprise information and modifies asset information, these operations often need to be handled by different people, and different people have different rights, for example, the rights to create an account, in the system, the threshold value is set to 10, and only if the threshold value exceeds 10, the rights to create an account can be provided.
In general, the key pair generated for the user is kept by the user, and in the embodiment of the invention, the key pair is stored in the database of the system to facilitate unified management because the use condition of paying money needs to be paid attention to as a guarantee manager of paying money.
Next, still taking provider 14 as an example, the processes of opening an account, asset linking, asset transfer, and asset querying, respectively, will be described.
Account opening
In another aspect, the present invention provides a method for user account opening by using the system, as shown in fig. 3, including
The user account opening unit collects enterprise information of the user 14 to be opened, such as unified enterprise credit code, enterprise name, enterprise description, organization number;
an account opening setting unit generates a key pair associated with the user 14 and sets operation authority of the key pair for an account of the user, so as to submit account information to the affiliated blockchain;
and the blockchain generates an account blockchain address corresponding to the user and broadcasts the account blockchain address to all nodes of the blockchain.
Through the above steps the user 14 has completed the opening of an account in the system. User 14 may also invite the associated enterprises to each complete an account opening in the system.
Asset registration chaining
Another aspect of the present invention provides a method of asset registration chaining using the system described above, as shown in fig. 4, comprising
The user account opening unit gathers asset information registered by the user in the account in response to the user 14 logging into his account;
the asset information recording unit searches an account blockchain address and key pair according to enterprise information (such as a transaction record and accounts receivable/payable) of a login user, and submits the asset information, the account blockchain address and key pair registered by the user to a blockchain;
the blockchain returns the asset registration identification to the asset information recording unit to cause the asset information recording unit to record asset registration information.
The key pair is searched, and is dependent on where the key pair is stored, if the key pair is stored by the user, the user uploads the key pair to the service subsystem until the block chain; if stored in the database, the database is searched.
In a preferred embodiment of the present invention,
a user logs in an account through a short message verification code;
the asset information recording unit extracts a public key of a user needing to write asset information, and encrypts the asset information needing to be written through the public key;
and each node in the block chain checks the validity of the submitted request through a consensus mechanism, and after checking, a new data block is added to the data storage node of the user.
Asset transfer
Another aspect of the present invention provides a method of asset transfer using the above system, as shown in FIG. 5, comprising
The user account opening unit is used for responding to the user login account to collect asset information registered by the user in the account;
the asset information recording unit searches an account blockchain address and key pair according to enterprise information of a login user, and submits a request to a blockchain for the asset information, the account blockchain address and key pair registered by the user;
the asset information recording unit responds to a request of a user for transferring registered asset information to an associated account and submits the asset information registered by the user, the account blockchain address, the key pair and the associated account blockchain address to a blockchain;
the blockchain returns an asset transfer identification to the asset information recording unit to cause the asset information recording unit to record the transfer information.
Asset query
In another aspect, the present invention provides a method for querying assets using the system, including
And the asset information inquiry unit sends an inquiry request to the asset information recording unit according to the change identification.
Optionally, the method comprises
Inquiring a user to log in an account through a short message verification code, and requesting to read asset change information of an associated user;
the asset information recording unit submits the request to a blockchain;
each node in the block chain checks the validity of the submitting request through a consensus mechanism, and after the validity is checked, data in a data block connected to the data storage node of the associated user is sent to the inquiring user node;
and the inquiring user decrypts the data in the data block by using the private key of the inquiring user to obtain the corresponding data.
It should be understood that the foregoing examples of the present invention are provided merely for clearly illustrating the present invention and are not intended to limit the embodiments of the present invention, and that various other changes and modifications may be made therein by one skilled in the art without departing from the spirit and scope of the present invention as defined by the appended claims.