[go: up one dir, main page]
More Web Proxy on the site http://driver.im/

CN111080295B - Electronic contract processing method and device based on blockchain - Google Patents

Electronic contract processing method and device based on blockchain Download PDF

Info

Publication number
CN111080295B
CN111080295B CN201911230015.6A CN201911230015A CN111080295B CN 111080295 B CN111080295 B CN 111080295B CN 201911230015 A CN201911230015 A CN 201911230015A CN 111080295 B CN111080295 B CN 111080295B
Authority
CN
China
Prior art keywords
signature
enterprise
electronic contract
user
contract
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
CN201911230015.6A
Other languages
Chinese (zh)
Other versions
CN111080295A (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.)
Tencent Technology Shenzhen Co Ltd
Original Assignee
Tencent Technology Shenzhen 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 Tencent Technology Shenzhen Co Ltd filed Critical Tencent Technology Shenzhen Co Ltd
Priority to CN201911230015.6A priority Critical patent/CN111080295B/en
Publication of CN111080295A publication Critical patent/CN111080295A/en
Application granted granted Critical
Publication of CN111080295B publication Critical patent/CN111080295B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06QINFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
    • G06Q20/00Payment architectures, schemes or protocols
    • G06Q20/38Payment protocols; Details thereof
    • G06Q20/382Payment protocols; Details thereof insuring higher security of transaction
    • G06Q20/3825Use of electronic signatures
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06QINFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
    • G06Q20/00Payment architectures, schemes or protocols
    • G06Q20/38Payment protocols; Details thereof
    • G06Q20/382Payment protocols; Details thereof insuring higher security of transaction
    • G06Q20/3829Payment protocols; Details thereof insuring higher security of transaction involving key management
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06QINFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
    • G06Q50/00Information and communication technology [ICT] specially adapted for implementation of business processes of specific business sectors, e.g. utilities or tourism
    • G06Q50/10Services
    • G06Q50/18Legal services

Landscapes

  • Business, Economics & Management (AREA)
  • Engineering & Computer Science (AREA)
  • Accounting & Taxation (AREA)
  • General Physics & Mathematics (AREA)
  • Theoretical Computer Science (AREA)
  • Strategic Management (AREA)
  • Physics & Mathematics (AREA)
  • General Business, Economics & Management (AREA)
  • Finance (AREA)
  • Computer Security & Cryptography (AREA)
  • Tourism & Hospitality (AREA)
  • Technology Law (AREA)
  • Health & Medical Sciences (AREA)
  • Economics (AREA)
  • General Health & Medical Sciences (AREA)
  • Human Resources & Organizations (AREA)
  • Marketing (AREA)
  • Primary Health Care (AREA)
  • Management, Administration, Business Operations System, And Electronic Commerce (AREA)

Abstract

The embodiment of the application discloses a block chain-based electronic contract processing method and equipment, wherein the method comprises the following steps: acquiring a service request sent by an enterprise server, and generating an initial service electronic contract according to the service request and a contract template in the intelligent contract; the method comprises the steps of obtaining a first signature obtained by signing an initial business electronic contract by an enterprise server, and determining the initial business electronic contract and the first signature as a first business electronic contract; verifying the first signature by adopting an enterprise certificate, and storing the first business electronic contract in a blockchain when the first signature passes the verification; acquiring a second signature obtained by signing the first business electronic contract by the user terminal, and determining the first business electronic contract and the second signature as a second business electronic contract; and verifying the second signature by adopting the user certificate, and storing the second business electronic contract in the block chain when the second signature passes the verification. By adopting the method and the device, the data reliability of the network information can be ensured.

Description

Electronic contract processing method and device based on blockchain
Technical Field
The present disclosure relates to the field of electronic technologies, and in particular, to a blockchain-based electronic contract processing method and apparatus.
Background
The arrival of the mobile internet age changes the life style of people, and nowadays, the internet has penetrated into every industry and business function field nowadays, and becomes an important production factor. Many trade and commodity trade all adopt the mode of electronic contract to sign up, no longer need to meet the face between the user and accomplish the contract and sign up, the electronic contract has saved both sides 'time, has improved work efficiency, but the electronic contract brings the hidden danger also when facilitating, for example through masquerading or stealing other people's electronic signature, steals other people's identity and carries out commercial activities, leads to other people's interests impaired, makes the reliability of network information greatly reduced.
Disclosure of Invention
The embodiment of the application provides an electronic contract processing method and device based on a block chain, which can ensure the data reliability of network information.
In one aspect, an embodiment of the present application provides a blockchain-based electronic contract processing method, which may include:
acquiring a service request sent by an enterprise server, and generating an initial service electronic contract according to the service request and a contract template in a blockchain intelligent contract;
The method comprises the steps that an enterprise server signs an initial business electronic contract by adopting an enterprise private key, a first signature is obtained, and the initial business electronic contract and the first signature are determined to be the first business electronic contract;
verifying the first signature by adopting an enterprise certificate corresponding to an enterprise to which the enterprise server belongs, and storing the first business electronic contract in a blockchain when the first signature passes the verification;
acquiring a second signature obtained by signing the first business electronic contract by the user terminal by adopting a user private key, and determining the first business electronic contract and the second signature as a second business electronic contract;
and verifying the second signature by adopting a user certificate corresponding to the user to which the user terminal belongs, and storing the second business electronic contract in the block chain when the second signature passes the verification.
The method for generating the initial business electronic contract comprises the steps of:
acquiring a service request sent by an enterprise server, and extracting a service keyword from service information carried by the service request;
and acquiring a contract template corresponding to the service request from the blockchain intelligent contract, adding the service keyword into the contract template, and generating an initial service electronic contract.
Wherein, still include:
acquiring a contract template sent by an enterprise server, and adding the contract template into a blockchain intelligent contract based on the contract template; the contract template is generated by the enterprise server according to the business information and the enterprise information of the enterprise.
The method comprises the steps of verifying a first signature by adopting an enterprise certificate corresponding to an enterprise to which an enterprise server belongs, storing a first business electronic contract in a blockchain when the first signature passes the verification, and comprising the following steps:
acquiring an enterprise certificate corresponding to an enterprise to which an enterprise server belongs from a blockchain, and acquiring an enterprise public key corresponding to the enterprise from the enterprise certificate;
decrypting the signature of the first business electronic contract by adopting the enterprise public key, generating a decryption hash value corresponding to the first signature, and comparing the decryption hash value corresponding to the first signature with the hash value corresponding to the initial business electronic contract;
if the decryption hash value corresponding to the first signature is the same as the hash value corresponding to the initial business electronic contract, determining that the second signature passes verification, and storing the first business electronic contract in a blockchain;
and if the decryption hash value corresponding to the first signature is different from the hash value corresponding to the initial business electronic contract, sending first prompt information.
The method comprises the steps of adopting a user certificate corresponding to a user to which the user terminal belongs to verify a second signature, and storing a second business electronic contract in a block chain when the second signature passes the verification, wherein the method comprises the following steps:
acquiring a user certificate of a user terminal from a block chain, and acquiring a user public key from the user certificate;
decrypting the second signature by using the user public key, generating a decryption hash value corresponding to the second signature, and comparing the decryption hash value corresponding to the second signature with the hash value corresponding to the first business electronic contract;
if the decryption hash value corresponding to the second signature is the same as the hash value corresponding to the first business electronic contract, determining that the second signature passes verification, and storing the second business electronic contract in the blockchain;
and if the decryption hash value corresponding to the second signature is different from the hash value corresponding to the first business electronic contract, sending second prompt information.
Wherein, still include:
and acquiring an enterprise certificate sent by the enterprise server, storing the enterprise certificate into a blockchain, wherein the enterprise certificate is generated according to the enterprise information and an enterprise public key sent by the enterprise server when the enterprise information passes the verification by a CA (certificate authority) organization for verifying the enterprise information sent by the enterprise server.
Wherein, still include:
and acquiring a user certificate sent by the user terminal, and storing the user certificate into the blockchain, wherein the user certificate is generated according to the user information and a user public key sent by the user terminal when the user information passes the verification by the CA mechanism for verifying the user information sent by the user terminal.
In one aspect, an embodiment of the present application provides an electronic contract processing apparatus, which may include:
the request acquisition unit is used for acquiring a service request sent by the enterprise server and generating an initial service electronic contract according to the service request and a contract template in the blockchain intelligent contract;
the enterprise signing unit is used for obtaining a first signature obtained by signing the initial business electronic contract by the enterprise server by adopting an enterprise private key, and determining the initial business electronic contract and the first signature as a first business electronic contract;
the enterprise verification unit is used for verifying the first signature by adopting an enterprise certificate corresponding to an enterprise to which the enterprise server belongs, and storing the first business electronic contract in the blockchain when the first signature passes the verification;
the user signing unit is used for obtaining a second signature obtained by signing the first business electronic contract by the user terminal by adopting the user private key, and determining the first business electronic contract and the second signature as a second business electronic contract;
And the user verification unit is used for verifying the second signature by adopting a user certificate corresponding to the user to which the user terminal belongs, and storing the second business electronic contract in the block chain when the second signature passes the verification.
The request acquisition unit is specifically configured to:
acquiring a service request sent by an enterprise server, and extracting a service keyword from service information carried by the service request;
and acquiring a contract template corresponding to the service request from the blockchain intelligent contract, adding the service keyword into the contract template, and generating an initial service electronic contract.
Wherein, still include:
the template generation unit is used for acquiring a contract template sent by the enterprise server and adding the contract template into the blockchain intelligent contract based on the contract template; the contract template is generated by the enterprise server according to the business information and the enterprise information of the enterprise.
The enterprise verification unit is specifically configured to:
acquiring an enterprise certificate corresponding to an enterprise to which an enterprise server belongs from a blockchain, and acquiring an enterprise public key corresponding to the enterprise from the enterprise certificate;
decrypting the signature of the first business electronic contract by adopting the enterprise public key, generating a decryption hash value corresponding to the first signature, and comparing the decryption hash value corresponding to the first signature with the hash value corresponding to the initial business electronic contract;
If the decryption hash value corresponding to the first signature is the same as the hash value corresponding to the initial business electronic contract, determining that the second signature passes verification, and storing the first business electronic contract in a blockchain;
and if the decryption hash value corresponding to the first signature is different from the hash value corresponding to the initial business electronic contract, sending first prompt information.
The user verification unit is specifically configured to:
acquiring a user certificate of a user terminal from a block chain, and acquiring a user public key from the user certificate;
decrypting the second signature by using the user public key, generating a decryption hash value corresponding to the second signature, and comparing the decryption hash value corresponding to the second signature with the hash value corresponding to the first business electronic contract;
if the decryption hash value corresponding to the second signature is the same as the hash value corresponding to the first business electronic contract, determining that the second signature passes verification, and storing the second business electronic contract in the blockchain;
and if the decryption hash value corresponding to the second signature is different from the hash value corresponding to the first business electronic contract, sending second prompt information.
Wherein, still include:
and the enterprise certificate generation unit is used for acquiring the enterprise certificate sent by the enterprise server, storing the enterprise certificate into the blockchain, wherein the enterprise certificate is generated according to the enterprise information and the enterprise public key sent by the enterprise server when the enterprise information passes the verification by the CA organization for verifying the enterprise information sent by the enterprise server.
Wherein, still include:
the user certificate generation unit is used for acquiring a user certificate sent by the user terminal, storing the user certificate into the blockchain, and verifying the user information sent by the user terminal by the CA mechanism, wherein when the user information passes the verification, the user certificate is generated according to the user information and a user public key sent by the user terminal.
In one aspect, embodiments of the present application provide a computer-readable storage medium having stored thereon a plurality of instructions adapted to be loaded by a processor and to perform the above-described method steps.
In one aspect, a computer device is provided, including a processor and a memory; wherein the memory stores a computer program adapted to be loaded by the processor and to perform the method steps described above.
In the embodiment of the application, an initial business electronic contract is generated according to the business request and a contract template in the blockchain intelligent contract by acquiring the business request sent by the enterprise server; the method comprises the steps that an enterprise server signs an initial business electronic contract by adopting an enterprise private key, a first signature is obtained, and the initial business electronic contract and the first signature are determined to be the first business electronic contract; verifying the first signature by adopting an enterprise certificate corresponding to an enterprise to which the enterprise server belongs, and storing the first business electronic contract in a blockchain when the first signature passes the verification; acquiring a second signature obtained by signing the first business electronic contract by the user terminal by adopting a user private key, and determining the first business electronic contract and the second signature as a second business electronic contract; and verifying the second signature by adopting a user certificate corresponding to the user to which the user terminal belongs, and storing the second business electronic contract in the block chain when the second signature passes the verification. The identity is verified through the enterprise certificate and the user certificate, the condition that the information is stolen to cause damage to benefits is avoided, and the data reliability of the network information is ensured.
Drawings
In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings that are required in the embodiments or the description of the prior art will be briefly described below, it being obvious that the drawings in the following description are only some embodiments of the present application, and that other drawings may be obtained according to these drawings without inventive effort for a person skilled in the art.
FIG. 1 is a system architecture diagram of a blockchain-based electronic contract process provided by embodiments of the present application;
FIG. 2 is a flow chart of a blockchain-based electronic contract processing method provided in an embodiment of the present application;
FIG. 3 is a flow chart of a blockchain-based electronic contract processing method provided by an embodiment of the present application;
FIG. 4 is a schematic illustration of a scenario of a blockchain-based electronic contract process provided by an embodiment of the present application;
fig. 5 is a schematic structural view of an electronic contract processing apparatus provided in an embodiment of the present application;
fig. 6 is a schematic structural diagram of a computer device according to an embodiment of the present application.
Detailed Description
The following description of the embodiments of the present application will be made clearly and fully with reference to the accompanying drawings, in which it is evident that the embodiments described are only some, but not all, of the embodiments of the present application. All other embodiments, which can be made by one of ordinary skill in the art without undue burden from the present disclosure, are within the scope of the present disclosure.
Referring to fig. 1, a system architecture diagram for electronic contract processing based on blockchain is provided in an embodiment of the present invention. The blockchain network 10h establishes a connection with a cluster of user terminals through the communication bus 10d, which may include: user terminal 10a, user terminal 10b, user terminal 10c. The blockchain network 10h comprises a blockchain node 10f, a..and a blockchain node 10g, the blockchain network 10h obtains a service request sent by the enterprise server 10e, and generates an initial service electronic contract according to the service request and a contract template in the blockchain intelligent contract; the blockchain network 10h obtains a first signature obtained by signing the initial business electronic contract by the enterprise server by adopting an enterprise private key, and determines the initial business electronic contract and the first signature as a first business electronic contract; the blockchain network 10h acquires an enterprise certificate corresponding to an enterprise to which the enterprise server belongs from a blockchain, verifies the first signature according to an enterprise public key in the enterprise certificate, and stores the first business electronic contract in the blockchain when the first signature passes the verification; the blockchain network 10h obtains a second signature obtained by signing the first business electronic contract by the user terminal by adopting a user private key, and determines the first business electronic contract and the second signature as a second business electronic contract; the blockchain network 10h obtains a user certificate corresponding to the user to which the user terminal belongs from the blockchain, verifies the second signature according to the user public key in the user certificate, and stores the second business electronic contract in the blockchain when the second signature passes the verification.
The server according to the embodiment of the application may include a server with data transmission and storage, and the user terminal includes: terminal devices such as tablet computers, smart phones, personal Computers (PCs), notebook computers, palm computers, and the like.
The blockchain referred in the embodiments of the present application is a novel application mode of computer technologies such as distributed data storage, point-to-point transmission, consensus mechanism, encryption algorithm, and the like. The Blockchain (Blockchain), which is essentially a decentralised database, is a string of data blocks that are generated by cryptographic means in association, each data block containing a batch of information of network transactions for verifying the validity of the information (anti-counterfeiting) and generating the next block. The blockchain may include a blockchain underlying platform, a platform product services layer, and an application services layer.
The blockchain underlying platform may include processing modules for user management, basic services, smart contracts, operation monitoring, and the like. The user management module is responsible for identity information management of all blockchain participants, including maintenance of public and private key generation (account management), key management, maintenance of corresponding relation between the real identity of the user and the blockchain address (authority management) and the like, and under the condition of authorization, supervision and audit of transaction conditions of certain real identities, and provision of rule configuration (wind control audit) of risk control; the basic service module is deployed on all block chain node devices, is used for verifying the validity of a service request, recording the service request on a storage after the effective request is identified, for a new service request, the basic service firstly analyzes interface adaptation and authenticates the interface adaptation, encrypts service information (identification management) through an identification algorithm, and transmits the encrypted service information to a shared account book (network communication) in a complete and consistent manner, and records and stores the service information; the intelligent contract module is responsible for registering and issuing contracts, triggering contracts and executing contracts, a developer can define contract logic through a certain programming language, issue the contract logic to a blockchain (contract registering), invoke keys or other event triggering execution according to the logic of contract clauses to complete the contract logic, and simultaneously provide a function of registering contract upgrading; the operation monitoring module is mainly responsible for deployment in the product release process, modification of configuration, contract setting, cloud adaptation and visual output of real-time states in product operation, for example: alarms, monitoring network conditions, monitoring node device health status, etc.
The platform product service layer provides basic capabilities and implementation frameworks of typical applications, and developers can complete the blockchain implementation of business logic based on the basic capabilities and the characteristics of the superposition business. The application service layer provides the application service based on the block chain scheme to the business participants for use.
Referring to fig. 2, a flowchart of a blockchain-based electronic contract processing method is provided in an embodiment of the present application. As shown in fig. 2, the method of the embodiment of the present application may include the following steps S101 to S105.
S101, acquiring a service request sent by an enterprise server, and generating an initial service electronic contract according to the service request and a contract template in a blockchain intelligent contract;
specifically, the electronic contract processing device obtains a service request sent by the enterprise server, and generates an initial service electronic contract according to the service request and a contract template in the blockchain intelligent contract, and it can be understood that the service request is a request initiated by a user for specific service, specifically can be a transaction request of an article, the user terminal sends the service request to the enterprise server, the enterprise server sends enterprise information and the service request to the electronic contract processing device, the electronic contract processing device generates the initial service electronic contract according to the service request, the initial electronic contract is the initial service electronic contract generated according to service data carried in the service request and the contract template in the blockchain, the initial service electronic contract comprises information of both sides of the service data and the signed contract, specifically, the information of both sides of the signed contract can be information of a party A and a party B, and the signature information of both sides of the contract is not signed in the initial electronic contract.
S102, acquiring a first signature obtained by signing an initial business electronic contract by an enterprise server by adopting an enterprise private key, and determining the initial business electronic contract and the first signature as a first business electronic contract;
specifically, the electronic contract processing device obtains a first signature obtained by signing an initial business electronic contract by an enterprise server by adopting an enterprise private key, and determines the initial business electronic contract and the first signature as the first business electronic contract, and it can be understood that the enterprise server signs the initial business electronic contract by adopting the enterprise private key of the enterprise to obtain the first signature, the enterprise private key is a non-public key in an asymmetric key cryptosystem and is generated by an asymmetric encryption algorithm, and the encryption algorithm comprises: RSA encryption algorithm, elliptic curve encryption algorithm, etc., the first signature is information obtained by encrypting the abstract generated by the enterprise server according to the initial business electronic contract, the blockchain can verify the identity of the enterprise to which the enterprise server belongs according to the first signature, the electronic contract processing equipment obtains the first signature obtained by signing the initial business electronic contract by the enterprise server by adopting an enterprise private key, the initial business electronic contract and the first signature are determined to be the first business electronic contract, the blockchain can verify the first signature by adopting an enterprise certificate corresponding to the enterprise, and the enterprise public key corresponding to the enterprise private key is included in the enterprise certificate.
S103, verifying the first signature by adopting an enterprise certificate corresponding to an enterprise to which the enterprise server belongs, and storing the first business electronic contract in a blockchain when the first signature passes the verification;
specifically, the electronic contract processing device verifies the first signature by adopting an enterprise certificate corresponding to an enterprise to which the enterprise server belongs, and when the first signature passes the verification, the first business electronic contract is stored in the blockchain.
S104, obtaining a second signature obtained by signing the first business electronic contract by the user terminal by adopting the user private key, and determining the first business electronic contract and the second signature as a second business electronic contract;
specifically, the electronic contract processing device obtains a second signature obtained by signing the first business electronic contract by the user terminal by adopting a user private key, and determines the first business electronic contract and the second signature as the second business electronic contract, and it can be understood that the user terminal signs the first business electronic contract by adopting the user private key to obtain the second signature, and the user private key is an unpublished key in the asymmetric key cryptosystem and is generated by an asymmetric encryption algorithm, and the encryption algorithm comprises: RSA encryption algorithm, elliptic curve encryption algorithm, etc., the second signature is information obtained by encrypting the abstract generated by the user terminal according to the first business electronic contract, the blockchain can verify the identity of the user to which the user terminal belongs according to the second signature, the electronic contract processing equipment obtains the second signature obtained by signing the first business electronic contract by the user terminal by adopting a user private key, the first business electronic contract and the second signature are determined to be the second business electronic contract, the blockchain can verify the second signature by adopting a user certificate corresponding to the user, and the user public key corresponding to the user private key is included in the user certificate.
And S105, verifying the second signature by adopting a user certificate corresponding to the user to which the user terminal belongs, and storing the second business electronic contract in the block chain when the second signature passes the verification.
Specifically, the electronic contract processing device adopts a user certificate corresponding to the user to which the user terminal belongs to verify the second signature, when the second signature passes the verification, the second business electronic contract is stored in the blockchain, and it can be understood that the electronic contract processing device acquires the user certificate of the user from the blockchain, acquires a user public key corresponding to a user private key from the user certificate, decrypts the second signature of the second business electronic contract by using the user public key to generate a decryption hash value, compares the decryption hash value with the hash value of the second electronic contract, verifies the second signature, and when the second signature passes the verification, stores the second business electronic contract in the blockchain.
In the embodiment of the application, an initial business electronic contract is generated according to the business request and a contract template in the blockchain intelligent contract by acquiring the business request sent by the enterprise server; the method comprises the steps that an enterprise server signs an initial business electronic contract by adopting an enterprise private key, a first signature is obtained, and the initial business electronic contract and the first signature are determined to be the first business electronic contract; verifying the first signature by adopting an enterprise certificate corresponding to an enterprise to which the enterprise server belongs, and storing the first business electronic contract in a blockchain when the first signature passes the verification; acquiring a second signature obtained by signing the first business electronic contract by the user terminal by adopting a user private key, and determining the first business electronic contract and the second signature as a second business electronic contract; and verifying the second signature by adopting a user certificate corresponding to the user to which the user terminal belongs, and storing the second business electronic contract in the block chain when the second signature passes the verification. The identity is verified through the enterprise certificate and the user certificate, the condition that the information is stolen to cause damage to benefits is avoided, and the data reliability of the network information is ensured.
Referring to fig. 3, a flowchart of a blockchain-based electronic contract processing method is provided in an embodiment of the present application. As shown in fig. 3, the method of the embodiment of the present application may include the following steps S201 to S208.
S201, an enterprise certificate sent by an enterprise server is obtained, the enterprise certificate is stored in a blockchain, the enterprise certificate is generated according to enterprise information and an enterprise public key sent by the enterprise server when the enterprise information passes verification through verification by a CA (certificate authority) organization.
Specifically, the electronic contract processing device obtains an enterprise certificate sent by the enterprise server, and stores the enterprise certificate in the blockchain, and it can be understood that the CA institution is a trusted third party in the electronic commerce transaction and bears responsibility for verifying the validity of the public key in the public key system, and the CA institution issues a digital certificate for each user using the public key, and the digital certificate has the function of proving that the user listed in the certificate has the public key listed in the certificate legally. The enterprise server sends the enterprise public key of the enterprise and enterprise information of the enterprise to the CA mechanism, the CA mechanism verifies the enterprise information, when the enterprise information passes verification, the CA mechanism generates an enterprise certificate according to the enterprise information and the enterprise public key, the enterprise certificate is sent to the enterprise server, the electronic contract processing equipment acquires the enterprise certificate sent by the enterprise server, generates a corresponding block according to the enterprise certificate, and adds the block to the blockchain.
S202, a user certificate sent by a user terminal is obtained and stored in a block chain, wherein the user certificate is generated according to the user information and a user public key sent by the user terminal when the user information passes the verification by a CA (certificate authority) organization and the user information sent by the user terminal is verified.
Specifically, the electronic contract processing device obtains a user certificate sent by the user terminal, and stores the user certificate in the blockchain, and it can be understood that the user terminal sends a user public key of the user and user information of the user to the CA mechanism, the user information includes a mobile phone number, identity card information and the like, the CA mechanism verifies the user information, when the user information passes the verification, the CA mechanism generates the user certificate according to the user information and the user public key, sends the user certificate to the user terminal, and the electronic contract processing device obtains the user certificate sent by the user terminal, generates a corresponding block according to the user certificate, and adds the block to the blockchain.
S203, acquiring a contract template sent by an enterprise server, and adding the contract template into the blockchain intelligent contract; the contract template is generated by the enterprise server according to the business information and the enterprise information of the enterprise.
Specifically, the electronic contract processing device acquires a contract template sent by the enterprise server, adds the contract template to the blockchain intelligent contract based on the contract template, and can understand that the contract template is used for quickly generating an initial business electronic contract according to business information and enterprise information of an enterprise, the enterprise server sends the contract template to the electronic contract processing device, and the electronic contract processing device contract template is added to the blockchain intelligent contract.
S204, acquiring a service request sent by an enterprise server, and extracting a service keyword from service information carried by the service request; and acquiring a contract template corresponding to the service request from the blockchain intelligent contract, adding the service keyword into the contract template, and generating an initial service electronic contract.
Specifically, the electronic contract processing equipment acquires a service request sent by an enterprise server, and extracts a service keyword from service information carried by the service request; the method comprises the steps of obtaining a contract template corresponding to a service request from a blockchain intelligent contract, adding a service keyword into the contract template to generate an initial service electronic contract, wherein it can be understood that an enterprise server obtains the service request sent by a user terminal, the service request carries user information and service information, the enterprise server sends the service request and the service information to electronic contract processing equipment, the electronic contract processing equipment extracts the service keyword from the service information, the service keyword is numerical information in service, and can be specifically the amount, time, date and the like of transaction, and the corresponding contract template is obtained according to the service request and the enterprise information, and the service keyword is added into the contract template to generate the initial service electronic contract.
S205, acquiring a first signature obtained by signing the initial business electronic contract by the enterprise server by adopting an enterprise private key, and determining the initial business electronic contract and the first signature as a first business electronic contract;
specifically, the electronic contract processing device obtains a first signature obtained by signing an initial business electronic contract by an enterprise server by adopting an enterprise private key, and determines the initial business electronic contract and the first signature as the first business electronic contract, and it can be understood that the enterprise server signs the initial business electronic contract by adopting the enterprise private key of the enterprise to obtain the first signature, the enterprise private key is a non-public key in an asymmetric key cryptosystem and is generated by an asymmetric encryption algorithm, and the encryption algorithm comprises: RSA encryption algorithm, elliptic curve encryption algorithm, etc., the first signature is information obtained by encrypting the abstract generated by the enterprise server according to the initial business electronic contract, the blockchain can verify the identity of the enterprise to which the enterprise server belongs according to the first signature, the electronic contract processing equipment obtains the first signature obtained by signing the initial business electronic contract by the enterprise server by adopting an enterprise private key, the initial business electronic contract and the first signature are determined to be the first business electronic contract, the blockchain can verify the first signature by adopting an enterprise certificate corresponding to the enterprise, and the enterprise public key corresponding to the enterprise private key is included in the enterprise certificate.
S206, verifying the first signature by adopting an enterprise certificate corresponding to an enterprise to which the enterprise server belongs, and storing the first business electronic contract in the blockchain when the first signature passes the verification;
specifically, the electronic contract processing device obtains an enterprise certificate corresponding to an enterprise to which the enterprise server belongs from the blockchain, obtains an enterprise public key corresponding to the enterprise from the enterprise certificate, decrypts a signature of the first business electronic contract by adopting the enterprise public key, generates a decryption hash value corresponding to the first signature, compares the decryption hash value corresponding to the first signature with a hash value corresponding to the initial business electronic contract, and determines that the second signature passes verification if the decryption hash value corresponding to the first signature is identical to the hash value corresponding to the initial business electronic contract, and stores the first business electronic contract in the blockchain; if the decryption hash value corresponding to the first signature is different from the hash value corresponding to the initial business electronic contract, sending first prompt information, wherein the first prompt information can be text prompt information and voice prompt information.
S207, obtaining a second signature obtained by signing the first business electronic contract by the user terminal by adopting a user private key, and determining the first business electronic contract and the second signature as a second business electronic contract;
Specifically, the electronic contract processing device obtains a second signature obtained by signing the first business electronic contract by the user terminal by adopting a user private key, and determines the first business electronic contract and the second signature as the second business electronic contract, and it can be understood that the user terminal signs the first business electronic contract by adopting the user private key to obtain the second signature, and the user private key is an unpublished key in the asymmetric key cryptosystem and is generated by an asymmetric encryption algorithm, and the encryption algorithm comprises: RSA encryption algorithm, elliptic curve encryption algorithm, etc., the second signature is information obtained by encrypting the abstract generated by the user terminal according to the first business electronic contract, the blockchain can verify the identity of the user to which the user terminal belongs according to the second signature, the electronic contract processing equipment obtains the second signature obtained by signing the first business electronic contract by the user terminal by adopting a user private key, the first business electronic contract and the second signature are determined to be the second business electronic contract, the blockchain can verify the second signature by adopting a user certificate corresponding to the user, and the user public key corresponding to the user private key is included in the user certificate.
And S208, verifying the second signature by adopting a user certificate corresponding to the user to which the user terminal belongs, and storing the second business electronic contract in the block chain when the second signature passes the verification.
Specifically, the electronic contract processing device acquires a user certificate of the user terminal from the blockchain, and acquires a user public key from the user certificate; decrypting the second signature by using the user public key, generating a decryption hash value corresponding to the second signature, and comparing the decryption hash value corresponding to the second signature with the hash value corresponding to the first business electronic contract; if the decryption hash value corresponding to the second signature is the same as the hash value corresponding to the first business electronic contract, determining that the second signature passes verification, and storing the second business electronic contract in the blockchain; and if the decryption hash value corresponding to the second signature is different from the hash value corresponding to the first business electronic contract, sending second prompt information, wherein the second prompt information can be text prompt information and voice prompt information. Referring to fig. 4, a schematic view of a scenario of a blockchain-based electronic contract processing method is provided in an embodiment of the present application, as shown in fig. 4;
before signing an electronic contract, an enterprise completes enterprise identity real-name authentication and enterprise identity binding by registering to a chain control console, a public and private key is locally generated, public key and signature binding is carried out to the chain control console, and the private key can be used for signing the electronic contract. The enterprise sends the enterprise public key and the enterprise information to a CA organization, applies for the enterprise CA certificate, the CA organization verifies the enterprise information, the certificate is issued after verification is passed, and the enterprise stores the enterprise certificate into a blockchain. The enterprise defines a contract template at "to chain console" to add contracts to blockchain intelligent contracts.
The user generates a user public and private key locally through the 'to-chain SDK', the user signs an electronic contract, and the user applies the user public key and related user information (name+identity card number+mobile phone number) to the CA mechanism for a user certificate. And the CA mechanism verifies the user information, and after the user information passes the verification, the certificate is issued, and the user stores the user certificate into the blockchain intelligent contract.
The method comprises the steps that a user sends a business request to an enterprise, the enterprise sends the business request and enterprise information to a blockchain, the blockchain extracts key fields in the business request, an initial business electronic contract is generated according to the key fields and contract templates in a blockchain intelligent contract, the enterprise signs the initial business electronic contract to generate a first signature, the initial business electronic contract and the first signature are determined to be a first business electronic contract, and the first signature in the first business electronic contract is verified according to an enterprise public key in an enterprise certificate; when the first signature passes verification, the contract is stored, a user can read the first business electronic contract on the blockchain and decrypt the contract by using a secret key to check the contract plaintext, and if the user agrees to sign, the user can click the next step or sign on the client and send a short message verification code to the user to verify the user signing intention; the user signs the first business electronic contract on the blockchain through a user private key to generate a second signature, the blockchain determines the initial business electronic contract and the second signature as the second business electronic contract, verifies the second signature in the second business electronic contract according to the user public key in the user certificate, and when the first signature passes the verification, the user and the enterprise formally complete signing of the contract on the chain and store the contract, and meanwhile, the blockchain can issue the signed contract to the enterprise and the user through mails.
The contract is sent to the user through mail: the fact that the contract signed by the user is not consistent with the contract on the chain is not avoided, the corresponding contract is sent to the user through a mailbox form to the chain platform after the user completes the contract signing, in the embodiment of the application, the initial business electronic contract is generated according to the business request and the contract template in the intelligent block chain contract by acquiring the business request sent by the enterprise server; the method comprises the steps that an enterprise server signs an initial business electronic contract by adopting an enterprise private key, a first signature is obtained, and the initial business electronic contract and the first signature are determined to be the first business electronic contract; verifying the first signature by adopting an enterprise certificate corresponding to an enterprise to which the enterprise server belongs, and storing the first business electronic contract in a blockchain when the first signature passes the verification; acquiring a second signature obtained by signing the first business electronic contract by the user terminal by adopting a user private key, and determining the first business electronic contract and the second signature as a second business electronic contract; and verifying the second signature by adopting a user certificate corresponding to the user to which the user terminal belongs, and storing the second business electronic contract in the block chain when the second signature passes the verification. The identity is verified through the enterprise certificate and the user certificate, the condition that the information is stolen to cause damage to benefits is avoided, and the data reliability of the network information is ensured.
Referring to fig. 5, a schematic structural diagram of a server 1 is provided in an embodiment of the present application. As shown in fig. 5, the server 1 of the embodiment of the present application may include: a request acquisition unit 11, an enterprise signature unit 12, an enterprise verification unit 13, a user signature unit 14, a user verification unit 15.
A request acquisition unit 11, configured to acquire a service request sent by an enterprise server, and generate an initial service electronic contract according to the service request and a contract template in the blockchain intelligent contract;
the request acquisition unit 11 is specifically configured to:
acquiring a service request sent by an enterprise server, and extracting a service keyword from service information carried by the service request;
and acquiring a contract template corresponding to the service request from the blockchain intelligent contract, adding the service keyword into the contract template, and generating an initial service electronic contract.
An enterprise signing unit 12, configured to obtain a first signature obtained by signing the initial business electronic contract with an enterprise private key by using the enterprise server, and determine the initial business electronic contract and the first signature as a first business electronic contract;
an enterprise verification unit 13, configured to verify the first signature by using an enterprise certificate corresponding to an enterprise to which the enterprise server belongs, and store the first business electronic contract in the blockchain when the first signature passes the verification;
The enterprise verification unit 13 is specifically configured to:
acquiring an enterprise certificate corresponding to an enterprise to which an enterprise server belongs from a blockchain, and acquiring an enterprise public key corresponding to the enterprise from the enterprise certificate;
decrypting the signature of the first business electronic contract by adopting the enterprise public key, generating a decryption hash value corresponding to the first signature, and comparing the decryption hash value corresponding to the first signature with the hash value corresponding to the initial business electronic contract;
if the decryption hash value corresponding to the first signature is the same as the hash value corresponding to the initial business electronic contract, determining that the second signature passes verification, and storing the first business electronic contract in a blockchain;
and if the decryption hash value corresponding to the first signature is different from the hash value corresponding to the initial business electronic contract, sending first prompt information.
A user signing unit 14, configured to obtain a second signature obtained by signing the first service electronic contract with the user private key by using the user terminal, and determine the first service electronic contract and the second signature as a second service electronic contract;
and the user verification unit 15 is configured to verify the second signature by using a user certificate corresponding to the user to which the user terminal belongs, and store the second service electronic contract in the blockchain when the second signature passes the verification.
The user authentication unit 15 is specifically configured to:
acquiring a user certificate of a user terminal from a block chain, and acquiring a user public key from the user certificate;
decrypting the second signature by using the user public key, generating a decryption hash value corresponding to the second signature, and comparing the decryption hash value corresponding to the second signature with the hash value corresponding to the first business electronic contract;
if the decryption hash value corresponding to the second signature is the same as the hash value corresponding to the first business electronic contract, determining that the second signature passes verification, and storing the second business electronic contract in the blockchain;
and if the decryption hash value corresponding to the second signature is different from the hash value corresponding to the first business electronic contract, sending second prompt information.
Referring to fig. 5, the server 1 of the embodiment of the present application may further include: a template generation unit 16, an enterprise certificate generation unit 17, and a user certificate generation unit 18.
A template generating unit 16, configured to obtain a contract template sent by the enterprise server, and add the contract template to the blockchain intelligent contract; the contract template is generated by the enterprise server according to the business information and the enterprise information of the enterprise.
And the enterprise certificate generating unit 17 is configured to obtain an enterprise certificate sent by the enterprise server, store the enterprise certificate in the blockchain, and verify enterprise information sent by the enterprise server by the CA agency, where the enterprise certificate is generated according to the enterprise information and an enterprise public key sent by the enterprise server when the enterprise information passes the verification.
And a user certificate generation unit 18, configured to obtain a user certificate sent by the user terminal, store the user certificate in the blockchain, and verify user information sent by the user terminal by the CA institution, where the user certificate is generated according to the user information and a user public key sent by the user terminal when the user information passes the verification.
In the embodiment of the application, an initial business electronic contract is generated according to the business request and a contract template in the blockchain intelligent contract by acquiring the business request sent by the enterprise server; the method comprises the steps that an enterprise server signs an initial business electronic contract by adopting an enterprise private key, a first signature is obtained, and the initial business electronic contract and the first signature are determined to be the first business electronic contract; verifying the first signature by adopting an enterprise certificate corresponding to an enterprise to which the enterprise server belongs, and storing the first business electronic contract in a blockchain when the first signature passes the verification; acquiring a second signature obtained by signing the first business electronic contract by the user terminal by adopting a user private key, and determining the first business electronic contract and the second signature as a second business electronic contract; and verifying the second signature by adopting a user certificate corresponding to the user to which the user terminal belongs, and storing the second business electronic contract in the block chain when the second signature passes the verification. The identity is verified through the enterprise certificate and the user certificate, the condition that the information is stolen to cause damage to benefits is avoided, and the data reliability of the network information is ensured.
Referring to fig. 6, a schematic structural diagram of a computer device is provided in an embodiment of the present application. As shown in fig. 6, the computer device 1000 may include: at least one processor 1001, such as a CPU, at least one network interface 1004, a user interface 1003, a memory 1005, at least one communication bus 1002. Wherein the communication bus 1002 is used to enable connected communication between these components. The user interface 1003 may include a Display (Display), and the optional user interface 1003 may further include a standard wired interface, a wireless interface, among others. The network interface 1004 may optionally include a standard wired interface, a wireless interface (e.g., WI-FI interface). The memory 1005 may be a high-speed RAM memory or a non-volatile memory (non-volatile memory), such as at least one disk memory. The memory 1005 may also optionally be at least one storage device located remotely from the processor 1001. As shown in fig. 6, an operating system, network communication modules, user interface modules, and data processing applications may be included in memory 1005, which is a type of computer storage medium.
In the computer device 1000 shown in fig. 6, the network interface 1004 may provide a network communication function, and the user interface 1003 is mainly used as an interface for providing input to a user; and the processor 1001 may be configured to invoke the data processing application stored in the memory 1005, specifically:
Acquiring a service request sent by an enterprise server, and generating an initial service electronic contract according to the service request and a contract template in a blockchain intelligent contract;
the enterprise server signs the initial business electronic contract by adopting an enterprise private key to obtain a first signature, and the initial business electronic contract and the first signature are determined to be a first business electronic contract;
verifying the first signature by adopting an enterprise certificate corresponding to an enterprise to which the enterprise server belongs, and storing the first business electronic contract in the blockchain when the first signature passes the verification;
acquiring a second signature obtained by signing the first business electronic contract by a user terminal by adopting a user private key, and determining the first business electronic contract and the second signature as a second business electronic contract;
and verifying the second signature by adopting a user certificate corresponding to the user to which the user terminal belongs, and storing the second business electronic contract in the blockchain when the second signature passes the verification.
To implement the description of the electronic contract processing method in any of the embodiments corresponding to fig. 2-4, the description is omitted herein.
It should be understood that the computer device 1000 described in the embodiments of the present application may perform the description of the electronic contract processing method in the embodiment corresponding to any one of fig. 2 to fig. 4, and may also perform the description of the electronic contract processing device in the embodiment corresponding to fig. 5, which is not repeated herein. In addition, the description of the beneficial effects of the same method is omitted.
Furthermore, it should be noted here that: the embodiment of the present application further provides a computer readable storage medium, in which a computer program executed by the aforementioned electronic contract processing apparatus is stored, and the computer program includes program instructions, when executed by a processor, can execute the description of the electronic contract processing method in any of the corresponding embodiments of fig. 2 to 4, and therefore, a detailed description will not be given here. In addition, the description of the beneficial effects of the same method is omitted. For technical details not disclosed in the embodiments of the computer-readable storage medium according to the present application, please refer to the description of the method embodiments of the present application.
Those skilled in the art will appreciate that implementing all or part of the above-described methods in the embodiments may be accomplished by computer programs to instruct related hardware, and the programs may be stored in a computer readable storage medium, which when executed may include the processes of the embodiments of the methods described above. The storage medium may be a magnetic disk, an optical disk, a Read-Only Memory (ROM), a random access Memory (Random Access Memory, RAM), or the like.
The foregoing disclosure is only illustrative of the preferred embodiments of the present application and is not intended to limit the scope of the claims herein, as the equivalent of the claims herein shall be construed to fall within the scope of the claims herein.

Claims (6)

1. A blockchain-based electronic contract processing method, comprising:
acquiring a contract template sent by an enterprise server, and adding the contract template into a blockchain intelligent contract; the contract template is generated by the enterprise server according to the business information and the enterprise information of the enterprise;
acquiring a service request sent by an enterprise server, and extracting a service keyword from service information carried by the service request;
acquiring a contract template corresponding to the service request from a blockchain intelligent contract, adding the service keyword into the contract template, and generating an initial service electronic contract;
the enterprise server signs the initial business electronic contract by adopting an enterprise private key to obtain a first signature, and the initial business electronic contract and the first signature are determined to be a first business electronic contract;
verifying the first signature by adopting an enterprise certificate corresponding to an enterprise to which the enterprise server belongs, storing the first business electronic contract in the blockchain when the first signature passes the verification, and sending a short message verification code to a user when receiving a signing request of a client for contract plaintext; the contract plaintext is obtained by decrypting the first business electronic contract read from the blockchain through a secret key by the client;
If the user has a signing willingness through the short message verification code, a second signature obtained by signing the first business electronic contract by the user terminal through a user private key is obtained, and the first business electronic contract and the second signature are determined to be a second business electronic contract;
verifying the second signature by adopting a user certificate corresponding to the user to which the user terminal belongs, and storing the second business electronic contract in the blockchain when the second signature passes the verification to determine that the second business electronic contract is signed; the blockchain is used for issuing the second business electronic contract which is signed to enterprises and users through mails;
the step of verifying the first signature by using an enterprise certificate corresponding to an enterprise to which the enterprise server belongs, and storing the first business electronic contract in the blockchain when the first signature passes the verification includes:
acquiring an enterprise certificate corresponding to an enterprise to which the enterprise server belongs from the blockchain, and acquiring an enterprise public key corresponding to the enterprise from the enterprise certificate;
decrypting the signature of the first business electronic contract by adopting the enterprise public key, generating a decryption hash value corresponding to the first signature, and comparing the decryption hash value corresponding to the first signature with the hash value corresponding to the initial business electronic contract;
If the decryption hash value corresponding to the first signature is the same as the hash value corresponding to the initial business electronic contract, determining that the second signature passes verification, and storing the first business electronic contract in the blockchain;
if the decryption hash value corresponding to the first signature is different from the hash value corresponding to the initial business electronic contract, sending first prompt information;
the step of verifying the second signature by using a user certificate corresponding to the user to which the user terminal belongs, and storing the second business electronic contract in the blockchain when the second signature passes the verification comprises the following steps:
acquiring a user certificate of the user terminal from the blockchain, and acquiring a user public key from the user certificate;
decrypting the second signature by adopting the user public key, generating a decryption hash value corresponding to the second signature, and comparing the decryption hash value corresponding to the second signature with the hash value corresponding to the first business electronic contract;
if the decryption hash value corresponding to the second signature is the same as the hash value corresponding to the first business electronic contract, determining that the second signature passes verification, and storing the second business electronic contract in the blockchain;
And if the decryption hash value corresponding to the second signature is different from the hash value corresponding to the first business electronic contract, sending second prompt information.
2. The method as recited in claim 1, further comprising:
and acquiring an enterprise certificate sent by the enterprise server, and storing the enterprise certificate into a blockchain, wherein the enterprise certificate is generated according to the enterprise information and an enterprise public key sent by the enterprise server when the enterprise information passes the verification by a CA (certificate authority) organization for verifying the enterprise information sent by the enterprise server.
3. The method as recited in claim 1, further comprising:
and acquiring a user certificate sent by the user terminal, and storing the user certificate into a blockchain, wherein the user certificate is generated according to the user information and a user public key sent by the user terminal when the user information passes the verification by a CA (certificate authority) organization for verifying the user information sent by the user terminal.
4. An electronic contract processing apparatus, characterized by comprising:
the template generation unit is used for acquiring a contract template sent by the enterprise server and adding the contract template into the blockchain intelligent contract; the contract template is generated by the enterprise server according to the business information and the enterprise information of the enterprise;
A request acquisition unit, configured to acquire a service request sent by an enterprise server, and extract a service keyword from service information carried by the service request;
the request acquisition unit is further used for acquiring a contract template corresponding to the service request from the blockchain intelligent contract, adding the service keyword into the contract template, and generating an initial service electronic contract;
the enterprise signature unit is used for acquiring a first signature obtained by signing the initial business electronic contract by the enterprise server by adopting an enterprise private key, and determining the initial business electronic contract and the first signature as a first business electronic contract;
the enterprise verification unit is used for verifying the first signature by adopting an enterprise certificate corresponding to an enterprise to which the enterprise server belongs, storing the first business electronic contract in the blockchain when the first signature passes the verification, and sending a short message verification code to a user when receiving a signing request of a client for contract plaintext; the contract plaintext is obtained by decrypting the first business electronic contract read from the blockchain through a secret key by the client;
The user signature unit is used for acquiring a second signature obtained by signing the first business electronic contract by the user terminal by adopting a user private key if the user has a signing willingness through the short message verification code, and determining the first business electronic contract and the second signature as a second business electronic contract;
the user verification unit is used for verifying the second signature by adopting a user certificate corresponding to the user to which the user terminal belongs, and storing the second business electronic contract in the blockchain when the second signature passes the verification to determine that the second business electronic contract is signed; the blockchain is used for issuing the second business electronic contract which is signed to enterprises and users through mails;
the enterprise verification unit is specifically configured to:
acquiring an enterprise certificate corresponding to an enterprise to which an enterprise server belongs from a blockchain, and acquiring an enterprise public key corresponding to the enterprise from the enterprise certificate;
decrypting the signature of the first business electronic contract by adopting the enterprise public key, generating a decryption hash value corresponding to the first signature, and comparing the decryption hash value corresponding to the first signature with the hash value corresponding to the initial business electronic contract;
If the decryption hash value corresponding to the first signature is the same as the hash value corresponding to the initial business electronic contract, determining that the second signature passes verification, and storing the first business electronic contract in a blockchain;
if the decryption hash value corresponding to the first signature is different from the hash value corresponding to the initial business electronic contract, sending first prompt information;
the user verification unit is specifically configured to:
acquiring a user certificate of a user terminal from a block chain, and acquiring a user public key from the user certificate;
decrypting the second signature by using the user public key, generating a decryption hash value corresponding to the second signature, and comparing the decryption hash value corresponding to the second signature with the hash value corresponding to the first business electronic contract;
if the decryption hash value corresponding to the second signature is the same as the hash value corresponding to the first business electronic contract, determining that the second signature passes verification, and storing the second business electronic contract in the blockchain;
and if the decryption hash value corresponding to the second signature is different from the hash value corresponding to the first business electronic contract, sending second prompt information.
5. A computer readable storage medium, characterized in that the computer readable storage medium stores a computer program comprising program instructions which, when executed by a processor, perform the method of any of claims 1-3.
6. A computer device, comprising: a processor and a memory; wherein the memory stores a computer program adapted to be loaded by the processor and to perform the method according to any of claims 1-3.
CN201911230015.6A 2019-12-04 2019-12-04 Electronic contract processing method and device based on blockchain Active CN111080295B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201911230015.6A CN111080295B (en) 2019-12-04 2019-12-04 Electronic contract processing method and device based on blockchain

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201911230015.6A CN111080295B (en) 2019-12-04 2019-12-04 Electronic contract processing method and device based on blockchain

Publications (2)

Publication Number Publication Date
CN111080295A CN111080295A (en) 2020-04-28
CN111080295B true CN111080295B (en) 2024-04-09

Family

ID=70312843

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201911230015.6A Active CN111080295B (en) 2019-12-04 2019-12-04 Electronic contract processing method and device based on blockchain

Country Status (1)

Country Link
CN (1) CN111080295B (en)

Families Citing this family (16)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111669268B (en) * 2020-06-03 2024-09-06 北京八分量信息科技有限公司 Electronic data processing method and device based on block chain and related products
CN114024692B (en) * 2020-07-15 2023-06-20 华为技术有限公司 Signing method, device and system
CN111915302B (en) * 2020-08-05 2021-08-03 腾讯科技(深圳)有限公司 Associated data processing method and device, electronic equipment and computer readable medium
CN112116474B (en) * 2020-09-21 2023-12-05 京东科技信息技术有限公司 Verification method and device for electronic contract, electronic equipment and storage medium
CN112269915B (en) * 2020-10-30 2023-08-25 成都质数斯达克科技有限公司 Service processing method, device, equipment and storage medium
CN112307125B (en) * 2020-11-10 2024-04-30 湖南慧途科技有限公司 Signing method and device for realizing encrypted electronic contract based on blockchain intelligent contract
CN112733178B (en) * 2020-11-23 2022-05-13 腾讯科技(深圳)有限公司 Cross-chain trust method, device, equipment and medium based on digital certificate authentication
CN112632634B (en) * 2020-12-22 2023-12-29 深圳市赫德创新科技有限公司 Signature data processing method, device, computer equipment and storage medium
CN112787808B (en) * 2020-12-31 2023-05-02 能链物流科技有限公司 Service data processing method and device for common management account
CN112801663B (en) * 2021-02-05 2024-03-19 北京众享比特科技有限公司 Blockchain certification method, device, system, equipment and medium
CN113420133B (en) * 2021-06-18 2023-07-25 腾讯科技(深圳)有限公司 Session processing method, device, equipment and storage medium
CN113888115A (en) * 2021-09-13 2022-01-04 北京安捷金科信息技术有限公司 Electronic contract signing method, electronic contract signing system and readable storage medium
CN114155010A (en) * 2021-12-06 2022-03-08 广州繁星互娱信息科技有限公司 Method and device for generating product identification code, electronic equipment and storage medium
CN114492352A (en) * 2021-12-13 2022-05-13 易筑网络科技(苏州)有限公司 Contract template engine system for contract dynamic real-time generation
CN114493940A (en) * 2022-03-31 2022-05-13 湖南华菱电子商务有限公司 Block chain-based electronic contract management method, device, equipment and storage medium
CN118611992B (en) * 2024-08-08 2024-11-01 杭州缥缈峰科技有限公司 Access method and system and electronic equipment

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105574435A (en) * 2015-12-22 2016-05-11 杭州安存网络科技有限公司 On-line electronic contract signing and verifying methods, device and system
CN105827412A (en) * 2016-03-14 2016-08-03 中金金融认证中心有限公司 Authentication method, server and client
CN109345240A (en) * 2018-09-13 2019-02-15 海智(天津)大数据服务有限公司 A kind of electronic business license application system and method based on block chain
CN110113334A (en) * 2019-05-05 2019-08-09 江苏全链通信息科技有限公司 Contract processing method, equipment and storage medium based on block chain
CN110263145A (en) * 2019-05-07 2019-09-20 深圳市买买提信息科技有限公司 A kind of electronic contract signature method and electronic contract sign equipment

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105574435A (en) * 2015-12-22 2016-05-11 杭州安存网络科技有限公司 On-line electronic contract signing and verifying methods, device and system
CN105827412A (en) * 2016-03-14 2016-08-03 中金金融认证中心有限公司 Authentication method, server and client
CN109345240A (en) * 2018-09-13 2019-02-15 海智(天津)大数据服务有限公司 A kind of electronic business license application system and method based on block chain
CN110113334A (en) * 2019-05-05 2019-08-09 江苏全链通信息科技有限公司 Contract processing method, equipment and storage medium based on block chain
CN110263145A (en) * 2019-05-07 2019-09-20 深圳市买买提信息科技有限公司 A kind of electronic contract signature method and electronic contract sign equipment

Also Published As

Publication number Publication date
CN111080295A (en) 2020-04-28

Similar Documents

Publication Publication Date Title
CN111080295B (en) Electronic contract processing method and device based on blockchain
US11799668B2 (en) Electronic identification verification methods and systems with storage of certification records to a side chain
US11544367B2 (en) Systems, apparatus and methods for secure electrical communication of biometric personal identification information to validate the identity of an individual
CN110046996B (en) Data processing method and device
CN110417750B (en) Block chain technology-based file reading and storing method, terminal device and storage medium
WO2018145127A1 (en) Electronic identification verification methods and systems with storage of certification records to a side chain
CN111343170B (en) Electronic signing method and system
CN110598433B (en) Block chain-based anti-fake information processing method and device
CN109741016B (en) Electronic contract signing method, electronic contract signing device, computer equipment and storage medium
CN113961956B (en) Method, device, equipment and medium for generating and applying labeled network information service
CN109818965B (en) Personal identity verification device and method
CN111008251B (en) Data processing method and device
CN116226289A (en) Electronic certificate management method, device, equipment and storage medium based on blockchain
CN111628863A (en) Data signature method and device, electronic equipment and storage medium
CN115085934A (en) Contract management method based on block chain and combined key and related equipment
CN113783690B (en) Authentication-based bidding method and device
CN112862484A (en) Secure payment method and device based on multi-terminal interaction
CN115134144A (en) Enterprise-level business system authentication method, device and system
CN113869901A (en) Key generation method, key generation device, computer-readable storage medium and computer equipment
CN114117388A (en) Device registration method, device registration apparatus, electronic device, and storage medium
CN113572616B (en) Authentication method and device based on distributed bidding platform and related equipment
USRE49968E1 (en) Electronic identification verification methods and systems with storage of certification records to a side chain
CN118585991B (en) Data processing method, device, equipment and storage medium
CN116647413B (en) Application login method, device, computer equipment and storage medium
CN114022259B (en) Bidding method and device based on public key assignment and identity verification

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