CN111625202A - Algorithm extension customizing method and system of block chain chip - Google Patents

Algorithm extension customizing method and system of block chain chip Download PDF

Info

Publication number
CN111625202A
CN111625202A CN202010734485.2A CN202010734485A CN111625202A CN 111625202 A CN111625202 A CN 111625202A CN 202010734485 A CN202010734485 A CN 202010734485A CN 111625202 A CN111625202 A CN 111625202A
Authority
CN
China
Prior art keywords
chip
algorithm
block chain
sub
bit 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.)
Granted
Application number
CN202010734485.2A
Other languages
Chinese (zh)
Other versions
CN111625202B (en
Inventor
孙飞
付海旭
孙伟
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Shanghai Conglian Information Technology Co ltd
Original Assignee
Shanghai Conglian Information Technology Co ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Shanghai Conglian Information Technology Co ltd filed Critical Shanghai Conglian Information Technology Co ltd
Priority to CN202010734485.2A priority Critical patent/CN111625202B/en
Publication of CN111625202A publication Critical patent/CN111625202A/en
Application granted granted Critical
Publication of CN111625202B publication Critical patent/CN111625202B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/06Digital input from, or digital output to, record carriers, e.g. RAID, emulated record carriers or networked record carriers
    • G06F3/0601Interfaces specially adapted for storage systems
    • G06F3/0668Interfaces specially adapted for storage systems adopting a particular infrastructure
    • G06F3/067Distributed or networked storage systems, e.g. storage area networks [SAN], network attached storage [NAS]
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F21/00Security arrangements for protecting computers, components thereof, programs or data against unauthorised activity
    • G06F21/60Protecting data
    • G06F21/602Providing cryptographic facilities or services
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/06Digital input from, or digital output to, record carriers, e.g. RAID, emulated record carriers or networked record carriers
    • G06F3/0601Interfaces specially adapted for storage systems
    • G06F3/0602Interfaces specially adapted for storage systems specifically adapted to achieve a particular effect
    • G06F3/061Improving I/O performance
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F7/00Methods or arrangements for processing data by operating upon the order or content of the data handled
    • G06F7/38Methods or arrangements for performing computations using exclusively denominational number representation, e.g. using binary, ternary, decimal representation

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • Human Computer Interaction (AREA)
  • Mathematical Analysis (AREA)
  • Computing Systems (AREA)
  • Computational Mathematics (AREA)
  • Mathematical Optimization (AREA)
  • Pure & Applied Mathematics (AREA)
  • Health & Medical Sciences (AREA)
  • Bioethics (AREA)
  • General Health & Medical Sciences (AREA)
  • Computer Hardware Design (AREA)
  • Computer Security & Cryptography (AREA)
  • Software Systems (AREA)
  • Storage Device Security (AREA)

Abstract

An algorithm expansion customization method of a blockchain chip comprises the following steps: reading binary numbers written into the blockchain chip in advance when the blockchain chip executes the algorithm flow; calculating the binary number and an output value of the first sub-algorithm flow to obtain a calculated value; inputting the operation value into a second sub-algorithm process as an input value of the second sub-algorithm process; the first sub-algorithm process and the second sub-algorithm process are any two sub-algorithm processes before and after the algorithm process executed by the block chain chip. The invention can expand and customize the original algorithm on the block chain chip, reduces the cost, improves the efficiency, increases the value-added benefit for customers with stronger timeliness requirements, and simultaneously, chip development enterprises can avoid secondary development.

Description

Algorithm extension customizing method and system of block chain chip
Technical Field
The invention relates to the technical field of a block chain, in particular to an algorithm expansion customization method and system for a block chain chip.
Background
In order to improve the operational performance of the blockchain service, enterprises develop various high-performance operational chips which are based on corresponding algorithms and are used for running on a blockchain server, however, the blockchain chips only work based on a certain single algorithm, the expansibility is poor, if the algorithm is required to be expanded into a variant algorithm, the enterprises need to perform secondary development, and customers need to buy chips again, so that the cost is high, the efficiency is low, the time consumption is long, and the value-added benefits of the customers with strong timeliness requirements can be reduced.
Disclosure of Invention
Based on this, in order to solve the above technical problem, a block chain chip algorithm expansion customizing method and system thereof are provided.
In order to solve the technical problems, the invention adopts the following technical scheme:
an algorithm expansion customization method of a blockchain chip comprises the following steps:
reading binary numbers written into the blockchain chip in advance when the blockchain chip executes the algorithm flow;
calculating the binary number and an output value of the first sub-algorithm flow to obtain a calculated value;
inputting the operation value into a second sub-algorithm process as an input value of the second sub-algorithm process;
the first sub-algorithm process and the second sub-algorithm process are any two sub-algorithm processes before and after the algorithm process executed by the block chain chip.
Writing a binary number to the block chain chip in advance includes:
and after the block chain chip is electrified, reading the level of an input/output pin of the block chain chip and storing the level as binary number, wherein the low level is 0, and the high level is 1.
Writing a binary number to the block chain chip in advance includes:
and burning the binary number into a one-time programmable memory of the block chain chip.
The binary number is 12-bit data, and writing the binary number to the block chain chip in advance comprises:
after the block chain chip is electrified, reading the level of an input/output pin of the block chain chip and storing the level as 4-bit data;
burning 4-bit data into a one-time programmable memory of the block chain chip;
configuring 4-bit data to a register of the block chain chip;
and combining the 3 4-bit data into 12-bit data according to a preset sequence.
The 3 pieces of 4-bit data are combined into 12-bit data in order from left to right.
The invention also relates to an algorithm expansion customization system of the blockchain chip, which comprises a storage module arranged in the blockchain chip, wherein the storage module comprises a plurality of instructions loaded and executed by a processing module of the blockchain chip:
reading binary numbers written into the blockchain chip in advance when the blockchain chip executes the algorithm flow;
calculating the binary number and an output value of the first sub-algorithm flow to obtain a calculated value;
inputting the operation value into a second sub-algorithm process as an input value of the second sub-algorithm process;
the first sub-algorithm process and the second sub-algorithm process are any two sub-algorithm processes before and after the algorithm process executed by the block chain chip.
Writing a binary number to the block chain chip in advance includes:
and after the block chain chip is electrified, reading the level of an input/output pin of the block chain chip and storing the level as binary number, wherein the low level is 0, and the high level is 1.
Writing a binary number to the block chain chip in advance includes:
and burning the binary number into a one-time programmable memory of the block chain chip.
The binary number is 12-bit data, and writing the binary number to the block chain chip in advance comprises:
after the block chain chip is electrified, reading the level of an input/output pin of the block chain chip and storing the level as 4-bit data;
burning 4-bit data into a one-time programmable memory of the block chain chip;
configuring 4-bit data to a register of the block chain chip;
and combining the 3 4-bit data into 12-bit data according to a preset sequence.
The 3 pieces of 4-bit data are combined into 12-bit data in order from left to right.
The invention can expand and customize the original algorithm on the block chain chip, reduces the cost, improves the efficiency, increases the value-added benefit for customers with stronger timeliness requirements, and simultaneously, chip development enterprises can avoid secondary development.
Drawings
The invention is described in detail below with reference to the following figures and detailed description:
FIG. 1 is a flow chart of the present invention;
fig. 2 is a flowchart of an encryption algorithm according to an embodiment of the present invention.
Detailed Description
As shown in fig. 1, an algorithm expansion customizing method of a blockchain chip includes:
s101, when the block chain chip executes the algorithm process, reading binary numbers written into the block chain chip in advance.
The algorithm flow comprises a plurality of sub-algorithm flows.
And S102, operating the binary number and the output value of the first sub-algorithm flow to obtain an operation value.
Different binary numbers are written in and different operation modes are adopted, the original algorithm on the block chain chip can be expanded and customized, and the binary numbers and the operation modes can be determined according to the output requirements of customers on the algorithm. The operation method is, for example, addition, subtraction, or exclusive or.
And S103, inputting the operation value serving as an input value of the second sub-algorithm flow into the second sub-algorithm flow.
The first sub-algorithm process and the second sub-algorithm process are any two sub-algorithm processes before and after the algorithm process executed by the block chain chip.
The invention changes the output of the original algorithm by operating the intermediate value between the two sub-processes, obtains the variant algorithm, the binary number and the operation mode required by the operation can be determined according to the output requirement of the client on the algorithm, and the chip enterprise can solidify and customize the binary number and the operation mode in the chip according to the requirement of the client in the chip development stage, thereby realizing the expansion and customization of the original algorithm on the block chain chip, reducing the cost, improving the efficiency, increasing the value-added benefit of the client with stronger timeliness requirement, and simultaneously avoiding the secondary development of the chip development enterprise.
The register of the chip can be configured through software carried by the blockchain server, so that the chip is instructed to execute the original algorithm flow or the variant algorithm flow, for example, when an A value is configured in the register, the chip executes the original algorithm flow, and when a B value is configured, the chip executes the variant algorithm flow.
In this embodiment, writing a binary number to the blockchain chip in advance includes:
after the block chain chip is powered on, the level of an input pin and an output pin of the block chain chip is read and stored as binary number, the low level is 0, and the high level is 1. In the chip design stage, after determining binary numbers according to the requirements of customers, a chip development enterprise carries out corresponding design on an input/output pin circuit of the chip development enterprise, so that the corresponding binary numbers can be obtained after the input/output pins are powered on, if 1100 is required to be obtained, the input/output pin circuit is designed to be that pins 0 and 1 are grounded, and pins 2 and 3 are connected with high level.
Of course, it is also possible to burn customer-determined binary numbers into the one-time programmable memory of the blockchain chip during the chip design phase.
Wherein, the one-time programmable memory adopts an EFUSE memory.
Preferably, in this embodiment, the binary number is 12-bit data, and writing the binary number to the block chain chip in advance includes:
after the block chain chip is electrified, reading the level of an input/output pin of the block chain chip and storing the level as 4-bit data;
burning 4-bit data into a one-time programmable memory of the block chain chip;
configuring 4-bit data to a register of a block chain chip;
and combining the 3 4-bit data into 12-bit data according to a preset sequence.
The 8-bit data is solidified by a chip enterprise in a chip design stage through a pin circuit design and a mode of burning into a one-time programmable memory, and the rest 4-bit data is reserved for a client to configure a register of a block chain chip.
Specifically, the 3 pieces of 4-bit data are combined into 12-bit data in order from left to right.
The scheme also relates to an algorithm expansion customization system of the blockchain chip, which comprises a storage module arranged in the blockchain chip, wherein the storage module comprises a plurality of instructions loaded and executed by a processing module of the blockchain chip, and as shown in fig. 1:
s101, when the block chain chip executes the algorithm process, reading binary numbers written into the block chain chip in advance.
The algorithm flow comprises a plurality of sub-algorithm flows.
And S102, operating the binary number and the output value of the first sub-algorithm flow to obtain an operation value.
Different binary numbers are written in and different operation modes are adopted, the original algorithm on the block chain chip can be expanded and customized, and the binary numbers and the operation modes can be determined according to the output requirements of customers on the algorithm.
And S103, inputting the operation value serving as an input value of the second sub-algorithm flow into the second sub-algorithm flow.
The first sub-algorithm process and the second sub-algorithm process are any two sub-algorithm processes before and after the algorithm process executed by the block chain chip.
In this embodiment, writing a binary number to the blockchain chip in advance includes:
after the block chain chip is powered on, the level of an input pin and an output pin of the block chain chip is read and stored as binary number, the low level is 0, and the high level is 1. In the chip design stage, after determining binary numbers according to the requirements of customers, a chip development enterprise carries out corresponding design on an input/output pin circuit of the chip development enterprise, so that the corresponding binary numbers can be obtained after the input/output pins are powered on, if 1100 is required to be obtained, the input/output pin circuit is designed to be that pins 0 and 1 are grounded, and pins 2 and 3 are connected with high level.
Of course, it is also possible to burn customer-determined binary numbers into the one-time programmable memory of the blockchain chip during the chip design phase.
Wherein, the one-time programmable memory adopts an EFUSE memory.
Preferably, in this embodiment, the binary number is 12-bit data, and writing the binary number to the block chain chip in advance includes:
after the block chain chip is electrified, reading the level of an input/output pin of the block chain chip and storing the level as 4-bit data;
burning 4-bit data into a one-time programmable memory of the block chain chip;
configuring 4-bit data to a register of a block chain chip;
and combining the 3 4-bit data into 12-bit data according to a preset sequence.
The 8-bit data is solidified by a chip enterprise in a chip design stage through a pin circuit design and a mode of burning into a one-time programmable memory, and the rest 4-bit data is reserved for a client to configure a register of a block chain chip.
Specifically, the 3 pieces of 4-bit data are combined into 12-bit data in order from left to right.
As shown in fig. 2, taking an encryption algorithm flow as an example, the encryption algorithm flow includes two sub-encryption algorithm flows: the Salsa20 algorithm flow and the SHA256 algorithm flow, the 12-bit binary number is 101010111100.
1011 and 1100 are fixed in the chip by the chip enterprise, and the operation mode is fixed as addition operation, 1010 is configured from the register of the block chain chip by the client.
Then, the output value X of the Salsa20 algorithm flow is added to 101010111100 to obtain an operation value.
And finally, inputting the operation value serving as an input value of the SHA256 algorithm flow into the SHA256 algorithm flow, wherein an output value of the SHA256 algorithm flow is an output value of the encryption algorithm after being subjected to hash.
However, those skilled in the art should realize that the above embodiments are illustrative only and not limiting to the present invention, and that changes and modifications to the above described embodiments are intended to fall within the scope of the appended claims, provided they fall within the true spirit of the present invention.

Claims (10)

1. An algorithm expansion customizing method of a block chain chip is characterized by comprising the following steps:
reading binary numbers written into the blockchain chip in advance when the blockchain chip executes the algorithm flow;
calculating the binary number and an output value of the first sub-algorithm flow to obtain a calculated value;
inputting the operation value into a second sub-algorithm process as an input value of the second sub-algorithm process;
the first sub-algorithm process and the second sub-algorithm process are any two sub-algorithm processes before and after the algorithm process executed by the block chain chip.
2. The algorithm expansion customizing method of the blockchain chip according to claim 1, wherein writing binary numbers to the blockchain chip in advance comprises:
and after the block chain chip is electrified, reading the level of an input/output pin of the block chain chip and storing the level as binary number, wherein the low level is 0, and the high level is 1.
3. The algorithm expansion customizing method of the blockchain chip according to claim 1, wherein writing binary numbers to the blockchain chip in advance comprises:
and burning the binary number into a one-time programmable memory of the block chain chip.
4. The algorithm expansion customizing method of a blockchain chip according to claim 1, wherein the binary number is 12-bit data, and writing the binary number to the blockchain chip in advance comprises:
after the block chain chip is electrified, reading the level of an input/output pin of the block chain chip and storing the level as 4-bit data;
burning 4-bit data into a one-time programmable memory of the block chain chip;
configuring 4-bit data to a register of the block chain chip;
and combining the 3 4-bit data into 12-bit data according to a preset sequence.
5. The method according to claim 4, wherein said 3 4-bit data are combined into 12-bit data in a left-to-right order.
6. The algorithm expansion customization system of the blockchain chip is characterized by comprising a storage module arranged in the blockchain chip, wherein the storage module comprises a plurality of instructions loaded and executed by a processing module of the blockchain chip:
reading binary numbers written into the blockchain chip in advance when the blockchain chip executes the algorithm flow;
calculating the binary number and an output value of the first sub-algorithm flow to obtain a calculated value;
inputting the operation value into a second sub-algorithm process as an input value of the second sub-algorithm process;
the first sub-algorithm process and the second sub-algorithm process are any two sub-algorithm processes before and after the algorithm process executed by the block chain chip.
7. The system of claim 6, wherein writing binary numbers to the blockchain chip in advance comprises:
and after the block chain chip is electrified, reading the level of an input/output pin of the block chain chip and storing the level as binary number, wherein the low level is 0, and the high level is 1.
8. The system of claim 6, wherein writing binary numbers to the blockchain chip in advance comprises:
and burning the binary number into a one-time programmable memory of the block chain chip.
9. The system of claim 6, wherein the binary number is 12-bit data, and the writing of the binary number to the blockchain chip in advance comprises:
after the block chain chip is electrified, reading the level of an input/output pin of the block chain chip and storing the level as 4-bit data;
burning 4-bit data into a one-time programmable memory of the block chain chip;
configuring 4-bit data to a register of the block chain chip;
and combining the 3 4-bit data into 12-bit data according to a preset sequence.
10. The system according to claim 9, wherein the 3 4-bit data are combined into 12-bit data in a left-to-right order.
CN202010734485.2A 2020-07-28 2020-07-28 Algorithm extension customizing method and system of block chain chip Active CN111625202B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010734485.2A CN111625202B (en) 2020-07-28 2020-07-28 Algorithm extension customizing method and system of block chain chip

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010734485.2A CN111625202B (en) 2020-07-28 2020-07-28 Algorithm extension customizing method and system of block chain chip

Publications (2)

Publication Number Publication Date
CN111625202A true CN111625202A (en) 2020-09-04
CN111625202B CN111625202B (en) 2021-03-09

Family

ID=72260395

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010734485.2A Active CN111625202B (en) 2020-07-28 2020-07-28 Algorithm extension customizing method and system of block chain chip

Country Status (1)

Country Link
CN (1) CN111625202B (en)

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN204965422U (en) * 2015-09-18 2016-01-13 芯佰微电子(北京)有限公司 Multi -protocols cryptographic algorithm treater and system on chip/SOC
CN105577363A (en) * 2016-01-29 2016-05-11 江苏沁恒股份有限公司 Extensible pipelined circuit aiming at SM4 cryptographic algorithm and implementation method thereof
CN106452776A (en) * 2015-08-12 2017-02-22 航天信息股份有限公司 Data encryption method
CN108229686A (en) * 2016-12-14 2018-06-29 阿里巴巴集团控股有限公司 Model training, Forecasting Methodology, device, electronic equipment and machine learning platform
CN108616348A (en) * 2018-04-19 2018-10-02 清华大学无锡应用技术研究院 The method and system of security algorithm, decipherment algorithm are realized using reconfigurable processor
CN109976723A (en) * 2019-03-12 2019-07-05 北京国电智深控制技术有限公司 A kind of algorithm development platform, algorithm development method and computer readable storage medium

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106452776A (en) * 2015-08-12 2017-02-22 航天信息股份有限公司 Data encryption method
CN204965422U (en) * 2015-09-18 2016-01-13 芯佰微电子(北京)有限公司 Multi -protocols cryptographic algorithm treater and system on chip/SOC
CN105577363A (en) * 2016-01-29 2016-05-11 江苏沁恒股份有限公司 Extensible pipelined circuit aiming at SM4 cryptographic algorithm and implementation method thereof
CN108229686A (en) * 2016-12-14 2018-06-29 阿里巴巴集团控股有限公司 Model training, Forecasting Methodology, device, electronic equipment and machine learning platform
CN108616348A (en) * 2018-04-19 2018-10-02 清华大学无锡应用技术研究院 The method and system of security algorithm, decipherment algorithm are realized using reconfigurable processor
CN109976723A (en) * 2019-03-12 2019-07-05 北京国电智深控制技术有限公司 A kind of algorithm development platform, algorithm development method and computer readable storage medium

Also Published As

Publication number Publication date
CN111625202B (en) 2021-03-09

Similar Documents

Publication Publication Date Title
CN108920135B (en) User-defined service generation method and device, computer equipment and storage medium
CN111158756B (en) Method and apparatus for processing information
CN112335217A (en) Distributed data processing method, device and system and machine readable medium
CN106341280A (en) Service processing method and device
CN111625202B (en) Algorithm extension customizing method and system of block chain chip
US10970206B2 (en) Flash data compression decompression method and apparatus
CN113485736A (en) System incremental updating method and device
CN115357257B (en) Installation file generation method, system, computing device and storage medium
CN108881367B (en) Service request processing method, device and equipment
US8108808B2 (en) Description processing device, description processing method, and recording medium
CN111459711A (en) Memory recovery method and system
CN111124416B (en) Method, apparatus, device and storage medium for transferring parameters to an inline assembly
CN111192063A (en) Online customer service queuing processing method and device and electronic equipment
CN113760341B (en) Data processing method, device and equipment
CN111414162B (en) Data processing method, device and equipment thereof
CN117150999B (en) Method, device, terminal and medium for recording ECO implementation information by using redundant circuit
CN113626092A (en) Embedded system starting method and SOC chip
CN112329362B (en) General method, device and storage medium for complex engineering modification of chip
CN116893978B (en) Test plan generation method, system and storage medium based on PTCRB authentication
JP5774941B2 (en) Configuration device and configuration method
CN115495392B (en) Memory multiplexing method and device in multi-stage starting, storage medium and processor
US11256643B2 (en) System and method for high configurability high-speed interconnect
CN114356378A (en) Online upgrade method and device for computing node, electronic equipment and storage medium
CN114547056A (en) System, method and device for processing database operation request
CN116560703A (en) ROM function customizing method, device, processor, exchange chip and storage medium

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