CN113706131B - Block chain transaction method, device and equipment based on encryption card - Google Patents
Block chain transaction method, device and equipment based on encryption card Download PDFInfo
- Publication number
- CN113706131B CN113706131B CN202110993326.9A CN202110993326A CN113706131B CN 113706131 B CN113706131 B CN 113706131B CN 202110993326 A CN202110993326 A CN 202110993326A CN 113706131 B CN113706131 B CN 113706131B
- Authority
- CN
- China
- Prior art keywords
- transaction data
- transaction
- node
- encryption card
- data
- 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
Links
- 238000000034 method Methods 0.000 title claims abstract description 29
- 230000000977 initiatory effect Effects 0.000 claims abstract description 36
- 238000001514 detection method Methods 0.000 claims abstract description 14
- 238000012545 processing Methods 0.000 claims abstract description 10
- 238000004806 packaging method and process Methods 0.000 claims abstract description 6
- 238000004364 calculation method Methods 0.000 claims description 18
- 239000003999 initiator Substances 0.000 claims description 13
- 238000004590 computer program Methods 0.000 claims description 6
- 238000012795 verification Methods 0.000 abstract description 10
- 238000004458 analytical method Methods 0.000 abstract description 2
- 238000004891 communication Methods 0.000 description 7
- 238000010586 diagram Methods 0.000 description 4
- 230000005236 sound signal Effects 0.000 description 4
- 230000005540 biological transmission Effects 0.000 description 2
- 238000012986 modification Methods 0.000 description 2
- 230000004048 modification Effects 0.000 description 2
- 230000003287 optical effect Effects 0.000 description 2
- 230000008569 process Effects 0.000 description 2
- 230000003068 static effect Effects 0.000 description 2
- KLDZYURQCUYZBL-UHFFFAOYSA-N 2-[3-[(2-hydroxyphenyl)methylideneamino]propyliminomethyl]phenol Chemical compound OC1=CC=CC=C1C=NCCCN=CC1=CC=CC=C1O KLDZYURQCUYZBL-UHFFFAOYSA-N 0.000 description 1
- 230000009286 beneficial effect Effects 0.000 description 1
- 238000013075 data extraction Methods 0.000 description 1
- 201000001098 delayed sleep phase syndrome Diseases 0.000 description 1
- 208000033921 delayed sleep phase type circadian rhythm sleep disease Diseases 0.000 description 1
- 238000011161 development Methods 0.000 description 1
- 238000005516 engineering process Methods 0.000 description 1
- 230000006872 improvement Effects 0.000 description 1
- 230000007246 mechanism Effects 0.000 description 1
- 238000012163 sequencing technique Methods 0.000 description 1
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06Q—INFORMATION 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/00—Payment architectures, schemes or protocols
- G06Q20/04—Payment circuits
- G06Q20/06—Private payment circuits, e.g. involving electronic currency used among participants of a common payment scheme
- G06Q20/065—Private payment circuits, e.g. involving electronic currency used among participants of a common payment scheme using e-cash
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06Q—INFORMATION 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/00—Payment architectures, schemes or protocols
- G06Q20/38—Payment protocols; Details thereof
- G06Q20/382—Payment protocols; Details thereof insuring higher security of transaction
- G06Q20/3825—Use of electronic signatures
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06Q—INFORMATION 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
- G06Q40/00—Finance; Insurance; Tax strategies; Processing of corporate or income taxes
- G06Q40/04—Trading; Exchange, e.g. stocks, commodities, derivatives or currency exchange
Landscapes
- Business, Economics & Management (AREA)
- Accounting & Taxation (AREA)
- Engineering & Computer Science (AREA)
- Finance (AREA)
- Physics & Mathematics (AREA)
- Strategic Management (AREA)
- General Business, Economics & Management (AREA)
- General Physics & Mathematics (AREA)
- Theoretical Computer Science (AREA)
- Computer Security & Cryptography (AREA)
- Development Economics (AREA)
- Economics (AREA)
- Marketing (AREA)
- Technology Law (AREA)
- Management, Administration, Business Operations System, And Electronic Commerce (AREA)
Abstract
The invention relates to the technical field of video content analysis, in particular to a blockchain transaction method, a device and equipment based on an encryption card, which comprises the following steps: signing the first transaction data to obtain second transaction data, sending the second transaction data to a first voting node, and receiving the first voting data sent by the first voting node; and packaging the plurality of first voting data in the second transaction data to obtain third transaction data, transmitting the third transaction data to a master node, acquiring the third transaction data transmitted by the master node, receiving a detection instruction transmitted by the first encryption card, processing the third transaction data according to the detection instruction, and transmitting the third transaction data received from the master node to the first encryption card corresponding to the transaction initiating node to enable the first encryption card to complete verification of signature validity in the third transaction data, thereby remarkably increasing the overall transaction speed of a block chain.
Description
Technical Field
The invention relates to the technical field of video content analysis, in particular to a blockchain transaction method, device and equipment based on an encryption card.
Background
The block chain technology is built on a transmission network (also called a block chain network), distributed node equipment (hereinafter called nodes for short) in the transmission network generates block data by a preset consensus strategy by running a block chain program, and verifies and stores the block data by utilizing a chain data structure, so that a data tamper-proof mechanism is finally realized, and a safe and reliable technical new idea is provided for service development.
The signature verification is used as an important link of the blockchain transaction and is used for detecting whether nodes or users participating in the blockchain transaction are truly effective, and the existing blockchain signature verification mode is that a signature verification algorithm program is directly arranged in a blockchain program at the bottom layer, so that a large amount of CPU (central processing unit) computing power is required to be occupied during operation, and the blockchain network transaction speed is lower.
Disclosure of Invention
The invention aims to provide a blockchain transaction method, a device, equipment and a readable storage medium based on an encryption card, so as to solve the problems.
In order to achieve the above purpose, the embodiment of the present application provides the following technical solutions:
in one aspect, an embodiment of the present application provides a blockchain transaction method based on an encryption card, where the method is applied to any transaction initiating node in a blockchain network, and includes:
acquiring first transaction data submitted by a user, wherein the first transaction data is information reflecting transaction details;
signing the first transaction data to obtain second transaction data;
transmitting the second transaction data to at least one first voting node, and receiving first voting data transmitted by each first voting node, wherein the first voting node is a node which needs to vote on the second transaction data in a blockchain network;
packaging a plurality of first voting data in the second transaction data to obtain third transaction data, and sending the third transaction data to a master node, wherein the third transaction data is used for triggering the master node to send the third transaction data to each node in a blockchain network;
the third transaction data sent by the master node are obtained and sent to a first encryption card, wherein the first encryption card is an encryption card corresponding to the transaction initiating node and is used for checking signature validity of the third transaction data;
and receiving a detection instruction sent by the first encryption card, and processing the third transaction data according to the detection instruction.
Optionally, signing the first transaction data to obtain second transaction data includes:
invoking the first transaction data, the first transaction data comprising an initiator signature;
the first transaction data is sent to a first encryption card, the first transaction data is used for triggering the first encryption card to check the validity of a signature of an initiator in the first transaction data, and the first encryption card is an encryption card corresponding to the transaction initiating node;
and receiving a first check value sent by the first encryption card, and if the first check value is a first state value, signing the first transaction data to obtain second transaction data, wherein the first check value comprises the first state value, the first state value indicates that the signature of an initiator in the first transaction data is a valid signature, and the second transaction data is the first transaction data with the signature of a transaction initiating node.
Optionally, if the first check value is the first state value, signing the first transaction data to obtain second transaction data, and further including:
and checking the transaction type (transaction rule) corresponding to the first transaction data, and confirming at least one first voting node according to the transaction type.
Optionally, the acquiring the third transaction data sent by the master node and sending the third transaction data to a first encryption card includes:
invoking the third transaction data, the third transaction data comprising a plurality of the first voting data, the first voting data comprising a voting result;
detecting whether a plurality of voting results in third transaction data accord with a transaction execution rule, if so, sending the third transaction data to the first encryption card, wherein the third transaction data are used for triggering the first encryption card to sequentially detect the validity of signatures of a plurality of first voting nodes in the third transaction data, and the transaction execution rule is a rule that the transaction can be executed after the voting results reach a preset standard.
In a second aspect, an embodiment of the present application provides a blockchain transaction device based on an encryption card, where the device is applied to any transaction initiating node in a blockchain network, including:
the first acquisition module is used for acquiring first transaction data submitted by a user, wherein the first transaction data is information for reflecting transaction details;
the first computing module is used for signing the first transaction data to obtain second transaction data;
the second calculation module is used for sending the second transaction data to at least one first voting node and receiving the first voting data sent by each first voting node, wherein the first voting node is a node which needs to vote on the second transaction data in a blockchain network;
the third calculation module is used for packaging the plurality of first voting data in the second transaction data to obtain third transaction data, and sending the third transaction data to a master node, wherein the third transaction data is used for triggering the master node to send the third transaction data to each node in a blockchain network;
the fourth calculation module is used for acquiring the third transaction data sent by the master node and sending the third transaction data to a first encryption card, wherein the first encryption card is an encryption card corresponding to the transaction initiating node and is used for checking signature validity of the third transaction data;
and the fifth calculation module is used for receiving the detection instruction sent by the first encryption card and processing the third transaction data according to the detection instruction.
In a third aspect, embodiments of the present application provide a blockchain transaction device based on an encryption card, the device including a memory and a processor. The memory is used for storing a computer program; the processor is configured to implement the steps of the encryption card-based blockchain transaction method described above when executing the computer program.
In a fourth aspect, embodiments of the present application provide a readable storage medium having a computer program stored thereon, which when executed by a processor, implements the steps of the encryption card-based blockchain transaction method described above.
The beneficial effects of the invention are as follows:
according to the invention, the third transaction data received from the master node is sent to the first encryption card corresponding to the transaction initiating node, so that the first encryption card can complete verification of signature validity in the third transaction data, and then a corresponding verification instruction is sent to the transaction initiating node, so that the third transaction data is directly checked by the transaction node through a verification program in a blockchain program arranged at the bottom layer, each transaction in a blockchain network can be executed more quickly, and the overall transaction speed of a blockchain is obviously increased.
Additional features and advantages of the invention will be set forth in the description which follows, and in part will be apparent from the description, or may be learned by practice of the embodiments of the invention. The objectives and other advantages of the invention will be realized and attained by the structure particularly pointed out in the written description and claims thereof as well as the appended drawings.
Drawings
In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the drawings that are needed in the embodiments will be briefly described below, it being understood that the following drawings only illustrate some embodiments of the present invention and therefore should not be considered as limiting the scope, and other related drawings may be obtained according to these drawings without inventive effort for a person skilled in the art.
FIG. 1 is a schematic flow chart of a blockchain transaction method based on an encryption card according to an embodiment of the invention;
FIG. 2 is a schematic diagram of a block chain transaction device based on an encryption card according to an embodiment of the present invention;
fig. 3 is a schematic block chain transaction device structure based on an encryption card according to an embodiment of the present invention.
FIG. 4 is a schematic diagram of an exemplary blockchain network transaction for illustration in accordance with embodiments of the present invention.
Detailed Description
For the purpose of making the objects, technical solutions and advantages of the embodiments of the present invention more apparent, the technical solutions of the embodiments of the present invention will be clearly and completely described below with reference to the accompanying drawings in the embodiments of the present invention, and it is apparent that the described embodiments are some embodiments of the present invention, but not all embodiments of the present invention. The components of the embodiments of the present invention generally described and illustrated in the figures herein may be arranged and designed in a wide variety of different configurations. Thus, the following detailed description of the embodiments of the invention, as presented in the figures, is not intended to limit the scope of the invention, as claimed, but is merely representative of selected embodiments of the invention. All other embodiments, which can be made by those skilled in the art based on the embodiments of the invention without making any inventive effort, are intended to be within the scope of the invention.
It should be noted that: like reference numerals or letters denote like items in the following figures, and thus once an item is defined in one figure, no further definition or explanation thereof is necessary in the following figures. Meanwhile, in the description of the present invention, the terms "first", "second", and the like are used only to distinguish the description, and are not to be construed as indicating or implying relative importance.
Example 1
As shown in fig. 1, the present embodiment provides a blockchain transaction method based on an encryption card, which includes step S1, step S2, step S3, step S4, step S5, and step S6.
S1, a transaction initiating node acquires first transaction data submitted by a user, wherein the first transaction data is information for reflecting transaction details, and the first transaction data comprises a transaction content transaction initiating user signature (hereinafter referred to as initiator signature);
s2, signing the first transaction data by the transaction initiating node to obtain second transaction data;
it should be noted that, in step S2, before signing the first transaction data, a signature verification operation needs to be performed on the first transaction data, where specific operation steps are as follows:
s21, the first transaction data are sent to a first encryption card, the first transaction data are used for triggering the first encryption card to check the validity of the signature of the sponsor in the first transaction data, and the first encryption card is the encryption card corresponding to the transaction initiating node;
in step S21, the transaction initiating node does not need to extract the initiator signature from the first transaction data by itself, but instead hands the step to the first encryption card for execution, so as to increase the operation speed of the transaction; secondly, the traditional process of signing, encrypting and decrypting is concentrated in the bottom layer program of the blockchain, so that when the transaction is operated, more CPU (central processing unit) computing power resources of the node server are required to be occupied, the transaction speed is low, and operations of signing data extraction, signing, encrypting and decrypting are all carried out on the encryption card, so that the operation speed of transaction execution of each transaction initiating node of the blockchain network is obviously increased.
S22, a transaction initiating node receives a first check value sent by the first encryption card, if the first check value is a first state value, the transaction type corresponding to first transaction data is checked, at least one first voting node is confirmed according to the transaction type, the first check value comprises a first state value and a second state value, the first state value indicates that a signature of an initiator in the first transaction data is a valid signature, and the second state value indicates that the signature of the initiator in the first transaction data is an invalid signature;
s23, signing the first transaction data to obtain second transaction data, wherein the second transaction data is the first transaction data with a transaction initiating node signature;
it should be noted that, when the first check value is the first state value, operation 1: checking a transaction type (transaction rule) corresponding to the first transaction data, and confirming at least one first voting node and operation 2 according to the transaction type: and signing the first transaction data, and not sequencing the first transaction data.
Next, in the steps S21 to S23, another technical scheme is provided:
the transaction initiating node directly starts to check the transaction type (transaction rule) corresponding to the first transaction data after sending the first transaction data to the first encryption card without receiving the first check value as the first state value, and confirms at least one first voting node according to the transaction type.
S3, the transaction initiating node sends the second transaction data to at least one first voting node (specifically to a plurality of nodes depending on the number of nodes which need to vote on the second transaction data), and receives the first voting data sent by each first voting node, wherein the first voting data comprises a voting result value and a signature of the corresponding first voting node, and the first voting node is a node which needs to vote on the second transaction data in a blockchain network;
s4, packaging the plurality of first voting data in the second transaction data to obtain third transaction data, and sending the third transaction data to a master node, wherein the third transaction data is used for triggering the master node to send the third transaction data to each node in a blockchain network;
s5, acquiring the third transaction data sent by the master node, and sending the third transaction data to a first encryption card, wherein the first encryption card is an encryption card corresponding to the transaction initiating node, and the first encryption card is used for checking signature validity of the third transaction data;
in step S5, in this embodiment, the third transaction data received from the master node is sent to the first encryption card corresponding to the transaction initiating node, so that the first encryption card completes verification of the validity of the signature in the third transaction data, and then sends a corresponding verification instruction to the transaction initiating node, instead of the transaction node, the third transaction data is directly verified by the verification program in the underlying blockchain program, so that each transaction in the blockchain network can be executed more quickly, and the overall transaction speed of the blockchain is significantly increased.
In step S5, the transaction initiation node further includes, before transmitting the third transaction data to the first encryption card:
s51, extracting voting result values in a plurality of first voting data in third transaction data, checking whether the voting result values accord with transaction execution rules corresponding to the third transaction data, and if so, transmitting the third transaction data according with the transaction type to a first encryption card; the first encryption card sequentially detects the validity of the signatures of a plurality of first voting nodes in the third transaction data;
if the signatures of the first voting nodes are all valid signatures, a first qualified instruction is sent to the transaction initiating node, if any one of the signatures of the first voting nodes is invalid, a first unqualified instruction is sent to the transaction initiating node, wherein the transaction execution rule is a rule that the transaction can be executed only after the voting result reaches a preset standard, the first qualified instruction is used for triggering the transaction node to execute the transaction content in the third transaction data, and the first unqualified instruction is used for triggering the transaction node not to execute the transaction content in the third transaction data.
And S6, receiving a detection instruction sent by the first encryption card, and processing the third transaction data according to the detection instruction.
Example 2
The present embodiment will be described with reference to an exemplary blockchain network transaction schematic diagram of fig. 4, which illustrates the overall technical scheme flow:
assuming that the current area cross-chain network has only five nodes as shown in the figure, wherein the node E is a master node;
when a subordinate user of the node a (similar to the transaction initiating node in embodiment 1) submits a transaction (similar to the first transaction data in embodiment 1), the node a firstly verifies whether the signature of the initiating user of the transaction is valid (and the specific operation principle of verifying the signature of the user can refer to step S21-step S23 in embodiment 1), after the verification is passed, the node a signs the own signature on the transaction data, and the transaction data is approved by the node a on behalf of the transaction, then the node a sends the transaction data (similar to the second transaction data in embodiment 1) with the own signature to the node (similar to the voting node in embodiment 1) which needs to vote on the transaction according to the type or rule of the transaction data, in this embodiment, the voting nodes which need to participate in the transaction are assumed to be node a, node B and node C, then the node B and the node C vote the signature of the node a after receiving the transaction data to be sent by the node a, then vote the transaction content is signed, and then the voting result is forwarded to the voting result and the signature of the voting result is packaged into the voting result and the signature of the node a;
node a, upon receiving the voting data sent by node B and node C, encapsulates the transaction data together with the voting data sent by node B and node C to form an encapsulated data (similar to the third transaction data in embodiment 1), and then sends the encapsulated data to node E;
and then the node E sends the encapsulated data to each node in the blockchain network, namely the node A, the node B, the node C and the node D, after each node receives the encapsulated data, each node checks the signature of each voting node in the encapsulated data and whether the voting result of each voting node accords with the corresponding rule for executing the transaction, if so, the node E executes the transaction, and then the node E outputs the block.
Example 3
As shown in fig. 2, the present embodiment provides a blockchain transaction device based on an encryption card, which includes a first acquisition module 71, a first calculation module 72, a second calculation module 73, a third calculation module 74, a fourth calculation module 75, and a fifth calculation module 76.
A first obtaining module 71, configured to obtain first transaction data submitted by a user, where the first transaction data is information reflecting a transaction detail;
a first calculation module 72, configured to sign the first transaction data to obtain second transaction data;
a second calculation module 73, configured to send the second transaction data to at least one first voting node, and receive first voting data sent by each first voting node, where the first voting node is a node in the blockchain network that needs to vote on the second transaction data;
a third calculation module 74, configured to encapsulate a plurality of the first voting data in the second transaction data, obtain third transaction data, and send the third transaction data to a master node, where the third transaction data is used to trigger the master node to send the third transaction data to each node in a blockchain network;
a fourth calculation module 75, configured to obtain the third transaction data sent by the master node, and send the third transaction data to a first encryption card, where the first encryption card is an encryption card corresponding to the transaction initiation node, and the first encryption card is used to verify signature validity of the third transaction data;
and a fifth calculation module 76, configured to receive a detection instruction sent by the first encryption card, and process the third transaction data according to the detection instruction.
It should be noted that, regarding the apparatus in the above embodiments, the specific manner in which the respective modules perform the operations has been described in detail in the embodiments regarding the method, and will not be described in detail herein.
Example 4
Corresponding to the above method embodiments, the present disclosure further provides an encryption card-based blockchain transaction device, and a blockchain transaction device based on an encryption card described below and a blockchain transaction method based on an encryption card described above may be referred to correspondingly with each other.
Fig. 3 is a block diagram illustrating an encryption card based blockchain transaction device 800 in accordance with an exemplary embodiment. As shown in fig. 3, the electronic device 800 may include: a processor 801, a memory 802. The electronic device 800 may also include one or more of a multimedia component 803, an input/output (I/O) interface 804, and a communication component 805.
The processor 801 is configured to control overall operation of the electronic device 800 to perform all or part of the steps of the encryption card-based blockchain transaction method described above. The memory 402 is used to store various types of data to support operation on the electronic device 800, which may include, for example, instructions for any application or method operating on the electronic device 800, as well as application-related data, such as contact data, messages sent and received, pictures, audio, video, and so forth. The Memory 802 may be implemented by any type or combination of volatile or non-volatile Memory devices, such as static random access Memory (Static Random Access Memory, SRAM for short), electrically erasable programmable Read-Only Memory (Electrically Erasable Programmable Read-Only Memory, EEPROM for short), erasable programmable Read-Only Memory (Erasable ProgrammableRead-Only Memory, EPROM for short), programmable Read-Only Memory (PROM) Read-Only Memory (ROM for short), magnetic Memory, flash Memory, magnetic disk, or optical disk. The multimedia component 803 may include a screen and an audio component. Wherein the screen may be, for example, a touch screen, the audio component being for outputting and/or inputting audio signals. For example, the audio component may include a microphone for receiving external audio signals. The received audio signals may be further stored in the memory 802 or transmitted through the communication component 805. The audio assembly further comprises at least one speaker for outputting audio signals. The I/O interface 804 provides an interface between the processor 801 and other interface modules, which may be a keyboard, mouse, buttons, etc. These buttons may be virtual buttons or physical buttons. The communication component 805 is used for wired or wireless communication between the electronic device 800 and other devices. Wireless communication, such as Wi-F i, bluetooth, near field communication (Near FieldCommunication, NFC for short), 2G, 3G or 4G, or a combination of one or more thereof, the respective communication component 805 may thus comprise: wi-Fi module, bluetooth module, NFC module.
In an exemplary embodiment, the electronic device 800 may be implemented by one or more application specific integrated circuits (Application Specific Integrated Circuit, ASIC), digital signal processor (Digital Signal Processor, DSP), digital signal processing device (Digital Signal Processing Device, DSPD), programmable logic device (Programmable Logic Device, PLD), field programmable gate array (Field Programmable Gate Array, FPGA), controller, microcontroller, microprocessor, or other electronic components for performing the encryption card-based blockchain transaction method described above.
In another exemplary embodiment, a computer readable storage medium is also provided that includes program instructions that when executed by a processor implement the steps of the encryption card-based blockchain transaction method described above. For example, the computer readable storage medium may be the memory 802 described above including program instructions executable by the processor 801 of the electronic device 800 to perform the encryption card-based blockchain transaction method described above.
Example 5
Corresponding to the above method embodiments, the present disclosure further provides a readable storage medium, and a readable storage medium described below and a blockchain transaction method based on an encryption card described above may be referred to correspondingly.
A readable storage medium having stored thereon a computer program which when executed by a processor performs the steps of the encryption card based blockchain transaction method of the method embodiment described above.
The readable storage medium may be a usb disk, a removable hard disk, a Read-Only Memory (ROM), a random access Memory (Random Access Memory, RAM), a magnetic disk, or an optical disk, and the like.
The above description is only of the preferred embodiments of the present invention and is not intended to limit the present invention, but various modifications and variations can be made to the present invention by those skilled in the art. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present invention should be included in the protection scope of the present invention.
Claims (4)
1. A blockchain transaction method based on an encryption card, characterized in that the blockchain transaction method is applied to any transaction initiating node in a blockchain network, and comprises the following steps:
acquiring first transaction data submitted by a user, wherein the first transaction data is information reflecting transaction details;
signing the first transaction data to obtain second transaction data;
transmitting the second transaction data to at least one first voting node, and receiving first voting data transmitted by each first voting node, wherein the first voting node is a node which needs to vote on the second transaction data in a blockchain network;
packaging a plurality of first voting data in the second transaction data to obtain third transaction data, and sending the third transaction data to a master node, wherein the third transaction data is used for triggering the master node to send the third transaction data to each node in a blockchain network;
the third transaction data sent by the master node are obtained and sent to a first encryption card, wherein the first encryption card is an encryption card corresponding to the transaction initiating node and is used for checking signature validity of the third transaction data;
receiving a detection instruction sent by the first encryption card, and processing the third transaction data according to the detection instruction;
the signing the first transaction data to obtain second transaction data includes:
invoking the first transaction data, the first transaction data comprising an initiator signature;
the first transaction data is sent to a first encryption card, the first transaction data is used for triggering the first encryption card to check the validity of a signature of an initiator in the first transaction data, and the first encryption card is an encryption card corresponding to the transaction initiating node;
receiving a first check value sent by the first encryption card, and if the first check value is a first state value, signing the first transaction data to obtain second transaction data, wherein the first check value comprises the first state value, the first state value indicates that a signature of an initiator in the first transaction data is a valid signature, and the second transaction data is the first transaction data with a signature of a transaction initiating node;
if the first check value is the first state value, signing the first transaction data to obtain second transaction data, and further including:
and checking the transaction type corresponding to the first transaction data, and confirming at least one first voting node according to the transaction type.
2. The method of claim 1, wherein the obtaining the third transaction data sent by the master node and sending the third transaction data to the first encryption card comprises:
invoking the third transaction data, the third transaction data comprising a plurality of the first voting data, the first voting data comprising a voting result;
detecting whether a plurality of voting results in third transaction data accord with a transaction execution rule, if so, sending the third transaction data to the first encryption card, wherein the third transaction data are used for triggering the first encryption card to sequentially detect the validity of signatures of a plurality of first voting nodes in the third transaction data, and the transaction execution rule is a rule that the transaction can be executed after the voting results reach a preset standard.
3. A blockchain transaction device based on an encryption card, characterized in that it is applied to any transaction initiating node in a blockchain network, comprising:
the first acquisition module is used for acquiring first transaction data submitted by a user, wherein the first transaction data is information for reflecting transaction details;
the first computing module is configured to sign the first transaction data to obtain second transaction data, and includes: invoking the first transaction data, the first transaction data comprising an initiator signature; the first transaction data is sent to a first encryption card, the first transaction data is used for triggering the first encryption card to check the validity of a signature of an initiator in the first transaction data, and the first encryption card is an encryption card corresponding to the transaction initiating node; receiving a first check value sent by the first encryption card, and if the first check value is a first state value, signing the first transaction data to obtain second transaction data, wherein the first check value comprises the first state value, the first state value indicates that a signature of an initiator in the first transaction data is a valid signature, and the second transaction data is the first transaction data with a signature of a transaction initiating node;
if the first check value is the first state value, signing the first transaction data to obtain second transaction data, and further including: checking a transaction type corresponding to the first transaction data, and confirming at least one first voting node according to the transaction type;
the second calculation module is used for sending the second transaction data to at least one first voting node and receiving the first voting data sent by each first voting node, wherein the first voting node is a node which needs to vote on the second transaction data in a blockchain network;
the third calculation module is used for packaging the plurality of first voting data in the second transaction data to obtain third transaction data, and sending the third transaction data to a master node, wherein the third transaction data is used for triggering the master node to send the third transaction data to each node in a blockchain network;
the fourth calculation module is used for acquiring the third transaction data sent by the master node and sending the third transaction data to a first encryption card, wherein the first encryption card is an encryption card corresponding to the transaction initiating node and is used for checking signature validity of the third transaction data;
and the fifth calculation module is used for receiving the detection instruction sent by the first encryption card and processing the third transaction data according to the detection instruction.
4. A blockchain transaction device based on an encryption card, comprising:
a memory for storing a computer program;
a processor for implementing the steps of the encryption card-based blockchain transaction method of any of claims 1 to 2 when executing the computer program.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202110993326.9A CN113706131B (en) | 2021-08-27 | 2021-08-27 | Block chain transaction method, device and equipment based on encryption card |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202110993326.9A CN113706131B (en) | 2021-08-27 | 2021-08-27 | Block chain transaction method, device and equipment based on encryption card |
Publications (2)
Publication Number | Publication Date |
---|---|
CN113706131A CN113706131A (en) | 2021-11-26 |
CN113706131B true CN113706131B (en) | 2024-02-27 |
Family
ID=78655739
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202110993326.9A Active CN113706131B (en) | 2021-08-27 | 2021-08-27 | Block chain transaction method, device and equipment based on encryption card |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN113706131B (en) |
Families Citing this family (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN114418769A (en) * | 2022-01-27 | 2022-04-29 | 成都质数斯达克科技有限公司 | Block chain transaction charging method and device and readable storage medium |
Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN111104460A (en) * | 2019-12-02 | 2020-05-05 | 远光软件股份有限公司 | Block chain consensus method, system, electronic equipment and storage medium |
CN111327564A (en) * | 2018-12-13 | 2020-06-23 | 航天信息股份有限公司 | Access method and device for alliance chain |
CN112217635A (en) * | 2020-09-16 | 2021-01-12 | 郑州信大先进技术研究院 | Information encryption transmission method and system based on block chain and high-speed password card |
CN112491845A (en) * | 2020-11-18 | 2021-03-12 | 北京数码视讯科技股份有限公司 | Node admission method, consensus method, device, electronic equipment and storage medium |
CN112632629A (en) * | 2021-03-10 | 2021-04-09 | 腾讯科技(深圳)有限公司 | Voting management method, device, medium and electronic equipment based on block chain |
-
2021
- 2021-08-27 CN CN202110993326.9A patent/CN113706131B/en active Active
Patent Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN111327564A (en) * | 2018-12-13 | 2020-06-23 | 航天信息股份有限公司 | Access method and device for alliance chain |
CN111104460A (en) * | 2019-12-02 | 2020-05-05 | 远光软件股份有限公司 | Block chain consensus method, system, electronic equipment and storage medium |
CN112217635A (en) * | 2020-09-16 | 2021-01-12 | 郑州信大先进技术研究院 | Information encryption transmission method and system based on block chain and high-speed password card |
CN112491845A (en) * | 2020-11-18 | 2021-03-12 | 北京数码视讯科技股份有限公司 | Node admission method, consensus method, device, electronic equipment and storage medium |
CN112632629A (en) * | 2021-03-10 | 2021-04-09 | 腾讯科技(深圳)有限公司 | Voting management method, device, medium and electronic equipment based on block chain |
Non-Patent Citations (2)
Title |
---|
一种微型PKI客户端密钥管理设备的实现方案;魏志东, 冯登国;计算机工程(第10期);第58-60+176页 * |
基于区块链技术的铁路货运物流平台构建;王瑞民等;《中国铁路》;第103-107页 * |
Also Published As
Publication number | Publication date |
---|---|
CN113706131A (en) | 2021-11-26 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN110570196B (en) | Transaction data processing method, device, terminal equipment and storage medium | |
CN109214196B (en) | Data interaction method, device and equipment | |
US20090260084A1 (en) | Method for verifying conformity of the logical content of a computer appliance with a reference content | |
CN104580112B (en) | A kind of service authentication method, system and server | |
CN114338666B (en) | Verification method, device, equipment and medium for Fabric block chain cross-chain transaction | |
CN108564363B (en) | Transaction processing method, server, client and system | |
CN112631557A (en) | Method, device and storage medium for generating interface code and/or interface document | |
CN111709007A (en) | User authentication method, device and equipment | |
CN110113329B (en) | Verification method and device for verification code | |
CN109145651B (en) | Data processing method and device | |
CN113032837A (en) | Anonymous authentication method and system for open platform | |
CN113706131B (en) | Block chain transaction method, device and equipment based on encryption card | |
US20130191641A1 (en) | Captcha (completely automated public test to tell computers and humans apart) data generation methods and related data management systems and computer program products thereof | |
CN113938408B (en) | Data traffic testing method and device, server and storage medium | |
CN114462096A (en) | Block chain-based Internet of things equipment control method and device, computer equipment and storage medium | |
CN108171063A (en) | Method, terminal and the computer readable storage medium of access safety element | |
CN111859322A (en) | Identity verification method and device and electronic equipment | |
US20170279777A1 (en) | File signature system and method | |
CN107679865B (en) | Identity verification method and device based on touch area | |
CN113051622B (en) | Index construction method, device, equipment and storage medium | |
CN115185551A (en) | Application program installation method, device, system and storage medium | |
CN104052726A (en) | Access control method and mobile terminal which employs access control method | |
CN114912097A (en) | Certificate verification method and device, electronic equipment and storage medium | |
US11503058B2 (en) | Security server for dynamic verification of web content, end users remote device, system comprising said end users remote device and server, and method implemented by said system | |
CN115225285A (en) | Trusted execution environment-based data security uplink implementation method |
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 |