CN113761493B - Intelligent contract interface calling authority and caller identity control method and system for blockchain platform - Google Patents

Intelligent contract interface calling authority and caller identity control method and system for blockchain platform Download PDF

Info

Publication number
CN113761493B
CN113761493B CN202110989670.0A CN202110989670A CN113761493B CN 113761493 B CN113761493 B CN 113761493B CN 202110989670 A CN202110989670 A CN 202110989670A CN 113761493 B CN113761493 B CN 113761493B
Authority
CN
China
Prior art keywords
intelligent contract
interface
authority
calling party
public key
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
CN202110989670.0A
Other languages
Chinese (zh)
Other versions
CN113761493A (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.)
China Zheshang Bank Co Ltd
Original Assignee
China Zheshang Bank 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 China Zheshang Bank Co Ltd filed Critical China Zheshang Bank Co Ltd
Priority to CN202110989670.0A priority Critical patent/CN113761493B/en
Publication of CN113761493A publication Critical patent/CN113761493A/en
Application granted granted Critical
Publication of CN113761493B publication Critical patent/CN113761493B/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/30Authentication, i.e. establishing the identity or authorisation of security principals
    • G06F21/31User authentication
    • 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/60Protecting data
    • G06F21/62Protecting access to data via a platform, e.g. using keys or access control rules
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F2221/00Indexing scheme relating to security arrangements for protecting computers, components thereof, programs or data against unauthorised activity
    • G06F2221/21Indexing scheme relating to G06F21/00 and subgroups addressing additional information or applications relating to security arrangements for protecting computers, components thereof, programs or data against unauthorised activity
    • G06F2221/2141Access rights, e.g. capability lists, access control lists, access tables, access matrices

Landscapes

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

Abstract

The invention discloses a block chain platform intelligent contract interface calling authority and calling party identity control method and system. Firstly, an intelligent contract calling party registers account information in a blockchain platform, and the blockchain platform registers the account information of the calling party and simultaneously registers the corresponding relation between the account id and a public key. After the completion of the uplink, the administrator assigns the corresponding permission level to the account. The intelligent contract owner issues intelligent contracts on the blockchain platform, and interface authority values are distributed for the intelligent contracts. When the intelligent contract calling party calls the intelligent contract interface, the authority verification can be called through the interface only when the authority level of the calling party is larger than or equal to the authority value of the interface. After the interface call authority verification is completed, the intelligent contract can also verify whether the interface call authority verification is carried out for the calling party. Both verifications can normally call the intelligent contract interface service through the rear. The technical scheme of the invention can ensure the safety of the data and the normalization of the data uplink.

Description

Intelligent contract interface calling authority and caller identity control method and system for blockchain platform
Technical Field
The invention relates to the technical field of blockchain, in particular to a blockchain platform intelligent contract interface calling authority and caller identity control method and system.
Background
An intelligent contract is a program deployed on a blockchain to implement automated processing of traditional contracts in the form of computer instructions. The intelligent contract can respond to the information, can accept and store the information, and can also send the information outwards.
An intelligent contract implements a plurality of functional interfaces including information registration, general information inquiry, core information inquiry, etc. If all interfaces are indiscriminately opened to a blockchain caller, the problems of useless information uplink, dirty data uplink, important information leakage even in the information query process and the like can be caused.
Disclosure of Invention
Aiming at the defects of the prior art, the invention provides a method and a system for controlling the calling authority and the identity of a calling party of an intelligent contract interface of a blockchain platform so as to ensure the safety of data and the normalization of data uplink.
The invention aims at realizing the following technical scheme:
according to a first aspect of the present invention, there is provided a blockchain platform intelligent contract interface call authority and caller identity control method, comprising the steps of:
(1) The block chain intelligent contract calling party needs to register account information in a block chain platform, the block chain platform registers the account information of the calling party to be uplink, and meanwhile registers the corresponding relation between the account id of the calling party and the public key to be uplink, so that the uniqueness of the corresponding relation between the account id and the public key is ensured;
(2) After the information is up-linked, a block chain platform system administrator distributes corresponding authority levels for the intelligent contract calling party account;
(3) The intelligent contract owner issues the intelligent contract on the blockchain platform, an interface authority value is distributed for the intelligent contract, the intelligent contract interface and the corresponding interface authority value can register and be uplink, and the interface authority value can be modified only by the intelligent contract owner;
(4) When an intelligent contract calling party calls an intelligent contract interface, the intelligent contract can check the authority level of the intelligent contract calling party and the interface authority value called by the intelligent contract calling party, and the authority verification can be performed through the interface only when the authority level of the calling party is greater than or equal to the interface authority value;
(5) After the intelligent contract interface calling authority verification is completed, the intelligent contract calling party performs identity verification on the calling party, judges whether the id of the calling party is matched with the public key, and after the identity verification is completed, the intelligent contract calling party can normally call the intelligent contract interface service.
Further, in the step (1), the intelligent contract caller needs to apply for a public key and push the public key to the blockchain platform to bind with the id, and once bound, the corresponding relationship between the id and the public key cannot be modified; if the account is repeatedly registered by using the same id or public key, the registration failure condition can occur; only the administrator can call the id cancellation function, and the id can be used for registering again only after cancellation.
Further, in the step (3), the smart contract owner assigns an interface authority value to each smart contract interface when issuing the smart contract.
Further, in the step (5), the identity verification of the intelligent contract caller verifies whether the correspondence between the incoming id and the public key is consistent with the correspondence between the uplink id and the public key, and even if any information in the public key and the id is illegally acquired by others, the interface cannot be normally invoked.
According to a second aspect of the present invention, there is provided a blockchain platform intelligent contract interface call authority and caller identity control system, comprising the following modules:
calling party registration module: the intelligent contract calling party is used for registering account information in the blockchain platform, registering the account information of the calling party and the corresponding relation between the account id of the calling party and the public key;
caller authority level assignment module: the system manager is used for distributing corresponding authority levels for the intelligent contract calling party accounts by the block chain platform system manager;
intelligent contract interface authority value distribution module: the intelligent contract owner issues an intelligent contract on a blockchain platform, an interface authority value is distributed for the intelligent contract, and the intelligent contract interface is logged with a corresponding interface authority value for uplink;
the interface calls the permission verification module: when an intelligent contract calling party calls an intelligent contract interface, the intelligent contract can check the authority level of the intelligent contract calling party and the interface authority value called by the intelligent contract calling party, and the authority verification can be performed through the interface only when the authority level of the calling party is greater than or equal to the interface authority value;
caller identity verification module: after the verification of the interface calling authority verification module, the intelligent contract performs identity verification of the calling party, judges whether the id of the calling party is matched with the public key, and after the identity verification, the intelligent contract calling party can normally call the intelligent contract interface service.
According to a third aspect of the present invention there is provided a computer device comprising a memory and a processor, the memory having stored therein computer readable instructions which, when executed by the processor, cause the processor to perform the steps of the blockchain platform smart contract interface invocation authority and caller identity control method described above.
According to a fourth aspect of the present invention there is provided a storage medium storing computer readable instructions that when executed by one or more processors cause the one or more processors to perform the steps in the blockchain platform smart contract interface invocation authority and caller identity control method described above.
The beneficial effects of the invention are as follows: the intelligent contract calling party registers account information in the blockchain platform, and the blockchain platform registers the account information of the calling party and simultaneously registers the corresponding relation between the account id and the public key. After the completion of the uplink, the administrator assigns the corresponding permission level to the account. The intelligent contract owner issues intelligent contracts on the blockchain platform, and interface authority values are distributed for the intelligent contracts. When the intelligent contract calling party calls the intelligent contract interface, the authority verification can be called through the interface only when the authority level of the calling party is larger than or equal to the authority value of the interface. After the interface call authority verification is completed, the intelligent contract can also verify whether the interface call authority verification is carried out for the calling party. Both verifications can normally call the intelligent contract interface service through the rear. The technical scheme of the invention can ensure the safety of the data and the normalization of the data uplink.
Drawings
FIG. 1 is a flowchart of a method for controlling the calling authority and caller identity of a blockchain platform intelligent contract interface provided by an embodiment of the invention;
fig. 2 is a schematic diagram of a block chain platform intelligent contract interface calling authority and caller identity control system according to an embodiment of the present invention.
Detailed Description
The invention will now be described in further detail with reference to the drawings and the specific examples, it being understood that the specific embodiments described herein are for purposes of illustration only and are not intended to limit the invention.
FIG. 1 is a flowchart of a method for controlling the calling authority and the identity of a calling party of a blockchain platform intelligent contract interface, which is provided in an embodiment of the invention, and includes the following steps:
(1) First, the blockchain smart contract caller needs to register account information in the blockchain platform. Besides the account information of the uplink caller, the blockchain platform also registers the corresponding relation between the account id and the public key to the uplink automatically, so that the uniqueness of the corresponding relation between the account id and the public key is ensured.
Specifically, the intelligent contract caller needs to apply for a public and private key and push the public key to the blockchain platform for binding with the id. Once bound, the correspondence of ids to public keys cannot be modified. If the account is repeatedly registered with the same id or public key, a registration failure occurs. Only the administrator can invoke the id cancellation function. Only after de-registration can the registration be re-performed with the id.
(2) After the information is completely uploaded, the blockchain platform system administrator allocates the corresponding authority level for the intelligent contract caller account.
(3) The intelligent contract owner issues a blockchain intelligent contract on the blockchain platform, and an interface authority value is allocated for the intelligent contract. For example, the common data query interface authority value is 1, so that most of the calling parties can query data. For another example, the transaction data query interface authority value is 3, and only the caller with authority level greater than or equal to 3 can call the interface.
The intelligent contract interface and the corresponding interface authority value are logged in and the interface authority value can be modified only by the intelligent contract owner.
(4) When an intelligent contract calling party calls an intelligent contract interface, the intelligent contract can check the authority level of the intelligent contract calling party and the interface authority value called by the intelligent contract calling party, and the authority verification can be only carried out through the interface when the authority level of the calling party is greater than or equal to the interface authority value.
(5) After the intelligent contract interface calling authority verification is completed, the intelligent contract can also carry out identity verification of a calling party, whether the corresponding relation between the incoming id and the public key is consistent with the corresponding relation of the uplink is verified, and after the identity verification is completed, the intelligent contract calling party can normally call the blockchain intelligent contract interface service. Therefore, even if any one of the public key and the id is illegally acquired by another person, the interface cannot be normally called.
Fig. 2 is a schematic diagram of a block chain platform intelligent contract interface calling authority and caller identity control system structure provided in an embodiment of the present invention, where the system includes the following modules:
calling party registration module: the intelligent contract calling party is used for registering account information in the blockchain platform, registering the account information of the calling party and the corresponding relation between the account id of the calling party and the public key;
caller authority level assignment module: the system manager is used for distributing corresponding authority levels for the intelligent contract calling party accounts by the block chain platform system manager;
intelligent contract interface authority value distribution module: the intelligent contract owner issues an intelligent contract on a blockchain platform, an interface authority value is distributed for the intelligent contract, and the intelligent contract interface is logged with a corresponding interface authority value for uplink;
the interface calls the permission verification module: when an intelligent contract calling party calls an intelligent contract interface, the intelligent contract can check the authority level of the intelligent contract calling party and the interface authority value called by the intelligent contract calling party, and the authority verification can be performed through the interface only when the authority level of the calling party is greater than or equal to the interface authority value;
caller identity verification module: after the verification of the interface calling authority verification module, the intelligent contract performs identity verification of the calling party, judges whether the id of the calling party is matched with the public key, and after the identity verification, the intelligent contract calling party can normally call the intelligent contract interface service.
In one embodiment, a computer device is provided, including a memory and a processor, where the memory stores computer readable instructions that, when executed by the processor, cause the processor to perform the steps in the block chain platform intelligent contract interface call authority and caller identity control method in each of the embodiments described above.
In one embodiment, a storage medium storing computer readable instructions that, when executed by one or more processors, cause the one or more processors to perform the steps in the block chain platform intelligent contract interface call authority and caller identity control method of the embodiments described above is presented. Wherein the storage medium may be a non-volatile storage medium.
Those of ordinary skill in the art will appreciate that all or part of the steps in the various methods of the above embodiments may be implemented by a program to instruct related hardware, the program may be stored in a computer readable storage medium, and the storage medium may include: read Only Memory (ROM), random access Memory (RAM, random Access Memory), magnetic or optical disk, and the like.
The foregoing description of the preferred embodiment(s) is (are) merely intended to illustrate the embodiment(s) of the present invention, and it is not intended to limit the embodiment(s) of the present invention to the particular embodiment(s) described.

Claims (7)

1. The intelligent contract interface calling authority and caller identity control method for the blockchain platform is characterized by comprising the following steps:
(1) The block chain intelligent contract calling party needs to register account information in a block chain platform, the block chain platform registers the account information of the calling party to be uplink, and meanwhile registers the corresponding relation between the account id of the calling party and the public key to be uplink, so that the uniqueness of the corresponding relation between the account id and the public key is ensured;
(2) After the information is up-linked, a block chain platform system administrator distributes corresponding authority levels for the intelligent contract calling party account;
(3) The intelligent contract owner issues the intelligent contract on the blockchain platform, an interface authority value is distributed for the intelligent contract, the intelligent contract interface and the corresponding interface authority value can register and be uplink, and the interface authority value can be modified only by the intelligent contract owner;
(4) When an intelligent contract calling party calls an intelligent contract interface, the intelligent contract can check the authority level of the intelligent contract calling party and the interface authority value called by the intelligent contract calling party, and the authority verification can be performed through the interface only when the authority level of the calling party is greater than or equal to the interface authority value;
(5) After the intelligent contract interface calling authority verification is completed, the intelligent contract calling party performs identity verification on the calling party, judges whether the id of the calling party is matched with the public key, and after the identity verification is completed, the intelligent contract calling party can normally call the intelligent contract interface service.
2. The method for controlling the invoking authority and the identity of the caller according to claim 1, wherein in the step (1), the intelligent contract caller needs to apply a public key and push the public key to the blockchain platform for binding with the id, and once the public key is bound, the corresponding relation between the id and the public key cannot be modified; if the account is repeatedly registered by using the same id or public key, the registration failure condition can occur; only the administrator can call the id cancellation function, and the id can be used for registering again only after cancellation.
3. The blockchain platform smart contract interface call authority and caller identity control method of claim 1, wherein in step (3), the smart contract owner assigns interface authority values to each smart contract interface when issuing a smart contract.
4. The method for controlling the invoking authority and the caller identity of the intelligent contract interface of the blockchain platform according to claim 1, wherein in the step (5), the identity verification of the intelligent contract caller verifies whether the correspondence between the incoming id and the public key is consistent with the correspondence between the uplink id and the public key, and even if any information in the public key and the id is illegally acquired by others, the interface cannot be invoked normally.
5. A blockchain platform intelligent contract interface call authority and caller identity control system, the system comprising:
calling party registration module: the intelligent contract calling party is used for registering account information in the blockchain platform, registering the account information of the calling party and the corresponding relation between the account id of the calling party and the public key;
caller authority level assignment module: the system manager is used for distributing corresponding authority levels for the intelligent contract calling party accounts by the block chain platform system manager;
intelligent contract interface authority value distribution module: the intelligent contract owner issues an intelligent contract on a blockchain platform, an interface authority value is distributed for the intelligent contract, and the intelligent contract interface is logged with a corresponding interface authority value for uplink;
the interface calls the permission verification module: the intelligent contract verifies the authority level of the intelligent contract calling party and the interface authority value called by the intelligent contract calling party, and the authority verification can be called through the interface only when the authority level of the calling party is larger than or equal to the interface authority value;
caller identity verification module: the intelligent contract performs identity verification of the calling party, judges whether the id of the calling party is matched with the public key, and can normally call the intelligent contract interface service after the identity verification.
6. A computer device comprising a memory and a processor, the memory having stored therein computer readable instructions which, when executed by the processor, cause the processor to perform the steps in the method of any of claims 1-4.
7. A storage medium storing computer readable instructions which, when executed by one or more processors, cause the one or more processors to perform the steps in the method of any of claims 1-4.
CN202110989670.0A 2021-08-26 2021-08-26 Intelligent contract interface calling authority and caller identity control method and system for blockchain platform Active CN113761493B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202110989670.0A CN113761493B (en) 2021-08-26 2021-08-26 Intelligent contract interface calling authority and caller identity control method and system for blockchain platform

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110989670.0A CN113761493B (en) 2021-08-26 2021-08-26 Intelligent contract interface calling authority and caller identity control method and system for blockchain platform

Publications (2)

Publication Number Publication Date
CN113761493A CN113761493A (en) 2021-12-07
CN113761493B true CN113761493B (en) 2024-04-05

Family

ID=78791590

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110989670.0A Active CN113761493B (en) 2021-08-26 2021-08-26 Intelligent contract interface calling authority and caller identity control method and system for blockchain platform

Country Status (1)

Country Link
CN (1) CN113761493B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN116248751B (en) * 2023-03-20 2024-06-21 北京航空航天大学云南创新研究院 Intelligent contract registration and verification method based on alliance chain

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2018076761A1 (en) * 2016-10-27 2018-05-03 上海亿账通区块链科技有限公司 Block chain-based transaction permission control method and system, electronic device, and storage medium
CN109587154A (en) * 2018-12-14 2019-04-05 金蝶软件(中国)有限公司 Digital identity verification method, device, computer equipment and storage medium
CN110266691A (en) * 2019-06-24 2019-09-20 北京艾摩瑞策科技有限公司 Credit data cochain method and its equipment based on block chain
CN110908813A (en) * 2019-11-18 2020-03-24 深圳前海环融联易信息科技服务有限公司 Intelligent contract calling method, device, system, computer equipment and storage medium
KR20200044363A (en) * 2018-10-19 2020-04-29 빅픽처랩 주식회사 Method for managing trust information based on block-chain
CN111641586A (en) * 2020-04-24 2020-09-08 杭州溪塔科技有限公司 Account authority management method and system based on block chain
CN112364311A (en) * 2020-11-10 2021-02-12 上海保险交易所股份有限公司 Method and device for managing identity on block chain

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2018076761A1 (en) * 2016-10-27 2018-05-03 上海亿账通区块链科技有限公司 Block chain-based transaction permission control method and system, electronic device, and storage medium
KR20200044363A (en) * 2018-10-19 2020-04-29 빅픽처랩 주식회사 Method for managing trust information based on block-chain
CN109587154A (en) * 2018-12-14 2019-04-05 金蝶软件(中国)有限公司 Digital identity verification method, device, computer equipment and storage medium
CN110266691A (en) * 2019-06-24 2019-09-20 北京艾摩瑞策科技有限公司 Credit data cochain method and its equipment based on block chain
CN110908813A (en) * 2019-11-18 2020-03-24 深圳前海环融联易信息科技服务有限公司 Intelligent contract calling method, device, system, computer equipment and storage medium
CN111641586A (en) * 2020-04-24 2020-09-08 杭州溪塔科技有限公司 Account authority management method and system based on block chain
CN112364311A (en) * 2020-11-10 2021-02-12 上海保险交易所股份有限公司 Method and device for managing identity on block chain

Also Published As

Publication number Publication date
CN113761493A (en) 2021-12-07

Similar Documents

Publication Publication Date Title
US8515847B2 (en) System and method for password-free access for validated users
US20060218407A1 (en) Method of confirming the identity of a person
CN112532653B (en) Method and device for managing third-party account
CN111553785A (en) Interactive service triggered bank account opening verification method and system
CN110138767B (en) Transaction request processing method, device, equipment and storage medium
CN113761493B (en) Intelligent contract interface calling authority and caller identity control method and system for blockchain platform
WO2022205965A1 (en) Cross-chain access control method and apparatus
CN112118237A (en) Resource access management method
CA2623846A1 (en) System and method for controlling usage of a payment card
US9036793B2 (en) Caller authentication system
CN109451043B (en) Server access method for protecting user privacy through proxy access
CN108696864B (en) Virtual number request and transmission method, device and storage medium
GB2516278A (en) Providing a new user with access to an account
CN111062057B (en) Neutral data application method, device and system
CN110662210B (en) Secondary or repeated mobile phone number identification method, system and equipment based on block chain
CN106250758A (en) A kind of storage device connection control method and system
CN111444524A (en) Dynamic dual-access control mechanism based on alliance chain
KR102498374B1 (en) Digital asset management system and digital asset management method
CN101237678B (en) Activation and registration method, system and device for personal management circuit domain terminal
CN108989418A (en) A kind of resource amount method of mixed cloud object storage common authentication
CN112822022B (en) Multi-signature address updating method and related device
CN109410061B (en) Method for realizing supervision contract authorization by using equal account numbers on block chain
GB2511279A (en) Automated multi-factor identity and transaction authentication by telephone
CA2537125C (en) Document verification system
US6990184B2 (en) Method and device for co-ordinating telecommunications services

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