CN110334525A - One kind being based on block chain multilayer alliance formula account management system and method - Google Patents

One kind being based on block chain multilayer alliance formula account management system and method Download PDF

Info

Publication number
CN110334525A
CN110334525A CN201910434697.6A CN201910434697A CN110334525A CN 110334525 A CN110334525 A CN 110334525A CN 201910434697 A CN201910434697 A CN 201910434697A CN 110334525 A CN110334525 A CN 110334525A
Authority
CN
China
Prior art keywords
account
tissue
layer
integral
alliance
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN201910434697.6A
Other languages
Chinese (zh)
Other versions
CN110334525B (en
Inventor
朱世炜
严跃
于震
张岩
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Jihuiduo (beijing) Technology Co Ltd
Original Assignee
Jihuiduo (beijing) Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Jihuiduo (beijing) Technology Co Ltd filed Critical Jihuiduo (beijing) Technology Co Ltd
Priority to CN201910434697.6A priority Critical patent/CN110334525B/en
Publication of CN110334525A publication Critical patent/CN110334525A/en
Application granted granted Critical
Publication of CN110334525B publication Critical patent/CN110334525B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F21/00Security arrangements for protecting computers, components thereof, programs or data against unauthorised activity
    • G06F21/60Protecting data
    • G06F21/604Tools and structures for managing or administering access control systems
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F21/00Security arrangements for protecting computers, components thereof, programs or data against unauthorised activity
    • G06F21/60Protecting data
    • G06F21/62Protecting access to data via a platform, e.g. using keys or access control rules
    • G06F21/6218Protecting access to data via a platform, e.g. using keys or access control rules to a system of files or objects, e.g. local or distributed file system or database
    • 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

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Business, Economics & Management (AREA)
  • General Physics & Mathematics (AREA)
  • Physics & Mathematics (AREA)
  • Computer Hardware Design (AREA)
  • Accounting & Taxation (AREA)
  • Software Systems (AREA)
  • General Health & Medical Sciences (AREA)
  • General Engineering & Computer Science (AREA)
  • Bioethics (AREA)
  • Health & Medical Sciences (AREA)
  • Finance (AREA)
  • Computer Security & Cryptography (AREA)
  • Automation & Control Theory (AREA)
  • Databases & Information Systems (AREA)
  • Development Economics (AREA)
  • Economics (AREA)
  • Marketing (AREA)
  • Strategic Management (AREA)
  • Technology Law (AREA)
  • General Business, Economics & Management (AREA)
  • Management, Administration, Business Operations System, And Electronic Commerce (AREA)

Abstract

The invention discloses one kind to be based on block chain multilayer alliance formula account management system, the account management system includes the framework of multiple levels, the tissue of each layer is created according to framework level, each tissue possesses the account book of oneself, and the account data of each tissue is respectively stored in respective account book;Wherein, the level is from top to bottom are as follows: system management layer, service provider layer, trade company's layer and client layer.This system belongs to the organizational form of alliance's formula, and each layer can create multiple tissues, or new tissue is allowed to be added;High level provides service to low layer, the data between organizing, and passes through the limitation of intelligent contract, shared or modification account book;When new tissue will be added in this alliance, after obtaining alliance's agreement, it is only necessary to create the organization node of oneself and intelligent contract is installed, greatly improve the scalability of system.

Description

One kind being based on block chain multilayer alliance formula account management system and method
Technical field
The invention belongs to block chain technical fields, and in particular to one kind is based on formula account management system, block chain multilayer alliance System.
Technical background
During business activity and internal management of a company, permission control problem is inevitably encountered, in order to meet Business demand of the system under each application scenarios, and improve the security performance of system, it is necessary to not to participation block catenary system Same tissue and different roles carry out permission differentiation, using multi-layer framework way to manage, all points accounts of systematicness management.
When block chain technical application is to increasingly complex scene, participant is often enterprise, mechanism etc. in industry, For factors such as safety, performances, need to carry out more careful management to the permission of participant in the chain of region.
The current technology for solving account rights management is to add different Role Dilemmas in the database for different roles Field, the value of field is different, represents different permissions, and when method in user's access system, system determines whether to meet Permission, then selection lets pass or gives a warning and program is prevented to continue to execute, and so realizes rights management.
But under prior art, if database is attacked, rights field is modified, it is easy to be caused whole The permission of a system is out of control, and the security requirement to database of this method is higher, and the safety for improving system also will increase dimension The cost of shield.For example, existing integrating system relies primarily on all historical transactional informations of database purchase, historical information and account When user data meets with attack, it is likely that can be modified or be emptied, safety cannot ensure completely;The mistake of the database of centralization It will affect the operation of whole system.
In addition, if possessing the information in the account malicious modification database of access data base authority, will cause irreversible Influence, the data before cannot giving for change again;It needs repeatedly to back up database if this problem to be solved, this Also increase the maintenance cost of database.
Summary of the invention
Drawbacks described above based on the prior art, the object of the present invention is to provide one kind to be based on block chain multilayer alliance formula account Management system, to solve the problems, such as that existing account management system tissue development is poor, safety is not high.
In order to solve the above technical problems, an aspect of of the present present invention, provides a kind of based on block chain multilayer alliance formula account Management system, the account management system include the framework of multiple levels, create the tissue of each layer according to framework level, and each group The account book for possessing oneself is knitted, the account data of each tissue is respectively stored in respective account book.
Further, the level is from top to bottom are as follows:
System management layer, organized and all accounts for managing;
Service provider layer, for managing various customized services to trade company or user;
Trade company's layer, for the service using upper layer and provides service to user, that is to say, that next layer is provided using upper layer Service, and provide service to next layer;
Client layer, for inquiring user account information.
Further, when certain level of alliance's formula account management system needs to increase new tissue, then one is created newly Account book, and assign in the account book the intelligent contract method that the tissue has permission calling.
Further, the account access right of each tissue in four layer architectures of formation is different, wherein whole system is only There is a system administrative account, possess the highest permission of account Rights Management System, all sides in intelligent contract can be called Method, system administrative account are can uniquely to issue basic integral, and realize to the hair integrated in system by control basis integral The control of row total amount;System supports multiple service provider accounts, and can be with horizontal extension, and each service provider account is one corresponding Independent commerce services, can receive system administrative account to its provide basis integral, can by it is customized rule to Trade company provide basis integral, can also by it is customized rule to ordinary user provide integrate, service provider account possess with Its corresponding Information Statistics query function;System supports multiple merchant accounts, can receive system administrative account or some clothes The basis integral that main body account of being engaged in is provided to it, can be provided to ordinary user by custom rule and be integrated, he possesses trade company Information Statistics query function, and transferred accounts according to set rule using integral trading with service provider;User account, It can receive service provider or the integral that trade company provides, and transfer accounts between trade company.
Further, increasing the process that one is organized newly in an existing level includes:
Former channel configuration file is updated, new tissue is added in channel configuration file, starts new organization node, by node Channel is added;
Newly-increased intelligence contract assigns new tissue be capable of calling method permission for the intelligence contract;
The new intelligent contract of installation initializes intelligent contract, and the endorsement strategy of intelligent contract is arranged.
Further, the system administrative account includes: to the method for integration managing
Basic points account is created, by incoming basis integral number, basic balance of points, creates an account object and account Class types carry out the creation of basic integral;
Basis integral is provided, and by the incoming channel name for receiving basis integral, intelligent contract name, receives basic points account Number, description information, provides the basic time of integration, channel, transaction number, account trading type at the amount for providing basis integral This nine parameter classes carry out integral granting;
Basis integral transaction by the incoming channel name for receiving account, intelligent contract name, is produced account, receives account, is turned Account, description of transferring accounts, exchange hour, channel, transaction number, account trading type this ten parameters carry out integral transaction;
Basic points account is inquired, is inquired by incoming basis integral number;
Basic points account transactions history is inquired, inquiry transactions history is carried out by incoming basis integral number.
Further, the intelligent contract includes operation layer, entry level and physical layer, wherein operation layer is whole business Rule is specified, and is the combination of entity layer data and logic, and physical layer provides structural body for operation layer and reads and writes the side of database Method, wherein it is every to increase a tissue, then only increase an entry level, if business changes, only modifies in operation layer Corresponding method.
Based on another aspect of the present invention, a kind of method based on block chain multilayer alliance formula account management is additionally provided, The described method includes:
Different framework levels is set, and different levels has different administration authorities;
The tissue of each layer is created according to framework level, each tissue possesses the account book of oneself, the account data of each tissue It is respectively stored in respective account book;
When certain level of alliance's formula account management system needs to increase new tissue, then a new account book is created, and The intelligent contract method that the tissue has permission calling is assigned in the account book.
Further, the framework level includes four layer tissue frameworks from top to bottom, and the account in tissue is respectively to be System account executive, service provider account, merchant account and user account, wherein the system administrative account, for issuing basis Integral carries out overall control to the basis integral of distribution;The service provider account, for buying basis to system administrative account Integral provides basis integral to trade company by customized rule, and possesses corresponding Information Statistics query function;The trade company Account, the basis integral provided for receiving system administrative account or some service provider account to it, passes through customized rule Basis integral then is provided to user account, and possesses the Information Statistics query function of corresponding trade company;The user account, is located at The bottom is received the basis integral of service provider account or merchant account granting, is integrated when trading with trade company using the basis.
Further, the method also includes: in an existing level increase one or more tissues newly, comprising:
Former channel configuration file is updated, new tissue is added in channel configuration file, starts new organization node, by node Channel is added;
Newly-increased intelligence contract assigns new tissue be capable of calling method permission for the intelligence contract;
The new intelligent contract of installation initializes intelligent contract, and the endorsement strategy of intelligent contract is arranged.
Compared with prior art, disclosed in this invention a kind of based on block chain multilayer alliance formula account management system and side Method has the following technical effect that
(1) the multilayer alliance formula account Rights Management System based on block chain can satisfy more complicated business in the present invention Service request can accommodate service content and distinguish totally different service provider, can satisfy in different commerce services to integrating system Rights management demand, can ensure the stabilization and safety of system of account.
(2) the intelligent contract of system of the invention uses the three-tier architecture of weak coupling, respectively entry level, operation layer and Physical layer;Operation layer provides all publicly-owned methods for entry level, and physical layer provides structural body for operation layer and reads and writes database Method, operation layer and physical layer are all identical for entry level;When business has change, as long as in modification operation layer Corresponding method does not need the method in modification physical layer.
(3) in the system of the present invention, when needing to increase a tissue, because of all publicly-owned methods that operation layer provides It is all identical, as long as so increasing an entrance, according to the permission that this is organized, for the business in this entrance imparting extent of competence Publicly-owned method in layer.
(4) in system of the invention, each tissue possesses multiple nodes and multiple users, intelligent contract according to tissue not Together, multiple entry files are divided into, select different entry files that there is different access authority, increase an entry file newly, The intelligent contract method that the tissue has permission calling is assigned in file, then again from the entry file as installation path, installation And instantiate intelligent contract.
Detailed description of the invention
Fig. 1 is using a kind of framework based on block chain multilayer alliance formula account management system described in the embodiment of the present invention Figure.
Fig. 2 is flow diagram of each level account described in the embodiment of the present invention to integration managing.
Fig. 3 is a kind of flow chart based on block chain multilayer alliance formula account management method described in the embodiment of the present invention.
Specific embodiment
Technical solution in order to enable those skilled in the art to better understand the present invention, with reference to the accompanying drawing and specific embodiment party Present invention is further described in detail for formula.
Shown in referring to Fig.1, the embodiment of the invention discloses one kind to be based on block chain multilayer alliance formula account management system, should Alliance's formula account management system includes four layer architectures namely system management layer, service provider layer, trade company's layer and client layer, and every layer Permission possessed by framework is different, wherein the extent of competence of system management layer is maximum, service provider level it, the power of client layer It is relatively minimal to limit range.It will be apparent to a skilled person that the account management system of the embodiment of the present invention includes four Layer architecture, but according to actual needs and the division of level function can also be framework more than four layers or lower than four layers Framework.
Specifically, only one system administrative account of whole system possesses the highest permission of account Rights Management System, All methods in intelligent contract can be called, system administrative account is can uniquely to issue basic integral, and pass through control base Plinth integral realizes the control to the total volume of issuing integrated in system;System supports multiple service provider accounts, and horizontal can expand Exhibition, the corresponding independent commerce services of each service provider account, can receive the basis that system administrative account is provided to it It integrates, basis integral can be provided to trade company by customized rule, it can also be by customized regular to ordinary user Integral is provided, service provider account possesses its corresponding Information Statistics query function;System supports multiple merchant accounts, can be with Receive the basis integral that system administrative account or some service provider account are provided to it, it can be by custom rule to general Integral is provided at general family, he possesses the Information Statistics query function of trade company, and trades with service provider according to set Rule uses integral deduction transaction;User account can receive service provider or the integral that trade company provides, and carry out with trade company It is used when transaction.
Each framework level creation has the tissue of each layer, and each tissue possesses the account book of oneself, the account number of each tissue According to being respectively stored in respective account book.
Specifically, by taking four layer architectures as an example, the account in the four layer architectures level includes: from top to bottom
System administrative account corresponds to system management layer, for issuing basic integral, carries out to the basis integral of distribution total Amount control;
Service provider account corresponds to service provider layer, for buying basis integral to system administrative account, by making by oneself The rule of justice provides basis integral to trade company or transfers accounts to merchant account, and possesses corresponding Information Statistics query function;For It transfers accounts to merchant account;
Merchant account corresponds to trade company's layer, provides for receiving system administrative account or some service provider account to it Basis integral, basis integral is provided to user account by customized rule, and possesses the Information Statistics of corresponding trade company Query function;
User account corresponds to client layer, receives the basis integral of service provider account or merchant account granting, with trade company It is integrated when transaction using the basis, can also inquire the account information of the user;
Wherein, all system administrative account information are stored in system administration account book, and all service provider account informations are deposited Storage is in service provider account book, and all merchant account information are stored in trade company's account book, and all user account informations are stored in use In the account book of family, the account book that the tissue of each level possesses is independent.
When certain level of alliance's formula account management system needs to increase new tissue, then a new account book is created, and The intelligent contract method that the tissue has permission calling is assigned in the account book.
Specifically, intelligent contract of the invention uses the three-tier architecture of weak coupling, includes operation layer, entry level and reality Body layer, wherein operation layer provides all publicly-owned methods for entry level, and physical layer provides structural body and read-write database for operation layer Method, operation layer and physical layer are identical for entry level, wherein it is every increase by one tissue, then only increase by one Entry level only modifies the corresponding method in operation layer if business changes, and does not need the side in modification physical layer Method.Respectively entry level, operation layer and physical layer, in the prior art, each tissue create an intelligent contract, and an intelligence is closed All methods are contained in about, modify entire intelligent contract when business has change, but the present invention has in business and changes When change, as long as the corresponding method in modification operation layer, the method in modification physical layer is not needed.
The present invention is divided into multiple entry files according to different tissues, for example is segmented into user account entrance, trade company's account Four family entrance, service provider account portals, system administrative account entrance entry files, different entry files have different Access authority;It selects different entry files to possess different permissions when may require that user's access, forms and unique pass through intelligence It can contract entrance management authority method.Four entry files have respectively corresponded four layer tissues, four intelligent contracts, it may be assumed that Yong Huzhi Energy contract, trade company's intelligence contract, service provider intelligence contract, system administration intelligence contract constitute a total intelligence and close About.Each intelligence contract stores the data of corresponding tissue, facilitates the inquiry and statistics of data.
By the way that the corresponding four intelligent contracts of four tissues are combined into a big intelligent contract, to manage a whole set of block Chain alliance system;Such as: the method that can be called in each intelligence contract is different.From can call method mostly with it is few in reached control Account management permission processed;Such as: user's intelligence contract intelligently calls the method for creating an account and inquiring account, but trade company intelligently closes Account about not only can be created an account and inquire, there are also the method for permission calling branch basis integral, trade company's intelligence contract just compares The extent of competence of user's intelligence contract is high;Similarly, more, service provider account, which possesses to have permission, calls query statistic method, System administrative account possesses the method for having permission and calling and providing basis integral and provide basis integral total value statistics
In the embodiment of the present invention, the process for increasing a tissue newly in an existing level includes:
Former channel configuration file is updated, new tissue is added in channel configuration file, starts new organization node, by node Channel is added;
Newly-increased intelligence contract assigns new tissue be capable of calling method permission for the intelligence contract;
The new intelligent contract of installation initializes intelligent contract, and the endorsement strategy of intelligent contract is arranged.
The prior art is every to increase a tissue, needs to rewrite a new intelligent contract, each intelligence contract is complete Different, for using the tissue development of block chain alliance chain very poor.And in the system of the present invention, when needing to increase by one When tissue, because all publicly-owned methods that operation layer provides are all identical, as long as increasing an entrance, according to this tissue Permission assigns the publicly-owned method in the operation layer in extent of competence for this entrance;Such as: there are three groups in business scenario It knits, is user, trade company, system administrative account respectively.User can be created an account by entry call, inquire account method;Quotient Family can be created an account by entry call, inquire account, transfer account method;System administrative account can be created by entry call Account, provides basic integration method at inquiry account;If a new tissue: service provider trade company is added, as long as creation one New entrance, in entrance addition, service provider trade company has permission the method for calling, including creates an account, inquires account, the side of transferring accounts Method;This method by entry file administration authority has very strong scalability, can be adapted to completely various businesses scene.
Intelligent contract needs endorsement to order strategy, is exemplified below when instantiation in present example:
User's intelligence contract:
OR (' PFMSP.member ', ' SMCTMSP.member ', ' MCTMSP.member ', ' CSTMSP.mem ber '), Any one in the signature of 4 tissues is requested to be ok.
Trade company's intelligence contract:
OR (' PFMSP.member ', ' SMCTMSP.member ', ' MCTMSP.member ') requests the signature of 3 tissues In any one be ok.
Service provider intelligence contract: OR (' PFMSP.member ', ' SMCTMSP.member ') requests the label of 2 tissues Any one in name is ok.
System administration intelligence contract: OR (' PFMSP.member '), the signature of this tissue of Request System account executive.
Wherein, the system administrative account includes: to the method for integration managing
Basic points account is created, by incoming basis integral number, basic balance of points, creates an account object and account Class types carry out the creation of basic integral;Number of parameters is passed to by CheckArgsLength () method inspection;Pass through Whether the inquiry of QueryWallet () method has system account, judges whether to have created the account, if it does, returning to account The already present mistake in family;It whether is integer by the incoming basic balance of points of strconv.ParseInt () method judgement;Wound Account object type Wallet struct { } is built, basis integral number, basic balance of points, Account Type attribute is included, adjusts Account object is saved in world state database with wallet.Save () method;Return to account object.
Basis integral is provided, and by the incoming channel name for receiving basis integral, intelligent contract name, receives basic points account Number, description information, provides the basic time of integration, channel, transaction number, account trading type at the amount for providing basis integral This nine parameter classes carry out integral granting;Number of parameters is passed to by CheckArgsLength () method inspection;Pass through Whether the amount of the incoming granting basis integral of strconv.ParseInt () method judgement is positive integer;It calls across intelligent conjunction About call method InvokeOtherChaincode (), the method for calling the creation increment of intelligent contract where receiving account CreateIncrement (), to receive account creation increment;The creation increment method of calling system account executive simultaneously CreateIncrement () is that system account increases identical amount, is convenient to statistics and provides basis integral total value.
Basis integral transaction by the incoming channel name for receiving account, intelligent contract name, is produced account, receives account, is turned Account, description of transferring accounts, exchange hour, channel, transaction number, account trading type this ten parameters carry out integral transaction;Pass through Whether incoming the transferring accounts of strconv.ParseInt () method judgement is integer and is not zero;It calls and is called across intelligent contract Method InvokeOtherChaincode (), the method for calling the creation increment of intelligent contract where receiving account CreateIncrement (), to receive account creation increment;Print log;Call the creation of intelligent contract where producing account The method CreateIncrement () of increment, to produce account creation increment;
Basic points account is inquired, is inquired by incoming basis integral number;Pass through CheckArgsLength () Method inspection is passed to number of parameters;By all increments of GetWallet () method statistic and;It is looked by QueryWallet () Ask account information, judge whether there is, if there is account, account balance increase the increment and;Pass through json.Marshal () Account object is converted by value, then returns to the object.
Basic points account transactions history is inquired, inquiry transactions history is carried out by incoming basis integral number.Pass through CheckArgsLength () method inspection is passed to number of parameters;Basis integral is inquired by GetHistoryForKey () method Transactions history in the corresponding database of number, traverses the transactions history of return, the value of return is passed through json.Marshal () method is organized into account aggregation;Return to the set.
The network of the system of invention is underground, if it is desired into that must obtain authorization in network, according to account level Different tissues is created, each tissue possesses multiple nodes, multiple users, and user is obtained by account service Module registers and corresponded to Certificate file and key file;When accessing block chain network by middle layer using certain user node, the node weight is selected Intelligent contract is installed and instantiated to the intelligent contract entrance of limit, and the node can verify certificate when calling intelligent contract at this time is It is no that there is permission;It selects different entry files to possess different permissions when will limit user's access, forms unique pass through The method that intelligent contract entrance carrys out administration authority;This method makes a newly-increased tissue become very simple, as long as newly-increased one A entry file assigns the intelligent contract method that the tissue has permission calling in file, then installs from entry file path And intelligent contract is instantiated, greatly improve the scalability of system.
Control process work narration in detail to be traded to the present invention using block chain network below:
1, new user carries out authentication registration authorization (CA) registration using account service module;First based on Fabric network Multilayer alliance formula account Rights Management System is divided into four layer-management frameworks, the corresponding membership credentials of configuration account, according to system tray The characteristics of structure and alliance's chain, (1) we will carry out the configuration of Fabric CA server-side and client, realize Fabric system MSP Account rights management;(2) then different according to the entrance of installation and deployment intelligence contract, secondary pipe is carried out to account administration authority Reason;Wherein, in the first account right management method, Fabric CA is the MemberService group in super account book Fabric Part, the management to the letter of identity of entity each in network are main to realize: being responsible for the identity pipe of all entities in Fabric network Reason, registration, cancellation including identity etc.;It is responsible for certificate management, including ECert (letter of identity), TCerts (certificate of fair) etc. Granting and cancellation;
2, account service module generates the private key of user certificate file and user;
3, client submits transaction motion, this request is submitted to the endorsement module of the tissue, by endorsement module verification Affairs;The network verification of system is connected based on the secure transport layer protocol of grpc, and what password Core Generator default generated is used for The server-side certificate used when node is as server-side is not included in account object (with card of accounts same level), network In verifying system, when client (such as peer) and server-side (such as orderer) is in order to smoothly establish secure connection, standard is used TLS handshake procedure, held tls voucher is respectively provided, the verifying of identity is carried out.
4, endorsement authentication module inspection endorsement strategy determines the correct distribution of specified peer node, endorsed visitor The private key signature of family end node users and the letter of identity file for carrying client node user, and body is carried out according to signature Part verifying, after verifying identity passes through, the method for the intelligent contract called in the simulation execution request;The output specifically simulated is just It is intelligent contract as a result, being that readset closes and write set respectively;It executes after completing to the transaction results private of the endorsement module Key is signed and returns to client;
It during above-mentioned endorsement node verification, needs to verify each affairs, to ensure to modify without other affairs The data that he has read;For in other words, which ensure that execute after the approval time data that read there is no variation, because This implementing result is still effective, and can be submitted to account book slip condition database;If read data by another affairs more Change, then the same transaction in the block is marked as in vain, and is not applied to the slip condition database of account book;Client application journey Sequence is warned, and can be handled mistake in appropriate circumstances or be attempted to submit request again;
5, after client receives Transaction Information after signature with endorsement node that one or more endorsement nodes are sent, Judge whether this motion request passes through, if passed through, just initiates to update application, sequence clothes to sequence service module by sdk It is only all from network without the full content for checking the affairs after business module receives the request that client is sent Affairs are received in channel, the affairs in identical channel are packaged, are sent to common recognition module, and monitor common recognition module;
6, after module of knowing together receives the Transaction Information of encapsulation, message queue is put into after being ranked up sequentially in time In, the information sequence that common recognition module ensure that all sequence service modules are seen all is identical;
7, information is pulled from the message queue being put into after common recognition module sequence by sequence service module;
8, sequence service module by for from one in the message queue for module of knowing together in each channel for pulling or The multiple affairs of person create block, and packed block is sent to the communication module in organizing in channel by sequence service module, by Communication section module receives new block;
9, the transaction set in new block will be verified by communication module;Block is submitted to local in peer accounting nodes Block chain before, can examine transaction all in the block, first according to endorsement strategy to detect whether it is in need into The node of row endorsement has all signed to transaction results, and the correctness of the load verifying signature according to transaction.Then, Peer can close the readset of transaction and carry out version detection, to ensure danger as the integrality and secondary consumption of data. Fabric increases the function of transaction con current control in parallel execute, and in block to increase the handling capacity of whole system It is submitted to and can guarantee that all data read are not all modified before block chain is written.And the transaction set in block Also it can be therefore added label, labeled as effectively or invalid;The block of generation can be added to affiliated by each channel On chain, for each effective affairs, the collection of writing of affairs can be all submitted in current status data library by accounting module;If because An affairs have been initiated for front, then have notified client application, affairs have been appended on the chain, and notifying should Whether affairs are verified or in vain.
One new service provider account accesses the process of this block chain network are as follows:
Former channel configuration file is updated, new tissue is added in channel configuration file, starts new organization node, by node Channel is added;
Newly-increased intelligence contract assigns new tissue be capable of calling method permission for the intelligence contract;
The new intelligent contract of installation initializes intelligent contract, and the endorsement strategy of intelligent contract is arranged.
Referring to shown in Fig. 3, another embodiment of the present invention additionally provides a kind of based on block chain multilayer alliance formula account pipe The method of reason, this method comprises:
Provide a kind of method based on block chain multilayer alliance formula account management, which comprises
Different framework levels is set, and different levels has different administration authorities;
The tissue of each layer is created according to framework level, each tissue possesses the account book of oneself, the account data of each tissue It is respectively stored in respective account book;
When certain level of alliance's formula account management system needs to increase new tissue, then a new account book is created, and The intelligent contract method that the tissue has permission calling is assigned in the account book.
For the present embodiment by taking four layer tissue frameworks as an example, the account in tissue is respectively system administrative account, service provider account Family, merchant account and user account, wherein system administrative account carries out the basis integral of distribution for issuing basic integral Overall control;Service provider account is sent out by customized rule to trade company for buying basis integral to system administrative account Basic integral is put, and possesses corresponding Information Statistics query function;Merchant account, for receiving system administrative account or some clothes The basis integral that main body account of being engaged in is provided to it provides basis integral to user account by customized rule, and possesses phase The Information Statistics query function for the trade company answered;The user account is located at the bottom, receives service provider account or merchant account The basis integral of granting, is integrated when trading with trade company using the basis.Every layer of permission possessed is different.
This method further include: increase one or more tissues newly in an existing level, comprising:
Former channel configuration file is updated, new tissue is added in channel configuration file, starts new organization node, by node Channel is added;
Newly-increased intelligence contract assigns new tissue be capable of calling method permission for the intelligence contract;
The new intelligent contract of installation initializes intelligent contract, and the endorsement strategy of intelligent contract is arranged.
Multilayer alliance formula account Rights Management System and method in the present invention based on block chain can satisfy more complicated Commerce services requirement, can accommodate service content and distinguish totally different service provider, can satisfy in different commerce services to integral The rights management demand of system can ensure the stabilization and safety of system of account.
Several preferred embodiments of the invention have shown and described in above description, but as previously described, it should be understood that the present invention Be not limited to forms disclosed herein, should not be regarded as an exclusion of other examples, and can be used for various other combinations, Modification and environment, and the above teachings or related fields of technology or knowledge can be passed through within that scope of the inventive concept describe herein It is modified.And changes and modifications made by those skilled in the art do not depart from the spirit and scope of the present invention, then it all should be in this hair In the protection scope of bright appended claims.

Claims (10)

1. one kind is based on block chain multilayer alliance formula account management system, which is characterized in that the account management system includes more The framework of a level, each framework level creation have the tissue of each layer, and each tissue possesses the account book of oneself, the account of each tissue User data is respectively stored in respective account book.
2. according to claim 1 be based on block chain multilayer alliance formula account management system, which is characterized in that the framework Level is from top to bottom are as follows:
System management layer, organized and all accounts for managing;
Service provider layer, for managing various customized services to trade company or user;
Trade company's layer using top service and provides service to the user of lower layer;
Client layer, for inquiring user account information.
3. according to claim 1 or 2 be based on block chain multilayer alliance formula account management system, which is characterized in that joining When certain level of alliance's formula account management system needs to increase new tissue, then a new account book is created, and assign in the account book Give the intelligent contract method that the tissue has permission calling.
4. according to claim 3 be based on block chain multilayer alliance formula account management system, which is characterized in that the four of formation The account access right of each tissue in layer architecture is different, wherein only one system administrative account of whole system possesses account The highest permission of family Rights Management System, can call all methods in intelligent contract, and system administrative account is uniquely can be with Distribution basis integral, and the control to the total volume of issuing integrated in system is realized by control basis integral;System is supported multiple Service provider account, and can receive system with horizontal extension, the corresponding independent commerce services of each service provider account The basis integral that account executive of uniting is provided to it can provide basis integral to trade company by customized rule, can also lead to It crosses customized rule and provides integral to ordinary user, service provider account possesses its corresponding Information Statistics query function; System supports multiple merchant accounts, can receive the basis product that system administrative account or some service provider account are provided to it Point, can be provided and be integrated to ordinary user by custom rule, he possesses the Information Statistics query function of trade company, and with clothes Business main body, which is traded, is transferred accounts according to set rule using integral;User account, can receive service provider or trade company provides Integral, and carry out between trade company transaction and transfer accounts.
5. according to claim 3 be based on block chain multilayer alliance formula account management system, which is characterized in that existing Increasing the process that one is organized in one level newly includes:
Former channel configuration file is updated, new tissue is added in channel configuration file, starts new organization node, node is added Channel;
Newly-increased intelligence contract assigns new tissue be capable of calling method permission for the intelligence contract;
The new intelligent contract of installation initializes intelligent contract, and the endorsement strategy of intelligent contract is arranged.
6. according to claim 4 be based on block chain multilayer alliance formula account management system, which is characterized in that the system Account executive includes: to the method for integration managing
Basic points account is created, by incoming basis integral number, basic balance of points, creates an account object and Account Type Class carries out the creation of basic integral;
Basis integral is provided, and is compiled by being passed to the channel name for receiving basis integral, intelligent contract name, the basic points account of receiving Number, the amount of providing basis integral, description information, provide the basic time of integration, channel, transaction number, account trading type this Nine parameter classes carry out integral granting;
Basis integral transaction, by the incoming channel name for receiving account, intelligent contract name, produce account, receive account, transfer accounts, Description, exchange hour, channel, transaction number, account trading type this ten parameters of transferring accounts carry out integral transaction;
Basic points account is inquired, is inquired by incoming basis integral number;
Basic points account transactions history is inquired, inquiry transactions history is carried out by incoming basis integral number.
7. according to claim 5 be based on block chain multilayer alliance formula account management system, which is characterized in that the intelligence Contract includes operation layer, entry level and physical layer, wherein operation layer is the specified of whole business rules, be entity layer data and The combination of logic, the method that physical layer provides structural body for operation layer and reads and writes database, wherein it is every to increase a tissue, then Only increase an entry level, if business changes, only modifies the corresponding method in operation layer.
8. a kind of method based on block chain multilayer alliance formula account management, which is characterized in that the described method includes:
Different framework levels is set, and different levels has different administration authorities;
The tissue of each layer is created according to framework level, each tissue possesses the account book of oneself, the account data difference of each tissue It is stored in respective account book;
When certain level of alliance's formula account management system needs to increase new tissue, then a new account book is created, and at this The intelligent contract method that the tissue has permission calling is assigned in account book.
9. the method according to claim 8 based on block chain multilayer alliance formula account management, which is characterized in that the frame Structure level includes four layer tissue frameworks, the account in tissue be respectively system administrative account, service provider account, merchant account and User account, wherein the system administrative account carries out overall control for issuing basic integral, to the basis integral of distribution; The service provider account provides base to trade company by customized rule for buying basis integral to system administrative account Plinth integral, and possess corresponding Information Statistics query function;The merchant account, for receiving system administrative account or some clothes The basis integral that main body account of being engaged in is provided to it provides basis integral to user account by customized rule, and possesses phase The Information Statistics query function for the trade company answered;The user account is located at the bottom, receives service provider account or merchant account The basis integral of granting, is integrated when trading with trade company using the basis.
10. the method according to claim 9 based on block chain multilayer alliance formula account management, which is characterized in that described Method further include: increase one or more tissues newly in an existing level, comprising:
Former channel configuration file is updated, new tissue is added in channel configuration file, starts new organization node, node is added Channel;
Newly-increased intelligence contract assigns new tissue be capable of calling method permission for the intelligence contract;
The new intelligent contract of installation initializes intelligent contract, and the endorsement strategy of intelligent contract is arranged.
CN201910434697.6A 2019-05-23 2019-05-23 Block chain based multi-layer alliance type account management system and method Active CN110334525B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910434697.6A CN110334525B (en) 2019-05-23 2019-05-23 Block chain based multi-layer alliance type account management system and method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910434697.6A CN110334525B (en) 2019-05-23 2019-05-23 Block chain based multi-layer alliance type account management system and method

Publications (2)

Publication Number Publication Date
CN110334525A true CN110334525A (en) 2019-10-15
CN110334525B CN110334525B (en) 2020-06-12

Family

ID=68139800

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910434697.6A Active CN110334525B (en) 2019-05-23 2019-05-23 Block chain based multi-layer alliance type account management system and method

Country Status (1)

Country Link
CN (1) CN110334525B (en)

Cited By (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112258180A (en) * 2020-10-19 2021-01-22 上海卓钢链科技有限公司 Community system based on alliance chain
CN112564913A (en) * 2020-11-26 2021-03-26 中国船舶工业系统工程研究院 Hierarchical management system, method and medium based on alliance chain
WO2021164194A1 (en) * 2020-02-17 2021-08-26 深圳壹账通智能科技有限公司 Reward point management method based on blockchain, and related apparatus
CN113411383A (en) * 2021-06-11 2021-09-17 深圳市好实再科技有限公司 Commodity information query method and system based on block chain and storage medium
CN114172735A (en) * 2021-12-11 2022-03-11 中国人民解放军战略支援部队信息工程大学 Double-chain mixed block chain data sharing method and system based on intelligent contract
CN114185997A (en) * 2022-02-17 2022-03-15 天津眧合数字科技有限公司 Pet information credible storage system based on block chain
CN114584474A (en) * 2022-03-04 2022-06-03 中国建设银行股份有限公司 Alliance block chain and layered deployment method
CN115309433A (en) * 2022-10-12 2022-11-08 江苏移动信息系统集成有限公司 Intelligent contract upgrading method and system based on block chain for role authority management
CN116346500A (en) * 2023-05-10 2023-06-27 飞天诚信科技股份有限公司 Method and system for realizing account control authority management through intelligent contracts

Citations (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107147735A (en) * 2017-05-12 2017-09-08 北京博晨技术有限公司 A kind of distributed account book system based on hierarchy
CN107239940A (en) * 2017-05-11 2017-10-10 北京博晨技术有限公司 Network trading method and device based on block catenary system
CN108173850A (en) * 2017-12-28 2018-06-15 杭州趣链科技有限公司 A kind of identity authorization system and identity identifying method based on block chain intelligence contract
CN108229943A (en) * 2018-01-19 2018-06-29 阿里巴巴集团控股有限公司 The method of adjustment of block chain remaining sum and device, electronic equipment
CN108629602A (en) * 2018-05-04 2018-10-09 武汉大学 A kind of food safety management System and method for based on block chain technology
CN108764911A (en) * 2018-06-05 2018-11-06 北京阿尔山金融科技有限公司 Interconnect network accumulated method of commerce and system
CN109523427A (en) * 2018-10-31 2019-03-26 广州乐快信息科技有限公司 A kind of operation system of intelligence gymnasium service management
CN109639689A (en) * 2018-12-18 2019-04-16 陕西医链区块链集团有限公司 A kind of more integral management systems of EOS block chain and its implementation
CN109743328A (en) * 2019-01-17 2019-05-10 杭州趣链科技有限公司 A kind of open cloud service platform of block chain
CN109743406A (en) * 2019-02-26 2019-05-10 北京工业大学 A kind of Internet of Things trust data service model based on block chain

Patent Citations (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107239940A (en) * 2017-05-11 2017-10-10 北京博晨技术有限公司 Network trading method and device based on block catenary system
CN107147735A (en) * 2017-05-12 2017-09-08 北京博晨技术有限公司 A kind of distributed account book system based on hierarchy
CN108173850A (en) * 2017-12-28 2018-06-15 杭州趣链科技有限公司 A kind of identity authorization system and identity identifying method based on block chain intelligence contract
CN108229943A (en) * 2018-01-19 2018-06-29 阿里巴巴集团控股有限公司 The method of adjustment of block chain remaining sum and device, electronic equipment
CN108629602A (en) * 2018-05-04 2018-10-09 武汉大学 A kind of food safety management System and method for based on block chain technology
CN108764911A (en) * 2018-06-05 2018-11-06 北京阿尔山金融科技有限公司 Interconnect network accumulated method of commerce and system
CN109523427A (en) * 2018-10-31 2019-03-26 广州乐快信息科技有限公司 A kind of operation system of intelligence gymnasium service management
CN109639689A (en) * 2018-12-18 2019-04-16 陕西医链区块链集团有限公司 A kind of more integral management systems of EOS block chain and its implementation
CN109743328A (en) * 2019-01-17 2019-05-10 杭州趣链科技有限公司 A kind of open cloud service platform of block chain
CN109743406A (en) * 2019-02-26 2019-05-10 北京工业大学 A kind of Internet of Things trust data service model based on block chain

Cited By (13)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2021164194A1 (en) * 2020-02-17 2021-08-26 深圳壹账通智能科技有限公司 Reward point management method based on blockchain, and related apparatus
CN112258180A (en) * 2020-10-19 2021-01-22 上海卓钢链科技有限公司 Community system based on alliance chain
CN112564913A (en) * 2020-11-26 2021-03-26 中国船舶工业系统工程研究院 Hierarchical management system, method and medium based on alliance chain
CN113411383B (en) * 2021-06-11 2022-12-06 深圳市好实再科技有限公司 Commodity information query method and system based on block chain and storage medium
CN113411383A (en) * 2021-06-11 2021-09-17 深圳市好实再科技有限公司 Commodity information query method and system based on block chain and storage medium
CN114172735A (en) * 2021-12-11 2022-03-11 中国人民解放军战略支援部队信息工程大学 Double-chain mixed block chain data sharing method and system based on intelligent contract
CN114172735B (en) * 2021-12-11 2023-07-14 中国人民解放军战略支援部队信息工程大学 Double-chain hybrid block chain data sharing method and system based on intelligent contracts
CN114185997A (en) * 2022-02-17 2022-03-15 天津眧合数字科技有限公司 Pet information credible storage system based on block chain
CN114584474A (en) * 2022-03-04 2022-06-03 中国建设银行股份有限公司 Alliance block chain and layered deployment method
CN115309433B (en) * 2022-10-12 2022-12-20 江苏移动信息系统集成有限公司 Intelligent contract upgrading method and system based on block chain for role authority management
CN115309433A (en) * 2022-10-12 2022-11-08 江苏移动信息系统集成有限公司 Intelligent contract upgrading method and system based on block chain for role authority management
CN116346500A (en) * 2023-05-10 2023-06-27 飞天诚信科技股份有限公司 Method and system for realizing account control authority management through intelligent contracts
CN116346500B (en) * 2023-05-10 2023-08-08 飞天诚信科技股份有限公司 Method and system for realizing account control authority management through intelligent contracts

Also Published As

Publication number Publication date
CN110334525B (en) 2020-06-12

Similar Documents

Publication Publication Date Title
CN110334525A (en) One kind being based on block chain multilayer alliance formula account management system and method
Wang et al. Blockchain-based data privacy management with nudge theory in open banking
CN110599181B (en) Data processing method, device and equipment based on block chain and storage medium
CN109522735A (en) A kind of data permission verification method and device based on intelligent contract
Hanada et al. Smart contracts for machine-to-machine communication: Possibilities and limitations
Johansen et al. Operating system support for mobile agents
CN108965468A (en) Block chain network service platform and its chain code installation method, storage medium
US7921299B1 (en) Partner sandboxing in a shared multi-tenant billing system
CN109981679A (en) The method and apparatus of affairs are executed in block chain network
CN110502927A (en) A kind of information processing method and relevant apparatus
US20170300701A1 (en) Secure and compliant execution of processes
CN107944837A (en) A kind of authority processing method, device and system
CN109547200A (en) Certificate distribution method and corresponding calculating equipment and medium in block chain network
CN113379485B (en) Hash algorithm and secondary quotation-based demand response bidding transaction method and system
CN108876669A (en) Course notarization system and method applied to multi-platform shared education resources
WO2020050454A1 (en) Method for providing bond collection and management service using bond asset-based cryptocurrency issuance
CN113641759A (en) Data privacy protection method in supply chain finance based on block chain technology
Mhamdi et al. Smart contracts for decentralized vehicle services
Xu et al. BIT: A blockchain integrated time banking system for community exchange economy
CN112350863A (en) Decentralized access control method and system based on transaction
US20070174113A1 (en) Enterprise incentive management
CN114626934A (en) Block chain-based multi-level wind control system and control method
Henry et al. Hire me fairly: towards dynamic resource-binding with smart contracts
KR102296991B1 (en) Mileage integrative platform service system based on blockchain
Yao et al. A medical device management system using smart contract on blockchain

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant