WO2022105038A1 - Method for defining on-chain data service specification in blockchain and applying service specification - Google Patents

Method for defining on-chain data service specification in blockchain and applying service specification Download PDF

Info

Publication number
WO2022105038A1
WO2022105038A1 PCT/CN2020/142465 CN2020142465W WO2022105038A1 WO 2022105038 A1 WO2022105038 A1 WO 2022105038A1 CN 2020142465 W CN2020142465 W CN 2020142465W WO 2022105038 A1 WO2022105038 A1 WO 2022105038A1
Authority
WO
WIPO (PCT)
Prior art keywords
data
information
chain
business
blockchain
Prior art date
Application number
PCT/CN2020/142465
Other languages
French (fr)
Chinese (zh)
Inventor
吴志雄
黄文峰
汪翔
朱秀桦
Original Assignee
南威软件股份有限公司
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 南威软件股份有限公司 filed Critical 南威软件股份有限公司
Publication of WO2022105038A1 publication Critical patent/WO2022105038A1/en

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/20Information retrieval; Database structures therefor; File system structures therefor of structured data, e.g. relational data
    • G06F16/22Indexing; Data structures therefor; Storage structures
    • G06F16/2291User-Defined Types; Storage management thereof
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/20Information retrieval; Database structures therefor; File system structures therefor of structured data, e.g. relational data
    • G06F16/23Updating
    • G06F16/2379Updates performed during online database operations; commit processing
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/20Information retrieval; Database structures therefor; File system structures therefor of structured data, e.g. relational data
    • G06F16/27Replication, distribution or synchronisation of data between databases or within a distributed database system; Distributed database system architectures therefor
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F21/00Security arrangements for protecting computers, components thereof, programs or data against unauthorised activity
    • G06F21/30Authentication, i.e. establishing the identity or authorisation of security principals
    • G06F21/31User authentication
    • G06F21/33User authentication using certificates
    • G06F21/335User authentication using certificates for accessing specific resources, e.g. using Kerberos tickets

Definitions

  • the invention relates to the fields of blockchain, data on-chain, government affairs, blockchain application and business data model, in particular to a method for defining a blockchain on-chain data business protocol and an application business protocol.
  • Blockchain technology is to use the block chain data structure to verify and store data, use distributed node consensus algorithm to generate and update data, use cryptography to ensure the security of data transmission and access, and use the intelligence composed of automated script codes.
  • a new distributed infrastructure and computing paradigm that uses contracts to program and manipulate data.
  • Data on-chain means writing data to the blockchain.
  • different blockchains in the market have different on-chain methods.
  • For non-audited blockchains basically no matter who or what content can be uploaded on the chain. Any transaction that occurs can be accompanied by text messages.
  • the text content is not limited, but the text size affects the cost.
  • blockchain can shape many industrial applications, such as approval chain, supervision chain, license chain, sharing chain, etc.
  • the various process stages in the implementation of blockchain applications are complex, and there will be frequent changes in business data on the chain, long approval processes, and a lot of business data. It is difficult for the data to adapt to business changes quickly.
  • the most direct problem that follows is the need to re-develop the project. , resulting in an impact on business fluency and an increase in project costs. Therefore, there is a need for a flexible way to define the data service protocol on the chain to solve this problem.
  • the purpose of the present invention is to provide a method for defining a blockchain on-chain data service protocol and an application service protocol, which can effectively improve the security of on-chain data.
  • Step S1 creating an industry template for precipitating an industry on-chain data model: on the blockchain platform Create an industry template, enter the template name and template description; at the same time, create a bc_biz_type table in the mysql database to store the created industry template information to complete the precipitation of the industry on-chain data model;
  • Step S2 Create the business type of the industry template;
  • Step S3 Create the business specification of this business type, that is, the data model on the chain;
  • Step S4 After completing the definition of the industry template, the smart contract in the blockchain platform automatically obtains the definition content, and the blockchain platform administrator needs to open the API service and Industry template association, by establishing an association relationship, it is possible to read and use the business specifications under the industry template;
  • Step S5 Create developer authorization information: establish authorization for chain application developers on the blockchain platform according to the feedback requirements of operators information; first register the basic information of
  • Step S6 After the authorization information is registered, the chain application developer needs to integrate The blockchain SDK implements the initialization of the SDK; obtains the certificate information by calling the pem file, and caches the numerical certificate locally; obtains the gateway address and API service in the SDK to match whether the authorization information is available; if the authorization information matches, prompts If the authorization information is correct, you can continue to use it; if the authorization information does not match, it will prompt that the authorization is incorrect, please contact the administrator, and read the biz_name information in the SDK and store it; Step S7: When the application side uploads the data to the chain, it needs to To initiate a transaction request to the SDK side, the SDK side and the smart contract layer need to verify whether the digital certificate information of the user on the application side is consistent with the digital certificate distributed when the authorization was created, and at the same time call the authorized API service to read which application the application uses through biz_name Which business type version of the business
  • Step S9 After the SDK verifies the application-side information and passes the verification, the SDK receives the on-chain request data, and requires the application-side developer to call the digital certificate to sign the on-chain information, and the sender's identity information and Data binding is used to prevent others from fraudulently using the sender, to ensure the tamper-proof of the information, and to authenticate the sender's identity to prevent denial; Step S10: The SDK sends the request information to the smart contract, and the smart contract runs the corresponding API service.
  • Step S11 The same application SDK allows running multiple smart contracts, In order to meet the needs of different API services, it supports multiple contracts to schedule and run; Step S12: After the data is sent to the blockchain node, a blockchain transaction is formed and enters the stage of going on the chain, and the subsequent processing on the chain Enter the blockchain consensus process.
  • the specific content of the step S2 is: add a business type through the blockchain platform, add the business type of the template, and the added content includes the Chinese name, English name and version number of the business type; namely, insert the business type Chinese in the bc_biz_type table.
  • Name, English name and version number content create different business types according to the needs of different business scenarios in the industry.
  • step S3 adding a data model through the blockchain platform, the content of the data model includes Chinese name, English name, data type, whether it is required and whether to set the transaction primary key; after the completion of steps S1 to S3 , the industry template definition is complete.
  • the present invention Compared with the prior art, the present invention has the following beneficial effects: the present invention defines different uplink data protocols according to different business needs, and at the same time, along with the development of the business, the protocol supports multi-version issuance, and supports the use of this special protocol in different business situations. Business data specification.
  • FIG. 1 is a block diagram of a method according to an embodiment of the present invention.
  • this embodiment provides a method for defining a blockchain on-chain data service protocol and an application service protocol, including the following steps: Step S1: Create an industry template for precipitation of the industry's on-chain data model: in the region The blockchain platform creates an industry template, and enters the template name and template description; at the same time, a bc_biz_type table is created in the mysql database to store the created industry template information to complete the precipitation industry on-chain data model; Step S2: Create the business type of the industry template ; Step S3: Create the business specification of the business type, that is, the data model on the chain; Step S4: After completing the definition of the industry template, the smart contract in the blockchain platform automatically obtains the definition content, and the blockchain platform management personnel need to open the The API service is associated with the industry template, and by establishing an association relationship, the business specifications under the industry template can be read and used; Step S5: Create developer authorization information: Develop chain applications on the blockchain platform according to the needs of the operator feedback The developer establishe
  • the content of the authorization information includes the authorization appkey, secretkey, and digital certificate, and provide software development kit, namely SDK, to the developer.
  • the developer obtains the specific certificate information and API interface method by calling the pem file in the SDK;
  • Step S6 After the authorization information is registered, the chain application developer It is necessary to integrate the blockchain SDK first to realize the initialization of the SDK; obtain the certificate information by calling the pem file, and cache the numerical certificate locally; obtain the gateway address and API service in the SDK to match whether the authorization information is available; if the authorization information matches , it will prompt that the authorization information is correct and you can continue to use it; if the authorization information does not match, it will prompt that the authorization is incorrect, please contact the administrator, and read the information of biz_name in the SDK and store it;
  • Step S7 the application side should upload the data to the chain At the same time, a transaction request needs to be initiated to the SDK side.
  • the SDK side and the smart contract layer need to verify whether the digital certificate information of the user on the application side is consistent with the digital certificate distributed when the authorization was created, and at the same time call the authorized API service and read its
  • the application uses the business specification of which business type and version in which industry template.
  • Step S8 For the same business service, multiple versions are allowed to run at the same time, depending on the content of the smart contract, when the content of the contract Define that an API service has V1 ⁇ V2 versions of the data protocol to be used at the same time. It is agreed that V1 is used in scenario 1 and V2 is used in scenario 2.
  • Step S9 After the SDK verifies the application-side information and passes the verification, the SDK receives the on-chain request data, and requires the application-side developer to call the digital certificate to sign the on-chain information, and the sender's identity information and Data binding is used to prevent others from fraudulently using the sender, to ensure the tamper-proof of the information, and to authenticate the sender's identity to prevent denial;
  • Step S10 The SDK sends the request information to the smart contract, and the smart contract runs the corresponding API service.
  • Step S11 The same application SDK allows running multiple smart contracts, In order to meet the needs of different API services, it supports multiple contracts to schedule and run; Step S12: After the data is sent to the blockchain node, a blockchain transaction is formed and enters the stage of going on the chain, and the subsequent processing on the chain Enter the blockchain consensus process.
  • the specific content of step S2 is: adding a business type through the blockchain platform, adding the business type of the template, and the added content includes the Chinese name, English name and version number of the business type; that is, inserting in the bc_biz_type table
  • the content of the Chinese name, English name and version number of the business type according to the needs of different business scenarios in the industry, create different business types.
  • step S3 the specific content of step S3 is: adding a data model through the blockchain platform, the content of the data model includes Chinese name, English name, data type, whether it is required and whether to set the transaction primary key; step S1 to step After S3 is completed, the industry template definition is completed.
  • this embodiment solves the problems of frequent changes, multi-version operation, compliance verification, etc. of the blockchain management platform to the on-chain data protocol by flexibly setting the blockchain on-chain data service protocol.
  • the flexible configuration of the blockchain regulations and multi-version applications can be realized on the business side, and the SDK to verify the regulations and user identity security on the application side.
  • the platform side through a simple data model, it can adapt to a variety of blockchain application scenarios, and at the same time, it can quickly model by precipitation specifications, improve application efficiency, reduce project R&D labor costs, time costs for downtime and deployment, and application costs caused by unsmooth business applications. .
  • the blockchain management platform provides a flexible configuration method for the blockchain application on-chain data business protocol
  • the configuration content includes industry template configuration, business type configuration, business protocol or data model configuration.
  • the granularity of configuration supports data type, business primary key, Chinese and English names. Let the part that originally required code logic configuration be transferred to the business-side definition. Enhance business flexibility and ensure that the on-chain data protocol adapts to business changes.
  • the configuration of the business protocol supports multiple versions, and after the configuration of the protocol is completed, it can be automatically read through the SDK, and there is no need to deploy the blockchain network, reducing various costs.
  • the SDK is used to verify the security and compliance of the business protocol, avoid irregular data uploading, improve the threshold of data on the chain, improve the validity of the data on the chain, and ensure the quality of the data on the chain; when the business protocol is configured, it can provide business traceability
  • the business side defines the business primary key by itself, so that the entire business behavior can be traced through the content of the primary key. This configuration is open to the application side, enabling flexible design of business scenario planning without being restricted by the primary key, so that the on-chain traceability can keep up with the business.
  • the protocol supports multi-version issuance, and supports the use of the data protocol of the special service in different business situations.
  • the on-chain data protocols used in different business scenarios are precipitated to form an industry template, which can be quickly reused when other blockchain networks in the industry are created next time.
  • This embodiment provides a flexible verification method, supports the verification of the SDK and the smart contract layer, and controls it according to the traffic of the business.
  • the configuration of the transaction primary key is also provided. Realize the traceability of the entire business behavior after it occurs. It is based on the high read-write efficiency of the storage structure of the blockchain platform "Key-Value" to solve the problem of complex data query.
  • This embodiment can effectively improve the security of the on-chain data.
  • the verification of the on-chain data in the smart contract is realized through the SDK layer, and the on-chain data model is recorded in the smart contract.
  • the content of data verification includes whether the content of the on-chain protocol is consistent with the rules agreed by each node, and whether the identity information of the transaction requester is consistent with the authorized information.
  • This embodiment provides a method for flexibly uploading a data service specification to the chain, and realizes rapid reuse, promotion and iteration in different projects by precipitating industry application templates.
  • Different business categories can be set under different industry templates, and data models on the chain can be configured under different categories.
  • the content of the model includes the Chinese name, English name, data type, and whether it is required.
  • An industry application can support multiple versions of business classification, support data models of different versions to be executed together, and can be updated online in real time. It also provides configuration of transaction primary keys. Realize the traceability of the entire business behavior after it occurs.

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Databases & Information Systems (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Data Mining & Analysis (AREA)
  • Software Systems (AREA)
  • Computer Security & Cryptography (AREA)
  • Computing Systems (AREA)
  • Computer Hardware Design (AREA)
  • Management, Administration, Business Operations System, And Electronic Commerce (AREA)

Abstract

The present invention relates to a method for defining an on-chain data service specification in a blockchain and applying a service specification, comprising an industry template configuration, a service type configuration, and a service specification or data model configuration. Moreover, the fineness of the configurations supports a data type, whether to be a service natural key, and Chinese and English names. A portion which originally requires a code logic configuration is transferred to a service end for definition. Thus, the service flexibility is enhanced, and it is ensured that an on-chain data specification is adapted to a service change. The configuration of the service specification supports multiple versions, and after the configuration is completed, the specification can be automatically read by means of an SDK without deploying a blockchain network, thereby reducing the costs.

Description

一种定义区块链上链数据业务规约及应用业务规约的方法A method for defining the data service specification and application service specification on the blockchain 技术领域technical field
本发明涉及区块链、数据上链、政务领域区块链应用及业务数据模型领域,特别是一种定义区块链上链数据业务规约及应用业务规约的方法。The invention relates to the fields of blockchain, data on-chain, government affairs, blockchain application and business data model, in particular to a method for defining a blockchain on-chain data business protocol and an application business protocol.
背景技术Background technique
区块链技术是利用块链式数据结构来验证与存储数据、利用分布式节点共识算法来生成和更新数据、利用密码学的方式保证数据传输和访问的安全、利用由自动化脚本代码组成的智能合约来编程和操作数据的一种全新的分布式基础架构与计算范式。Blockchain technology is to use the block chain data structure to verify and store data, use distributed node consensus algorithm to generate and update data, use cryptography to ensure the security of data transmission and access, and use the intelligence composed of automated script codes. A new distributed infrastructure and computing paradigm that uses contracts to program and manipulate data.
数据上链即把数据写到区块链中,目前市场上不同的区块链有不同的上链方式,对于非审核型的区块链,基本上不论谁,不论什么内容都可以上链。发生的任何一笔交易,都可以带上文本信息。文本内容不受限定,只是文本大小会影响所需费用。该方式的上链基本上不存在签名验证和加密解密,上链规约也不做任何限定,在一定范围内有安全性和存储不足的风险。Data on-chain means writing data to the blockchain. Currently, different blockchains in the market have different on-chain methods. For non-audited blockchains, basically no matter who or what content can be uploaded on the chain. Any transaction that occurs can be accompanied by text messages. The text content is not limited, but the text size affects the cost. There is basically no signature verification and encryption and decryption on the chain of this method, and the chain protocol does not make any restrictions, and there is a risk of insufficient security and storage within a certain range.
对于特定型区块链而言,只有特定类型的数据可上链,其余类型的数据则不能上链。比如区块链发票,交易即开票,开票即报销。整个过程全自动无需用户操心,整个环节都上链了,链上可查。该方式局限了区块链应用的拓展,对特定应用只有一种类型数据可上链,无法为同一个应用提供多种类型的上链数据。随之而来的是当业务发生变化时,更换上链的数据类型产生的成本过高,难以适应市场需求。For a certain type of blockchain, only certain types of data can be uploaded to the chain, and other types of data cannot be uploaded to the chain. For example, blockchain invoices, transactions are invoiced, and invoices are reimbursed. The whole process is fully automatic and does not require users to worry about it. The entire link is on the chain and can be checked on the chain. This method limits the expansion of blockchain applications. Only one type of data can be uploaded for a specific application, and it is impossible to provide multiple types of data on the chain for the same application. What follows is that when the business changes, the cost of replacing the data type on the chain is too high, and it is difficult to adapt to the market demand.
目前各行业的数据上链需求不同,会存在频繁的变更,而此类业务,通常都在智能合约层处理,智能合约又是核心的东西,频繁的变更会带来业务风险和漏洞,并且不同时期的上链需求,会变动,所以在业务上需要兼容历史数据。At present, the data uploading requirements of various industries are different, and there will be frequent changes. Such businesses are usually processed at the smart contract layer. Smart contracts are the core thing. Frequent changes will bring business risks and loopholes, and different The on-chain demand during the period will change, so the business needs to be compatible with historical data.
由于区块链的行业应用非常多,在政务领域,区块链可以塑造很多行业应用,如审批链、监管链、证照链、共享链等。链应用实现过程中各流程阶段复杂,会出现业务上链数据频繁变更、审批流程长、业务数据多的情况,上链数据难以快速适应业务变化,伴随而来最直接的问题就是需要重新开发项目,导致业务流畅性受到影响,项目成本增加。故需要有一个灵活定义上链数据业务规约的方法来解决这个问题。Since there are many industrial applications of blockchain, in the field of government affairs, blockchain can shape many industrial applications, such as approval chain, supervision chain, license chain, sharing chain, etc. The various process stages in the implementation of blockchain applications are complex, and there will be frequent changes in business data on the chain, long approval processes, and a lot of business data. It is difficult for the data to adapt to business changes quickly. The most direct problem that follows is the need to re-develop the project. , resulting in an impact on business fluency and an increase in project costs. Therefore, there is a need for a flexible way to define the data service protocol on the chain to solve this problem.
技术问题technical problem
有鉴于此,本发明的目的是提供一种定义区块链上链数据业务规约及应用业务规约的方法,能有效提升上链数据安全问题。In view of this, the purpose of the present invention is to provide a method for defining a blockchain on-chain data service protocol and an application service protocol, which can effectively improve the security of on-chain data.
技术解决方案technical solutions
本发明采用以下方案实现:一种定义区块链上链数据业务规约及应用业务规约的方法,包括以下步骤:步骤S1:创建行业模板,用于沉淀行业上链数据模型:在区块链平台创建行业模板,输入模板名称、模板描述;同时在mysql数据库中创建bc_biz_type表,用于存储创建的行业模板信息即完成沉淀行业上链数据模型;步骤S2:创建该行业模板的业务类型;步骤S3:创建该业务类型的业务规约即上链数据模型;步骤S4:完成行业模板定义之后,区块链平台中的智能合约自动获取定义内容,同时区块链平台管理人员需将开放的API服务和行业模板关联,通过建立关联关系,实现对该行业模板下的业务规约读取使用;步骤S5:创建开发者授权信息:依据运营人员反馈的需求在区块链平台上为链应用开发者建立授权信息;首先登记开发者的基本信息包括开发者名称、开发者用户名和密码,选取该业务所需的API接口服务;信息记录完毕之后,输出授权信息给开发者,授权信息内容包括授权appkey、secretkey、数字证书,同时提供软件开发工具包即SDK给开发者,开发者通过调用SDK中的pem文件获取具体证书信息及API接口方法;步骤S6:授权信息登记完之后,链应用开发者需先集成区块链SDK,实现SDK的初始化;通过调用pem文件获取证书信息,并将数值证书本地缓存;通过获取SDK中的网关地址及API服务,来匹配授权信息是否可用;若授权信息匹配,则提示授权信息正确可继续使用;若授权信息不匹配,则提示该授权不正确,请联系管理员,同时读取SDK中biz_name的信息并进行存储;步骤S7:应用端要将数据上链时,需向SDK端发起交易请求,SDK端及智能合约层需校验应用端用户的数字证书信息是否和创建授权时分发的数字证书一致,同时调用已授权的API服务,通过biz_name读取其应用使用哪个行业模板中哪个业务类型版本的业务规约,SDK获取对应的上链数据规约信息之后,需同应用端发起的请求信息数据格式做比对包括比对格式是否按配置要求传输、字段是否有遗漏和必填字段是否都传输,校验应用端发起的请求信息是否符合其业务规约内容;步骤S8:针对同一个业务服务,允许多版本同时运行,依据智能合约内容而定,当合约内容定义某一API服务有V1\V2两版本的数据规约同时使用,约定当场景1时使用V1,场景2时使用V2,则智能合约层只需依据关联主键biz_name来决定运行哪个版本的规约即可;步骤S9:SDK对应用端信息校验完毕通过之后,SDK收到上链请求数据,需要求应用端开发者调用数字证书对上链信息进行签名,将发送者的身份信息和数据绑定,用以防止他人冒用发送者,保证信息的防篡改的同时认证发送者的身份,防止抵赖;步骤S10:SDK将请求信息发送给智能合约,智能合约运行对应的API服务,通过biz_name获取该API服务关联的行业模板对应的业务类型中哪个版本的数据规约;智能合约依据规约范式,将数据发送到区块链节点中;步骤S11:同一个应用SDK允许运行多个智能合约,以符合不同的API服务需要,支持多个合约来调度运行;步骤S12:数据发送到区块链节点后,就形成了一个区块链交易并进入到上链出来的阶段,后续链上的处理就进入到区块链共识流程。The present invention adopts the following scheme to achieve: a method for defining a blockchain on-chain data business protocol and an application business protocol, comprising the following steps: Step S1: creating an industry template for precipitating an industry on-chain data model: on the blockchain platform Create an industry template, enter the template name and template description; at the same time, create a bc_biz_type table in the mysql database to store the created industry template information to complete the precipitation of the industry on-chain data model; Step S2: Create the business type of the industry template; Step S3 : Create the business specification of this business type, that is, the data model on the chain; Step S4: After completing the definition of the industry template, the smart contract in the blockchain platform automatically obtains the definition content, and the blockchain platform administrator needs to open the API service and Industry template association, by establishing an association relationship, it is possible to read and use the business specifications under the industry template; Step S5: Create developer authorization information: establish authorization for chain application developers on the blockchain platform according to the feedback requirements of operators information; first register the basic information of the developer including the developer name, developer user name and password, and select the API interface service required by the business; after the information is recorded, output the authorization information to the developer, and the content of the authorization information includes the authorization appkey, secretkey , digital certificate, and provide the software development kit (SDK) to the developer. The developer obtains the specific certificate information and API interface method by calling the pem file in the SDK; Step S6: After the authorization information is registered, the chain application developer needs to integrate The blockchain SDK implements the initialization of the SDK; obtains the certificate information by calling the pem file, and caches the numerical certificate locally; obtains the gateway address and API service in the SDK to match whether the authorization information is available; if the authorization information matches, prompts If the authorization information is correct, you can continue to use it; if the authorization information does not match, it will prompt that the authorization is incorrect, please contact the administrator, and read the biz_name information in the SDK and store it; Step S7: When the application side uploads the data to the chain, it needs to To initiate a transaction request to the SDK side, the SDK side and the smart contract layer need to verify whether the digital certificate information of the user on the application side is consistent with the digital certificate distributed when the authorization was created, and at the same time call the authorized API service to read which application the application uses through biz_name Which business type version of the business specification in the industry template, after the SDK obtains the corresponding on-chain data specification information, it needs to compare it with the data format of the request information initiated by the application, including whether the comparison format is transmitted according to the configuration requirements, whether the fields are missing and Whether all required fields are transmitted, verify whether the request information initiated by the application meets its business specification; Step S8: For the same business service, multiple versions are allowed to run at the same time, depending on the content of the smart contract, when the contract content defines a certain The API service has V1\V2 versions of the data protocol used at the same time. It is agreed that V1 is used in scenario 1 and V2 is used in scenario 2. The smart contract layer only needs to decide which version to run based on the associated primary key biz_name Step S9: After the SDK verifies the application-side information and passes the verification, the SDK receives the on-chain request data, and requires the application-side developer to call the digital certificate to sign the on-chain information, and the sender's identity information and Data binding is used to prevent others from fraudulently using the sender, to ensure the tamper-proof of the information, and to authenticate the sender's identity to prevent denial; Step S10: The SDK sends the request information to the smart contract, and the smart contract runs the corresponding API service. biz_name obtains which version of the data specification in the business type corresponding to the industry template associated with the API service; the smart contract sends the data to the blockchain node according to the specification paradigm; Step S11: The same application SDK allows running multiple smart contracts, In order to meet the needs of different API services, it supports multiple contracts to schedule and run; Step S12: After the data is sent to the blockchain node, a blockchain transaction is formed and enters the stage of going on the chain, and the subsequent processing on the chain Enter the blockchain consensus process.
进一步地,所述步骤S2的具体内容为:通过区块链平台添加业务类型,添加该模板的业务类型,添加内容包括业务类型中文名、英文名和版本号;即在bc_biz_type表中插入业务类型中文名、英文名和版本号内容,针对该行业的不同业务场景需要,创建不同的业务类型。Further, the specific content of the step S2 is: add a business type through the blockchain platform, add the business type of the template, and the added content includes the Chinese name, English name and version number of the business type; namely, insert the business type Chinese in the bc_biz_type table. Name, English name and version number content, create different business types according to the needs of different business scenarios in the industry.
进一步地,所述步骤S3的具体内容为:通过区块链平台添加数据模型,数据模型内容包括中文名、英文名、数据类型、是否必填和是否设置交易主键;步骤S1至步骤S3完成之后,行业模板定义完成。Further, the specific content of step S3 is: adding a data model through the blockchain platform, the content of the data model includes Chinese name, English name, data type, whether it is required and whether to set the transaction primary key; after the completion of steps S1 to S3 , the industry template definition is complete.
有益效果beneficial effect
与现有技术相比,本发明具有以下有益效果:本发明依据不同业务需要,定义不同的上链数据规约,同时随着业务的发展,规约支持多版本发行,支持不同业务情形下使用该特地业务的数据规约。Compared with the prior art, the present invention has the following beneficial effects: the present invention defines different uplink data protocols according to different business needs, and at the same time, along with the development of the business, the protocol supports multi-version issuance, and supports the use of this special protocol in different business situations. Business data specification.
附图说明Description of drawings
图1为本发明实施例的方法框图。FIG. 1 is a block diagram of a method according to an embodiment of the present invention.
本发明的最佳实施方式BEST MODE FOR CARRYING OUT THE INVENTION
下面结合附图及实施例对本发明做进一步说明。The present invention will be further described below with reference to the accompanying drawings and embodiments.
应该指出,以下详细说明都是例示性的,旨在对本申请提供进一步的说明。除非另有指明,本文使用的所有技术和科学术语具有与本申请所属技术领域的普通技术人员通常理解的相同含义。It should be noted that the following detailed description is exemplary and intended to provide further explanation of the application. Unless otherwise defined, all technical and scientific terms used herein have the same meaning as commonly understood by one of ordinary skill in the art to which this application belongs.
需要注意的是,这里所使用的术语仅是为了描述具体实施方式,而非意图限制根据本申请的示例性实施方式。如在这里所使用的,除非上下文另外明确指出,否则单数形式也意图包括复数形式,此外,还应当理解的是,当在本说明书中使用术语“包含”和/或“包括”时,其指明存在特征、步骤、操作、器件、组件和/或它们的组合。It should be noted that the terminology used herein is for the purpose of describing specific embodiments only, and is not intended to limit the exemplary embodiments according to the present application. As used herein, unless the context clearly dictates otherwise, the singular is intended to include the plural as well, furthermore, it is to be understood that when the terms "comprising" and/or "including" are used in this specification, it indicates that There are features, steps, operations, devices, components and/or combinations thereof.
如图1所示,本实施例提供一种定义区块链上链数据业务规约及应用业务规约的方法,包括以下步骤:步骤S1:创建行业模板,用于沉淀行业上链数据模型:在区块链平台创建行业模板,输入模板名称、模板描述;同时在mysql数据库中创建bc_biz_type表,用于存储创建的行业模板信息即完成沉淀行业上链数据模型;步骤S2:创建该行业模板的业务类型;步骤S3:创建该业务类型的业务规约即上链数据模型;步骤S4:完成行业模板定义之后,区块链平台中的智能合约自动获取定义内容,同时区块链平台管理人员需将开放的API服务和行业模板关联,通过建立关联关系,实现对该行业模板下的业务规约读取使用;步骤S5:创建开发者授权信息:依据运营人员反馈的需求在区块链平台上为链应用开发者建立授权信息;首先登记开发者的基本信息包括开发者名称、开发者用户名和密码,选取该业务所需的API接口服务;信息记录完毕之后,输出授权信息给开发者,授权信息内容包括授权appkey、secretkey、数字证书,同时提供软件开发工具包即SDK给开发者,开发者通过调用SDK中的pem文件获取具体证书信息及API接口方法;步骤S6:授权信息登记完之后,链应用开发者需先集成区块链SDK,实现SDK的初始化;通过调用pem文件获取证书信息,并将数值证书本地缓存;通过获取SDK中的网关地址及API服务,来匹配授权信息是否可用;若授权信息匹配,则提示授权信息正确可继续使用;若授权信息不匹配,则提示该授权不正确,请联系管理员,同时读取SDK中biz_name的信息并进行存储;步骤S7:应用端要将数据上链时,需向SDK端发起交易请求,SDK端及智能合约层需校验应用端用户的数字证书信息是否和创建授权时分发的数字证书一致,同时调用已授权的API服务,通过biz_name读取其应用使用哪个行业模板中哪个业务类型版本的业务规约,SDK获取对应的上链数据规约信息之后,需同应用端发起的请求信息数据格式做比对包括比对格式是否按配置要求传输、字段是否有遗漏和必填字段是否都传输,校验应用端发起的请求信息是否符合其业务规约内容;步骤S8:针对同一个业务服务,允许多版本同时运行,依据智能合约内容而定,当合约内容定义某一API服务有V1\V2两版本的数据规约同时使用,约定当场景1时使用V1,场景2时使用V2,则智能合约层只需依据关联主键biz_name来决定运行哪个版本的规约即可;步骤S9:SDK对应用端信息校验完毕通过之后,SDK收到上链请求数据,需要求应用端开发者调用数字证书对上链信息进行签名,将发送者的身份信息和数据绑定,用以防止他人冒用发送者,保证信息的防篡改的同时认证发送者的身份,防止抵赖;步骤S10:SDK将请求信息发送给智能合约,智能合约运行对应的API服务,通过biz_name获取该API服务关联的行业模板对应的业务类型中哪个版本的数据规约;智能合约依据规约范式,将数据发送到区块链节点中;步骤S11:同一个应用SDK允许运行多个智能合约,以符合不同的API服务需要,支持多个合约来调度运行;步骤S12:数据发送到区块链节点后,就形成了一个区块链交易并进入到上链出来的阶段,后续链上的处理就进入到区块链共识流程。As shown in Figure 1, this embodiment provides a method for defining a blockchain on-chain data service protocol and an application service protocol, including the following steps: Step S1: Create an industry template for precipitation of the industry's on-chain data model: in the region The blockchain platform creates an industry template, and enters the template name and template description; at the same time, a bc_biz_type table is created in the mysql database to store the created industry template information to complete the precipitation industry on-chain data model; Step S2: Create the business type of the industry template ; Step S3: Create the business specification of the business type, that is, the data model on the chain; Step S4: After completing the definition of the industry template, the smart contract in the blockchain platform automatically obtains the definition content, and the blockchain platform management personnel need to open the The API service is associated with the industry template, and by establishing an association relationship, the business specifications under the industry template can be read and used; Step S5: Create developer authorization information: Develop chain applications on the blockchain platform according to the needs of the operator feedback The developer establishes authorization information; first, register the basic information of the developer including the developer name, developer user name and password, and select the API interface service required by the business; after the information is recorded, output the authorization information to the developer. The content of the authorization information includes the authorization appkey, secretkey, and digital certificate, and provide software development kit, namely SDK, to the developer. The developer obtains the specific certificate information and API interface method by calling the pem file in the SDK; Step S6: After the authorization information is registered, the chain application developer It is necessary to integrate the blockchain SDK first to realize the initialization of the SDK; obtain the certificate information by calling the pem file, and cache the numerical certificate locally; obtain the gateway address and API service in the SDK to match whether the authorization information is available; if the authorization information matches , it will prompt that the authorization information is correct and you can continue to use it; if the authorization information does not match, it will prompt that the authorization is incorrect, please contact the administrator, and read the information of biz_name in the SDK and store it; Step S7: the application side should upload the data to the chain At the same time, a transaction request needs to be initiated to the SDK side. The SDK side and the smart contract layer need to verify whether the digital certificate information of the user on the application side is consistent with the digital certificate distributed when the authorization was created, and at the same time call the authorized API service and read its The application uses the business specification of which business type and version in which industry template. After the SDK obtains the corresponding uplink data specification information, it needs to compare the data format of the request information initiated by the application, including whether the comparison format is transmitted according to the configuration requirements, and whether the fields are Whether there are missing and required fields are transmitted, and verify whether the request information initiated by the application meets its business specifications; Step S8: For the same business service, multiple versions are allowed to run at the same time, depending on the content of the smart contract, when the content of the contract Define that an API service has V1\V2 versions of the data protocol to be used at the same time. It is agreed that V1 is used in scenario 1 and V2 is used in scenario 2. The smart contract layer only needs to decide which version to run based on the associated primary key biz_name Step S9: After the SDK verifies the application-side information and passes the verification, the SDK receives the on-chain request data, and requires the application-side developer to call the digital certificate to sign the on-chain information, and the sender's identity information and Data binding is used to prevent others from fraudulently using the sender, to ensure the tamper-proof of the information, and to authenticate the sender's identity to prevent denial; Step S10: The SDK sends the request information to the smart contract, and the smart contract runs the corresponding API service. biz_name obtains which version of the data specification in the business type corresponding to the industry template associated with the API service; the smart contract sends the data to the blockchain node according to the specification paradigm; Step S11: The same application SDK allows running multiple smart contracts, In order to meet the needs of different API services, it supports multiple contracts to schedule and run; Step S12: After the data is sent to the blockchain node, a blockchain transaction is formed and enters the stage of going on the chain, and the subsequent processing on the chain Enter the blockchain consensus process.
在本实施例中,所述步骤S2的具体内容为:通过区块链平台添加业务类型,添加该模板的业务类型,添加内容包括业务类型中文名、英文名和版本号;即在bc_biz_type表中插入业务类型中文名、英文名和版本号内容,针对该行业的不同业务场景需要,创建不同的业务类型。In this embodiment, the specific content of step S2 is: adding a business type through the blockchain platform, adding the business type of the template, and the added content includes the Chinese name, English name and version number of the business type; that is, inserting in the bc_biz_type table The content of the Chinese name, English name and version number of the business type, according to the needs of different business scenarios in the industry, create different business types.
在本实施例中,所述步骤S3的具体内容为:通过区块链平台添加数据模型,数据模型内容包括中文名、英文名、数据类型、是否必填和是否设置交易主键;步骤S1至步骤S3完成之后,行业模板定义完成。In this embodiment, the specific content of step S3 is: adding a data model through the blockchain platform, the content of the data model includes Chinese name, English name, data type, whether it is required and whether to set the transaction primary key; step S1 to step After S3 is completed, the industry template definition is completed.
较佳的,本实施例通过对区块链上链数据业务规约的灵活设定,解决区块链管理平台对上链数据规约存在的频繁变更,多版本运行,合规性校验等问题。通过区块链平台对业务规约的灵活设定,在业务端实现上链规约灵活配置,多版本应用,在应用端实现SDK对规约及用户身份安全性检验,上链规约合规性检验。在平台端实现通过简单的数据模型,实现适应多种区块链应用场景,同时沉淀规约快速建模,提高应用效率缩减项目研发人力成本、停机部署的时间成本、业务应用不流畅产生的应用成本。Preferably, this embodiment solves the problems of frequent changes, multi-version operation, compliance verification, etc. of the blockchain management platform to the on-chain data protocol by flexibly setting the blockchain on-chain data service protocol. Through the flexible setting of business regulations on the blockchain platform, the flexible configuration of the blockchain regulations and multi-version applications can be realized on the business side, and the SDK to verify the regulations and user identity security on the application side. On the platform side, through a simple data model, it can adapt to a variety of blockchain application scenarios, and at the same time, it can quickly model by precipitation specifications, improve application efficiency, reduce project R&D labor costs, time costs for downtime and deployment, and application costs caused by unsmooth business applications. .
在本实施例中,区块链管理平台提供对区块链应用上链数据业务规约灵活配置方法,配置内容包括行业模板配置、业务类型配置、业务规约或数据模型配置。且配置的精细度支持到数据类型、是否业务主键、中英文名。让原先需代码逻辑配置的部分转移到业务端定义。增强业务灵活性,确保上链数据规约适应业务变换。In this embodiment, the blockchain management platform provides a flexible configuration method for the blockchain application on-chain data business protocol, and the configuration content includes industry template configuration, business type configuration, business protocol or data model configuration. And the granularity of configuration supports data type, business primary key, Chinese and English names. Let the part that originally required code logic configuration be transferred to the business-side definition. Enhance business flexibility and ensure that the on-chain data protocol adapts to business changes.
业务规约的配置支持多版本,并且规约配置完成后可通过SDK自动读取,无需进行区块链网络的部署,减少各项成本。通过SDK校验业务规约安全性及合规性,避免数据上链不规范,提高上链数据的门槛,提升上链数据有效性,保障链上数据的质量;业务规约配置时,可提供业务追溯时的主键配置,业务端自行定义业务主键,实现通过主键内容对整个业务行为进行追溯。该配置对应用端开放,实现业务场景规划灵活设计无需受主键的限制,做到上链追溯跟上业务。The configuration of the business protocol supports multiple versions, and after the configuration of the protocol is completed, it can be automatically read through the SDK, and there is no need to deploy the blockchain network, reducing various costs. The SDK is used to verify the security and compliance of the business protocol, avoid irregular data uploading, improve the threshold of data on the chain, improve the validity of the data on the chain, and ensure the quality of the data on the chain; when the business protocol is configured, it can provide business traceability When the primary key configuration is used, the business side defines the business primary key by itself, so that the entire business behavior can be traced through the content of the primary key. This configuration is open to the application side, enabling flexible design of business scenario planning without being restricted by the primary key, so that the on-chain traceability can keep up with the business.
本实施例依据不同业务需要,定义不同的上链数据规约,同时随着业务的发展,规约支持多版本发行,支持不同业务情形下使用该特地业务的数据规约。In this embodiment, different uplink data protocols are defined according to different business needs. At the same time, with the development of services, the protocol supports multi-version issuance, and supports the use of the data protocol of the special service in different business situations.
本实施例将不同业务场景使用的上链数据规约沉淀形成行业模板,供下次该行业的其他区块链网络创建时快速复用。In this embodiment, the on-chain data protocols used in different business scenarios are precipitated to form an industry template, which can be quickly reused when other blockchain networks in the industry are created next time.
本实施例提供灵活的校验方式,支持SDK及智能合约层的校验,根据业务的流量来控制。This embodiment provides a flexible verification method, supports the verification of the SDK and the smart contract layer, and controls it according to the traffic of the business.
本实施例对上链数据的中文名、英文名、数据类型、是否必填之类的配置之外,还提供交易主键的配置。实现对整个业务行为发生之后的追溯。是基于区块链平台“Key-Value”的存储结构的读写效率极高优势基础上,解决数据复杂查询的问题。In this embodiment, in addition to the configuration of the Chinese name, English name, data type, and whether it is required to be filled in the data on the chain, the configuration of the transaction primary key is also provided. Realize the traceability of the entire business behavior after it occurs. It is based on the high read-write efficiency of the storage structure of the blockchain platform "Key-Value" to solve the problem of complex data query.
本实施例能有效提升上链数据安全问题,通过SDK层实现上链数据在智能合约的校验,上链数据模型在智能合约中备案。数据校验内容包括上链规约内容是否和各节点共识通过的规则一致、校验交易请求者的身份信息是否和授权的信息一致。This embodiment can effectively improve the security of the on-chain data. The verification of the on-chain data in the smart contract is realized through the SDK layer, and the on-chain data model is recorded in the smart contract. The content of data verification includes whether the content of the on-chain protocol is consistent with the rules agreed by each node, and whether the identity information of the transaction requester is consistent with the authorized information.
本实施例提供一种灵活上链数据业务规约的方法,通过沉淀行业应用模板,实现在不同项目中的快速复用推广和迭代。在不同行业模板下可设置不同业务分类,不同分类下配置上链数据模型,模型内容包括数据的中文名、英文名、数据类型、是否必填等。一个行业应用可支持多个版本的业务分类,支持不同版本数据模型一起执行,并且可在线实时更新。同时还提供交易主键的配置。实现对整个业务行为发生之后的追溯。This embodiment provides a method for flexibly uploading a data service specification to the chain, and realizes rapid reuse, promotion and iteration in different projects by precipitating industry application templates. Different business categories can be set under different industry templates, and data models on the chain can be configured under different categories. The content of the model includes the Chinese name, English name, data type, and whether it is required. An industry application can support multiple versions of business classification, support data models of different versions to be executed together, and can be updated online in real time. It also provides configuration of transaction primary keys. Realize the traceability of the entire business behavior after it occurs.
以上所述仅为本发明的较佳实施例,凡依本发明申请专利范围所做的均等变化与修饰,皆应属本发明的涵盖范围。The above descriptions are only preferred embodiments of the present invention, and all equivalent changes and modifications made according to the scope of the patent application of the present invention shall fall within the scope of the present invention.

Claims (3)

  1. 一种定义区块链上链数据业务规约及应用业务规约的方法,提供一区块链平台,其特征在于:包括以下步骤:A method for defining a blockchain on-chain data service protocol and an application service protocol provides a blockchain platform, which is characterized by comprising the following steps:
    步骤S1:创建行业模板,用于沉淀行业上链数据模型:在区块链平台创建行业模板,输入模板名称、模板描述;同时在mysql数据库中创建bc_biz_type表,用于存储创建的行业模板信息即完成沉淀行业上链数据模型;Step S1: Create an industry template for precipitating the data model on the industry chain: create an industry template on the blockchain platform, enter the template name and template description; at the same time, create a bc_biz_type table in the mysql database to store the created industry template information, namely Complete the precipitation industry on-chain data model;
    步骤S2:创建该行业模板的业务类型;Step S2: create the business type of the industry template;
    步骤S3:创建该业务类型的业务规约即上链数据模型;Step S3: Create a business specification of the business type, that is, an on-chain data model;
    步骤S4:完成行业模板定义之后,区块链平台中的智能合约自动获取定义内容,同时区块链平台管理人员需将开放的API服务和行业模板关联,通过建立关联关系,实现对该行业模板下的业务规约读取使用;Step S4: After completing the definition of the industry template, the smart contract in the blockchain platform automatically obtains the definition content. At the same time, the blockchain platform administrator needs to associate the open API service with the industry template, and realize the industry template by establishing an association relationship. Read and use the business protocol below;
    步骤S5:创建开发者授权信息:依据运营人员反馈的需求在区块链平台上为链应用开发者建立授权信息;首先登记开发者的基本信息包括开发者名称、开发者用户名和密码,选取该业务所需的API接口服务;信息记录完毕之后,输出授权信息给开发者,授权信息内容包括授权appkey、secretkey、数字证书,同时提供软件开发工具包即SDK给开发者,开发者通过调用SDK中的pem文件获取具体证书信息及API接口方法;Step S5: Create developer authorization information: establish authorization information for chain application developers on the blockchain platform according to the feedback requirements of the operators; first register the basic information of the developer including the developer name, developer user name and password, select the API interface services required by the business; after the information is recorded, the authorization information is output to the developer. The content of the authorization information includes the authorization appkey, secretkey, and digital certificate. At the same time, the software development kit (SDK) is provided to the developer. pem file to obtain specific certificate information and API interface methods;
    步骤S6:授权信息登记完之后,链应用开发者需先集成区块链SDK,实现SDK的初始化;通过调用pem文件获取证书信息,并将数值证书本地缓存;通过获取SDK中的网关地址及API服务,来匹配授权信息是否可用;若授权信息匹配,则提示授权信息正确可继续使用;若授权信息不匹配,则提示该授权不正确,请联系管理员,同时读取SDK中biz_name的信息并进行存储;Step S6: After the authorization information is registered, the chain application developer needs to integrate the blockchain SDK first to realize the initialization of the SDK; obtain the certificate information by calling the pem file, and cache the numerical certificate locally; obtain the gateway address and API in the SDK service, to match whether the authorization information is available; if the authorization information matches, it will prompt that the authorization information is correct and you can continue to use it; if the authorization information does not match, it will prompt that the authorization is incorrect, please contact the administrator, and read the biz_name information in the SDK and to store;
    步骤S7:应用端要将数据上链时,需向SDK端发起交易请求,SDK端及智能合约层需校验应用端用户的数字证书信息是否和创建授权时分发的数字证书一致,同时调用已授权的API服务,通过biz_name读取其应用使用哪个行业模板中哪个业务类型版本的业务规约,SDK获取对应的上链数据规约信息之后,需同应用端发起的请求信息数据格式做比对包括比对格式是否按配置要求传输、字段是否有遗漏和必填字段是否都传输,校验应用端发起的请求信息是否符合其业务规约内容;Step S7: When the application side wants to upload the data to the chain, it needs to initiate a transaction request to the SDK side. The SDK side and the smart contract layer need to verify whether the digital certificate information of the user on the application side is consistent with the digital certificate distributed when the authorization was created. The authorized API service can read the business specification of which business type and version in which industry template the application uses through biz_name. After the SDK obtains the corresponding on-chain data specification information, it needs to be compared with the data format of the request information initiated by the application. Check whether the format is transmitted according to the configuration requirements, whether there are missing fields and whether all required fields are transmitted, and verify whether the request information initiated by the application side conforms to its business specification;
    步骤S8:针对同一个业务服务,允许多版本同时运行,依据智能合约内容而定,当合约内容定义某一API服务有V1\V2两版本的数据规约同时使用,约定当场景1时使用V1,场景2时使用V2,则智能合约层只需依据关联主键biz_name来决定运行哪个版本的规约即可;Step S8: For the same business service, multiple versions are allowed to run at the same time. It depends on the content of the smart contract. When the contract content defines that an API service has V1\V2 versions of the data protocol to be used at the same time, it is agreed to use V1 in scenario 1. When V2 is used in scenario 2, the smart contract layer only needs to decide which version of the protocol to run based on the associated primary key biz_name;
    步骤S9:SDK对应用端信息校验完毕通过之后,SDK收到上链请求数据,需要求应用端开发者调用数字证书对上链信息进行签名,将发送者的身份信息和数据绑定,用以防止他人冒用发送者,保证信息的防篡改的同时认证发送者的身份,防止抵赖;Step S9: After the SDK verifies the application-side information and passes the verification, the SDK receives the on-chain request data, and requires the application-side developer to call the digital certificate to sign the on-chain information, bind the sender's identity information to the data, and use In order to prevent others from fraudulently using the sender, to ensure the tamper-proof of the information, and to authenticate the sender's identity to prevent denial;
    步骤S10:SDK将请求信息发送给智能合约,智能合约运行对应的API服务,通过biz_name获取该API服务关联的行业模板对应的业务类型中哪个版本的数据规约;智能合约依据规约范式,将数据发送到区块链节点中;Step S10: The SDK sends the request information to the smart contract, the smart contract runs the corresponding API service, and obtains which version of the data specification in the business type corresponding to the industry template associated with the API service through biz_name; the smart contract sends the data according to the specification paradigm to the blockchain node;
    步骤S11:同一个应用SDK允许运行多个智能合约,以符合不同的API服务需要,支持多个合约来调度运行;Step S11: The same application SDK allows running multiple smart contracts to meet the needs of different API services, and supports multiple contracts to schedule and run;
    步骤S12:数据发送到区块链节点后,就形成了一个区块链交易并进入到上链出来的阶段,后续链上的处理就进入到区块链共识流程。Step S12: After the data is sent to the blockchain node, a blockchain transaction is formed and enters the stage of going on the chain, and the subsequent processing on the chain enters the blockchain consensus process.
  2. 根据权利要求1所述的一种定义区块链上链数据业务规约及应用业务规约的方法,其特征在于:所述步骤S2的具体内容为:通过区块链平台添加业务类型,添加该模板的业务类型,添加内容包括业务类型中文名、英文名和版本号;即在bc_biz_type表中插入业务类型中文名、英文名和版本号内容,针对该行业的不同业务场景需要,创建不同的业务类型。The method for defining a blockchain on-chain data service protocol and an application service protocol according to claim 1, wherein the specific content of the step S2 is: adding a service type through the blockchain platform, adding the template The added content includes the Chinese name, English name and version number of the business type; that is, insert the Chinese name, English name and version number of the business type into the bc_biz_type table, and create different business types according to the needs of different business scenarios in the industry.
  3. 根据权利要求1所述的一种定义区块链上链数据业务规约及应用业务规约的方法,其特征在于:所述步骤S3的具体内容为:通过区块链平台添加数据模型,数据模型内容包括中文名、英文名、数据类型、是否必填和是否设置交易主键;步骤S1至步骤S3完成之后,行业模板定义完成。The method for defining a blockchain on-chain data service protocol and an application service protocol according to claim 1, wherein the specific content of the step S3 is: adding a data model through the blockchain platform, the content of the data model Including Chinese name, English name, data type, whether it is required, and whether to set the transaction primary key; after steps S1 to S3 are completed, the definition of the industry template is completed.
PCT/CN2020/142465 2020-11-18 2020-12-31 Method for defining on-chain data service specification in blockchain and applying service specification WO2022105038A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN202011295040.5A CN112380219B (en) 2020-11-18 2020-11-18 Method for defining block chain cochain data service stipulation and application service stipulation
CN202011295040.5 2020-11-18

Publications (1)

Publication Number Publication Date
WO2022105038A1 true WO2022105038A1 (en) 2022-05-27

Family

ID=74584245

Family Applications (2)

Application Number Title Priority Date Filing Date
PCT/CN2020/142465 WO2022105038A1 (en) 2020-11-18 2020-12-31 Method for defining on-chain data service specification in blockchain and applying service specification
PCT/CN2021/071402 WO2022105049A1 (en) 2020-11-18 2021-01-13 Method for defining on-chain data service protocol of blockchain and applying service protocol

Family Applications After (1)

Application Number Title Priority Date Filing Date
PCT/CN2021/071402 WO2022105049A1 (en) 2020-11-18 2021-01-13 Method for defining on-chain data service protocol of blockchain and applying service protocol

Country Status (2)

Country Link
CN (1) CN112380219B (en)
WO (2) WO2022105038A1 (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN116668451A (en) * 2023-04-10 2023-08-29 中泰证券股份有限公司 Data storage method, equipment and medium for securities business

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113609196A (en) * 2021-06-23 2021-11-05 云南昆钢电子信息科技有限公司 Block chain chaining automation system and method
CN113766034B (en) * 2021-09-15 2024-02-02 城云科技(中国)有限公司 Business processing method and device based on block chain

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108701145A (en) * 2017-02-06 2018-10-23 北方信托公司 System and method for digital identity management and admissions control in distributed network node
CN108805703A (en) * 2017-04-28 2018-11-13 埃森哲环球解决方案有限公司 Right management system
WO2019161936A1 (en) * 2018-02-26 2019-08-29 Telefonaktiebolaget Lm Ericsson (Publ) Network slicing with smart contracts
CN111767036A (en) * 2020-06-24 2020-10-13 江苏荣泽信息科技股份有限公司 Block chain platform capable of customizing business model

Family Cites Families (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108052321B (en) * 2017-12-28 2020-12-25 杭州趣链科技有限公司 Method for automatically generating intelligent contract of block chain based on configuration information
CN108416577B (en) * 2018-03-02 2021-03-05 上海汉得信息技术股份有限公司 Block chain service system
US11194911B2 (en) * 2018-07-10 2021-12-07 International Business Machines Corporation Blockchain technique for agile software development framework
CN109377220B (en) * 2018-10-16 2020-02-18 中国传媒大学 Block chain-based media data transaction method and system and computer storage medium
CN109815291B (en) * 2018-12-28 2021-08-20 北京城市网邻信息技术有限公司 Data synchronization method and device, electronic equipment and storage medium
CN110084059A (en) * 2019-03-21 2019-08-02 深圳壹账通智能科技有限公司 A kind of method, apparatus and computer equipment of banking system data configuration block chain
CN111275400A (en) * 2020-01-20 2020-06-12 厦门顺势共识信息科技有限公司 Block chain-based electronic contract uplink method
CN111294356B (en) * 2020-02-11 2022-09-06 深圳壹账通智能科技有限公司 Block chain-based method and system for organizing uplink of nodes
CN111461879A (en) * 2020-03-11 2020-07-28 中关村科技软件股份有限公司 Block chain-based government affair service processing system and method
CN111580841B (en) * 2020-04-07 2021-06-29 浙商银行股份有限公司 Dynamic upgrade service method for union chain
CN111882319A (en) * 2020-07-07 2020-11-03 苏波 Block chain data uplink processing method, device and equipment

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108701145A (en) * 2017-02-06 2018-10-23 北方信托公司 System and method for digital identity management and admissions control in distributed network node
CN108805703A (en) * 2017-04-28 2018-11-13 埃森哲环球解决方案有限公司 Right management system
WO2019161936A1 (en) * 2018-02-26 2019-08-29 Telefonaktiebolaget Lm Ericsson (Publ) Network slicing with smart contracts
CN111767036A (en) * 2020-06-24 2020-10-13 江苏荣泽信息科技股份有限公司 Block chain platform capable of customizing business model

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN116668451A (en) * 2023-04-10 2023-08-29 中泰证券股份有限公司 Data storage method, equipment and medium for securities business
CN116668451B (en) * 2023-04-10 2024-01-23 中泰证券股份有限公司 Data storage method, equipment and medium for securities business

Also Published As

Publication number Publication date
WO2022105049A1 (en) 2022-05-27
CN112380219A (en) 2021-02-19
CN112380219B (en) 2021-10-08

Similar Documents

Publication Publication Date Title
WO2022105038A1 (en) Method for defining on-chain data service specification in blockchain and applying service specification
US11789933B2 (en) System and method for a hybrid contract execution environment
US10171992B1 (en) Switching mobile service provider using blockchain
CN106681739B (en) Automatic intelligent contract generation method
CN106408299B (en) Electronic intelligent signing payment method based on block chain technology
CN104391934B (en) Data verification method and device
CN110569658B (en) User information processing method and device based on blockchain network, electronic equipment and storage medium
CN102215488B (en) Smart phone digital certificate application method and system
US11194911B2 (en) Blockchain technique for agile software development framework
CN112703499A (en) Distributed platform for computing and trust verification
WO2019139595A1 (en) Offline authorization of interactions and controlled tasks
CN112307125B (en) Signing method and device for realizing encrypted electronic contract based on blockchain intelligent contract
US11070563B2 (en) Trace-based transaction validation and commitment
WO2024002103A1 (en) Data asset management method and data asset active management system
CN111429191A (en) Block chain-based electronic invoice flow management method, device and system
KR102166690B1 (en) Management server and method of digital signature for electronic document
WO2024002105A1 (en) Data asset usage control method, client and intermediate service platform
CN112740214A (en) Digital contract generation with escrow security
US20240143909A1 (en) System and Method for Electronic Document Interaction with External Resources
CN109542926A (en) Block processes method and computer storage medium
CN111176677B (en) Server system reinforcement updating method and device
CN115114372A (en) Data processing method, device and equipment based on block chain and readable storage medium
WO2021012732A1 (en) Blockchain-based information verification apparatus and method, and storage medium
CN111026569B (en) Method for repairing specified block data in alliance chain
CN114981773A (en) Conflict-free version control

Legal Events

Date Code Title Description
NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 20962329

Country of ref document: EP

Kind code of ref document: A1