CN109325764A - Sensitive data transaction system and method based on block chain - Google Patents
Sensitive data transaction system and method based on block chain Download PDFInfo
- Publication number
- CN109325764A CN109325764A CN201811064754.8A CN201811064754A CN109325764A CN 109325764 A CN109325764 A CN 109325764A CN 201811064754 A CN201811064754 A CN 201811064754A CN 109325764 A CN109325764 A CN 109325764A
- Authority
- CN
- China
- Prior art keywords
- code
- order
- electronics contract
- seed
- block chain
- 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
Links
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/38—Payment protocols; Details thereof
- G06Q20/382—Payment protocols; Details thereof insuring higher security of transaction
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F21/00—Security arrangements for protecting computers, components thereof, programs or data against unauthorised activity
- G06F21/60—Protecting data
- G06F21/62—Protecting access to data via a platform, e.g. using keys or access control rules
- G06F21/6218—Protecting access to data via a platform, e.g. using keys or access control rules to a system of files or objects, e.g. local or distributed file system or database
- G06F21/6245—Protecting personal data, e.g. for financial or medical purposes
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F21/00—Security arrangements for protecting computers, components thereof, programs or data against unauthorised activity
- G06F21/60—Protecting data
- G06F21/64—Protecting data integrity, e.g. using checksums, certificates or 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
- 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/3821—Electronic credentials
-
- 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
- Engineering & Computer Science (AREA)
- Business, Economics & Management (AREA)
- Theoretical Computer Science (AREA)
- Accounting & Taxation (AREA)
- Physics & Mathematics (AREA)
- Computer Security & Cryptography (AREA)
- General Physics & Mathematics (AREA)
- Finance (AREA)
- General Health & Medical Sciences (AREA)
- Strategic Management (AREA)
- Bioethics (AREA)
- Health & Medical Sciences (AREA)
- General Business, Economics & Management (AREA)
- Computer Hardware Design (AREA)
- Software Systems (AREA)
- General Engineering & Computer Science (AREA)
- Technology Law (AREA)
- Marketing (AREA)
- Medical Informatics (AREA)
- Databases & Information Systems (AREA)
- Economics (AREA)
- Development Economics (AREA)
- Editing Of Facsimile Originals (AREA)
- Devices For Checking Fares Or Tickets At Control Points (AREA)
Abstract
A kind of sensitive data transaction system based on block chain, including block chain bottom module, electronics contract layer module and SaaS layers of module;Block link layer module provides bottom block chain technical support, virtual machine, common recognition algorithm, transaction verification mechanism and billing mechanism including supporting the operation of electronics contract;Electronics contract layer module, provides distributed application services, is endorsed using block chain technology, in electronics contract layer, the code of the code of operating system sensitive data transaction and digital generating algorithm;SaaS layers of module, provide cloud platform service, allow each participant by web platform, client, easily participate in business collaboration.The present invention proposes the data transacting system based on block chain, for participating in co-production sensitive data in many ways, final sensitive data is obtained by final data generation side, other roles are in participating in data production process, it is not aware that final data, therefore has prevented sensitive data and revealed in the circulation process.
Description
Technical field
The present invention relates to block chain technology and technical field of electronic commerce, in particular to a kind of based on block chain
Sensitive data transaction system and method.
Background technique
One of the production factors of the anti-fake always traditional forms of enterprises's indispensability of tracing to the source, the commodity that all regular enterprises produce
There is one for the two dimensional code of anti-fake inquiry of tracing to the source or the antifalsification label of one-dimension code, label substance is substantially that string number is compiled
Code (referred to as: digital).
In current industry, number is usually that system integrator generates, and then consigns to printing factory, and digital production is taken by printing factory
Then papery or plastic anti-false label are given industry customer (manufacturing enterprise), industry customer labels in production link, use system
The software and hardware of system integrator acquires the number on information association label, then commodity ex-warehouse.Final antifalsification label in consumptive link,
Consumer can identify number, and the lane database inquiring information of goods provided in system integrator by modes such as barcode scannings, from
And judge the true and false of commodity.
The above link, in the digital production link of two dimensional code, there are huge disclosure risks, because system integrator is straight
It connects and digital document is provided gives printing factory or industry customer, there is very big artificial disclosure risk in the circulation process in digital document, and one
There is digital packet leakage problem in denier, and the participants such as system integrator, printing factory can not all prove one's own innocence.Such as: 2014-2016
Platform wine lets out label event, label event is let out by July, 2016 well-known antifalsification label system integrator, repeated.In addition, industry customer
Multiple agent's subcontractings would generally be authorized, but there are some false agents to be mixed into, allow system integrator's very headache, once
It is cheated, huge economic losses can be brought to upstream and downstream.Such as: 2008, certain system integrator was connected to false agent's order, pretended to be certain
Seed Industry user, rear 600,000 yuan of reparation.
Existing industry number circulation phenomenon, there are problems:
1, digital to exist in the circulation process artificially to the risk of digital information leakage;
2, once there is digital leakage, each participant can not prove one's own innocence, usually undertake the responsibility, compensate altogether together;
3, system integrator, printing factory cannot deposit card well and identify the true and false of upstream agent quotient.
4, after digital data is produced, the database for being centrally stored in each system integrator is for future reference, may be worked
Personnel distort.
Summary of the invention
In view of the above technical problems, the present invention devises a kind of sensitive data transaction system and method based on block chain,
The operation behavior for demonstrate,proving each participant is deposited using block chain, and participates in generating digital code information jointly using each side, and each participant exists
Digital code information is not printed as all knowing digital code information before label, it is ensured that will not be because of artificially letting out to digital code information
Dew, and each side can be operated by block chain and be traced to the source, and be proved one's own innocence.
A kind of sensitive data transaction system based on block chain, including block chain bottom module, electronics contract layer module with
And SaaS layers of module;
The block link layer module provides bottom block chain technical support, including support electronics contract operation virtual machine,
Common recognition algorithm, transaction verification mechanism and billing mechanism;Block link layer of the present invention is not that bit coin, ether mill etc. can be anonymous
The publicly-owned chain that access is traded, but alliance's chain based on super account book.Therefore, each side for participating in block chain needs system
Certificate Authority, deposits the information for demonstrate,proving industrial and commercial main body and individual subject on block chain, enterprise can be added with self-built node block chain or
The node that lease system provides accesses block chain.After block chain is added in enterprise, available block chain underlying services mainly exist
When being traded in electronics contract layer using credit endorsement, behavior and critical data record and sensitive data, to the bottom of electronics contract layer
The container of contract operation is supported and provided to layer distributed storage, common recognition algorithm.
The electronics contract layer module, is to provide believable distributed application services, and distributed application and business are close
Association, application code disclose participant, and then everybody executes business according to engagement arithmetic.The electronics contract module of this system,
Being absorbed in digital and point card etc., these can control the sensitive data traffic calculated by algorithm, run sensitive data transaction code sum number
Code generating algorithm code;
The SaaS layers of module, provides cloud platform service, allows each participant by web platform, client, convenient to participate in
To business collaboration.
Preferably, the block chain bottom module, electronics contract layer module and SaaS layers of module, each module are all upward
Layer provides service call by interface.All participants are by the way that in SaaS platform authentication, certification is not only what authoritative institution issued
CA certificate also includes by the authentication of the biologies and social property such as face, identity card and industrial and commercial main body, and each participant is clear
Oneself participation role in block platform chain, operation behavior and sensitive data are recorded in block chain, have the effect of law evidence obtaining
Benefit;
It preferably, further include trading digital operation layer module, in the module, SaaS platform is stored by SDK or API Calls
Business electronics contract on block chain, the whole process of user's stamp from placing an order to the side of printing is recorded, is passed through in the process
Raw code delivery module ensures to print possesses final digital data just now;Finally, after antifalsification label is delivered by printing side, code is tested
Process verifies final number by the query interface of calling electronics contract layer.
Preferably, further include raw code delivery module, it is described life code delivery module include,
Industry user's submodule, industry user's module generate antifalsification label order, institute according to the request of industry user
Antifalsification label order is stated by SaaS layers of calling electronics contract-defined interface, block chain electronics contract storage in antifalsification label order information
Onto block platform chain, industry user's module obtains a random number A_1 by hash algorithm automatically according to order information,
It is stored in electronics contract, it is externally invisible;
Agent user's submodule, agent user's submodule will circulate to generation according to the confirmation of agent user
The antifalsification label order for managing commercial family submodule goes to system integrator's submodule by platform flow, meanwhile, agent user's
For module to order digital under system integrator's submodule, order information passes through digital order interface storage to block chain electronics contract
In, system obtains a random number A_2 according to order information Hash, is stored in electronics contract, for subsequent raw code, externally not
It can be seen that;
System integrator's submodule, system integrator's submodule receive digital order, check the conjunction for confirming the order
Method is checked whether and is authorized by industry customer, and agential order is then determined after confirmation, and executes following operation, firstly, if
There is the seed kind subcode of oneself in system integrator, then selects the seed kind subcode that oneself is uploaded to block chain electronics contract, seed
Kind subcode is voluntarily generated by each system integrator;If system integrator does not have a seed kind subcode, seed kind subcode will actually by
The electronics contract of system automatically generates;Then, digital order flow is gone into agent;Seed kind subcode is externally invisible, is denoted as
Seedn, n is digit;
Submodule is printed, the printing submodule generates the random number A_3 of order Hash, storage according to the order of confirmation
It is externally invisible in electronics contract.
Preferably, the printing submodule further includes raw numeral module, and final Anti-fake digital downloading submodule and/
Or direct-connected printer module, raw numeral module by give birth to yard electronics contract according to the random number A_1, A_2 stored in whole process,
A_3 creates the group of functions of raw code conversion in conjunction with the life code algorithm in electronics contract, carries out raw code;Under the final Anti-fake digital
Carrier module provides final Anti-fake digital downloading;The direct-connected printer module offer is directly connected to print by electronics contract
Machine completes final Anti-fake digital printing.
Preferably, the raw code delivery module further includes that agent confirms submodule, and the agent confirms that submodule exists
After acknowledging receipt of agential order, order flow is gone into printing submodule, assigns production task.
Preferably, the raw numeral module includes that transcoding module and raw code function generate submodule,
Transcoding module, transcoding module is to the order Hash of each participant as a result, number is converted to, as electronics
The parameter sets of contract functional transformation;
Raw code function generates submodule, if the code length for needing to generate is M, Seed seed code length is N (M > N), and random number is long
Degree is L,
By SeednIt is divided into Z=M-N group, every group of correspondence one raw code function obtains a raw code group of functions;
In every group of Seed, each code is split as a N-dimensional variable, mends 1 on the left side, a direct subsidy is denoted as X to M, as the
The input of the life code function of Z group;
In raw code group of functions, functional form is the polynomial function of X:
Wherein, j random selection from [0, Z+1], K and B respectively correspond M dimensional vector.K and B is from set of random numbers { A1, A2,
A3,…,AiIn select any Ai, it is split as the variable of L dimension, then according to the step of round (M/N+1) from L dimension variable
It is long, choose M generations;
Seed and the raw numeral module of group of functions are called, all F out are finally calculatedZ(X)=Y presses each dimension of Y
According to digital system number modulus, such as: decimal system mod10, hexadecimal mod 16 obtain final result;Raw code electronics contract note
The key assignments binding relationship of lower X, Y are recorded, quickly tests code convenient for subsequent.
Preferably, the raw code electronics contract is irreversible raw code electronics contract, and electronics contract is finally printing the stage,
Ability generating function group carries out raw code;
The irreversible raw code electronics contract includes the following steps
1 code conversion of step
Order Hash to each participant is as a result, be converted to number, the parameter sets as electronics contract functional transformation;
Step2 is raw, and code group of functions generates
If needing the code length that generates is M, Seed seed code length is N (M > N), random number length L,
By SeednIt is divided into Z=M-N group, every group of correspondence one raw code function obtains a raw code group of functions;
In every group of Seed, each code is split as a N-dimensional variable, mends 1 on the left side, a direct subsidy is denoted as X to M, as the
The input of the life code function of Z group;
In raw code group of functions, functional form is the polynomial function of X:
Wherein, j random selection from [0, Z+1], k and b respectively correspond M dimensional vector, and K and B are the digital square of corresponding k, b
Battle array;The generation of every a pair k and b multidimensional variable, from set of random numbers { A1, A2, A3,…,AiIn select any A respectivelyi, it is split as
Then the variable of one L dimension chooses M generations according to the step-length of round (M/N+1) from L dimension variable;
According to the life code function, the calculating time complexity of each number depends primarily on the j power of X, j and Seed seed
The packet count of code is related, the algorithm for selecting set element at random in the process can be used square take in, linear complementation;K, B group of functions
Operation can be calculated by matrix;
Step3 calls Seed and the raw code of group of functions
Finally calculate all F outZ(X)=Y most terminates to each dimension of Y according to digital system number modulus
The each dimension for merging Y after fruit, generates final number;The key assignments that raw code electronics contract Hash table records Y and X, which is bound, to close
On the one hand system quickly tests code convenient for subsequent on the one hand for checking repeated code, for repeated code, recalculated using mod value is reduced
It arrives.
Preferably, the raw code electronics contract is reversible life code electronics contract, and electronics contract is in the finally printing stage,
Generating function group carries out raw code;
The reversible life code electronics contract includes the following steps
1 code conversion of step
Order Hash to each participant is as a result, be converted to number, the parameter sets as electronics contract functional transformation;
Step2 is raw, and code group of functions generates
If the code length for needing to generate is M, Seed seed code length is N (M>N), it is desirable that N<M/3, random number length L,
By SeednIt is divided into Z=M-N group, every group of correspondence one raw code function obtains a raw code group of functions;
In every group of Seed, each code is split as a N-dimensional variable, is denoted as X, the input of the life code function as Z group;
In raw code group of functions, functional form is the linear monotonic function of X:
Wherein, k and b respectively corresponds N-dimensional vector, and K and B are the character matrix of corresponding k, b;Every a pair k and b multidimensional variable
It generates, from set of random numbers { A1, A2, A3,…,AiIn select A respectivelyi, it is split as the variable of L dimension, then ties up variable from L
According to round (M/N+1) step-length, choose N generate;
A random M dimension word G is generated for each transforming function transformation function, the value range of each dimension is [0, M], and 0 indicates to be somebody's turn to do
Corresponding numerical digit does not exchange, other numbers represent and the digit order number of corresponding numerical digit exchange.G for Step3 most lifelong code character close when pair
Answer the number displacement of code bit;
Step3 calls Seed and the raw code of group of functions
Finally calculate all F outZ(X)=Y obtains final result to each dimension of Y, then combines, when combination, with
3 most for each dimension for the decimal system, insufficient digit mends 0 on the left side;To the number after combination, is compared and exchanged with G
Code bit obtains final number;Final number is needed to verify duplicate checking, if repeated, a newly-generated G, it is ensured that digital
It does not repeat.
Raw code electronics contract saves G and raw code function, for calculating X according to Y reduction, is used for subsequent inquiry.
A kind of method that the present invention also proposes sensitive data transaction system based on block chain, includes the following steps:
The first step obtains a random number A_1 by hash algorithm according to order information by the first participant, is stored in electricity
In sub- contract, external sightless step;
Second step obtains a random number A_2 by hash algorithm according to the order information by the second participant, is stored in
In electronics contract, for subsequent raw code, external sightless step;
It the step of third step, third participant uploads seed kind subcode, can if third participant has seed kind subcode
It selects to upload seed kind subcode to block chain electronics contract, seed kind subcode is voluntarily generated by third participant;If third is joined
There is no seed kind subcode with side, seed kind subcode is automatically generated reality by the electronics contract of system;Then, by digital order flow
Go to the second participant;Seed kind subcode is externally invisible, is denoted as Seedn, n is digit;
4th step, the 4th participant generate order and obtain random number A_3 by hash algorithm, are stored in electronics contract, right
It is outer invisible, meanwhile, the life code electronics contract of the 4th participant is according to random number A_1, A_2, the A_ stored in whole process
3, the group of functions of raw code conversion is created in conjunction with the life code algorithm in electronics contract, carries out raw code.
A kind of method that the present invention also proposes sensitive data transaction system of the application based on block chain, includes the following steps:
Industry customer is to agent or directly facing system integrator and printing house, the step of assigning antifalsification label order,
Industry customer logs in industry user's submodule, and for lower antifalsification label order to agent, SaaS layers of lower single pass-through has invoked electronics conjunction
About interface, in order information in block chain electronics contract in storage to block platform chain, system passes through automatically according to order information
Hash algorithm obtains a random number A_1, is stored in electronics contract, externally invisible;
The step of agent takes antifalsification label order from industry customer, is contracted out to system integrator and printing house;Agency
Quotient's login agent commercialization family submodule, antifalsification label order are circulated at this time under agent's account, and agent determines the order, and
The order is gone into system integrator by platform flow, agent to order digital under system integrator, order information also by
Into block chain electronics contract, system also obtains a random number A_2 according to order information Hash for digital order interface storage,
It is stored in electronics contract, it is externally invisible for subsequent raw code;
System integrator provides algorithm and initial data, calculate generate it is digital, then by number packet consign to printing house or
Agential step;Login system integrator of system integrator submodule after system integrator receives digital order, checks confirmation
The legitimacy of the order, checks whether and is authorized by industry customer, and agential order is then determined after confirmation, and executes following behaviour
Make, firstly, may be selected to upload oneself to block chain electronics contract if there is the seed kind subcode of oneself in system integrator
Seed kind subcode, seed kind subcode are voluntarily generated by each system integrator.If system integrator does not have seed kind subcode, seed
Kind subcode is automatically generated reality by the electronics contract of system.Then, digital order flow is gone into agent.Seed kind subcode pair
It is outer invisible, it is denoted as Seedn, n is digit.
The number that printing house takes system integrator's offer is precious, the format requirement according to industry customer or agent to order
Typesetting is carried out to digital data, the step of antifalsification label is to agent or industry customer is finally delivered in tissue printing;
After printing factory's login printing submodule, order is acknowledged receipt of, and generate order, random number is obtained by hash algorithm
A_3 is stored in electronics contract, externally invisible;Meanwhile the life code electronics contract for printing submodule is stored according in whole process
Random number A_1, A_2, the A_3 arrived creates the group of functions of raw code conversion in conjunction with the life code algorithm in electronics contract, carries out raw code;
Printing house operates in system downloads final Anti-fake digital, and number is then imported printer printing false-proof label, Huo Zhe
It is operated in system, printer printing is directly connected to by electronics contract, under industry customer's monitoring, completed stamp and deliver.
The present invention proposes the data transacting system based on block chain, for participating in co-production sensitive data in many ways, finally
Sensitive data obtained by final data generation side, other roles are in participating in data production process, in this case it is not apparent that final
Data, therefore prevented sensitive data and revealed in the circulation process.Sensitive data includes Anti-fake digital, card of game points etc..System
Based on block chain technology, data participating parties is allowed to deposit card on block chain, using electronics contract technology realize data generate and
Circulation.Business is since data requirements order, in intermediate links, final result is not presented to each side of the business of participation, participates in
The circulation of each side's operation data on block chain electronics contract finally when data are delivered, is generated to data Input transformation parameter
Final result.It is digital to printing link, the leakage problem of digital code information to solve generation;Utilize block chain technical advantage, logarithm
The participant of code business carries out operation behavior and deposits card, in strict accordance with business norms, each side can be proved one's own innocence;Also each ginseng is solved
It is isolated with square information, agent's fraud problem.
Detailed description of the invention
Fig. 1 makes a living a yard flow chart;
Fig. 2 is code conversion figure;
Fig. 3 is access authority figure of each participant to data;
Fig. 4 is irreversible raw code electronics contract exemplary diagram;
Fig. 5 is reversible life code electronics contract exemplary diagram.
Specific embodiment
Embodiment 1: a kind of sensitive data transaction system based on block chain, including block chain bottom module, electronics contract
Layer module and SaaS layers of module;
The block link layer module provides bottom block chain technical support, including support electronics contract operation virtual machine,
Common recognition algorithm, transaction verification mechanism and billing mechanism;
The electronics contract layer module, provides distributed application services, is endorsed using block chain technology, in electronics contract
Layer, the code of the code of operating system sensitive data transaction and digital generating algorithm;
The SaaS layers of module, provides cloud platform service, allows each participant by web platform, client, convenient to participate in
To business collaboration.
Preferably, the block chain bottom module, electronics contract layer module and SaaS layers of module, each module are all upward
Layer provides service call by interface, and participant specifies oneself in block platform chain by depositing card identity in SaaS platform
Participation role;By the calling service to SaaS platform, the identity information of oneself, operation information are deposited into block chain such as and deposit card.
It preferably, further include trading digital operation layer module, in trading digital operation layer module, SaaS platform passes through calling
Electronics contract, by user, block chain is recorded in the whole process of factory's stamp from placing an order to printing, it is ensured that printing factory just possesses final
Digital data;Finally, after antifalsification label is delivered by printing side, the process of code is tested also by the interface for calling electronics contract layer, to most
Whole number is verified.
Preferably, further include raw code delivery module, it is described life code delivery module include,
Industry user's submodule, industry user's module generate antifalsification label order, institute according to the request of industry user
Antifalsification label order is stated by SaaS layers of calling electronics contract-defined interface, block chain electronics contract storage in antifalsification label order information
Onto block platform chain, industry user's module obtains a random number A_1 by hash algorithm automatically according to order information,
It is stored in electronics contract, it is externally invisible;
Agent user's submodule, agent user's submodule will circulate to generation according to the confirmation of agent user
The antifalsification label order for managing commercial family submodule goes to system integrator's submodule by platform flow, meanwhile, agent user's
For module to order digital under system integrator's submodule, order information passes through digital order interface storage to block chain electronics contract
In, system obtains a random number A_2 according to order information Hash, is stored in electronics contract, for subsequent raw code, externally not
It can be seen that;
System integrator's submodule, system integrator's submodule receive digital order, check the conjunction for confirming the order
Method is checked whether and is authorized by industry customer, and agential order is then determined after confirmation, and executes following operation, firstly, if
There is the seed kind subcode of oneself in system integrator, then selects the seed kind subcode that oneself is uploaded to block chain electronics contract, seed
Kind subcode is voluntarily generated by each system integrator;If system integrator does not have a seed kind subcode, seed kind subcode will actually by
The electronics contract of system automatically generates;Then, digital order flow is gone into agent;Seed kind subcode is externally invisible, is denoted as
Seedn, n is digit;
Submodule is printed, the printing submodule generates the random number A_3 of order Hash, storage according to the order of confirmation
It is externally invisible in electronics contract.
Preferably, the printing submodule further includes raw numeral module, and final Anti-fake digital downloading submodule and/
Or direct-connected printer module, raw numeral module by give birth to yard electronics contract according to the random number A_1, A_2 stored in whole process,
A_3 creates the group of functions of raw code conversion in conjunction with the life code algorithm in electronics contract, carries out raw code;Under the final Anti-fake digital
Carrier module provides final Anti-fake digital downloading;The direct-connected printer module offer is directly connected to print by electronics contract
Machine completes final Anti-fake digital printing.
Preferably, the raw code delivery module further includes that agent confirms submodule, and the agent confirms that submodule exists
After acknowledging receipt of agential order, order flow is gone into printing submodule, assigns production task.
Preferably: the raw numeral module includes that transcoding module and raw code function generate submodule,
Transcoding module, transcoding module is to the order Hash of each participant as a result, number is converted to, as electronics
The parameter sets of contract functional transformation;
Raw code function generates submodule, if the code length for needing to generate is M, Seed seed code length is N (M > N), and random number is long
Degree is L,
By SeednIt is divided into Z=M-N group, every group of correspondence one raw code function obtains a raw code group of functions;
In every group of Seed, each code is split as a N-dimensional variable, mends 1 on the left side, a direct subsidy is denoted as X to M, as the
The input of the life code function of Z group;
In raw code group of functions, functional form is the polynomial function of X:
Wherein, j random selection from [0, Z+1], K and B respectively correspond M dimensional vector.K and B is from set of random numbers { A1, A2,
A3,…,AiIn select any Ai, it is split as the variable of L dimension, then according to the step of round (M/N+1) from L dimension variable
It is long, choose M generations;
Seed and the raw numeral module of group of functions are called, all F out are finally calculatedZ(X)=Y presses each dimension of Y
According to digital system number modulus, such as: decimal system mod10, hexadecimal mod 16 obtain final result;Raw code electronics contract note
The key assignments binding relationship of lower X, Y are recorded, quickly tests code convenient for subsequent.
Embodiment 2: a kind of method that the present invention also proposes sensitive data transaction system based on block chain, including walk as follows
It is rapid:
The first step obtains a random number A_1 by hash algorithm according to order information by the first participant, is stored in electricity
In sub- contract, external sightless step;
Second step obtains a random number A_2 by hash algorithm according to the order information by the second participant, is stored in
In electronics contract, for subsequent raw code, external sightless step;
It the step of third step, third participant uploads seed kind subcode, can if third participant has seed kind subcode
It selects to upload seed kind subcode to block chain electronics contract, seed kind subcode is voluntarily generated by third participant;If third is joined
There is no seed kind subcode with side, seed kind subcode is automatically generated reality by the electronics contract of system;Then, by digital order flow
Go to the second participant;Seed kind subcode is externally invisible, is denoted as Seedn, n is digit;
4th step, the 4th participant generate order and obtain random number A_3 by hash algorithm, are stored in electronics contract, right
It is outer invisible, meanwhile, the life code electronics contract of the 4th participant is according to random number A_1, A_2, the A_ stored in whole process
3, the group of functions of raw code conversion is created in conjunction with the life code algorithm in electronics contract, carries out raw code.
Embodiment 3: a kind of method that the present invention also proposes sensitive data transaction system of the application based on block chain, including such as
Lower step:
Industry customer is to agent or directly facing system integrator and printing house, the step of assigning antifalsification label order,
Industry customer logs in industry user's submodule, and for lower antifalsification label order to agent, SaaS layers of lower single pass-through has invoked electronics conjunction
About interface, in order information in block chain electronics contract in storage to block platform chain, system passes through automatically according to order information
Hash algorithm obtains a random number A_1, is stored in electronics contract, externally invisible;
The step of agent takes antifalsification label order from industry customer, is contracted out to system integrator and printing house;Agency
Quotient's login agent commercialization family submodule, antifalsification label order are circulated at this time under agent's account, and agent determines the order, and
The order is gone into system integrator by platform flow, agent to order digital under system integrator, order information also by
Into block chain electronics contract, system also obtains a random number A_2 according to order information Hash for digital order interface storage,
It is stored in electronics contract, it is externally invisible for subsequent raw code;
System integrator provides algorithm and initial data, calculate generate it is digital, then by number packet consign to printing house or
Agential step;Login system integrator of system integrator submodule after system integrator receives digital order, checks confirmation
The legitimacy of the order, checks whether and is authorized by industry customer, and agential order is then determined after confirmation, and executes following behaviour
Make, firstly, may be selected to upload oneself to block chain electronics contract if there is the seed kind subcode of oneself in system integrator
Seed kind subcode, seed kind subcode are voluntarily generated by each system integrator.If system integrator does not have seed kind subcode, seed
Kind subcode is automatically generated reality by the electronics contract of system.Then, digital order flow is gone into agent.Seed kind subcode pair
It is outer invisible, it is denoted as Seedn, n is digit.
Printing house takes the digital packet of system integrator's offer, the format requirement according to industry customer or agent to order
Typesetting is carried out to digital data, the step of antifalsification label is to agent or industry customer is finally delivered in tissue printing;
After printing factory's login printing submodule, order is acknowledged receipt of, and generate order, random number is obtained by hash algorithm
A_3 is stored in electronics contract, externally invisible;Meanwhile the life code electronics contract for printing submodule is stored according in whole process
Random number A_1, A_2, the A_3 arrived creates the group of functions of raw code conversion in conjunction with the life code algorithm in electronics contract, carries out raw code;
Printing house operates in system downloads final Anti-fake digital, and number is then imported printer printing false-proof label, Huo Zhe
It is operated in system, printer printing is directly connected to by electronics contract, under industry customer's monitoring, completed stamp and deliver.
The present invention proposes the data transacting system based on block chain, for participating in co-production sensitive data in many ways, finally
Sensitive data obtained by final data generation side, other roles are in participating in data production process, in this case it is not apparent that final
Data, therefore prevented sensitive data and revealed in the circulation process.Sensitive data includes Anti-fake digital, card of game points etc..System
Based on block chain technology, data participating parties is allowed to deposit card on block chain, using electronics contract technology realize data generate and
Circulation.Business is since data requirements order, in intermediate links, final result is not presented to each side of the business of participation, participates in
The circulation of each side's operation data on block chain electronics contract finally when data are delivered, is generated to data Input transformation parameter
Final result.It is digital to printing link, the leakage problem of digital code information to solve generation;Utilize block chain technical advantage, logarithm
The participant of code business carries out operation behavior and deposits card, in strict accordance with business norms, each side can be proved one's own innocence;Also each ginseng is solved
It is isolated with square information, agent's fraud problem.Sensitive data transaction system designed by the present invention, applied to digital whole process
It delivers, solves in conventional business process, information is isolated, and agent, which fakes, to be easy, and the problem that corporate behavior not can be traced utilizes
Block chain technology, which provides, deposits card and credit service, and the identification for allowing system integrator and printing factory can be convenient is agential true
It is pseudo-.
The present invention devises the whole process frame of digital delivery, and industry customer, agent, system integrator, printing factory are logical
The sensitive data transaction system operation based on block chain, block chain in behavior and data are crossed, and is not connect during each participant
The digital packet of touching, number packet are just generated according to the participation of each side at random in last printing, in this way it is ensured that number is in transmittance process
Safety.
Embodiment 4: a kind of sensitive data transaction system based on block chain is divided into three layers: block chain bottom, electronics contract
Layer and SaaS layers.
Block link layer provides bottom block chain technical support, including supporting the virtual machine of electronics contract operation, common recognition to calculate
Method, transaction verification mechanism and billing mechanism etc.
Electronics contract layer, provides distributed application services, is endorsed using block chain technology, in electronics contract layer, operation system
The code for the code that sensitive data is traded and the digital generating algorithm of uniting
SaaS layers, cloud platform service is provided, each participant can easily be participated in by web platform, client etc.
Business collaboration
Each layer all provides service call by interface to upper layer, and participant is clear by depositing card identity in SaaS platform
Oneself participation role in block platform chain.By the calling service to SaaS platform, the identity information of oneself, operation are believed
Breath deposits block chain such as and deposits card.In the service layer of trading digital, SaaS platform by calling electronics contract, by user from place an order to
Block chain is recorded in the whole process of printing factory's stamp, it is ensured that printing factory just possesses final digital data.Finally, printing factory delivers
After antifalsification label, the process of code is tested also by the interface for calling electronics contract layer, final number is verified.
The life code the delivery stage of this method, steps are as follows, participant are as follows: industry customer, system integrator, beats agent
Print factory.
(1) industry user's login system, for lower antifalsification label order to agent, SaaS layers of lower single pass-through has invoked electronics conjunction
About interface, therefore stored in block chain electronics contract onto block platform chain in order information, system is automatically according to order information
A random number A is obtained by hash algorithm1, it is stored in electronics contract, it is externally invisible.
(2) agent's login system, antifalsification label order flow is gone under agent's account at this time, and agent determines that this is ordered
Single, and the order is gone to system integrator by platform flow, agent is to number order, order information under system integrator
Through the storage of digital order interface into block chain electronics contract, system also obtains a random number according to order information Hash
A2, it is stored in electronics contract, it is externally invisible for subsequent raw code.
(3) system integrator's login system, receives digital order, checks the legitimacy for confirming the order, check whether by
Industry customer's authorization then determines agential order after confirmation, and executes following operation.Firstly, if system integrator has certainly
The seed kind subcode that oneself is uploaded to block chain electronics contract then may be selected in oneself seed kind subcode, and seed kind subcode is by each system
System integrator voluntarily generates.If system integrator does not have seed kind subcode, this step is also skipped over, seed kind subcode is by reality by being
The electronics contract of system automatically generates.Then, digital order flow is gone into agent.Seed kind subcode is externally invisible, is denoted as
Seedn, n is digit.
(4) agent confirms after receiving order, and order flow is gone to printing factory, assigns production task.
(5) after printing factory's login system, order is acknowledged receipt of, and generate the random number A of order Hash3, it is stored in electronics
Contract, it is externally invisible.The factory of printing at this time can execute following operation:
Final Anti-fake digital is downloaded in operation in system, and number is then imported printer printing false-proof label.In this way
Doing printing factory cannot prove one's own innocence, but other participants can be with.
It is operated in system, printer printing is directly connected to by electronics contract, under industry customer's monitoring, completes stamp
It delivers.
In above two step, raw code electronics contract is according to the random number A stored in whole process1、A2、A3, closed in conjunction with electronics
Life code algorithm in about creates the group of functions of raw code conversion, carries out raw code.Raw code flow chart is as shown in Figure 1.
Wherein, random number A1-A3 is that hash algorithm obtains character string and carries out after corresponding digital coding conversion as a result, coding can
To be the encoding scheme of ascii or other code book letter revolution words.Raw code algorithm is irreversible in the present invention, then contract needs to store
Seed kind subcode and final digital mapping one by one will increase if algorithm is reversible and crack probability, but due to not needing to store
It is final digital, therefore the final digital space of a part storage can be saved.
As shown in Figure 2,4, following step1-3 is irreversible raw code electronics contract.Electronics contract is finally printing the stage,
Just meeting generating function group carries out raw code.
1 code conversion of step
Order Hash to each participant is as a result, be converted to number, the parameter sets as electronics contract functional transformation.With
For MD5.Code conversion figure is shown in Fig. 2.
Step2 is raw, and code group of functions generates
Need the code length that generates as M as shown in figure 4, setting, Seed seed code length is N (M > N), random number length L,
By SeednIt is divided into Z=M-N group, every group of correspondence one raw code function obtains a raw code group of functions.
In every group of Seed, each code is split as a N-dimensional variable, mends 1 on the left side, a direct subsidy is denoted as X to M, as the
The input of the life code function of Z group.
In raw code group of functions, functional form is the polynomial function of X:
Wherein, j random selection from [0, Z+1], k and b respectively correspond M dimensional vector, and K and B are the digital square of corresponding k, b
Shape.The generation of every a pair k and b multidimensional variable, from set of random numbers { A1, A2, A3,…,AiIn select any A respectivelyi, it is split as
Then the variable of one L dimension chooses M generations according to the step-length of round (M/N+1) from L dimension variable.
According to the life code function, the calculating time complexity of each number depends primarily on the j power of X, j and Seed seed
The packet count of code is related, select at random in the process set element algorithm can using in square taking, linear complementation etc..K, B letter
The operation of array can be calculated by matrix.
Step3 calls Seed and the raw code of group of functions
As shown in figure 4, finally calculating all F outZ(X)=Y, to each dimension of Y, according to digital system number modulus,
Such as: decimal system mod10, hexadecimal mod 16 obtain each dimension of merging Y after final result, generate final number.
Raw code electronics contract records the key assignments binding relationship of Y and X, on the one hand for checking repeated code, on the one hand quickly tests convenient for subsequent
Code recalculates to obtain for repeated code using mod value is reduced.
As shown in Fig. 2,5, following Step1-3 is reversible life code electronics contract.Reversible life code electronics contract is not compared to
The advantage of reversible life code electronics contract is to calculate simply, and can not have to store most lifelong code result on block chain.
1 code conversion of step
Same non-reversible algorithm.Order Hash to each participant is as a result, be converted to number, as electronics contract functional transformation
Parameter sets.By taking MD5 as an example.Code conversion figure is shown in Fig. 2.
Step2 is raw, and code group of functions generates
Need the code length generated as M as shown in figure 5, setting, Seed seed code length is N (M>N), it is desirable that N<M/3, random number are long
Degree is L,
By SeednIt is divided into Z=M-N group, every group of correspondence one raw code function obtains a raw code group of functions.
In every group of Seed, each code is split as a N-dimensional variable, is denoted as X, the input of the life code function as Z group.
In raw code group of functions, functional form is the linear monotonic function of X:
FZ(X)=X × kZ+bZ
Wherein, k and b respectively corresponds M dimensional vector, and K and B are the digital rectangle of corresponding k, b.Every a pair k and b multidimensional variable
It generates, from set of random numbers { A1, A2, A3,…,AiIn select A respectivelyi, it is split as the variable of L dimension, then ties up variable from L
According to round (M/N+1) step-length, choose N generate.
In addition, generating a random M dimension word G for each transforming function transformation function, the value range of each dimension is [0, M], and 0 indicates
The position does not exchange, other numbers represent and the position of present bit exchange, G correspond to the number of code bit when closing for Step3 most lifelong code character
Word displacement.
Step3 calls Seed and the raw code of group of functions
As shown in figure 5, finally calculating all F outZ(X)=Y obtains final result to each dimension of Y, then group
Close, when combination 3 (in the case of the decimal systems) most for each dimension, insufficient digit mends 0 on the left side.To the number after combination
Code compares exchange code bit with G, obtains final number.Final number is needed to verify duplicate checking, it is newly-generated if repeated
One G, it is ensured that number does not repeat.
The life code method of the above electronics contract, needs largely to calculate matrix, and block chain is utilized in the process and saves entirely
The computing resource of point carries out Parallel implementation to the subproblem that matrix calculates, and then summarized results, has sufficiently used block chain in this way
The characteristic that " digging mine " possesses a large amount of GPU resources, solves valuable data.
Each participant is as shown in Figure 3 to the access authority figure of data.
In addition to authorization message discloses, each role can only see the related information for oneself directly inputting or exporting, for order
The information such as random number and raw code combination of function that Hash is generated, everybody is invisible.
Sensitive data transaction system designed by the present invention delivers applied to digital whole process, solves traditional business
In process, information is isolated, and agent, which fakes, to be easy, and the problem that corporate behavior not can be traced is provided using block chain technology and deposited
Card and credit service, the agential true and false of identification for allowing system integrator and printing factory can be convenient.The present invention devises number
The whole process frame of delivery, industry customer, agent, system integrator, printing factory are handed over by the sensitive data based on block chain
Block chain in easy system operatio, behavior and data, and digital packet is not contacted during each participant, number packet is printed finally
When just generated at random according to the participation of each side, in this way it is ensured that the digital safety in transmittance process.The present invention also closes raw code
Exploitation about is innovated, and raw code function generation method has been created.
Embodiment 5: industry customer is Party A, such as: liquor-making enterprises, to agent or directly facing system integrator
And printing house, assign antifalsification label order.
Agent is the Party B of industry customer, is the Party A of system integrator and printing house, it takes anti-from industry customer
Pseudo label order, is contracted out to system integrator and printing house.
System integrator Party B, system integrator mainly provide algorithm and initial data, calculate and generate number, then will count
Code packet gives printing house or agent.
Printing house is Party B, takes the digital packet of system integrator's offer, then according to industry customer or agent to ordering
Single format requires to carry out two-dimensional code data typesetting, and tissue printing finally delivers antifalsification label to agent or industry customer.
Present system is added by login account in each role, then proceeds as follows.
1, industry user places an order to agent;
2, agent places an order to system integrator;
3, system integrator confirms an order, and uploads the seed seed number that seed seed is digital or generates using system;
3, agent, which places an order, gives the production of printing factory;
4, printing factory raw code, stamp.
Industry customer is to agent or directly facing system integrator and printing house, the step of assigning antifalsification label order,
Industry customer logs in industry user's submodule, and for lower antifalsification label order to agent, SaaS layers of lower single pass-through has invoked electronics conjunction
About interface, in order information in block chain electronics contract in storage to block platform chain, system passes through automatically according to order information
Hash algorithm obtains a random number A_1, is stored in electronics contract, externally invisible;
The step of agent takes antifalsification label order from industry customer, is contracted out to system integrator and printing house;Agency
Quotient's login agent commercialization family submodule, antifalsification label order are circulated at this time under agent's account, and agent determines the order, and
The order is gone into system integrator by platform flow, agent to order digital under system integrator, order information also by
Into block chain electronics contract, system also obtains a random number A_2 according to order information Hash for digital order interface storage,
It is stored in electronics contract, it is externally invisible for subsequent raw code;
System integrator provides algorithm and initial data, calculate generate it is digital, then by number packet consign to printing house or
Agential step;Login system integrator of system integrator submodule after system integrator receives digital order, checks confirmation
The legitimacy of the order, checks whether and is authorized by industry customer, and agential order is then determined after confirmation, and executes following behaviour
Make, firstly, may be selected to upload oneself to block chain electronics contract if there is the seed kind subcode of oneself in system integrator
Seed kind subcode, seed kind subcode are voluntarily generated by each system integrator.If system integrator does not have seed kind subcode, seed
Kind subcode is automatically generated reality by the electronics contract of system.Then, digital order flow is gone into agent.Seed kind subcode pair
It is outer invisible, it is denoted as Seedn, n is digit.
The number that printing house takes system integrator's offer is precious, the format requirement according to industry customer or agent to order
Typesetting is carried out to digital data, the step of antifalsification label is to agent or industry customer is finally delivered in tissue printing;
After printing factory's login printing submodule, order is acknowledged receipt of, and generate order, random number is obtained by hash algorithm
A_3 is stored in electronics contract, externally invisible;Meanwhile the life code electronics contract for printing submodule is stored according in whole process
Random number A_1, A_2, the A_3 arrived creates the group of functions of raw code conversion in conjunction with the life code algorithm in electronics contract, carries out raw code;
Printing house operates in system downloads final Anti-fake digital, and number is then imported printer printing false-proof label, Huo Zhe
It is operated in system, printer printing is directly connected to by electronics contract, under industry customer's monitoring, completed stamp and deliver.
Claims (11)
1. a kind of sensitive data transaction system based on block chain, it is characterised in that: including block chain bottom module, electronics contract
Layer module and SaaS layers of module;
The block link layer module provides bottom block chain technical support for alliance's chain based on super account book, including supports electricity
Virtual machine, common recognition algorithm, transaction verification mechanism and the billing mechanism of sub- contract operation;It is carried on the back in electronics contract layer using credit
Bottom distributed storage, common recognition algorithm branch when book, behavior and critical data record and sensitive data are traded, to electronics contract layer
Hold and provide the container of contract operation;
The electronics contract layer module provides believable distributed application services, distributed application and business tight association, answers
Each participant is disclosed with code, each participant executes business according to engagement arithmetic, in electronics contract layer, operating system sensitivity number
According to transaction code and digital generating algorithm code;
The SaaS layers of module, provides cloud platform service, allows each participant by web platform, client, easily participates in industry
Business cooperation.
2. the sensitive data transaction system according to claim 1 based on block chain, it is characterised in that: block chain bottom
Layer module, electronics contract layer module and SaaS layers of module, each module all provide service call by interface to upper layer, participate in
Oneself participation role in block platform chain is specified by depositing card identity in SaaS platform in side;Operation behavior and sensitive data
It is recorded in block chain.
3. the sensitive data transaction system according to claim 1 based on block chain, it is characterised in that: further include digital friendship
Easy operation layer module, in trading digital operation layer module, SaaS platform is by calling the business electronics being stored on block chain to close
About, by user, from placing an order to the side of printing, the whole process of stamp is recorded, and ensures printing side by raw code delivery module in the process
Just possess final digital data;Finally, after antifalsification label is delivered by printing side, the process of code is tested by calling electronics contract layer
Query interface, final number is verified.
4. the sensitive data transaction system according to claim 1 based on block chain, it is characterised in that: further include that raw code is handed over
Pay module, it is described life code delivery module include,
Industry user's submodule, industry user's module generates antifalsification label order according to the request of industry user, described anti-
Pseudo label order is by SaaS layers of calling electronics contract-defined interface, and the storage of block chain electronics contract is to area in antifalsification label order information
On block platform chain, industry user's module obtains a random number A by hash algorithm automatically according to order information1, storage
It is externally invisible in electronics contract;
Circulation is arrived agent according to the confirmation of agent user by agent user's submodule, agent user's submodule
The antifalsification label order of user's submodule goes to system integrator's submodule by platform flow, meanwhile, agent user's submodule
Digital order under to system integrator's submodule, order information pass through digital order interface storage into block chain electronics contract,
System obtains a random number A according to order information Hash2, it is stored in electronics contract, for subsequent raw code, externally can not
See;
System integrator's submodule, system integrator's submodule receive digital order, check the legitimacy for confirming the order,
It checks whether and is authorized by industry customer, agential order is then determined after confirmation, and execute following operation, firstly, if system
There is the seed kind subcode of oneself in integrator, then selects the seed kind subcode that oneself is uploaded to block chain electronics contract, seed seed
Code is voluntarily generated by each system integrator;If system integrator does not have seed kind subcode, seed kind subcode will be actually by system
Electronics contract automatically generate;Then, digital order flow is gone into agent;Seed kind subcode is externally invisible, is denoted as
Seedn, n is digit;
Submodule is printed, the printing submodule generates the random number A of order Hash according to the order of confirmation3, it is stored in electronics
Contract, it is externally invisible.
5. the sensitive data transaction system according to claim 4 based on block chain, it is characterised in that: the printing submodule
Block further includes raw numeral module, and final Anti-fake digital downloading submodule and/or direct-connected printer module, raw numeral module
By raw code electronics contract according to the random number A stored in whole process1、A2、A3, in conjunction with the life code algorithm wound in electronics contract
The group of functions of raw code conversion is built, raw code is carried out;The final Anti-fake digital downloading submodule provides final Anti-fake digital downloading;
The direct-connected printer module offer is directly connected to printer by electronics contract and completes final Anti-fake digital printing.
6. the sensitive data transaction system according to claim 4 based on block chain, it is characterised in that: the life code is delivered
Module further includes that agent confirms submodule, and the agent confirms that submodule after acknowledging receipt of agential order, will be ordered
Single circulation assigns production task to printing submodule.
7. the sensitive data transaction system according to claim 5 based on block chain, it is characterised in that: the raw numeral mould
Block includes that transcoding module and raw code function generate submodule,
Transcoding module, transcoding module is to the order Hash of each participant as a result, number is converted to, as electronics contract
The parameter sets of functional transformation;
Raw code function generates submodule, if the code length for needing to generate is M, Seed seed code length is N (M > N), and random number length is
L,
By SeednIt is divided into Z=M-N group, every group of correspondence one raw code function obtains a raw code group of functions;
In every group of Seed, each code is split as a N-dimensional variable, mends 1 on the left side, a direct subsidy is denoted as X to M, as Z group
Life code function input;
In raw code group of functions, functional form is the polynomial function of X:
FZ(X)=Xj×kZ+bZ
Wherein, j random selection from [0, Z+1], K and B respectively correspond M dimensional vector;K and B is from set of random numbers { A1, A2,
A3,…,AiIn select any Ai, it is split as the variable of L dimension, then according to the step of round (M/N+1) from L dimension variable
It is long, choose M generations;
Seed and the raw numeral module of group of functions are called, all F out are finally calculatedZ(X)=Y, to each dimension of Y, according to number
System number modulus, such as: decimal system mod 10, hexadecimal mod 16 obtain final result;Raw code electronics contract record X,
The key assignments binding relationship of Y quickly tests code convenient for subsequent.
8. the sensitive data transaction system according to claim 5 based on block chain, it is characterised in that: the life code electronics
Contract is irreversible raw code electronics contract, and electronics contract carries out raw code in finally printing stage, ability generating function group;
The irreversible raw code electronics contract includes the following steps
Step1 code conversion
Order Hash to each participant is as a result, be converted to number, the parameter sets as electronics contract functional transformation;
Step2 is raw, and code group of functions generates
If needing the code length that generates is M, Seed seed code length is N (M > N), random number length L,
By SeednIt is divided into Z=M-N group, every group of correspondence one raw code function obtains a raw code group of functions;
In every group of Seed, each code is split as a N-dimensional variable, mends 1 on the left side, a direct subsidy is denoted as X to M, as Z group
Life code function input;
In raw code group of functions, functional form is the polynomial function of X:
Wherein, j random selection from [0, Z+1], k and b respectively correspond M dimensional vector, and K and B are the digital rectangle of corresponding k, b;Often
The generation of a pair of k and b multidimensional variable, from set of random numbers { A1, A2, A3,…,AiIn select any A respectivelyi, it is split as a L
Then the variable of dimension chooses M generations according to the step-length of round (M/N+1) from L dimension variable;
According to the life code function, the calculating time complexity of each number depends primarily on the j power of X, j and Seed kind subcode
Packet count is related, the algorithm for selecting set element at random in the process can be used square take in, linear complementation;K, the fortune of B group of functions
Calculation can be calculated by matrix;
Step3 calls Seed and the raw code of group of functions
Finally calculate all F outZ(X)=Y closes each dimension of Y according to digital system number modulus after obtaining final result
And each dimension of Y, generate final number;Raw code electronics contract records the key assignments binding relationship of X, Y and X, on the one hand uses
In investigation repeated code, code quickly on the one hand is tested convenient for subsequent, for repeated code, recalculates to obtain using mod value is reduced.
9. the sensitive data transaction system according to claim 5 based on block chain, it is characterised in that: the life code electronics
Contract is reversible life code electronics contract, and electronics contract carries out raw code in finally printing stage, ability generating function group;
The reversible life code electronics contract includes the following steps
Step1 code conversion
Order Hash to each participant is as a result, be converted to number, the parameter sets as electronics contract functional transformation;
Step2 is raw, and code group of functions generates
If the code length for needing to generate is M, Seed seed code length is N (M>N), it is desirable that N<M/3, random number length L,
By SeednIt is divided into Z=M-N group, every group of correspondence one raw code function obtains a raw code group of functions;
In every group of Seed, each code is split as a N-dimensional variable, is denoted as X, the input of the life code function as Z group;
In raw code group of functions, functional form is the linear monotonic function of X:
Wherein, k and b respectively corresponds N-dimensional variable, and K and B are the digital rectangle of corresponding k, b;The life of every a pair k and b multidimensional variable
At from set of random numbers { A1, A2, A3,…,AiIn select A respectivelyi, it is split as the variable of L dimension, then from L dimension variable
According to the step-length of round (M/N+1), N generations are chosen;
Step3 calls Seed and the raw code of group of functions
Finally calculate all F outZ(X)=Y obtains final result to each dimension of Y, then combines.For each transforming function transformation function
It is associated with a random M dimension word G, the value range of each dimension is [0, M], and 0 indicates that the correspondence code bit does not exchange, and G is for most
Lifelong code character corresponds to the number displacement of code bit when closing;
By taking decimal system number as an example, for each Y when combinationZThe digit arrived most 3 calculated, for the number less than 3
Word mends 0 on the left side;To the number after combination, code bit is exchanged with reference to G, obtains final number;Final number is needed to verify
Duplicate checking, if repeated, newly-generated G displacement, it is ensured that number does not repeat.
10. a kind of method of the sensitive data transaction system based on block chain, it is characterised in that include the following steps:
The first step obtains a random number A_1 by hash algorithm according to order information by the first participant, is stored in electronics conjunction
In about, external sightless step;
Second step obtains a random number A_2 by hash algorithm according to the order information by the second participant, is stored in electronics
In contract, for subsequent raw code, external sightless step;
It the step of third step, third participant uploads seed kind subcode, if third participant has seed kind subcode, may be selected
Seed kind subcode is uploaded to block chain electronics contract, seed kind subcode is voluntarily generated by third participant;If third participant
There is no seed kind subcode, seed kind subcode is automatically generated reality by the electronics contract of system;Then, digital order flow is gone to
Second participant;Seed kind subcode is externally invisible, is denoted as Seedn, n is digit;
4th step, the 4th participant generate order and obtain random number A_3 by hash algorithm, are stored in electronics contract, externally not
As it can be seen that simultaneously, the life code electronics contract of the 4th participant is according to random number A_1, A_2, the A_3 stored in whole process, knot
The group of functions that the life code algorithm in electronics contract creates raw code conversion is closed, raw code is carried out.
11. a kind of method of sensitive data transaction system of application based on block chain, it is characterised in that include the following steps: industry
Client is to agent or directly facing system integrator and printing house, and the step of assigning antifalsification label order, industry customer logs in
Industry user's submodule, for lower antifalsification label order to agent, SaaS layers of lower single pass-through has invoked electronics contract-defined interface, order letter
On breath in block chain electronics contract in storage to block platform chain, system obtains one by hash algorithm automatically according to order information
A random number A_1, is stored in electronics contract, externally invisible;
The step of agent takes antifalsification label order from industry customer, is contracted out to system integrator and printing house;Agent steps on
Agent user's submodule is recorded, antifalsification label order is circulated at this time under agent's account, and agent determines the order, and should
Order goes to system integrator by platform flow, and agent is to order digital under system integrator, and order information is also by number
Order interface is stored into block chain electronics contract, and system obtains a random number A_2 according to order information Hash, is stored in
Electronics contract, it is externally invisible for subsequent raw code;System integrator provides algorithm and initial data, calculates and generates number, so
Number packet is consigned into printing house or agential step afterwards;Login system integrator of system integrator submodule, the system integration
It after quotient receives digital order, checks the legitimacy for confirming the order, checks whether and authorized by industry customer, generation is then determined after confirmation
The order of quotient is managed, and executes following operation, firstly, may be selected if there is the seed kind subcode of oneself in system integrator to area
Block chain electronics contract uploads the seed kind subcode of oneself, and seed kind subcode is voluntarily generated by each system integrator;If system collection
There is no seed kind subcode at quotient, seed kind subcode is automatically generated reality by the electronics contract of system;Then, by digital order flow
Go to agent;Seed kind subcode is externally invisible, is denoted as Seedn, n is digit;
Printing house takes the digital packet of system integrator's offer, requires logarithm to the format of order according to industry customer or agent
Code data carry out typesetting, and the step of antifalsification label is to agent or industry customer is finally delivered in tissue printing;Printing factory, which logs in, beats
After mark module, order is acknowledged receipt of, and generate order, random number A_3 is obtained by hash algorithm, is stored in electronics contract,
It is externally invisible;Meanwhile print the life code electronics contract of submodule according to the random number A_1, A_2 stored in whole process,
A_3 creates the group of functions of raw code conversion in conjunction with the life code algorithm in electronics contract, carries out raw code;Printing house operates in system
Final Anti-fake digital is downloaded, number is then imported printer printing false-proof label, or operate in system, passes through electronics
Contract is directly connected to printer printing, under industry customer's monitoring, completes stamp and delivers.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201811064754.8A CN109325764B (en) | 2018-09-12 | 2018-09-12 | Sensitive data transaction system and method based on block chain |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201811064754.8A CN109325764B (en) | 2018-09-12 | 2018-09-12 | Sensitive data transaction system and method based on block chain |
Publications (2)
Publication Number | Publication Date |
---|---|
CN109325764A true CN109325764A (en) | 2019-02-12 |
CN109325764B CN109325764B (en) | 2022-05-27 |
Family
ID=65265834
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201811064754.8A Active CN109325764B (en) | 2018-09-12 | 2018-09-12 | Sensitive data transaction system and method based on block chain |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN109325764B (en) |
Cited By (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN111222169A (en) * | 2019-10-10 | 2020-06-02 | 深圳创链数据科技有限公司 | Intelligent equipment authentication system and method based on block chain technology |
CN112100269A (en) * | 2020-11-19 | 2020-12-18 | 北京连琪科技有限公司 | Interface cooperation method and system capable of proving |
CN113393313A (en) * | 2021-08-17 | 2021-09-14 | 环球数科集团有限公司 | Writing mechanism for carrying out trusted deposit certificate on accounting tool for telecommunication value-added service |
CN114462094A (en) * | 2021-09-08 | 2022-05-10 | 北京天德科技有限公司 | Container-based multi-party competition intelligent contract digital system and execution method thereof |
US11985251B2 (en) | 2019-03-15 | 2024-05-14 | Tencent Technology (Shenzhen) Company Limited | Data synchronization method and apparatus, computer device, and readable storage medium |
Citations (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN105691019A (en) * | 2016-01-13 | 2016-06-22 | 张法锦 | Manufacturing method for colored digital anti-counterfeit paper |
CN106845275A (en) * | 2017-02-09 | 2017-06-13 | 中国科学院数据与通信保护研究教育中心 | The electronic bill management system and method for a kind of secret protection |
CN107079058A (en) * | 2016-12-23 | 2017-08-18 | 深圳前海达闼云端智能科技有限公司 | The business of block chain node performs method, device and node device |
CN107180350A (en) * | 2017-03-31 | 2017-09-19 | 唐晓领 | A kind of method of the multi-party shared transaction metadata based on block chain, apparatus and system |
US20170364701A1 (en) * | 2015-06-02 | 2017-12-21 | ALTR Solutions, Inc. | Storing differentials of files in a distributed blockchain |
CN107924389A (en) * | 2015-07-02 | 2018-04-17 | 纳斯达克公司 | The system and method traced to the source the safety of distributed transaction database |
CN108182581A (en) * | 2017-12-29 | 2018-06-19 | 北京欧链科技有限公司 | A kind of bookkeeping methods and device of block chain |
-
2018
- 2018-09-12 CN CN201811064754.8A patent/CN109325764B/en active Active
Patent Citations (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20170364701A1 (en) * | 2015-06-02 | 2017-12-21 | ALTR Solutions, Inc. | Storing differentials of files in a distributed blockchain |
CN107924389A (en) * | 2015-07-02 | 2018-04-17 | 纳斯达克公司 | The system and method traced to the source the safety of distributed transaction database |
CN105691019A (en) * | 2016-01-13 | 2016-06-22 | 张法锦 | Manufacturing method for colored digital anti-counterfeit paper |
CN107079058A (en) * | 2016-12-23 | 2017-08-18 | 深圳前海达闼云端智能科技有限公司 | The business of block chain node performs method, device and node device |
CN106845275A (en) * | 2017-02-09 | 2017-06-13 | 中国科学院数据与通信保护研究教育中心 | The electronic bill management system and method for a kind of secret protection |
CN107180350A (en) * | 2017-03-31 | 2017-09-19 | 唐晓领 | A kind of method of the multi-party shared transaction metadata based on block chain, apparatus and system |
CN108182581A (en) * | 2017-12-29 | 2018-06-19 | 北京欧链科技有限公司 | A kind of bookkeeping methods and device of block chain |
Non-Patent Citations (6)
Title |
---|
FENG TIAN: "A supply chain traceability system for food safety based on HACCP, blockchain & Internet of things", 《2017 INTERNATIONAL CONFERENCE ON SERVICE SYSTEMS AND SERVICE MANAGEMENT》 * |
WANGZIYU等: "A Lightweight DDoS Flooding Attack Detection Algorithm Based on Synchronous Long Flows", 《2015 IEEE GLOBAL COMMUNICATIONS CONFERENCE (GLOBECOM)》 * |
李静等: "区块链技术在农产品溯源系统中的应用研究", 《区块链技术在农产品溯源系统中的应用研究》 * |
汪子彧等: "结合稀疏编码和金字塔匹配的视频检索", 《计算机工程与应用》 * |
翟社平: "区块链技术:应用及问题", 《西安邮电大学学报》 * |
郭珊珊: "供应链的可信溯源查询在区块链上的实现", 《中国优秀博硕士学位论文全文数据库(硕士)经济与管理科学辑》 * |
Cited By (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US11985251B2 (en) | 2019-03-15 | 2024-05-14 | Tencent Technology (Shenzhen) Company Limited | Data synchronization method and apparatus, computer device, and readable storage medium |
CN111222169A (en) * | 2019-10-10 | 2020-06-02 | 深圳创链数据科技有限公司 | Intelligent equipment authentication system and method based on block chain technology |
CN111222169B (en) * | 2019-10-10 | 2023-04-18 | 深圳创链数据科技有限公司 | Intelligent equipment authentication system and method based on block chain technology |
CN112100269A (en) * | 2020-11-19 | 2020-12-18 | 北京连琪科技有限公司 | Interface cooperation method and system capable of proving |
CN112100269B (en) * | 2020-11-19 | 2021-02-12 | 北京连琪科技有限公司 | Interface cooperation method and system capable of proving |
CN113393313A (en) * | 2021-08-17 | 2021-09-14 | 环球数科集团有限公司 | Writing mechanism for carrying out trusted deposit certificate on accounting tool for telecommunication value-added service |
CN114462094A (en) * | 2021-09-08 | 2022-05-10 | 北京天德科技有限公司 | Container-based multi-party competition intelligent contract digital system and execution method thereof |
Also Published As
Publication number | Publication date |
---|---|
CN109325764B (en) | 2022-05-27 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN109325764A (en) | Sensitive data transaction system and method based on block chain | |
CN110599181B (en) | Data processing method, device and equipment based on block chain and storage medium | |
US11727501B2 (en) | Cryptographic method and system for secure extraction of data from a blockchain | |
CN107105041B (en) | One medical big data management system and method based on block chain | |
CN106952094B (en) | Electronic bill management method and device | |
Lu et al. | Blockchain technology for governmental supervision of construction work: Learning from digital currency electronic payment systems | |
CN110135860B (en) | Crop seed safety traceability system based on block chain technology | |
CN107580022B (en) | Data sharing system and method | |
CN109829824A (en) | A kind of commodity transaction information sharing method based on block chain technology | |
CN107147735A (en) | A kind of distributed account book system based on hierarchy | |
CN109690539A (en) | Self-cleaning token pool | |
CN112053271B (en) | Public service platform data evidence management method and system based on block chain | |
CN111368283A (en) | Public welfare data storage method and system based on block chain | |
CN110493268A (en) | A kind of data processing method and device based on block chain network | |
CN110766422A (en) | Drug collaboration and traceability system and method based on alliance chain | |
CN110599269A (en) | Bill generation method and device, computer readable storage medium and computer equipment | |
Ekici et al. | Data cleaning for process mining with smart contract | |
CN112733164B (en) | Case sharing method, system and private key storage medium based on blockchain | |
CN114693241A (en) | Block chain-based electronic resume system and implementation method thereof | |
CN111415160B (en) | Bill-off business processing method and system based on blockchain and relevant nodes | |
CN117113358A (en) | Digital exhibition trusted service platform and method based on blockchain technology | |
CN112529709A (en) | Ether house intelligent contract implementation method based on multi-sign technology | |
Srivastava et al. | Performance analysis of hyperledger fabric based blockchain for traceability in food supply chain | |
CN115271744A (en) | Aquatic product matching transaction method based on block chain | |
CN110727735A (en) | Method, device and equipment for cooperatively completing task event based on block chain technology |
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 |