Method and device for verifying signature of transaction in blockchain, and electronic equipment

A blockchain and transaction technology, applied in the blockchain field, can solve the problems of different transaction sources, avoid repeated signature verification, and save processing resources.

Pending Publication Date: 2021-11-30
HANGZHOU RIVTOWER TECH CO LTD
View PDF0 Cites 0 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0004] For these three types of transactions, the transaction signature needs to be verified, but due to the different transaction sources, it may lead to repeated signature verification for the same transaction

Method used

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
View more

Image

Smart Image Click on the blue labels to locate them in the text.
Viewing Examples
Smart Image
  • Method and device for verifying signature of transaction in blockchain, and electronic equipment
  • Method and device for verifying signature of transaction in blockchain, and electronic equipment
  • Method and device for verifying signature of transaction in blockchain, and electronic equipment

Examples

Experimental program
Comparison scheme
Effect test

Embodiment 1

[0036] refer to Figure 1a As shown, it is a schematic diagram of the steps of a method for verifying the signature of transactions in the blockchain provided by the embodiment of this specification. It should be understood that this method is applied to a device for verifying the signature of transactions in the blockchain. Specifically, the verification The signature device may be a software module capable of performing the following methods and having corresponding functions, or the signature verification device may be a blockchain node capable of performing the following methods and having corresponding functions.

[0037] The signature verification method may include the following steps:

[0038] Step 102: After receiving the target transaction, according to the transaction hash of the target transaction, check whether there is a signature verification result that matches the target transaction cached in the buffer pool, wherein the signature verification result cached in ...

Embodiment 2

[0057] refer to figure 2 As shown, the device for verifying the signature of transactions in the blockchain provided by the embodiment of this specification, the device 200 may include: a search module 202, an end module 204, and a signature verification module 206; wherein,

[0058] The search module 202, after receiving the target transaction, searches whether there is a signature verification result that matches the target transaction cached in the cache pool according to the transaction hash of the target transaction, wherein the signature verification result cached in the cache pool is Cache in the key-value pair KV storage mode, the keyword of each signature verification result is the transaction hash, and the value is the signature verification result;

[0059] End module 204, if a signature verification result matching the target transaction is found, skip this signature verification operation;

[0060] Signature verification module 206, if no signature verification ...

Embodiment 3

[0071] image 3 It is a schematic structural diagram of an electronic device according to an embodiment of this specification. Please refer to image 3 , at the hardware level, the electronic device includes a processor, and optionally also includes an internal bus, a network interface, and a memory. Wherein, the memory may include a memory, such as a high-speed random-access memory (Random-Access Memory, RAM), and may also include a non-volatile memory (non-volatile memory), such as at least one disk memory. Of course, the electronic device may also include hardware required by other services.

[0072] The processor, the network interface and the memory can be connected to each other through an internal bus, which can be an ISA (Industry Standard Architecture, industry standard architecture) bus, a PCI (Peripheral Component Interconnect, peripheral component interconnection standard) bus or an EISA (Extended Industry StandardArchitecture, extended industry standard archite...

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to view more

PUM

No PUM Login to view more

Abstract

One or more embodiments of the present specification disclose a method and a device for verifying a signature of a transaction in blockchain, and electronic equipment. The method comprises the following steps: when signature verification is performed on a target transaction, not directly performing the signature verification processing on the target transaction; but based on a transaction hash of the target transaction, searching whether a signature verification result stored corresponding to the transaction Hash of the target transaction is cached in a cache pool or not; if the signature verification result is found, not carrying out signature verification again, and directly carrying out subsequent operations by using the signature verification result; if the signature verification result is not found, carrying out a signature verification operation on the target transaction, and caching a signature verification result in the cache pool. Therefore, through a mode of caching signature verification results in the cache pool, unnecessarily repeated signature verification of target transactions is avoided, and processing resources are reasonably saved.

Description

technical field [0001] This document relates to the technical field of blockchain, and in particular to a method, device and electronic equipment for verifying signatures of transactions in blockchain. Background technique [0002] Blockchain is a decentralized and innovative solution that uses distributed ledger technology to solve multi-party trust problems, and is a cutting-edge technology in the current society. [0003] When the blockchain node processes the transaction normally, it needs to verify the necessary signature of the transaction to ensure the normal execution of the transaction. At present, the transactions that need to be verified come from the following sources: transactions sent directly to blockchain nodes through Remote Procedure Call (RPC) interfaces, transactions forwarded by other blockchain nodes, and transactions contained in consensus blocks trade. [0004] For these three types of transactions, the transaction signature needs to be verified, bu...

Claims

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to view more

Application Information

Patent Timeline
no application Login to view more
IPC IPC(8): G06Q20/40G06Q20/38
CPCG06Q20/401G06Q20/3825
Inventor 王晓亮张亚宁
Owner HANGZHOU RIVTOWER TECH CO LTD
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Try Eureka
PatSnap group products