Trusted configuration method and device of intelligent contract, computer equipment and storage medium

文档序号:7946 发布日期:2021-09-17 浏览:33次 中文

1. A trusted configuration method for intelligent contracts, comprising:

acquiring an intelligent contract, wherein the intelligent contract comprises a plurality of contract variables to be signed;

acquiring the associated information of each contract variable to be signed, and determining an authorized participant of each contract variable to be signed according to the associated information;

receiving authorization information digitally signed by the authorized party for the contract variable to be signed, wherein the authorization information comprises a digital signature and a digital certificate of the authorized party;

and if the digital signature and the digital certificate are verified to pass, executing the intelligent contract.

2. The trusted configuration method of an intelligent contract according to claim 1, wherein after obtaining the association information of each contract variable to be signed and determining the authorized participant of each contract variable to be signed according to the association information, the method further comprises:

acquiring the sequential relation of contract variables to be signed;

and sequentially sending the intelligent contracts to authorized participants of the contract variables to be signed according to the sequential relation.

3. A trusted configuration method for intelligent contracts according to claim 2, wherein said sending intelligent contracts to authorized participants of said contract variables to be signed in turn according to said sequential relationship comprises:

sending the intelligent contract to a first authorized participant, wherein the first authorized participant is an authorized participant of the contract variables in the first sequence;

after receiving the authorization information of the first authorized party, sending the intelligent contract to a second authorized party: the second authorized participant is an authorized participant of the contract variables in the second sequence, and the contract variables in the first sequence and the contract variables in the second sequence are in a front-back sequence relationship.

4. The trusted configuration method of intelligent contracts according to claim 2, wherein executing the intelligent contract if both the digital signature and the digital certificate are verified comprises:

sequentially verifying the digital signature and the digital certificate according to the sequence relation;

and if the digital signature and the digital certificate are verified to pass, executing the intelligent contract.

5. The trusted configuration method of an intelligent contract according to claim 1, wherein after executing the intelligent contract if the digital signature and the digital certificate both verify, the method further comprises:

obtaining the valid time of the digital certificate;

selecting the minimum value of the effective time, and taking the minimum value as the effective time of the intelligent contract;

and when the effective time of the intelligent contract is reached, suspending the execution of the intelligent contract.

6. A trusted configuration method of an intelligent contract according to claim 5, wherein said suspending execution of said intelligent contract further comprises:

obtaining a target authorized participant; the target authorized participant is an authorized participant of the digital certificate reaching the valid time;

and sending prompt information of the valid time of the digital certificate to the target authorized party.

7. A trusted configuration method of an intelligent contract according to claim 1, wherein said executing the intelligent contract further comprises:

acquiring an execution result of the intelligent contract;

and completing uplink in a block chain network by using the execution result, the intelligent contract, the digital signature and the digital certificate.

8. A trusted configuration apparatus for intelligent contracts, comprising:

the contract acquisition module is used for acquiring an intelligent contract, and the intelligent contract comprises a plurality of contract variables to be signed;

the participant acquisition module is used for acquiring the associated information of each contract variable to be signed and determining the authorized participant of each contract variable to be signed according to the associated information;

the signature acquisition module is used for receiving authorization information which is used by the authorized party to digitally sign the contract variable to be signed, wherein the authorization information comprises a digital signature and a digital certificate of the authorized party;

and the verification execution module is used for executing the intelligent contract if the digital signature and the digital certificate pass verification.

9. A computer arrangement comprising a memory and a processor, the memory storing a computer program, characterized in that the processor, when executing the computer program, carries out the steps of a trusted configuration method of a smart contract according to any one of claims 1 to 7.

10. A computer-readable storage medium, on which a computer program is stored, which, when being executed by a processor, carries out the steps of a trusted configuration method of a smart contract according to any one of claims 1 to 7.

Background

In the prior art, variable parameters used by an intelligent contract need to be input by an ORACLE predictive machine, and the input parameters of the intelligent contract have the problems of unreliable operation, possible falsification of data and the like no matter whether the parameters are software predictive machines such as website links or hardware predictive machines such as internet of things parameters, so that the legality and the credibility of the current intelligent contract are low, and meanwhile, the cost for verifying the legality and the credibility of the intelligent contract is high.

Disclosure of Invention

The present application mainly aims to provide a trusted configuration method and apparatus of an intelligent contract, a computer device, and a storage medium, and aims to solve the problem of low legitimacy and reliability of the current intelligent contract.

In order to achieve the above object, the present application provides a trusted configuration method for an intelligent contract, including:

acquiring an intelligent contract, wherein the intelligent contract comprises a plurality of contract variables to be signed;

acquiring the associated information of each contract variable to be signed, and determining an authorized participant of each contract variable to be signed according to the associated information;

receiving authorization information digitally signed by the authorized party for the contract variable to be signed, wherein the authorization information comprises a digital signature and a digital certificate of the authorized party;

and if the digital signature and the digital certificate are verified to pass, executing the intelligent contract.

Further, after obtaining the association information of each contract variable to be signed and determining the authorized participant of each contract variable to be signed according to the association information, the method further includes:

acquiring the sequential relation of contract variables to be signed;

and sequentially sending the intelligent contracts to authorized participants of the contract variables to be signed according to the sequential relation.

Further, the sequentially sending the intelligent contracts to authorized participants of the contract variables to be signed according to the sequential relationship includes:

sending the intelligent contract to a first authorized participant, wherein the first authorized participant is an authorized participant of the contract variables in the first sequence;

after receiving the authorization information of the first authorized party, sending the intelligent contract to a second authorized party: the second authorized participant is an authorized participant of the contract variables in the second sequence, and the contract variables in the first sequence and the contract variables in the second sequence are in a front-back sequence relationship.

Further, if both the digital signature and the digital certificate pass the verification, executing the intelligent contract, including:

sequentially verifying the digital signature and the digital certificate according to the sequence relation;

and if the digital signature and the digital certificate are verified to pass, executing the intelligent contract.

Further, after executing the intelligent contract, if both the digital signature and the digital certificate pass the verification, the method further includes:

obtaining the valid time of the digital certificate;

selecting the minimum value of the effective time, and taking the minimum value as the effective time of the intelligent contract;

and when the effective time of the intelligent contract is reached, suspending the execution of the intelligent contract.

Further, after suspending execution of the intelligent contract, the method further includes:

obtaining a target authorized participant; the target authorized participant is an authorized participant of the digital certificate reaching the valid time;

and sending prompt information of the valid time of the digital certificate to the target authorized party.

Further, after executing the intelligent contract, the method further includes:

acquiring an execution result of the intelligent contract;

and completing uplink in a block chain network by using the execution result, the intelligent contract, the digital signature and the digital certificate.

The present application further provides a trusted configuration device for an intelligent contract, including:

the contract acquisition module is used for acquiring an intelligent contract, and the intelligent contract comprises a plurality of contract variables to be signed;

the participant acquisition module is used for acquiring the associated information of each contract variable to be signed and determining the authorized participant of each contract variable to be signed according to the associated information;

the signature acquisition module is used for receiving authorization information which is used by the authorized party to digitally sign the contract variable to be signed, wherein the authorization information comprises a digital signature and a digital certificate of the authorized party;

and the verification execution module is used for executing the intelligent contract if the digital signature and the digital certificate pass verification.

The application also provides a computer device, which includes a memory and a processor, where the memory stores a computer program, and the processor implements the steps of the trusted configuration method of the intelligent contract according to any one of the above items when executing the computer program.

The present application also provides a computer-readable storage medium, on which a computer program is stored, which, when being executed by a processor, implements the steps of the trusted configuration method of an intelligent contract according to any one of the preceding claims.

The application example provides a configuration method of a credible intelligent contract, firstly obtaining an intelligent contract and a plurality of contract variables to be signed contained in the intelligent contract, then obtaining the associated information of each contract variable to be signed from the contract content of the intelligent contract, determining the authorized participants of each contract variable to be signed according to the associated information, then receiving the authorized information of each authorized participant for carrying out digital signature on the contract variable to be signed, wherein the authorized information contains the digital signature and the digital certificate of the authorized participants, then carrying out one-by-one verification on the digital signature and the digital certificate of the authorized participants, if the digital signature and the digital certificate are verified to be passed, the credible authentication of the complete intelligent contract is realized, and at the moment, the contract variables in the intelligent contract have authenticity and traceability, each contract variable has the authorization of the digital signature and the digital certificate of the corresponding authorization participant, so that the reality and the effectiveness of the contract variable are ensured, then the intelligent contract is executed, the operation credibility of the intelligent contract is ensured, and the safety and the reliability of the intelligent contract are improved.

Drawings

Fig. 1 is a schematic flowchart of an embodiment of a trusted configuration method for an intelligent contract according to the present application;

FIG. 2 is a schematic flowchart of another embodiment of a trusted configuration method for intelligent contracts according to the present application;

FIG. 3 is a schematic structural diagram of an embodiment of a trusted configuration device for intelligent contracts according to the present application;

FIG. 4 is a block diagram illustrating a computer device according to an embodiment of the present invention.

The implementation, functional features and advantages of the objectives of the present application will be further explained with reference to the accompanying drawings.

Detailed Description

In order to make the objects, technical solutions and advantages of the present application more apparent, the present application is described in further detail below with reference to the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are merely illustrative of the present application and are not intended to limit the present application.

Referring to fig. 1, an embodiment of the present application provides a trusted configuration method of an intelligent contract, including steps S10-S40, and the detailed description of each step of the trusted configuration method of the intelligent contract is as follows.

And S10, acquiring an intelligent contract, wherein the intelligent contract comprises a plurality of contract variables to be signed.

The method is applied to an intelligent contract application scenario based on a block chain, the intelligent contract is a computer protocol aiming at propagating, verifying or executing the contract in an informatization mode, a set of contract rules is formulated, the contract rules comprise an execution process and an expected execution result of the contract, the execution process of the contract comprises a plurality of variables, the variables are defined as contract variables, the contract variables comprise determined variables and variables to be determined, the determined variables are determined for all contract participants, the variables to be determined need to be determined after authorization of the related contract participants, and the contract variables to be determined are defined as contract variables to be signed.

And S20, acquiring the associated information of each contract variable to be signed, and determining the authorized participant of each contract variable to be signed according to the associated information.

In this embodiment, after an intelligent contract is obtained and a plurality of contract variables to be signed included in the intelligent contract are obtained, the associated information of each contract variable to be signed is obtained according to the content of the intelligent contract, each contract variable has corresponding contract participant information, the relationship between the contract variable and the participants is defined as the associated information of the contract variable, and the contract participant of each contract variable can be determined according to the associated information, in this embodiment, the contract variable to be signed is screened out, the contract participant of the contract variable to be signed is defined as an authorized participant, that is, the contract variable is a valid contract variable only after the change of the contract variable needs to be confirmed by the authorized participant, for example, the contract content includes "user authorization (first party", "numerical variable, and transfer amount") ", wherein, the contract variable to be signed is 'numerical value variable, transfer amount', and the authorized participant is 'Party A'.

And S30, receiving authorization information of the authorized party for digitally signing the contract variable to be signed, wherein the authorization information comprises the digital signature and the digital certificate of the authorized party.

In this embodiment, after acquiring the contract variable to be signed and determining the authorized participants of the contract variable to be signed, the authorized participants also need to receive authorization information that the authorized participants perform digital signature on the contract variable to be signed, that is, each authorized participant can view the contract content of the intelligent contract, and can view the contract variable to be signed related to the authorized participants from the contract content, and then the authorized participants invoke their own digital signatures and digital certificates to digitally sign the contract variable to be signed, so as to authorize the contract variable to be signed, where the authorization information includes the digital signature and digital certificate of the authorized participants, that is, the authorization information is added to the intelligent contract.

And S40, if the digital signature and the digital certificate are verified, executing the intelligent contract.

In this embodiment, after receiving authorization information that an authorization party digitally signs the contract variable to be signed, the digital signature and the digital certificate are checked one by one, and it is first verified whether the digital certificate and the authorization party are matched, if so, it is determined that the digital certificate passes the verification, and then it is verified whether the digital signature and the authorization party are matched, if so, it is determined that the digital signature passes the verification, and only if both the digital signature and the digital certificate pass the verification, the authentication of the contract variable to be signed is completed, the authentication of the intelligent contract is completed, and then the intelligent contract is executed. In this embodiment, if there is one authorized party of the intelligent contract, after the digital signature and the digital certificate of the authorized party are verified, the authentication of the intelligent contract is completed; if the number of the authorized participants of the intelligent contract is at least two, the authentication of the intelligent contract is completed only after the digital signatures and the digital certificates of all the authorized participants are verified.

The embodiment provides a configuration method of a trusted intelligent contract, which includes the steps of firstly obtaining an intelligent contract, obtaining a plurality of contract variables to be signed included in the intelligent contract, obtaining associated information of each contract variable to be signed from contract content of the intelligent contract, determining authorized participants of each contract variable to be signed according to the associated information, receiving authorized information of each authorized participant for digitally signing the contract variable to be signed, wherein the authorized information includes a digital signature and a digital certificate of the authorized participants, checking the digital signature and the digital certificate of the authorized participants one by one, and if the digital signature and the digital certificate are checked to pass, the trusted authentication of the complete intelligent contract is realized, and the contract variables in the intelligent contract have authenticity and traceability, each contract variable has the authorization of the digital signature and the digital certificate of the corresponding authorization participant, so that the reality and the effectiveness of the contract variable are ensured, then the intelligent contract is executed, the operation credibility of the intelligent contract is ensured, and the safety and the reliability of the intelligent contract are improved.

In one embodiment, after obtaining the association information of each contract variable to be signed and determining the authorized participant of each contract variable to be signed according to the association information, the method further includes:

acquiring the sequential relation of contract variables to be signed;

and sequentially sending the intelligent contracts to authorized participants of the contract variables to be signed according to the sequential relation.

In this embodiment, in the process of executing the intelligent contract, the execution of each contract variable has a precedence order, and different contract variables have a phenomenon of mutual influence, that is, after a contract variable is determined, a next contract variable can be determined, after the association information of each contract variable to be signed is obtained, the authorized participant of each contract variable to be signed is determined according to the association information, the ordinal relation of the contract variables to be signed, that is, the influence order of each contract variable to be signed is obtained, and the intelligent contract is sequentially sent to the authorized participant of the contract variable to be signed according to the ordinal relation, for example, the contract variable A, B, C, D to be signed, wherein the contract variables A, B to be signed are in a front-back ordinal relation, the contract variables A, C, D to be signed are in a flat-level ordinal relation, so that the intelligent contract is first sent to the a according to the ordinal relation, C. And D, sending the intelligent contract to the B, specifically, sending the intelligent contract to the authorized participant of the contract variable B to be signed after receiving the authorization information that the authorized participant carries out digital signature on the contract variable A to be signed.

In one embodiment, the sequentially sending the intelligent contracts to authorized participants of the contract variables to be signed according to the sequential relationship includes:

sending the intelligent contract to a first authorized participant, wherein the first authorized participant is an authorized participant of the contract variables in the first sequence;

after receiving the authorization information of the first authorized party, sending the intelligent contract to a second authorized party: the second authorized participant is an authorized participant of the contract variables in the second sequence, and the contract variables in the first sequence and the contract variables in the second sequence are in a front-back sequence relationship.

In this embodiment, on the basis of the above embodiment, when the intelligent contracts are sequentially sent to the authorized participants of the contract variables to be signed according to the sequential relationship, because the contract variables have a sequential relationship, the authorized participants associated with different contract variables also have a sequential relationship, define a first authorized participant and a second authorized participant, the intelligent contract is then sent to a first authorized participant, the first authorized participant being an authorized participant of the first sequence of contract variables, wherein the first authorized participant is an authorized participant of the first sequence of contract variables, and then, and then waits for authorization information of the first authorized party for the first sequence of contract variables, after receiving the authorization information of the first authorized party, sending the intelligent contract to a second authorized party: the second authorized participant is an authorized participant of contract variables in a second sequence, the contract variables in the first sequence and the contract variables in the second sequence are in a front-back sequence relationship, for example, the contract variables A, B to be signed are in a front-back sequence relationship, the contract variables a are in the first sequence, the contract variables B are in the second sequence, the intelligent contract is firstly sent to the first authorized participant corresponding to the contract variables a according to the sequence relationship, after receiving authorization information that the first authorized participant digitally signs the contract variables a to be signed, the intelligent contract is sent to the second authorized participant of the contract variables B to be signed, the front-back authorization relationship of the contract variables is completed, and each contract variable is guaranteed to be an effective and legal contract variable.

In one embodiment, the executing the intelligent contract if both the digital signature and the digital certificate are verified includes:

sequentially verifying the digital signature and the digital certificate according to the sequence relation;

and if the digital signature and the digital certificate are verified to pass, executing the intelligent contract.

In this embodiment, when verifying the digital signature and the digital certificate of the authorized participant, since the authorized participant has a sequential relationship with respect to the authorization information of the contract variables, the digital signature and the digital certificate are sequentially verified according to the sequential relationship, that is, the digital signature and the digital certificate of the authorized participant in the previous sequence are verified first, if the digital signature and the digital certificate of the authorized participant pass the verification, the authorized participant in the next sequence is verified, until the digital signatures and the digital certificates of all the authorized participants pass the verification, each contract variable in the intelligent contract is determined to be a legal and effective contract variable, the intelligent contract is determined to be in effect, and then the intelligent contract is executed; if the digital signature and the digital certificate of the authorized party in the previous verification sequence do not pass, the other authorized parties behind the authorized party in the previous verification sequence are not verified, the calculation amount of verification is reduced, and resources consumed by invalid verification are avoided.

In one embodiment, as shown in fig. 2, after executing the smart contract, the method further includes, if both the digital signature and the digital certificate are verified, the method further includes:

s51: obtaining the valid time of the digital certificate;

s52: selecting the minimum value of the effective time, and taking the minimum value as the effective time of the intelligent contract;

s53: and when the effective time of the intelligent contract is reached, suspending the execution of the intelligent contract.

In this embodiment, after the digital signature and the digital certificate are verified to pass, and the intelligent contract is determined to be a legal and valid intelligent contract, the valid time of the digital certificate is obtained, because the valid times of the digital certificates of different authorized participants are different, the valid time of the intelligent contract needs to be determined according to the valid times of the digital certificates of different authorized participants, in one implementation manner, the minimum value of the valid time is selected and used as the valid time of the intelligent contract, when the intelligent contract reaches the valid time of the minimum value, the intelligent contract is regarded as an illegal and invalid intelligent contract, at this time, the intelligent contract is suspended from execution, and the valid time of the intelligent contract is determined according to the valid time of the digital certificate, so that the intelligent contract can be prevented from being executed after exceeding the valid time, and the legality of the execution of the intelligent contract is improved.

In one embodiment, after suspending execution of the smart contract, the method further comprises:

obtaining a target authorized participant; the target authorized participant is an authorized participant of the digital certificate reaching the valid time;

and sending prompt information of the valid time of the digital certificate to the target authorized party.

In this embodiment, after the execution of the intelligent contract is suspended, a prompt message needs to be sent to the authorized participant whose digital certificate reaches the valid time, specifically, a target authorized participant is obtained; the target authorized participant is the authorized participant of which the digital certificate reaches the valid time, then prompt information of the digital certificate reaching the valid time is sent to the target authorized participant, the target authorized participant of which the digital certificate reaches the valid time is reminded through the prompt information, the digital certificate is updated or delayed, and the intelligent contract can be ensured to recover the validity in time.

In one embodiment, after executing the intelligent contract, the method further comprises:

acquiring an execution result of the intelligent contract;

and completing uplink in a block chain network by using the execution result, the intelligent contract, the digital signature and the digital certificate.

In the embodiment, after the intelligent contract is executed, the execution result of the intelligent contract is obtained each time, after the execution result is obtained each time, the execution result, the intelligent contract, the digital signature and the digital certificate are subjected to chain linking in the block chain network, the intelligent contract after chain linking and the execution result each time are verified to be legal and effective, and are public and can not be tampered, the data tracing of each process in the intelligent contract is ensured, and the practicability of the intelligent contract is improved.

Referring to fig. 3, the present application further provides a trusted configuration apparatus for an intelligent contract, including:

the contract acquisition module 10 is configured to acquire an intelligent contract, where the intelligent contract includes a plurality of contract variables to be signed;

the participant acquiring module 20 is configured to acquire association information of each contract variable to be signed, and determine an authorized participant of each contract variable to be signed according to the association information;

a signature obtaining module 30, configured to receive authorization information that the authorized party digitally signs the contract variable to be signed, where the authorization information includes a digital signature and a digital certificate of the authorized party;

and the verification execution module 40 is configured to execute the intelligent contract if both the digital signature and the digital certificate are verified.

As mentioned above, it is understood that the components of the trusted configuration means of the intelligent contract proposed in the present application may implement the functions of any of the trusted configuration methods of the intelligent contract described above.

In one embodiment, the participant obtaining module 20 further performs:

acquiring the sequential relation of contract variables to be signed;

and sequentially sending the intelligent contracts to authorized participants of the contract variables to be signed according to the sequential relation.

In one embodiment, the participant obtaining module 20 further performs:

sending the intelligent contract to a first authorized participant, wherein the first authorized participant is an authorized participant of the contract variables in the first sequence;

after receiving the authorization information of the first authorized party, sending the intelligent contract to a second authorized party: the second authorized participant is an authorized participant of the contract variables in the second sequence, and the contract variables in the first sequence and the contract variables in the second sequence are in a front-back sequence relationship.

In one embodiment, the check execution module 40 further performs:

sequentially verifying the digital signature and the digital certificate according to the sequence relation;

and if the digital signature and the digital certificate are verified to pass, executing the intelligent contract.

In one embodiment, the check execution module 40 further performs:

obtaining the valid time of the digital certificate;

selecting the minimum value of the effective time, and taking the minimum value as the effective time of the intelligent contract;

and when the effective time of the intelligent contract is reached, suspending the execution of the intelligent contract.

In one embodiment, the check execution module 40 further performs:

obtaining a target authorized participant; the target authorized participant is an authorized participant of the digital certificate reaching the valid time;

and sending prompt information of the valid time of the digital certificate to the target authorized party.

In one embodiment, the apparatus further comprises a uplink module for performing:

acquiring an execution result of the intelligent contract;

and completing uplink in a block chain network by using the execution result, the intelligent contract, the digital signature and the digital certificate.

Referring to fig. 4, a computer device, which may be a mobile terminal and whose internal structure may be as shown in fig. 4, is also provided in the embodiment of the present application. The computer equipment comprises a processor, a memory, a network interface, a display device and an input device which are connected through a system bus. Wherein, the network interface of the computer equipment is used for communicating with an external terminal through network connection. The input means of the computer device is for receiving input from a user. The computer designed processor is used to provide computational and control capabilities. The memory of the computer device includes a storage medium. The storage medium stores an operating system, a computer program, and a database. The database of the computer device is used for storing data. The computer program is executed by a processor to implement a trusted configuration method of an intelligent contract.

The processor executes the trusted configuration method of the intelligent contract, and the trusted configuration method comprises the following steps: acquiring an intelligent contract, wherein the intelligent contract comprises a plurality of contract variables to be signed; acquiring the associated information of each contract variable to be signed, and determining an authorized participant of each contract variable to be signed according to the associated information; receiving authorization information digitally signed by the authorized party for the contract variable to be signed, wherein the authorization information comprises a digital signature and a digital certificate of the authorized party; and if the digital signature and the digital certificate are verified to pass, executing the intelligent contract. The computer equipment provides a credible configuration method of an intelligent contract, firstly obtaining the intelligent contract and a plurality of contract variables to be signed contained in the intelligent contract, then obtaining the associated information of each contract variable to be signed from the contract content of the intelligent contract, determining the authorized participant of each contract variable to be signed according to the associated information, then receiving the authorized information of each authorized participant for carrying out digital signature on the contract variable to be signed, wherein the authorized information contains the digital signature and the digital certificate of the authorized participant, then carrying out one-by-one verification on the digital signature and the digital certificate of the authorized participant, if the digital signature and the digital certificate are verified to be passed, the credible authentication of the complete intelligent contract is realized, and at the moment, the contract variables in the intelligent contract have authenticity and traceability, each contract variable has the authorization of the digital signature and the digital certificate of the corresponding authorization participant, so that the reality and the effectiveness of the contract variable are ensured, then the intelligent contract is executed, the operation credibility of the intelligent contract is ensured, and the safety and the reliability of the intelligent contract are improved.

An embodiment of the present application further provides a computer-readable storage medium, on which a computer program is stored, where the computer program, when executed by the processor, implements a trusted configuration method for an intelligent contract, including the steps of: acquiring an intelligent contract, wherein the intelligent contract comprises a plurality of contract variables to be signed; acquiring the associated information of each contract variable to be signed, and determining an authorized participant of each contract variable to be signed according to the associated information; receiving authorization information digitally signed by the authorized party for the contract variable to be signed, wherein the authorization information comprises a digital signature and a digital certificate of the authorized party; and if the digital signature and the digital certificate are verified to pass, executing the intelligent contract.

The computer readable storage medium provides a configuration method of a credible intelligent contract, firstly acquiring an intelligent contract and a plurality of contract variables to be signed contained in the intelligent contract, then acquiring the associated information of each contract variable to be signed from the contract content of the intelligent contract, determining the authorized participants of each contract variable to be signed according to the associated information, then receiving the authorized information of each authorized participant for digitally signing the contract variable to be signed, wherein the authorized information contains the digital signature and the digital certificate of the authorized participants, then checking the digital signature and the digital certificate of the authorized participants one by one, if the digital signature and the digital certificate are checked to be passed, the credible authentication of the complete intelligent contract is realized, and the contract variables in the intelligent contract have authenticity and traceability, each contract variable has the authorization of the digital signature and the digital certificate of the corresponding authorization participant, so that the reality and the effectiveness of the contract variable are ensured, then the intelligent contract is executed, the operation credibility of the intelligent contract is ensured, and the safety and the reliability of the intelligent contract are improved.

It will be understood by those skilled in the art that all or part of the processes of the methods of the embodiments described above can be implemented by hardware instructions of a computer program, which can be stored in a non-volatile computer-readable storage medium, and when executed, can include the processes of the embodiments of the methods described above.

Any reference to memory, storage, database, or other medium provided herein and used in the embodiments may include non-volatile and/or volatile memory.

Non-volatile memory can include read-only memory (ROM), Programmable ROM (PROM), Electrically Programmable ROM (EPROM), Electrically Erasable Programmable ROM (EEPROM), or flash memory. Volatile memory can include Random Access Memory (RAM) or external cache memory. By way of illustration and not limitation, RAM is available in a variety of forms such as Static RAM (SRAM), Dynamic RAM (DRAM), Synchronous DRAM (SDRAM), double-rate SDRAM (SSRSDRAM), Enhanced SDRAM (ESDRAM), synchronous link (Synchlink) DRAM (SLDRAM), Rambus Direct RAM (RDRAM), direct bus dynamic RAM (DRDRAM), and bus dynamic RAM (RDRAM).

It should be noted that, in this document, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, apparatus, article, or method that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, apparatus, article, or method. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other like elements in a process, apparatus, article, or method that includes the element.

The above description is only a preferred embodiment of the present application and is not intended to limit the scope of the present application.

All the equivalent structures or equivalent processes performed by using the contents of the specification and the drawings of the present application, or directly or indirectly applied to other related technical fields, are included in the scope of protection of the present application.

完整详细技术资料下载
上一篇:石墨接头机器人自动装卡簧、装栓机
下一篇:一种基于人机协同的规模化Fuzzing优化系统及方法

网友询问留言

已有0条留言

还没有人留言评论。精彩留言会获得点赞!

精彩留言,会给你点赞!

技术分类