Electronic warrant encryption transmission method and system based on block chain

By initializing the blockchain nodes and generating keys, a key set is generated to encrypt the electronic letter of guarantee information, form a ciphertext hash address and transmit it, which solves the security and efficiency issues of electronic letters of guarantee in blockchain transmission and realizes the secure and trusted transmission of data.

CN120750640AActive Publication Date: 2025-10-03WIZCARD TECH
View PDF 6 Cites 0 Cited by

Patent Information

Application Number
CN202511172696.0
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2025-08-21
Publication Date
2025-10-03
Estimated Expiration
2045-08-21

AI Technical Summary

Technical Problem

In the existing technology, electronic letters of guarantee are subject to the risk of data theft and leakage during blockchain transmission, and the transmission efficiency is low, resulting in insufficient security and credibility.

Method used

By initializing and generating keys for all nodes in the blockchain, a key set is generated, the electronic letter of guarantee information is encrypted to form a ciphertext hash address, which is then transmitted to the recipient through the nodes. A threshold decryption method is used to ensure data security and credibility.

Benefits of technology

Effectively resist internal threats, reduce the risk of data theft, prevent data tampering and forgery, improve transmission security and credibility, and solve problems such as transmission delay and data redundancy.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN120750640A_ABST
    Figure CN120750640A_ABST
Patent Text Reader

Abstract

The invention provides an electronic warrant encryption transmission method and system based on a block chain, and the method comprises the steps: obtaining electronic warrant information transmitted by an electronic warrant issuer, and carrying out the initialization and key generation of all nodes in the block chain, so as to obtain a key set; performing encryption processing on the electronic warrant information based on the key set to obtain a ciphertext hash address; accessing the ciphertext hash address and the key set into a block chain, and transmitting the ciphertext hash address and the key set to an electronic warrant receiver through a node in the block chain; and decrypting the ciphertext hash address through the key set to obtain the decrypted electronic warrant information. By adopting a threshold decryption mode, internal threats can be effectively resisted, the risk of data stealing can be reduced, data tampering and counterfeiting can be effectively prevented, the security and reliability of data can be improved, and the security and reliability of the electronic warrant information can be improved. And meanwhile, the conditions of long propagation time delay and data redundancy can be effectively solved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention belongs to the technical field of data encryption transmission, and specifically relates to a blockchain-based electronic letter of guarantee encryption transmission method and system. Background Art

[0002] An electronic letter of guarantee is a product of the information age. Like a paper letter of guarantee, it is an electronic guarantee document issued by a bank, insurance company, or other guarantor to the beneficiary at the request of the policyholder. This document guarantees that if the policyholder fails to fulfill its responsibilities or obligations as agreed upon by both parties, the guarantor will perform a payment or financial compensation obligation within a certain amount and timeframe on the policyholder's behalf. Issued to the beneficiary through the guarantor's corporate digital certificate and bearing the guarantor's electronic signature, the electronic letter of guarantee guarantees authenticity, security, non-tamperability, and non-repudiation, giving it the same legal force as a paper letter of guarantee. Furthermore, the electronic letter of guarantee can be stored and recorded with a third party, offering the advantages of efficiency, speed, confidentiality, low cost throughout its lifecycle, and reliability.

[0003] Blockchain records and stores data in a decentralized manner, breaking it into multiple blocks and linking them together through encryption to ensure data security and immutability. Blockchain is widely used in finance, supply chain, and other fields, embodying the principles of decentralization, transparency, and openness.

[0004] As for the electronic letter of guarantee transmission process in the existing technology, it can usually be transmitted through the blockchain. However, in actual situations, due to the nature of blockchain data transmission, data may be stolen or leaked in the intermediate transmission nodes. At the same time, during the data transmission process, there will be data redundancy and long transmission delays, which will affect the transmission efficiency and security. Summary of the Invention

[0005] In order to solve the above technical problems, the present invention provides a blockchain-based electronic letter of guarantee encryption transmission method and system, which is used to solve the technical problems in the existing technology.

[0006] In one aspect, the present invention provides the following technical solution: a blockchain-based method for encrypting and transmitting an electronic letter of guarantee, comprising: Obtain the electronic letter of guarantee information transmitted by the issuer of the electronic letter of guarantee, initialize and generate keys for all nodes in the blockchain to obtain a key set; Encrypting the electronic letter of guarantee information based on the key set to obtain a ciphertext hash address; Inserting the ciphertext hash address and the key set into the blockchain, and transmitting the ciphertext hash address and the key set to the recipient of the electronic letter of guarantee through a node in the blockchain; The ciphertext hash address is decrypted using the key set to obtain the decrypted electronic letter of guarantee information.

[0007] Compared with the prior art, the beneficial effects of the present invention are as follows: the present invention first obtains the electronic letter of guarantee information transmitted by the issuer of the electronic letter of guarantee, initializes and generates keys for all nodes in the blockchain to obtain a key set; then, the electronic letter of guarantee information is encrypted based on the key set to obtain a ciphertext hash address; then, the ciphertext hash address and the key set are connected to the blockchain, and the ciphertext hash address and the key set are transmitted to the recipient of the electronic letter of guarantee through the nodes in the blockchain; then, the ciphertext hash address is decrypted through the key set to obtain the decrypted electronic letter of guarantee information. The present invention can effectively resist internal threats and reduce the risk of data theft by adopting a threshold decryption method. At the same time, the present application uses a ciphertext hash address to store ciphertext, which can effectively prevent data tampering and forgery, and improve data security and credibility. Then, the present invention screens nodes by node reliability, which can effectively solve the problems of extended transmission time and data redundancy.

[0008] Preferably, the steps of initializing and generating keys for all nodes in the blockchain to obtain a key set include: Initialize all nodes in the blockchain and randomly select two prime numbers , based on prime numbers Calculate the common parameter set , sending the public parameter set to all nodes of the blockchain for access: ; ; ; ; ; ; = ; Where, The first adjustment amount and the second adjustment amount are respectively are the first public parameter and the second public parameter respectively, 、 、 are the first, second and third random numbers, They are the third public parameter and the fourth public parameter respectively. is the L function; Calculate the master key based on the public parameter set : ; The master key Set the decryption threshold , and based on the decryption threshold number Build Polynomial of order , based on the polynomial Calculate the private key And the private key Send to the recipient of the electronic letter of guarantee to obtain the key set: ; Where, is the number of recipients of the electronic letter of guarantee, The independent variable is The polynomial of is the modulus.

[0009] Preferably, the step of encrypting the electronic letter of guarantee information based on the key set to obtain a ciphertext hash address includes: Use the key set to encrypt the electronic letter of guarantee information to obtain ciphertext data : ; Where, For the encryption process, It is the plain text data of the electronic letter of guarantee information. is the third public parameter, is the first public parameter, is the fourth random number; The ciphertext data Upload to the Interstellar File System, and use the Interstellar File System to Decomposed into several data blocks: ; Where, For the data blocks; Perform hashing and encoding on each data block in turn to obtain the encoded address : ; Where, is the SHA256 algorithm, It is the Base58 encoding algorithm; All the encoded addresses are combined to obtain a ciphertext hash address.

[0010] Preferably, the step of transmitting the ciphertext hash address and the key set to the recipient of the electronic letter of guarantee through a node in the blockchain includes: Constructing the nodes in the blockchain into a topological network structure, setting a propagation threshold between adjacent nodes in the topological network structure, and using the propagation threshold as the activation probability between adjacent nodes; Arbitrarily setting a node in the topological network as a master node, and sequentially activating neighboring nodes through the master node, and repeating the activation process with the neighboring node as the new master node until there is no activatable node in the topological network, thereby obtaining an activated node set; In the topology network, any two nodes are selected , computing nodes With node The propagation coefficient between : ; Based on the propagation coefficient Determine node trustworthiness ; Selecting a node with the highest node reliability from the activated node set and using the node as the initial node, and sending the ciphertext hash address and the key set to the initial node; A set of neighboring nodes of the initial node is selected from the activated node set, and a neighboring node corresponding to the largest node trust is selected from the neighboring node set as the next initial node, the ciphertext hash address and the key set are propagated to the next initial node, the node trust determination and node selection are repeated for the next initial node to obtain a propagation link, and the ciphertext hash address and the key set are transmitted to the recipient of the electronic letter of guarantee based on the propagation link.

[0011] Preferably, the propagation coefficient is based on Determine node trustworthiness The steps include: Calculate the propagation probability based on the propagation coefficient : ; Where, Representation node With node There is information interaction between Representation node With node There is no information exchange between them; Based on the propagation probability Compute nodes with active node set Importance : ; Where, Represents the set of activated nodes, Indicates that the activated node set can be connected to the node A collection of nodes that interact with each other; Calculate the node The distance value : ; Where, Representation node and the first The distance between nodes, Indicates the number of nodes in the active node set; Based on the importance The distance value Calculating node reliability : .

[0012] Preferably, the step of decrypting the ciphertext hash address using the key set to obtain the decrypted electronic letter of guarantee information includes: Obtain the decryption request issued by the recipient of the electronic letter of guarantee, and obtain the ciphertext data from the ciphertext hash address based on the decryption request ; The ciphertext data Perform pre-decryption processing to obtain pre-decrypted ciphertext : ; Where, is the private key, is the decryption threshold number, is the first public parameter; The recipient of the electronic letter of guarantee will store the pre-decrypted ciphertext in the blockchain Share and jointly decrypt to obtain the decrypted electronic letter of guarantee information : ; ; Where, is the L function, To decrypt the participation value, is the fourth common parameter, To decrypt the participant serial number, is the modulus.

[0013] In a second aspect, the present invention provides the following technical solution: a blockchain-based electronic letter of guarantee encryption transmission system, the system comprising: The initialization module is used to obtain the electronic letter of guarantee information transmitted by the issuer of the electronic letter of guarantee, initialize all nodes in the blockchain and generate keys to obtain a key set; an encryption module, configured to encrypt the electronic letter of guarantee information based on the key set to obtain a ciphertext hash address; a transmission module, configured to connect the ciphertext hash address and the key set to the blockchain, and transmit the ciphertext hash address and the key set to a recipient of the electronic letter of guarantee through a node in the blockchain; The decryption module is used to decrypt the ciphertext hash address using the key set to obtain the decrypted electronic letter of guarantee information.

[0014] Preferably, the initialization module includes: The public submodule is used to initialize all nodes in the blockchain and randomly select two prime numbers. , based on prime numbers Calculate the common parameter set , sending the public parameter set to all nodes of the blockchain for access: ; ; ; ; ; ; = ; Where, The first adjustment amount and the second adjustment amount are respectively are the first public parameter and the second public parameter respectively, 、 、 are the first, second and third random numbers, They are the third public parameter and the fourth public parameter respectively. is the L function; A master key submodule, used to calculate the master key based on the public parameter set : ; The key collection submodule is used to Set the decryption threshold , and based on the decryption threshold number Build Polynomial of order , based on the polynomial Calculate the private key And the private key Send to the recipient of the electronic letter of guarantee to obtain the key set: ; Where, is the number of recipients of the electronic letter of guarantee, The independent variable is The polynomial of is the modulus.

[0015] In a third aspect, the present invention provides the following technical solution: a computer comprising a memory, a processor, and a computer program stored on the memory and executable on the processor; when the processor executes the computer program, the blockchain-based electronic letter of guarantee encryption transmission method as described above is implemented.

[0016] In a fourth aspect, the present invention provides the following technical solution: a storage medium storing a computer program, which, when executed by a processor, implements the above-mentioned blockchain-based electronic letter of guarantee encryption transmission method. BRIEF DESCRIPTION OF THE DRAWINGS

[0017] In order to more clearly illustrate the technical solutions in the embodiments of the present invention, the following briefly introduces the drawings required for use in the embodiments or the description of the prior art. Obviously, the drawings described below are only some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying any creative work.

[0018] Figure 1 A flowchart of the blockchain-based method for encrypting and transmitting an electronic letter of guarantee according to the first embodiment of the present invention; Figure 2 This is a block diagram of the blockchain-based electronic letter of guarantee encryption transmission system provided in Example 2 of the present invention; Figure 3 A schematic diagram of the hardware structure of a computer provided in another embodiment of the present invention.

[0019] The embodiments of the present invention will be further described below with reference to the accompanying drawings. DETAILED DESCRIPTION

[0020] The following describes embodiments of the present invention in detail, examples of which are shown in the accompanying drawings, wherein the same or similar reference numerals throughout represent the same or similar elements or elements having the same or similar functions. The embodiments described below with reference to the accompanying drawings are exemplary and are intended to be used to explain the embodiments of the present invention, and should not be construed as limiting the present invention.

[0021] Example 1 In the first embodiment of the present invention, Figure 1As shown, a blockchain-based electronic letter of guarantee encryption transmission method includes: S1. Obtain the electronic letter of guarantee information transmitted by the issuer of the electronic letter of guarantee, initialize and generate keys for all nodes in the blockchain to obtain a key set; Wherein, the step S1 includes: S11. Initialize all nodes in the blockchain and randomly select two prime numbers , based on prime numbers Calculate the common parameter set , sending the public parameter set to all nodes of the blockchain for access: ; ; ; ; ; ; = ; Where, The first adjustment amount and the second adjustment amount are respectively are the first public parameter and the second public parameter respectively, 、 、 are the first, second and third random numbers, They are the third public parameter and the fourth public parameter respectively. is the L function; Specifically, the prime numbers here are all large prime numbers, and for the public parameter set, it needs to be sent to all nodes of the blockchain for access. At the same time, for the L function, it is actually .

[0022] S12. Calculate the master key based on the public parameter set. : ; Specifically, the master key is not shared with all nodes of the blockchain.

[0023] S13, the master key Set the decryption threshold , and based on the decryption threshold number Build Polynomial of order , based on the polynomial Calculate the private key And the private key Send to the recipient of the electronic letter of guarantee to obtain the key set: ; Where, is the number of recipients of the electronic letter of guarantee, The independent variable is The polynomial of is the modulus; Specifically, for the constructed polynomial In terms of As for the private key, it needs to be transmitted to the recipient of the electronic letter of guarantee along with the subsequent ciphertext hash address.

[0024] S2. Encrypting the electronic letter of guarantee information based on the key set to obtain a ciphertext hash address; Wherein, the step S2 includes: S21. Encrypt the electronic letter of guarantee information using the key set to obtain ciphertext data. : ; Where, For the encryption process, It is the plain text data of the electronic letter of guarantee information. is the third public parameter, is the first public parameter, is the fourth random number.

[0025] S22, the ciphertext data Upload to the Interstellar File System, and use the Interstellar File System to Decomposed into several data blocks: ; Where, For the data blocks; Specifically, the size of each data block here is 256k.

[0026] S23, perform hash processing and encoding processing on each data block in sequence to obtain the encoding address : ; Where, is the SHA256 algorithm, It is the Base58 encoding algorithm; S24. Combine all the encoded addresses to obtain a ciphertext hash address.

[0027] S3. Connecting the encrypted hash address and the key set to the blockchain, and transmitting the encrypted hash address and the key set to the recipient of the electronic letter of guarantee through a node in the blockchain; Wherein, the step S3 includes: S31. Constructing the nodes in the blockchain into a topological network structure, setting a propagation threshold between adjacent nodes in the topological network structure, and using the propagation threshold as the activation probability between adjacent nodes; Specifically, for the topological network structure, in the initial propagation cycle, only the main node is in the active state, and the remaining nodes are in the dormant state. When one of the remaining nodes is activated, the node becomes active in the next propagation cycle. The node will try to activate the remaining nodes, and each node has only one activation opportunity. By setting a propagation threshold between adjacent nodes, the propagation threshold is used as the activation probability, which represents the activation probability of one node to another node.

[0028] S32, setting any node in the topological network as a master node, and sequentially activating neighboring nodes through the master node, and repeating the activation process with the neighboring node as the new master node until no activatable node exists in the topological network, thereby obtaining an activated node set; Specifically, as the propagation cycle progresses, a certain number of nodes are activated in each propagation cycle. In actual situations, in the first propagation cycle, only the master node is activated. In the second propagation cycle, the master node activates several neighboring nodes. In the subsequent process, the node activated in the previous round is used as the master node for activation until there are no nodes that can be activated, and the activated node set can be obtained.

[0029] S33, randomly select two nodes in the topology network , computing nodes With node The propagation coefficient between : ; Specifically, the propagation coefficient here is actually the Jaccard coefficient.

[0030] S34, based on the propagation coefficient Determine node trustworthiness ; Wherein, the step S34 includes: S341. Calculate the propagation probability based on the propagation coefficient : ; Where, Representation node With node There is information interaction between Representation node With node There is no information exchange between them.

[0031] S342, based on the propagation probability Compute nodes with active node set Importance : ; Where, Represents the set of activated nodes, Indicates that the activated node set can be connected to the node A collection of nodes that interact with each other; Specifically, importance can also be expressed as the number of nodes that are expected to be activated after the topological network structure stops propagating. The greater the number of nodes expected to be activated, the greater the influence of the node on the global node. The more nodes it can influence, the more suitable it is to be the dominant node for data transmission. First, an initial dominant node is selected for activation, and the propagation threshold is set using random sampling to determine the propagation probability. The condition for a node to be successfully activated is that the system is greater than the propagation threshold set in the previous step. Otherwise, the node activation fails. After the node is successfully activated, it continues to select its own neighboring nodes for activation and repeats the above steps. When there are no unactivated nodes in the network, the importance calculation of all nodes is completed and the importance of each node is output.

[0032] S343, calculate the node The distance value : ; Where, Representation node and the first The distance between nodes, Indicates the number of nodes in the active node set; Specifically, the distance value here can be expressed as the average distance between the node and the rest of the nodes in the topological network structure. The larger the distance value, the closer the node is to the edge of the network.

[0033] S341, based on the importance The distance value Calculating node reliability : ; Specifically, for the node trust, the larger the trust, the more suitable the node is as the initial node.

[0034] S35 , selecting a node corresponding to the maximum node reliability from the activated node set and using the node as the initial node, and sending the ciphertext hash address and the key set to the initial node.

[0035] S36. Select the neighboring node set of the initial node from the activated node set, and select the neighboring node corresponding to the largest node trust as the next initial node from the neighboring node set, propagate the ciphertext hash address and the key set to the next initial node, repeat the node trust determination and node selection for the next initial node to obtain a propagation link, and transmit the ciphertext hash address and the key set to the recipient of the electronic letter of guarantee based on the propagation link.

[0036] S4. Decrypt the ciphertext hash address using the key set to obtain decrypted electronic letter of guarantee information.

[0037] Wherein, the step S4 includes: S41. Obtain a decryption request from the recipient of the electronic letter of guarantee, and obtain the ciphertext data from the ciphertext hash address based on the decryption request. .

[0038] S42, the ciphertext data Perform pre-decryption processing to obtain pre-decrypted ciphertext : ; Where, is the private key, is the decryption threshold number, is the first public parameter.

[0039] S43, the recipient of the electronic letter of guarantee sends the pre-decrypted ciphertext to the blockchain Share and jointly decrypt to obtain the decrypted electronic letter of guarantee information : ; ; Where, is the L function, To decrypt the participation value, is the fourth common parameter, To decrypt the participant serial number, is the modulus; Specifically, the purpose of setting the decryption threshold is to ensure that only The master key can be restored by using at least The system effectively prevents the problem of decryption failure caused by single node failure and lack of certain participants.

[0040] The first embodiment of the present invention provides an encrypted transmission method for an electronic letter of guarantee based on blockchain. The present invention first obtains the electronic letter of guarantee information transmitted by the issuer of the electronic letter of guarantee, initializes and generates keys for all nodes in the blockchain to obtain a key set; then, the electronic letter of guarantee information is encrypted based on the key set to obtain a ciphertext hash address; then, the ciphertext hash address and the key set are connected to the blockchain, and the ciphertext hash address and the key set are transmitted to the recipient of the electronic letter of guarantee through the nodes in the blockchain; then, the ciphertext hash address is decrypted through the key set to obtain the decrypted electronic letter of guarantee information. The present invention can effectively resist internal threats and reduce the risk of data theft by adopting a threshold decryption method. At the same time, the present application uses a ciphertext hash address to store ciphertext, which can effectively prevent data tampering and forgery, and improve data security and credibility. Then, the present invention screens nodes according to node reliability, which can effectively solve the problems of extended transmission time and data redundancy.

[0041] Example 2 like Figure 2 As shown, in the second embodiment of the present invention, a blockchain-based electronic letter of guarantee encryption transmission system is provided, and the system includes: Initialization module 1 is used to obtain the electronic letter of guarantee information transmitted by the issuer of the electronic letter of guarantee, initialize all nodes in the blockchain and generate keys to obtain a key set; Encryption module 2, configured to encrypt the electronic letter of guarantee information based on the key set to obtain a ciphertext hash address; Transmission module 3, configured to connect the ciphertext hash address and the key set to the blockchain, and transmit the ciphertext hash address and the key set to the recipient of the electronic letter of guarantee through a node in the blockchain; The decryption module 4 is used to decrypt the ciphertext hash address using the key set to obtain the decrypted electronic letter of guarantee information.

[0042] Wherein, the initialization module 1 includes: The public submodule is used to initialize all nodes in the blockchain and randomly select two prime numbers. , based on prime numbers Calculate the common parameter set , sending the public parameter set to all nodes of the blockchain for access: ; ; ; ; ; ; = ; Where, The first adjustment amount and the second adjustment amount are respectively are the first public parameter and the second public parameter respectively, 、 、 are the first, second and third random numbers, They are the third public parameter and the fourth public parameter respectively. is the L function; A master key submodule, used to calculate the master key based on the public parameter set : ; The key collection submodule is used to Set the decryption threshold , and based on the decryption threshold number Build Polynomial of order , based on the polynomial Calculate the private key And the private key Send to the recipient of the electronic letter of guarantee to obtain the key set: ; Where, is the number of recipients of the electronic letter of guarantee, The independent variable is The polynomial of is the modulus.

[0043] The encryption module 2 includes: The encryption submodule is used to encrypt the electronic letter of guarantee information using the key set to obtain ciphertext data : ; Where, For the encryption process, It is the plain text data of the electronic letter of guarantee information. is the third public parameter, is the first public parameter, is the fourth random number; Decomposition submodule, used to decompose the ciphertext data Upload to the Interstellar File System, and use the Interstellar File System to Decomposed into several data blocks: ; Where, For the data blocks; The encoding submodule is used to perform hash processing and encoding processing on each data block in turn to obtain the encoding address : ; Where, is the SHA256 algorithm, It is the Base58 encoding algorithm; The combining submodule is used to combine all the encoded addresses to obtain a ciphertext hash address.

[0044] The transmission module includes: a network submodule, configured to construct the nodes in the blockchain into a topological network structure, set a propagation threshold between adjacent nodes in the topological network structure, and use the propagation threshold as an activation probability between adjacent nodes; An activation submodule is configured to set any node in the topological network as a master node, activate neighboring nodes in sequence through the master node, and repeat the activation process with the neighboring node as the new master node until no activatable node exists in the topological network, thereby obtaining an activated node set; The propagation coefficient submodule is used to select any two nodes in the topology network , computing nodes With node The propagation coefficient between : ; Trust submodule for Determine node trustworthiness ; An initial node submodule is configured to select a node corresponding to the maximum node reliability from the activated node set and use the node as the initial node, and send the ciphertext hash address and the key set to the initial node; A propagation submodule is used to select a set of neighboring nodes of the initial node in the activated node set, and select a neighboring node corresponding to the largest node trust in the neighboring node set as the next initial node, propagate the ciphertext hash address and the key set to the next initial node, repeat the node trust determination and node selection for the next initial node to obtain a propagation link, and transmit the ciphertext hash address and the key set to the recipient of the electronic letter of guarantee based on the propagation link.

[0045] The trust submodule includes: A first calculation unit is configured to calculate the propagation probability based on the propagation coefficient. : ; Where, Representation node With node There is information interaction between Representation node With node There is no information exchange between them; The second calculation unit is configured to calculate the propagation probability based on the propagation probability. Compute nodes with active node set Importance : ; Where, Represents the set of activated nodes, Indicates that the activated node set can be connected to the node A collection of nodes that interact with each other; The third computing unit is used to calculate the node The distance value : ; Where, Representation node and the first The distance between nodes, Indicates the number of nodes in the active node set; The fourth calculation unit is configured to calculate the importance of The distance value Calculating node reliability : .

[0046] The decryption module includes: The ciphertext submodule is used to obtain the decryption request issued by the recipient of the electronic letter of guarantee, and obtain the ciphertext data from the ciphertext hash address based on the decryption request ; Pre-decryption submodule, used for decrypting the ciphertext data Perform pre-decryption processing to obtain pre-decrypted ciphertext : ; Where, is the private key, is the decryption threshold number, is the first public parameter; The decryption submodule is used to store the pre-decrypted ciphertext in the blockchain through the electronic letter of guarantee recipient. Share and jointly decrypt to obtain the decrypted electronic letter of guarantee information : ; ; Where, is the L function, To decrypt the participation value, is the fourth common parameter, To decrypt the participant serial number, is the modulus.

[0047] In other embodiments of the present invention, embodiments of the present invention provide the following technical solutions: a computer comprising a memory 102, a processor 101, and a computer program stored on the memory 102 and executable on the processor 101; when the processor 101 executes the computer program, the blockchain-based electronic letter of guarantee encryption transmission method as described above is implemented.

[0048] Specifically, the processor 101 may include a central processing unit (CPU), or an application specific integrated circuit (ASIC), or may be configured as one or more integrated circuits for implementing the embodiments of the present invention.

[0049] Memory 102 may include a large-capacity memory for data or instructions. By way of example, and not limitation, memory 102 may include a hard disk drive (HDD), a floppy disk drive, a solid-state drive (SSD), flash memory, an optical disk, a magneto-optical disk, a magnetic tape, or a Universal Serial Bus (USB) drive, or a combination of two or more of these. Where appropriate, memory 102 may include removable or non-removable (or fixed) media. Where appropriate, memory 102 may be internal or external to the data processing device. In certain embodiments, memory 102 is non-volatile memory. In certain embodiments, memory 102 includes read-only memory (ROM) and random access memory (RAM). Where appropriate, the ROM may be a mask-programmed ROM, a programmable ROM (PROM), an erasable PROM (EPROM), an electrically erasable PROM (EEPROM), an electrically alterable ROM (EAROM) or a flash memory (FLASH), or a combination of two or more of these. Under appropriate circumstances, the RAM can be a static random access memory (SRAM) or a dynamic random access memory (DRAM), where the DRAM can be a fast page mode dynamic random access memory (FPMDRAM), an extended data output dynamic random access memory (EDODRAM), a synchronous dynamic random access memory (SDRAM), etc.

[0050] The memory 102 may be used to store or cache various data files that need to be processed and / or used for communication, as well as possible computer program instructions executed by the processor 101 .

[0051] The processor 101 implements the above-mentioned blockchain-based electronic letter of guarantee encryption transmission method by reading and executing the computer program instructions stored in the memory 102.

[0052] In some embodiments, the computer may further include a communication interface 103 and a bus 100. Figure 3 As shown, the processor 101 , the memory 102 , and the communication interface 103 are connected via a bus 100 and communicate with each other.

[0053] The communication interface 103 is used to implement communication between the various modules, devices, units, and / or equipment in the embodiments of the present invention. The communication interface 103 can also implement data communication with other components such as external devices, image / data acquisition equipment, databases, external storage, and image / data processing workstations.

[0054] Bus 100 includes hardware, software, or both, and couples components of a computer device to each other. Bus 100 includes, but is not limited to, at least one of the following: a data bus, an address bus, a control bus, an expansion bus, and a local bus. By way of example and not limitation, bus 100 may include an Accelerated Graphics Port (AGP) or other graphics bus, an Extended Industry Standard Architecture (EISA) bus, a Front Side Bus (FSB), a Hyper Transport (HT) interconnect, an Industry Standard Architecture (ISA) bus, an InfiniBand interconnect, a Low Pin Count (LPC) bus, a memory bus, a Micro Channel Architecture (MCA) bus, a Peripheral Component Interconnect (PCI) bus, a PCI-Express (PCI-X) bus, a Serial Advanced Technology Attachment (SATA) bus, a Video Electronics Standards Association Local Bus (VLB) bus, or other suitable buses, or a combination of two or more of these. Bus 100 may include one or more buses, where appropriate. Although embodiments of the present invention describe and illustrate a particular bus, the present invention contemplates any suitable bus or interconnect.

[0055] The computer can execute the blockchain-based electronic letter of guarantee encrypted transmission method of the present invention based on the acquisition of the blockchain-based electronic letter of guarantee encrypted transmission system, thereby realizing the blockchain-based electronic letter of guarantee encrypted transmission.

[0056] In some further embodiments of the present invention, in combination with the above-mentioned blockchain-based electronic letter of guarantee encrypted transmission method, the embodiments of the present invention provide the following technical solutions: a storage medium having a computer program stored thereon, and the computer program, when executed by a processor, implements the above-mentioned blockchain-based electronic letter of guarantee encrypted transmission method.

[0057] Those skilled in the art will appreciate that the logic and / or steps represented in the flowcharts or otherwise described herein, for example, can be considered as a sequenced list of executable instructions for implementing logical functions, and can be embodied in any computer-readable medium for use by an instruction execution system, apparatus, or device (e.g., a computer-based system, a system including a processor, or other system that can fetch and execute instructions from an instruction execution system, apparatus, or device), or in conjunction with such instruction execution system, apparatus, or device. For purposes of this specification, "computer-readable medium" can be any device that can contain, store, communicate, propagate, or transport a program for use by an instruction execution system, apparatus, or device, or in conjunction with such instruction execution system, apparatus, or device.

[0058] More specific examples (a non-exhaustive list) of computer-readable media include the following: an electrical connection with one or more wires (electronic devices), a portable computer disk cartridge (magnetic devices), a random access memory (RAM), a read-only memory (ROM), an erasable and programmable read-only memory (EPROM or flash memory), a fiber optic device, and a portable compact disc read-only memory (CDROM). In addition, the computer-readable medium may even be paper or other suitable medium on which the program is printed, since the program may be obtained electronically, for example, by optically scanning the paper or other medium, followed by editing, deciphering, or processing in another suitable manner as necessary, and then stored in a computer memory.

[0059] It should be understood that various components of the present invention may be implemented using hardware, software, firmware, or a combination thereof. In the aforementioned embodiments, multiple steps or methods may be implemented using software or firmware stored in a memory and executed by a suitable instruction execution system. For example, if implemented using hardware, as in another embodiment, any one or a combination of the following technologies known in the art may be used: a discrete logic circuit having logic gate circuits for implementing logic functions on data signals, an application-specific integrated circuit having suitable combinational logic gate circuits, a programmable gate array (PGA), a field-programmable gate array (FPGA), etc.

[0060] The technical features of the above-mentioned embodiments can be combined arbitrarily. In order to make the description concise, not all possible combinations of the technical features in the above-mentioned embodiments are described. However, as long as there is no contradiction in the combination of these technical features, they should be considered to be within the scope of this specification.

[0061] The above-described embodiments merely represent several implementations of the present invention, and while their descriptions are relatively specific and detailed, they should not be construed as limiting the scope of the patent. It should be noted that a person of ordinary skill in the art would be able to make numerous variations and improvements without departing from the spirit of the present invention, and these variations and improvements fall within the scope of protection of the present invention. Therefore, the scope of protection of the patent for this invention shall be determined by the appended claims.

Claims

1. A blockchain-based method for encrypting and transmitting an electronic letter of guarantee, characterized in that: include: Obtain the electronic letter of guarantee information transmitted by the issuer of the electronic letter of guarantee, initialize and generate keys for all nodes in the blockchain to obtain a key set; Encrypting the electronic letter of guarantee information based on the key set to obtain a ciphertext hash address; Inserting the ciphertext hash address and the key set into the blockchain, and transmitting the ciphertext hash address and the key set to the recipient of the electronic letter of guarantee through a node in the blockchain; The ciphertext hash address is decrypted using the key set to obtain the decrypted electronic letter of guarantee information.

2. The blockchain-based electronic letter of guarantee encryption transmission method according to claim 1, characterized in that: The steps of initializing and generating keys for all nodes in the blockchain to obtain a key set include: Initialize all nodes in the blockchain and randomly select two prime numbers , based on prime numbers Calculate the common parameter set , sending the public parameter set to all nodes of the blockchain for access: ; ; ; ; ; ; = ; Where, The first adjustment amount and the second adjustment amount are respectively are the first public parameter and the second public parameter respectively, 、 、 are the first, second and third random numbers, They are the third public parameter and the fourth public parameter respectively. is the L function; Calculate the master key based on the public parameter set : ; The master key Set the decryption threshold , and based on the decryption threshold number Build Polynomial of order , based on the polynomial Calculate the private key And the private key Send to the recipient of the electronic letter of guarantee to obtain the key set: ; Where, is the number of recipients of the electronic letter of guarantee, The independent variable is The polynomial of is the modulus.

3. The blockchain-based electronic letter of guarantee encryption transmission method according to claim 1, characterized in that: The step of encrypting the electronic letter of guarantee information based on the key set to obtain a ciphertext hash address includes: Use the key set to encrypt the electronic letter of guarantee information to obtain ciphertext data : ; Where, For the encryption process, It is the plain text data of the electronic letter of guarantee information. is the third public parameter, is the first public parameter, is the fourth random number; The ciphertext data Upload to the Interstellar File System, and use the Interstellar File System to Decomposed into several data blocks: ; Where, For the data blocks; Perform hashing and encoding on each data block in turn to obtain the encoded address : ; Where, is the SHA256 algorithm, It is the Base58 encoding algorithm; All the encoded addresses are combined to obtain a ciphertext hash address.

4. The blockchain-based electronic letter of guarantee encryption transmission method according to claim 1, characterized in that: The step of transmitting the ciphertext hash address and the key set to the recipient of the electronic letter of guarantee through a node in the blockchain includes: Constructing the nodes in the blockchain into a topological network structure, setting a propagation threshold between adjacent nodes in the topological network structure, and using the propagation threshold as the activation probability between adjacent nodes; Arbitrarily setting a node in the topological network as a master node, and sequentially activating neighboring nodes through the master node, and repeating the activation process with the neighboring node as the new master node until there is no activatable node in the topological network, thereby obtaining an activated node set; In the topology network, any two nodes are selected , computing nodes With node The propagation coefficient between : ; Based on the propagation coefficient Determine node trustworthiness ; Selecting a node with the highest node reliability from the activated node set and using the node as the initial node, and sending the ciphertext hash address and the key set to the initial node; A set of neighboring nodes of the initial node is selected from the activated node set, and a neighboring node corresponding to the largest node trust is selected from the neighboring node set as the next initial node, the ciphertext hash address and the key set are propagated to the next initial node, the node trust determination and node selection are repeated for the next initial node to obtain a propagation link, and the ciphertext hash address and the key set are transmitted to the recipient of the electronic letter of guarantee based on the propagation link.

5. The blockchain-based electronic letter of guarantee encryption transmission method according to claim 4 is characterized in that: The propagation coefficient based on Determine node trustworthiness The steps include: Calculate the propagation probability based on the propagation coefficient : ; Where, Representation node With node There is information interaction between Representation node With node There is no information exchange between them; Based on the propagation probability Compute nodes with active node set Importance : ; Where, Represents the set of activated nodes, Indicates that the activated node set can be connected to the node A collection of nodes that interact with each other; Calculate the node The distance value : ; Where, Representation node and the first The distance between nodes, Indicates the number of nodes in the active node set; Based on the importance The distance value Calculating node reliability : 。 6. The blockchain-based electronic letter of guarantee encryption transmission method according to claim 1, characterized in that: The step of decrypting the ciphertext hash address using the key set to obtain decrypted electronic letter of guarantee information includes: Obtain the decryption request issued by the recipient of the electronic letter of guarantee, and obtain the ciphertext data from the ciphertext hash address based on the decryption request ; The ciphertext data Perform pre-decryption processing to obtain pre-decrypted ciphertext : ; Where, is the private key, is the decryption threshold number, is the first public parameter; The recipient of the electronic letter of guarantee will store the pre-decrypted ciphertext in the blockchain Share and jointly decrypt to obtain the decrypted electronic letter of guarantee information : ; ; Where, is the L function, To decrypt the participation value, is the fourth common parameter, To decrypt the participant serial number, is the modulus.

7. A blockchain-based electronic letter of guarantee encryption transmission system, characterized by: The system comprises: The initialization module is used to obtain the electronic letter of guarantee information transmitted by the issuer of the electronic letter of guarantee, initialize all nodes in the blockchain and generate keys to obtain a key set; an encryption module, configured to encrypt the electronic letter of guarantee information based on the key set to obtain a ciphertext hash address; a transmission module, configured to connect the ciphertext hash address and the key set to the blockchain, and transmit the ciphertext hash address and the key set to a recipient of the electronic letter of guarantee through a node in the blockchain; The decryption module is used to decrypt the ciphertext hash address using the key set to obtain the decrypted electronic letter of guarantee information.

8. The blockchain-based electronic letter of guarantee encryption transmission system according to claim 7 is characterized in that: The initialization module includes: The public submodule is used to initialize all nodes in the blockchain and randomly select two prime numbers. , based on prime numbers Calculate the common parameter set , sending the public parameter set to all nodes of the blockchain for access: ; ; ; ; ; ; = ; Where, The first adjustment amount and the second adjustment amount are respectively are the first public parameter and the second public parameter respectively, 、 、 are the first, second and third random numbers, They are the third public parameter and the fourth public parameter respectively. is the L function; A master key submodule, used to calculate the master key based on the public parameter set : ; The key collection submodule is used to Set the decryption threshold , and based on the decryption threshold number Build Polynomial of order , based on the polynomial Calculate the private key And the private key Send to the recipient of the electronic letter of guarantee to obtain the key set: ; Where, is the number of recipients of the electronic letter of guarantee, The independent variable is The polynomial of is the modulus.

9. A computer comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein: When the processor executes the computer program, it implements the blockchain-based electronic letter of guarantee encryption transmission method as described in any one of claims 1 to 6.

10. A storage medium, characterized in that: The storage medium stores a computer program, which, when executed by a processor, implements the blockchain-based electronic letter of guarantee encryption transmission method as described in any one of claims 1 to 6.

Citation Information

Patent Citations

  • Covert communication method based on blockchain address

    CN112532613A

  • Decentralized account and transaction management method based on one-time pad encryption technology

    CN115348007A

  • Electronic warranty service supervision and approval method and system based on block chain

    CN116703593A

  • Financial data encryption method and system

    CN119538296A

  • Block chain multi-element electronic warranty service method

    CN120470613A