CN109410061B - Method for realizing supervision contract authorization by using equal account numbers on block chain - Google Patents

Method for realizing supervision contract authorization by using equal account numbers on block chain Download PDF

Info

Publication number
CN109410061B
CN109410061B CN201811290742.7A CN201811290742A CN109410061B CN 109410061 B CN109410061 B CN 109410061B CN 201811290742 A CN201811290742 A CN 201811290742A CN 109410061 B CN109410061 B CN 109410061B
Authority
CN
China
Prior art keywords
contract
supervision
visitor
authority
owner
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.)
Active
Application number
CN201811290742.7A
Other languages
Chinese (zh)
Other versions
CN109410061A (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.)
Shenzhen Blockcontinent Technology Co ltd
Original Assignee
Shenzhen Blockcontinent 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 Shenzhen Blockcontinent Technology Co ltd filed Critical Shenzhen Blockcontinent Technology Co ltd
Publication of CN109410061A publication Critical patent/CN109410061A/en
Application granted granted Critical
Publication of CN109410061B publication Critical patent/CN109410061B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06QINFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
    • G06Q40/00Finance; Insurance; Tax strategies; Processing of corporate or income taxes
    • G06Q40/04Trading; Exchange, e.g. stocks, commodities, derivatives or currency exchange

Landscapes

  • Business, Economics & Management (AREA)
  • Accounting & Taxation (AREA)
  • Finance (AREA)
  • Engineering & Computer Science (AREA)
  • Development Economics (AREA)
  • Economics (AREA)
  • Marketing (AREA)
  • Strategic Management (AREA)
  • Technology Law (AREA)
  • Physics & Mathematics (AREA)
  • General Business, Economics & Management (AREA)
  • General Physics & Mathematics (AREA)
  • Theoretical Computer Science (AREA)
  • Management, Administration, Business Operations System, And Electronic Commerce (AREA)

Abstract

The invention discloses a method for realizing supervision contract authorization by using equal account numbers on a block chain, which comprises a contract owner and an accessor, wherein the contract owner is used for deploying the contract account numbers, and the authority setting method comprises the following steps: 1) the contract owner creates a new contract and selects the contract type as a supervision contract; 2) the contract owner sets special supervision authority of the supervision contract; 3) the contract owner possesses a binding condition for implementing the supervision authority; 4) the visitor has self-defined authority added and sets an access public key of the authority; 5) the visitor binds the newly-established custom authority to a supervision contract; 6) and the system automatically calls the binding condition of the supervision contract to perform binding judgment on the visitor. The invention provides a method for realizing supervision contract authorization by using equal account numbers on a block chain, which endows an intelligent contract owner with an authorized access function.

Description

Method for realizing supervision contract authorization on block chain by using equal account number
Technical Field
The invention relates to the technical field of block chain intelligent contracts, in particular to a method for realizing supervision contract authorization on a block chain by using equal account numbers.
Background
At present, the blockchain gradually becomes an important basic measure of the value internet, all countries begin to actively embrace the blockchain technology, open up a new race track of international industry competition, and seize the new high point of industrial innovation so as to strengthen the international competitiveness.
The blockchain technology is used as a support for cryptocurrency, and strategic development is realized for almost all industries such as logistics, network security and even trade financing. As one of the best innovations associated with the blockchain, the functions of the intelligent contract make the intelligent contract stand out, and the automatic execution characteristic of the intelligent contract is further capable of saving a lot of time and money for enterprises and individuals, so the adoption of the intelligent contract may become one of the key factors driving the blockchain technology to be rapidly adopted.
An intelligent contract is an automated execution contract that facilitates the trading of virtually any good or service using pre-established rules. The overall principle is to increase transaction transparency while reducing commission fees and eliminating the possibility of conflicts due to non-fulfillment of contracts. Unlike conventional contracts, such contracts do not have space for the interpretation of the terms, as all the terms are preset and automatically executed by the contract itself.
Smart contracts have a wider range of instructions embedded in the blockchain. Traditional contracts mean that two or more parties agree to do or not do something in exchange for something, each party having to trust each other to fulfill obligations. Intelligent contracts do not need to trust each other because intelligent contracts are not only defined by code, but are also enforced by code, are completely automatic and cannot intervene.
The function of the intelligent contract of the current block chain is lost, which is mainly represented by:
when the access right of a method in an intelligent contract (hereinafter referred to as a contract) is set for the account self-defining right, the contract has no authorization function;
and 2, the contract method verifies the authority through the transmitted parameters, and has no practical significance. One calling method of the contract controls the access authority of the calling method by checking an incoming parameter (such as an account name), but the parameter is provided by an accessor, so the accessor can modify the parameter at any time to ensure that the originally set safety check is similar to a dummy.
With the development of block chain technology application, intelligent contracts can be widely applied to various industries. The method provided by the intelligent contract cannot meet the needs of the application if the visitor is expected to meet certain conditions or thresholds for use.
Chinese patent application No.: 201611012149.7, filing date: 2016, 11/17/public: 26/04/2017, the patent names are: a block chain-based data interest protection method discloses a block chain-based data interest protection method. The method comprises the following steps: a user with data formulates data circulation strategies according to data rights and interests needing to be protected, and the circulation strategies are compiled into intelligent contracts and deployed on the block chain system; before data circulation is carried out by other users, the other users as data transferee users need to use the identity information and the related data circulation attribute to call the intelligent contract, and the intelligent contract automatically gives out an approval result of circulation application according to a set data circulation strategy: if the circulation is allowed, the dynamic circulation authorization code is returned to the transferee user; otherwise, the application is returned to fail. The invention is an application of a block chain system, removes the dependence on a third-party authority in the data rights and interests protection process, ensures that a data circulation strategy formulated by a data owner cannot be maliciously changed, and a strategy execution result cannot be artificially manipulated, thereby providing a fair, transparent and credible execution environment for data circulation processes such as data transaction, data open sharing and the like.
Although the above patent document discloses a block chain-based data interest protection method, the intelligent contract of the method has no authorization function, and cannot meet the requirements of the modern society for applying the intelligent contract.
Disclosure of Invention
In view of the above, the present invention provides a method for implementing supervision contract authorization on a block chain by using equal account numbers, which provides a function of authorizing access to an intelligent contract owner.
In order to realize the purpose of the invention, the following technical scheme can be adopted:
a method of enabling supervised contract authorization with equal account numbers on a blockchain, including a contract owner and a visitor, the contract being in possession of deploying a contract account number, the privilege setting method comprising:
step 1) the contract owner creates a new contract and selects the contract type as a supervision contract;
step 2) the contract owner sets special supervision authority of the supervision contract;
step 3) the contract owner possesses the binding condition for realizing the supervision authority;
step 4) the visitor has self-defined authority added and sets an access public key of the authority; step 5), the visitor binds the newly-built custom authority to a supervision contract;
and 6) automatically calling the binding condition of the supervision contract by the system to perform binding judgment on the visitor.
Said step 1) comprises checking whether the contract to be accessed is a supervising contract by checking the account number.
And if the contract is a supervision contract, checking whether the requested account number meets the access condition.
Said step 6) comprises the visitor binding the supervision contract successfully if the visitor complies with the binding conditions of the supervision contract.
Said step 6) if the visitor is not compliant with the binding condition of the administration contract, the visitor fails to bind the administration contract.
And after the visitor is successfully bound with the supervision contract, the visitor can complete the access to the supervision contract by using the own authority.
The technical scheme provided by the invention has the beneficial effects that 1) the supervision contract of the invention is a newly added set of business logic which is completely isolated from the original system logic and does not interfere with each other; 2) when the contract method access right is set for the account number custom right, the contract owner directly controls the authorized access right; 3) when the method sets the access contract method authority for the account number custom authority, the contract owner does not have extra RAM expense; 4) if the supervision logic of the contract needs to be modified, only the modified contract code is redeployed; 5) the contract owner and the visitor account are equal accounts.
Drawings
Fig. 1 is a schematic diagram of a flow method of a method for implementing supervision contract authorization by using an equal account number on a block chain according to an embodiment of the present invention.
Detailed Description
The present invention will be described in further detail with reference to the accompanying drawings and embodiments thereof.
Example 1
Referring to fig. 1, the method for implementing supervision contract authorization with equal account numbers on a blockchain includes a contract owner and a visitor, the contract owner is used for deploying contract account numbers, and the authority setting method includes:
step 1) the contract owner creates a new contract and selects the contract type as a supervision contract S1;
step 2) the contract owner sets the special supervision authority (name: auth1) S2 of the supervision contract;
step 3) the contract owner implements the binding condition S3 of the supervision authority auth 1;
step 4), the visitor has self-defined authority added and sets an access public key S4 of the authority;
step 5) the visitor binds the newly-built custom authority to a supervision contract S5;
step 6) the system automatically invokes a binding condition of the supervision contract to make a binding determination S6 for the visitor.
When the invention needs to set the access contract right through the account number custom right, the supervision contract needs to verify the visitor, and the visitor is endowed with the access right after the verification is successful.
Preferably, said step 1) comprises checking whether the contract to be accessed is a supervisory contract by checking the account number.
Preferably, if the contract is a supervision contract, checking whether the requested account number meets the access condition.
In this embodiment, preferably, the step 6) includes that if the visitor meets the binding condition of the supervision contract, the visitor binds the supervision contract successfully.
Preferably, said step 6) fails to bind the supervision contract if the visitor does not comply with the binding condition of the supervision contract.
The method automatically calls the binding condition of the supervision contract to perform binding judgment on the visitor, and if the visitor meets the binding condition of the supervision contract, the visitor succeeds in binding the supervision contract; otherwise, the visitor fails to bind the administration contract.
The invention also includes that after the visitor is successfully bound with the supervision contract, the visitor can complete the access to the supervision contract by using the own authority.
The biggest difference between the invention and the original authority request mechanism is that when a user who wants to access a certain method of the contract applies for access authority, the access condition of the contract method is added, and only if the condition of the access method is met, the correct authorization can be realized, otherwise, the authorization is refused.
With the rapid development of the blockchain technology, the intelligent contract has been widely applied as one of the key characteristics of the blockchain technology. As a leader of a blockchain technology, the Chinese urgently needs to protect original technologies and intellectual property rights in related fields.
The invention has the overall thought that the intelligent contract supervision method is endowed with the access capability, the calling of the contract method is protected, the safety of contract data is protected, and the information leakage of the intelligent contract method in the execution stage is prevented.
The above description is only a preferred embodiment of the present invention, and is not intended to limit the scope of the present invention.

Claims (1)

1. A method for realizing supervision contract authorization by using equal account numbers on a block chain is characterized in that: the method comprises a contract owner and an accessor, wherein the contract owner is used for deploying a contract account number, and the permission setting method comprises the following steps:
step 1) the contract owner creates a new contract and selects the contract type as a supervision contract; the step 1) comprises checking whether the contract needing to be accessed is a supervision contract or not by checking the account number; if the contract is a supervision contract, checking whether the account number of the request meets the access condition;
step 2) the contract owner sets special supervision authority of the supervision contract;
step 3) the contract owner possesses the binding condition for realizing the supervision authority;
step 4) the visitor has self-defined authority added and sets an access public key of the authority;
step 5), the visitor binds the newly-built custom authority to a supervision contract;
step 6), the system automatically calls the binding condition of the supervision contract to carry out binding judgment on the visitor; said step 6) comprises that if the visitor complies with the binding condition of the administration contract, the visitor binds the administration contract successfully; said step 6) if the visitor is not in compliance with the binding condition of the administration contract, the visitor fails to bind the administration contract;
and after the visitor is successfully bound with the supervision contract, the visitor can complete the access to the supervision contract by using the own authority.
CN201811290742.7A 2018-10-23 2018-10-31 Method for realizing supervision contract authorization by using equal account numbers on block chain Active CN109410061B (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN2018112407040 2018-10-23
CN201811240704 2018-10-23

Publications (2)

Publication Number Publication Date
CN109410061A CN109410061A (en) 2019-03-01
CN109410061B true CN109410061B (en) 2022-06-21

Family

ID=65471054

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201811290742.7A Active CN109410061B (en) 2018-10-23 2018-10-31 Method for realizing supervision contract authorization by using equal account numbers on block chain

Country Status (1)

Country Link
CN (1) CN109410061B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110688679B (en) * 2019-09-30 2023-09-05 湖南天河国云科技有限公司 Block chain-based account locking/unlocking method and device

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106600405A (en) * 2016-11-17 2017-04-26 复旦大学 Block-chain-based data rights protection method
CN106845960A (en) * 2017-01-24 2017-06-13 上海亿账通区块链科技有限公司 Method for secure transactions and system based on block chain
CN106920098A (en) * 2017-03-07 2017-07-04 中钞信用卡产业发展有限公司北京智能卡技术研究院 Digital ticket transaction supervisory systems and method based on block chain and digital cash
CN107507091A (en) * 2017-09-07 2017-12-22 复旦大学 Enhanced data Right protection method based on block chain and intelligent contract
CN108173850A (en) * 2017-12-28 2018-06-15 杭州趣链科技有限公司 A kind of identity authorization system and identity identifying method based on block chain intelligence contract

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106600405A (en) * 2016-11-17 2017-04-26 复旦大学 Block-chain-based data rights protection method
CN106845960A (en) * 2017-01-24 2017-06-13 上海亿账通区块链科技有限公司 Method for secure transactions and system based on block chain
CN106920098A (en) * 2017-03-07 2017-07-04 中钞信用卡产业发展有限公司北京智能卡技术研究院 Digital ticket transaction supervisory systems and method based on block chain and digital cash
CN107507091A (en) * 2017-09-07 2017-12-22 复旦大学 Enhanced data Right protection method based on block chain and intelligent contract
CN108173850A (en) * 2017-12-28 2018-06-15 杭州趣链科技有限公司 A kind of identity authorization system and identity identifying method based on block chain intelligence contract

Also Published As

Publication number Publication date
CN109410061A (en) 2019-03-01

Similar Documents

Publication Publication Date Title
CN106600405B (en) Block chain-based data rights and interests protection method
CN109691015B (en) Dynamic access control method and system on block chain
CN111681007B (en) Credit scoring method, transaction method and related device for blockchain
CN111797374B (en) Supply chain access control system and method based on public chain intelligent contract
CN112347194A (en) Steel supply chain product traceability system based on block chain technology
US20220083936A1 (en) Access control method
CN106469270A (en) A kind of management method of application permission, equipment and system
CN109410061B (en) Method for realizing supervision contract authorization by using equal account numbers on block chain
CN115130124A (en) Data asset management method and data asset active management system
CN111444524B (en) Dynamic double-access control mechanism based on alliance chain
CN104866774A (en) Method and system for managing account authorities
CN107944280A (en) A kind of authority control method and system
CN103873586A (en) Public account number management method based on digital certificates and micro blog management platform
CN113761493B (en) Intelligent contract interface calling authority and caller identity control method and system for blockchain platform
CN105897708A (en) Information protection method and mobile terminal
CN110309635A (en) Management method, device, equipment and the computer storage medium of data quality model
CN101291333B (en) Controlling method of used node number by network software
CN115550010A (en) Key environment access control method based on block chain
US11461744B2 (en) Introducing variance to online system access procedures
CN114444130A (en) Electronic certificate mutual trust and mutual authentication platform based on block chain
KR102625023B1 (en) Secure data processing
CN101894234A (en) COS general file access control system
Hota et al. Cyber Security at the Heart of Open Banking: An Existing and Futuristic Approach
CN110336782A (en) Data access safety certifying method and system
CN110688679B (en) Block chain-based account locking/unlocking method and device

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