CN113407944B - Trusted configuration method and device of intelligent contract, computer equipment and storage medium - Google Patents

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

Info

Publication number
CN113407944B
CN113407944B CN202110621013.0A CN202110621013A CN113407944B CN 113407944 B CN113407944 B CN 113407944B CN 202110621013 A CN202110621013 A CN 202110621013A CN 113407944 B CN113407944 B CN 113407944B
Authority
CN
China
Prior art keywords
contract
intelligent
signed
authorized party
variable
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
CN202110621013.0A
Other languages
Chinese (zh)
Other versions
CN113407944A (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.)
Guangdong Chenyi Info Technology Co ltd
Original Assignee
Guangdong Chenyi Info 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 Guangdong Chenyi Info Technology Co ltd filed Critical Guangdong Chenyi Info Technology Co ltd
Priority to CN202110621013.0A priority Critical patent/CN113407944B/en
Publication of CN113407944A publication Critical patent/CN113407944A/en
Application granted granted Critical
Publication of CN113407944B publication Critical patent/CN113407944B/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/50Monitoring users, programs or devices to maintain the integrity of platforms, e.g. of processors, firmware or operating systems
    • G06F21/57Certifying or maintaining trusted computer platforms, e.g. secure boots or power-downs, version controls, system software checks, secure updates or assessing vulnerabilities
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/20Information retrieval; Database structures therefor; File system structures therefor of structured data, e.g. relational data
    • G06F16/23Updating
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/20Information retrieval; Database structures therefor; File system structures therefor of structured data, e.g. relational data
    • G06F16/27Replication, distribution or synchronisation of data between databases or within a distributed database system; Distributed database system architectures therefor
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F21/00Security arrangements for protecting computers, components thereof, programs or data against unauthorised activity
    • G06F21/30Authentication, i.e. establishing the identity or authorisation of security principals
    • G06F21/31User authentication
    • G06F21/33User authentication using certificates
    • 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/64Protecting data integrity, e.g. using checksums, certificates or signatures

Abstract

The application relates to the field of intelligent contracts of blockchain, and discloses a trusted configuration method, a trusted configuration device, computer equipment and a storage medium of the intelligent contracts, wherein the method comprises the following steps: acquiring an intelligent contract, wherein the intelligent contract comprises a plurality of contract variables to be signed; acquiring association information of each contract variable to be signed, and determining an authorized participant of each contract variable to be signed according to the association information; receiving authorization information of the authorized party for digitally signing 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 checked to pass, executing the intelligent contract. The application can ensure the validity and the credibility of the contract variables of the intelligent contract and improve the reality and the effectiveness of the execution of the intelligent contract.

Description

Trusted configuration method and device of intelligent contract, computer equipment and storage medium
Technical Field
The present application relates to the field of intelligent contracts of blockchain, and in particular, to a trusted configuration method, apparatus, computer device and storage medium for intelligent contracts.
Background
In the prior art, variable parameters used by the intelligent contract are required to be input by an ORACLE predictor, whether the software predictor is linked with a website or the hardware predictor is linked with an Internet of things parameter, the input parameters have the problems of unreliable operation, possibly tampered data and the like, so that the legitimacy and the credibility of the current intelligent contract are low, and meanwhile, the cost for verifying the legitimacy and the credibility of the intelligent contract is high.
Disclosure of Invention
The application mainly aims to provide a trusted configuration method, a trusted configuration device, computer equipment and a storage medium of an intelligent contract, and aims to solve the problem that the validity and the credibility of the existing intelligent contract are low.
In order to achieve the above object, the present application provides a trusted configuration method of an intelligent contract, including:
acquiring an intelligent contract, wherein the intelligent contract comprises a plurality of contract variables to be signed;
acquiring association information of each contract variable to be signed, and determining an authorized participant of each contract variable to be signed according to the association information;
receiving authorization information of the authorized party for digitally signing 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 checked to pass, executing the intelligent contract.
Further, after obtaining the association information of each contract variable to be signed and determining the authorized party of each contract variable to be signed according to the association information, the method further includes:
acquiring the sequence relation of contract variables to be signed;
and sequentially sending the intelligent contracts to the authorized participants of the contract variables to be signed according to the sequence relation.
Further, the sending the intelligent contracts to the authorized participants of the contract variables to be signed in turn according to the sequence relation includes:
transmitting the intelligent contract to a first authorized party, wherein the first authorized party is an authorized party of a contract variable in a first sequence;
after receiving the authorization information of the first authorized party, the intelligent contract is sent to a second authorized party: the second authorized party is an authorized party of a second order contract variable, and the first order contract variable and the second order contract variable are in a front-back order relation.
Further, if the digital signature and the digital certificate are both verified, executing the smart contract 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 checked to pass, executing the intelligent contract.
Further, if the digital signature and the digital certificate are both verified, after executing the smart contract, the method further includes:
acquiring the effective 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 suspending executing the intelligent contract after the effective time of the intelligent contract is reached.
Further, after the suspending the execution of the smart contract, the method further includes:
acquiring a target authorized participant; the target authorized party is an authorized party for the valid time of the digital certificate;
and sending prompt information of the valid time of the digital certificate to the target authorized party.
Further, after the executing the smart contract, the method further includes:
acquiring an execution result of the intelligent contract;
and the execution result, the intelligent contract, the digital signature and the digital certificate are completely uplink in a blockchain network.
The application also provides a trusted configuration device of the intelligent contract, which comprises:
the contract acquisition module is used for acquiring an intelligent contract, wherein the intelligent contract comprises a plurality of contract variables to be signed;
the participant acquisition module is used for acquiring the association information of each contract variable to be signed and determining an authorized participant of each contract variable to be signed according to the association information;
the signature acquisition module is used for receiving the authorization information of the authorized party for carrying out digital signature on the contract variable to be signed, wherein the authorization information comprises the digital signature and the 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 comprising a memory and a processor, the memory storing a computer program, the processor implementing the steps of the trusted configuration method of any one of the above-mentioned intelligent contracts when executing the computer program.
The present application also provides a computer readable storage medium having stored thereon a computer program which when executed by a processor performs the steps of the trusted configuration method of a smart contract as described in any of the preceding claims.
The application provides a configuration method of a trusted intelligent contract, which comprises the steps of firstly obtaining an intelligent contract, obtaining a plurality of contract variables to be signed contained in the intelligent contract, obtaining associated information of each contract variable to be signed from contract contents of the intelligent contract, determining authorized parties of each contract variable to be signed according to the associated information, receiving authorization information of each authorized party for carrying out digital signature on the contract variables to be signed, wherein the authorization information comprises digital signatures and digital certificates of the authorized parties, and then carrying out one-by-one verification on the digital signatures and the digital certificates of the authorized parties, if the digital signatures and the digital certificates pass through verification, the trusted authentication of the complete intelligent contract is carried out, and at the moment, the contract variables in the intelligent contract have authenticity and traceability, and each contract variable has authorization of the corresponding authorized party, thereby guaranteeing the authenticity and effectiveness of the contract variables, then executing the intelligent contract, guaranteeing the reliability of operation of the intelligent contract, and improving the security and reliability of the intelligent contract.
Drawings
FIG. 1 is a flow chart illustrating an exemplary method for trusted configuration of smart contracts according to the present application;
FIG. 2 is a flow chart of another embodiment of a trusted configuration method of the smart contract of the present application;
FIG. 3 is a schematic diagram illustrating an exemplary configuration of a trusted configuration device of a smart contract according to the present application;
FIG. 4 is a block diagram schematically illustrating the structure of a computer device according to an embodiment of the present application.
The achievement of the objects, functional features and advantages of the present application will be further described with reference to the accompanying drawings, in conjunction with the embodiments.
Detailed Description
The present application will be described in further detail with reference to the drawings and examples, in order to make the objects, technical solutions and advantages of the present application more apparent. It should be understood that the specific embodiments described herein are for purposes of illustration only and are not intended to limit the scope of the application.
Referring to fig. 1, an embodiment of the present application provides a trusted configuration method of an intelligent contract, including steps S10 to S40, and the steps of the trusted configuration method of an intelligent contract are explained in detail as follows.
S10, acquiring an intelligent contract, wherein the intelligent contract comprises a plurality of contract variables to be signed.
In this embodiment, the intelligent contract is a computer protocol for propagating, verifying or executing the contract in an informationized manner, and by making a set of contract rules, the contract rules include an execution process and an expected execution result of the contract, the execution process of the contract includes a plurality of variables, the variables are defined as contract variables, the contract variables include 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 the related contract participants are authorized, and the contract variables to be determined are defined as contract variables to be signed.
S20, acquiring association information of each contract variable to be signed, and determining authorized participants of each contract variable to be signed according to the association information.
In this embodiment, after obtaining an intelligent contract and obtaining a plurality of contract variables to be signed included in the intelligent contract, obtaining association information of each contract variable to be signed according to content of the intelligent contract, where each contract variable has corresponding contract party information, defining a relationship between the contract variable and a party as association information of the contract variable, and determining a contract party of each contract variable according to the association information.
S30, receiving authorization information of the authorized party for carrying out digital signature on 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 the contract variable to be signed is obtained and the authorized party of the contract variable to be signed is determined, authorization information of the authorized party for digitally signing the contract variable to be signed is received, that is, each authorized party can view the contract content of the intelligent contract, view the contract variable to be signed related to the authorized party from the contract content, and then invoke the digital signature and the digital certificate of the authorized party to digitally sign the contract variable to be signed, thereby authorizing the contract variable to be signed, and the authorization information includes the digital signature and the digital certificate of the authorized party, that is, adding the authorization information to the intelligent contract.
And S40, if the digital signature and the digital certificate are checked to pass, executing the intelligent contract.
In this embodiment, after receiving authorization information of a digital signature of an authorized party for the contract variable to be signed, verifying the digital signature and the digital certificate one by one, firstly verifying whether the digital certificate and the authorized party are matched, if so, determining that the digital certificate passes the verification, and then verifying whether the digital signature and the authorized party are matched, if so, determining that the digital signature passes the verification, and only when the digital signature and the digital certificate pass the verification, completing the authentication of the contract variable to be signed, completing the authentication of an intelligent contract, and then executing the intelligent contract. In this embodiment, if the authorized party of the intelligent contract is one, after the digital signature and the digital certificate of the authorized party are both verified, 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 after the digital signature and the digital certificate of all the authorized participants pass the verification.
The embodiment provides a configuration method of a trusted intelligent contract, which comprises the steps of firstly obtaining an intelligent contract, obtaining a plurality of contract variables to be signed contained in the intelligent contract, obtaining associated information of each contract variable to be signed from contract contents of the intelligent contract, determining authorized parties of each contract variable to be signed according to the associated information, receiving authorization information of each authorized party for carrying out digital signature on the contract variables to be signed, wherein the authorization information comprises digital signatures and digital certificates of the authorized parties, and then carrying out one-by-one verification on the digital signatures and the digital certificates of the authorized parties, if the digital signatures and the digital certificates pass through verification, the trusted authentication of the complete intelligent contract is carried out, and at the moment, the contract variables in the intelligent contract have authenticity and traceability, and each contract variable has authorization of the corresponding authorized party, so that the authenticity and the effectiveness of the contract variables are ensured, then the intelligent contract is executed, the reliability of operation of the intelligent contract is ensured, and the security and reliability of the intelligent contract are improved.
In one embodiment, after the obtaining the association information of each contract variable to be signed and determining the authorized party of each contract variable to be signed according to the association information, the method further includes:
acquiring the sequence relation of contract variables to be signed;
and sequentially sending the intelligent contracts to the authorized participants of the contract variables to be signed according to the sequence relation.
In this embodiment, the intelligent contract is performed in about the process of performing, and the execution of each contract variable has a sequential order, and different contract variables have a mutual influence phenomenon, that is, when one contract variable is determined, the next contract variable can be determined, after the associated information of each contract variable to be signed is obtained, the authorized party of each contract variable to be signed is determined according to the associated information, the sequential relation of the contract variables to be signed, that is, the influencing order of each contract variable to be signed, is obtained, according to the sequential relation, the intelligent contract is sequentially sent to the authorized party of the contract variable to be signed, for example, the contract variable to be signed A, B, C, D, wherein the contract variable to be signed A, B is a front-back sequential relation, and the contract variable to be signed A, C, D is a flat sequential relation, so that the intelligent contract is sent to A, C, D according to the sequential relation, and then the intelligent contract is sent to B, specifically, after the authorized party performs digital signature on the contract variable a to be signed, the authorized party of the contract variable to be signed is sent to B.
In one embodiment, the sequentially sending the smart contracts to the authorized parties of the contract variables to be signed according to the sequential relationship includes:
transmitting the intelligent contract to a first authorized party, wherein the first authorized party is an authorized party of a contract variable in a first sequence;
after receiving the authorization information of the first authorized party, the intelligent contract is sent to a second authorized party: the second authorized party is an authorized party of a second order contract variable, and the first order contract variable and the second order contract variable are in a front-back order relation.
In this embodiment, when the intelligent contracts are sequentially sent to the authorized participants of the contract variables to be signed according to the sequence relationship, the authorized participants associated with different contract variables also have the sequence relationship due to the existence of the sequence relationship of the contract variables, a first authorized participant and a second authorized participant are defined, and then the intelligent contracts are sent to the first authorized participant, where the first authorized participant is the authorized participant of the contract variables in the first sequence, and then the first authorized participant waits for the authorization information of the contract variables in the first sequence, and after receiving the authorization information of the first authorized participant, the intelligent contracts are sent to the second authorized participant: the second authorized party is an authorized party of a contract variable of a second sequence, the contract variable of the first sequence and the contract variable of the second sequence are in a front-back sequence relationship, for example, the contract variable A, B to be signed is in a front-back sequence relationship, the contract variable A is the first sequence, the contract variable B is the second sequence, the intelligent contract is firstly sent to the first authorized party corresponding to the contract variable A according to the sequence relationship, and after the authorized information of the first authorized party for digital signature on the contract variable A to be signed is received, the intelligent contract is sent to the second authorized party of the contract variable B to be signed, so that the sequential authorization relationship of the contract variable is completed, and each contract variable is ensured to be an effective legal contract variable.
In one embodiment, the executing the smart contract if the digital signature and digital certificate are both 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 checked to pass, executing the intelligent contract.
In this embodiment, when verifying the digital signature and the digital certificate of the authorized party, since the authorized party has a sequential relationship with respect to the authorization information of the contract variable, 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 party with the previous sequence are verified first, if the verification is passed, the authorized party with the subsequent sequence is again verified until the digital signatures and the digital certificates of all authorized parties are verified, each contract variable in the intelligent contract is confirmed to be a legal and valid contract variable, the intelligent contract is confirmed to be valid, and then the intelligent contract is executed; if the digital signature and the digital certificate of the authorized party with the preceding verification sequence do not pass, other authorized parties behind the authorized party sequence are not verified any more, so that the calculated amount of verification is reduced, and the resources consumed by invalid verification are avoided.
In one embodiment, as shown in fig. 2, if the digital signature and the digital certificate are both verified, after executing the smart contract, the method further includes:
s51: acquiring the effective 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 suspending executing the intelligent contract after the effective time of the intelligent contract is reached.
In this embodiment, after the digital signature and the digital certificate are both verified, and the intelligent contract is confirmed to be legal and valid, the valid time of the digital certificate is obtained, and because the valid times of the digital certificates of different authorized parties 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 parties, in one embodiment, the minimum value of the valid time is selected, the minimum value is used as the valid time of the intelligent contract, and after the intelligent contract reaches the valid time of the minimum value, the intelligent contract is regarded as an illegal and invalid intelligent contract, and at this time, the intelligent contract is suspended to be executed, and the validity of the intelligent contract is still executed after exceeding the valid time by determining the valid time of the intelligent contract according to the valid time of the digital certificate, thereby improving the validity of the intelligent contract execution.
In one embodiment, after the suspending execution of the smart contract, the method further includes:
acquiring a target authorized participant; the target authorized party is an authorized party for the valid time of the digital certificate;
and sending prompt information of the valid time of the digital certificate to the target authorized party.
In this embodiment, after suspending execution of the intelligent contract, a prompt message needs to be sent to an authorized party whose digital certificate reaches the valid time, and specifically, a target authorized party is obtained; the target authorized party sends prompt information of the digital certificate reaching the effective time to the target authorized party, and the prompt information reminds the target authorized party of the digital certificate reaching the effective time to update the digital certificate or delay the digital certificate of the target authorized party, so that the intelligent contract can recover the effectiveness in time.
In one embodiment, after the executing the smart contract, the method further includes:
acquiring an execution result of the intelligent contract;
and the execution result, the intelligent contract, the digital signature and the digital certificate are completely uplink in a blockchain network.
In this embodiment, after the execution of the smart contract, the execution result of each smart contract is obtained, and after each execution result is obtained, the execution result, the smart contract, the digital signature and the digital certificate are uplink in the blockchain network, and the uplink smart contract and each execution result are valid and valid after verification, and are disclosed and not tamperable, so that the data tracing of each process in the smart contract is ensured, and the practicability of the smart contract is improved.
Referring to fig. 3, the present application also provides a trusted configuration apparatus of 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 party acquisition module 20 is configured to acquire association information of each contract variable to be signed, and determine an authorized party of each contract variable to be signed according to the association information;
a signature acquisition module 30, configured to receive authorization information that the authorized party digitally signs against 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 smart contract if the digital signature and the digital certificate pass verification.
As described above, it will be understood that the components of the trusted configuration apparatus for smart contracts set forth in the present application may implement the functionality of any one of the trusted configuration methods for smart contracts as described above.
In one embodiment, the participant acquisition module 20 further comprises performing:
acquiring the sequence relation of contract variables to be signed;
and sequentially sending the intelligent contracts to the authorized participants of the contract variables to be signed according to the sequence relation.
In one embodiment, the participant acquisition module 20 further comprises performing:
transmitting the intelligent contract to a first authorized party, wherein the first authorized party is an authorized party of a contract variable in a first sequence;
after receiving the authorization information of the first authorized party, the intelligent contract is sent to a second authorized party: the second authorized party is an authorized party of a second order contract variable, and the first order contract variable and the second order contract variable are in a front-back order relation.
In one embodiment, the verification execution module 40 further includes executing:
sequentially verifying the digital signature and the digital certificate according to the sequence relation;
and if the digital signature and the digital certificate are checked to pass, executing the intelligent contract.
In one embodiment, the verification execution module 40 further includes executing:
acquiring the effective 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 suspending executing the intelligent contract after the effective time of the intelligent contract is reached.
In one embodiment, the verification execution module 40 further includes executing:
acquiring a target authorized participant; the target authorized party is an authorized party for the valid time of the digital certificate;
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 chaining module to perform:
acquiring an execution result of the intelligent contract;
and the execution result, the intelligent contract, the digital signature and the digital certificate are completely uplink in a blockchain network.
Referring to fig. 4, in an embodiment of the present application, there is further provided a computer device, which may be a mobile terminal, and an internal structure thereof may be as shown in fig. 4. The computer device includes a processor, a memory, a network interface, and a display device and an input device connected by a system bus. The network interface of the computer device 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 is designed to provide computing and control capabilities. The memory of the computer device includes a storage medium. The storage medium stores an operating system, computer programs, and a database. The database of the computer device is used for storing data. The computer program, when executed by a processor, implements a trusted configuration method for smart contracts.
The processor executes the trusted configuration method of the intelligent contract, which comprises the following steps: acquiring an intelligent contract, wherein the intelligent contract comprises a plurality of contract variables to be signed; acquiring association information of each contract variable to be signed, and determining an authorized participant of each contract variable to be signed according to the association information; receiving authorization information of the authorized party for digitally signing 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 checked to pass, executing the intelligent contract. The computer equipment provides a trusted configuration method of an intelligent contract, firstly, the intelligent contract is obtained, a plurality of contract variables to be signed contained in the intelligent contract are obtained, then the associated information of each contract variable to be signed is obtained from the contract content of the intelligent contract, the authorized participators of each contract variable to be signed are determined according to the associated information, then the authorized information of each authorized participator for carrying out digital signature on the contract variable to be signed is received, the authorized information contains the digital signature and the digital certificate of the authorized participators, then the digital signature and the digital certificate of the authorized participators are checked one by one, if the digital signature and the digital certificate are checked to pass, the trusted authentication of the complete intelligent contract is carried out, at the moment, the contract variables in the intelligent contract have authenticity and traceability, the digital signature and the digital certificate of the corresponding authorized participators are ensured, the authenticity and the effectiveness of the contract variables are ensured, the intelligent contract is executed, the operational reliability of the intelligent contract is ensured, and the security and reliability of the intelligent contract are improved.
An embodiment of the present application also provides a computer-readable storage medium having stored thereon a computer program which, when executed by the processor, implements a trusted configuration method of an intelligent contract, comprising the steps of: acquiring an intelligent contract, wherein the intelligent contract comprises a plurality of contract variables to be signed; acquiring association information of each contract variable to be signed, and determining an authorized participant of each contract variable to be signed according to the association information; receiving authorization information of the authorized party for digitally signing 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 checked to pass, executing the intelligent contract.
The computer readable storage medium provides a configuration method of a trusted intelligent contract, firstly, the intelligent contract is obtained, a plurality of contract variables to be signed contained in the intelligent contract are obtained, then the associated information of each contract variable to be signed is obtained from the contract content of the intelligent contract, the authorized participators of each contract variable to be signed are determined according to the associated information, then the authorized information of each authorized participator for carrying out digital signature on the contract variable to be signed is received, the authorized information contains the digital signature and the digital certificate of the authorized participators, then the digital signature and the digital certificate of the authorized participators are checked one by one, if the digital signature and the digital certificate are checked to pass, the trusted authentication of the complete intelligent contract is carried out, and at the moment, the contract variables in the intelligent contract have the authenticity and traceability, the authenticity and the effectiveness of the contract variables are ensured, then the intelligent contract is executed, the reliability of the intelligent contract is ensured, and the security and the reliability of the intelligent contract are improved.
Those skilled in the art will appreciate that implementing all or part of the above described methods may be accomplished by way of a computer program stored on a non-transitory computer readable storage medium, which when executed, may comprise the steps of the embodiments of the methods described above.
Any reference to memory, storage, database, or other medium provided by the present application and used in embodiments may include non-volatile and/or volatile memory.
The nonvolatile 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), dual speed data rate SDRAM (SSRSDRAM), enhanced SDRAM (ESDRAM), synchronous Link DRAM (SLDRAM), memory bus direct RAM (RDRAM), direct memory bus dynamic RAM (DRDRAM), and memory bus dynamic RAM (RDRAM), among others.
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 one … …" does not exclude the presence of other like elements in a process, apparatus, article or method that comprises the element.
The foregoing is merely a preferred embodiment of the present application and is not intended to limit the scope of the application.
All equivalent structures or equivalent flow changes made by the specification and the attached drawings of the application or directly or indirectly applied to other related technical fields are included in the protection scope of the application.

Claims (8)

1. A method for trusted configuration of an intelligent contract, comprising:
acquiring an intelligent contract, wherein the intelligent contract comprises a plurality of contract variables to be signed;
acquiring association information of each contract variable to be signed, and determining an authorized participant of each contract variable to be signed according to the association information;
acquiring the sequence relation of contract variables to be signed;
sequentially sending the intelligent contracts to the authorized participants of the contract variables to be signed according to the sequence relation, wherein the intelligent contracts comprise: transmitting the intelligent contract to a first authorized party, wherein the first authorized party is an authorized party of a contract variable in a first sequence; receiving authorization information of the authorized party for digitally signing the contract variable to be signed, wherein the authorization information comprises a digital signature and a digital certificate of the authorized party;
after receiving the authorization information of the first authorized party, transmitting the intelligent contract to a second authorized party, wherein the second authorized party is an authorized party of a contract variable in a second sequence; the contract variable of the first sequence and the contract variable of the second sequence are in a front-back sequence relation; wherein the second order contract variables are affected by the first order contract variables;
and if the digital signature and the digital certificate are checked to pass, executing the intelligent contract.
2. The method of trusted configuration of a smart contract of claim 1, wherein said executing said smart contract if said digital signature and digital certificate are both 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 checked to pass, executing the intelligent contract.
3. The method for trusted configuration of a smart contract according to claim 1, further comprising, after executing said smart contract, if said digital signature and digital certificate are both verified, the steps of:
acquiring the effective 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 suspending executing the intelligent contract after the effective time of the intelligent contract is reached.
4. The method for trusted configuration of smart contracts of claim 3, further comprising, after said suspending execution of said smart contract:
acquiring a target authorized participant; the target authorized party is an authorized party for the valid time of the digital certificate;
and sending prompt information of the valid time of the digital certificate to the target authorized party.
5. The method for trusted configuration of smart contracts according to claim 1, further comprising, after said executing said smart contract:
acquiring an execution result of the intelligent contract;
and the execution result, the intelligent contract, the digital signature and the digital certificate are completely uplink in a blockchain network.
6. A trusted configuration device of an intelligent contract, comprising:
the contract acquisition module is used for acquiring an intelligent contract, wherein the intelligent contract comprises a plurality of contract variables to be signed;
the participant acquisition module is used for acquiring the association information of each contract variable to be signed and determining an authorized participant of each contract variable to be signed according to the association information; acquiring the sequence relation of contract variables to be signed; sequentially sending the intelligent contracts to the authorized participants of the contract variables to be signed according to the sequence relation, wherein the intelligent contracts comprise: transmitting the intelligent contract to a first authorized party, wherein the first authorized party is an authorized party of a contract variable in a first sequence;
the signature acquisition module is used for receiving the authorization information of the authorized party for carrying out digital signature on the contract variable to be signed, wherein the authorization information comprises the digital signature and the digital certificate of the authorized party; after receiving the authorization information of the first authorized party, transmitting the intelligent contract to a second authorized party, wherein the second authorized party is an authorized party of a contract variable in a second sequence; the contract variable of the first sequence and the contract variable of the second sequence are in a front-back sequence relation; wherein the second order contract variables are affected by the first order contract variables;
and the verification execution module is used for executing the intelligent contract if the digital signature and the digital certificate pass verification.
7. A computer device comprising a memory and a processor, the memory storing a computer program, characterized in that the processor, when executing the computer program, implements the steps of the trusted configuration method of the smart contract of any one of claims 1 to 5.
8. A computer readable storage medium, on which a computer program is stored, characterized in that the computer program, when being executed by a processor, implements the steps of the trusted configuration method of a smart contract according to any one of claims 1 to 5.
CN202110621013.0A 2021-06-03 2021-06-03 Trusted configuration method and device of intelligent contract, computer equipment and storage medium Active CN113407944B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202110621013.0A CN113407944B (en) 2021-06-03 2021-06-03 Trusted configuration method and device of intelligent contract, computer equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110621013.0A CN113407944B (en) 2021-06-03 2021-06-03 Trusted configuration method and device of intelligent contract, computer equipment and storage medium

Publications (2)

Publication Number Publication Date
CN113407944A CN113407944A (en) 2021-09-17
CN113407944B true CN113407944B (en) 2023-09-26

Family

ID=77676219

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110621013.0A Active CN113407944B (en) 2021-06-03 2021-06-03 Trusted configuration method and device of intelligent contract, computer equipment and storage medium

Country Status (1)

Country Link
CN (1) CN113407944B (en)

Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US10425230B1 (en) * 2019-03-01 2019-09-24 Capital One Services, Llc Identity and electronic signature verification in blockchain
CN110675153A (en) * 2019-10-10 2020-01-10 北京京东振世信息技术有限公司 Block chain-based data verification method and device, storage medium and electronic equipment
CN111131234A (en) * 2019-12-23 2020-05-08 卓尔智联(武汉)研究院有限公司 Intelligent contract data processing method and device in supply chain and computer equipment
CN111127205A (en) * 2019-12-23 2020-05-08 卓尔智联(武汉)研究院有限公司 Intelligent contract generation method and device, computer equipment and storage medium
CN111541785A (en) * 2020-07-08 2020-08-14 支付宝(杭州)信息技术有限公司 Block chain data processing method and device based on cloud computing
CN112199736A (en) * 2020-10-12 2021-01-08 南京邮电大学 Ordered multi-signature method based on block chain
CN112837157A (en) * 2021-02-10 2021-05-25 中国人民银行数字货币研究所 Method, device and system for registering and executing timing intelligent contract in block chain
CN112866282A (en) * 2021-02-10 2021-05-28 中国人民银行数字货币研究所 Method and device for verifying time information in block chain
CN114386096A (en) * 2021-12-29 2022-04-22 鹏城实验室 Decentralized transaction data storage method, device, equipment and storage medium

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
DE102017204536B3 (en) * 2017-03-17 2018-03-08 Bundesdruckerei Gmbh Issuing virtual documents in a blockchain

Patent Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US10425230B1 (en) * 2019-03-01 2019-09-24 Capital One Services, Llc Identity and electronic signature verification in blockchain
CN110675153A (en) * 2019-10-10 2020-01-10 北京京东振世信息技术有限公司 Block chain-based data verification method and device, storage medium and electronic equipment
CN111131234A (en) * 2019-12-23 2020-05-08 卓尔智联(武汉)研究院有限公司 Intelligent contract data processing method and device in supply chain and computer equipment
CN111127205A (en) * 2019-12-23 2020-05-08 卓尔智联(武汉)研究院有限公司 Intelligent contract generation method and device, computer equipment and storage medium
CN111541785A (en) * 2020-07-08 2020-08-14 支付宝(杭州)信息技术有限公司 Block chain data processing method and device based on cloud computing
CN112199736A (en) * 2020-10-12 2021-01-08 南京邮电大学 Ordered multi-signature method based on block chain
CN112837157A (en) * 2021-02-10 2021-05-25 中国人民银行数字货币研究所 Method, device and system for registering and executing timing intelligent contract in block chain
CN112866282A (en) * 2021-02-10 2021-05-28 中国人民银行数字货币研究所 Method and device for verifying time information in block chain
CN114386096A (en) * 2021-12-29 2022-04-22 鹏城实验室 Decentralized transaction data storage method, device, equipment and storage medium

Non-Patent Citations (2)

* Cited by examiner, † Cited by third party
Title
Ethereum-based Emergency Service for Smart Home System: Smart Contract Implementation;Yu Nandar Aung等;《2019 21st International Conference on Advanced Communication Technology (ICACT)》;第147-152页 *
基于区块链的有序多重签名方案;徐朝东等;《南京邮电大学学报(自然科学版)》;第41卷(第2期);第85-94页 *

Also Published As

Publication number Publication date
CN113407944A (en) 2021-09-17

Similar Documents

Publication Publication Date Title
CN106534160B (en) Identity authentication method and system based on block chain
CN108777684B (en) Identity authentication method, system and computer readable storage medium
CN108111314B (en) Method and equipment for generating and verifying digital certificate
CN108964924A (en) Digital certificate method of calibration, device, computer equipment and storage medium
US8904521B2 (en) Client-side prevention of cross-site request forgeries
CN112019493A (en) Identity authentication method, identity authentication device, computer device, and medium
CN107729746B (en) Installed application program tamper-proofing method and system based on digital signature
CN110569658A (en) User information processing method and device based on block chain network, electronic equipment and storage medium
CN111800276B (en) Service processing method and device
CN112448930A (en) Account registration method, device, server and computer readable storage medium
CN107994993B (en) Application program detection method and device
CN111131234A (en) Intelligent contract data processing method and device in supply chain and computer equipment
CN112417518A (en) File verification method and device, electronic equipment and computer readable medium
CN111193707A (en) Pre-verification access method and device based on enterprise browser
CN113407944B (en) Trusted configuration method and device of intelligent contract, computer equipment and storage medium
US20190245842A1 (en) Method for authenticating with a password comprising a salt
CN116707758A (en) Authentication method, equipment and server of trusted computing equipment
US11693991B2 (en) Checking the integrity of an electronic device
CN111211902A (en) Digital signature method and device based on enterprise browser
CN110581833B (en) Service security protection method and device
CN111047323A (en) Credit transaction method and device based on block chain and hardware equipment
CN114172689B (en) Information processing method and equipment
CN115982694A (en) Resource access method, device, equipment and medium
CN112307445B (en) Identity management method and device based on block chain
CN114493862A (en) Verification method, device, electronic equipment, system and storage medium for cross-chain transaction

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