CN108540484A - A kind of method of commerce, apparatus and system based on block chain - Google Patents
A kind of method of commerce, apparatus and system based on block chain Download PDFInfo
- Publication number
- CN108540484A CN108540484A CN201810366026.6A CN201810366026A CN108540484A CN 108540484 A CN108540484 A CN 108540484A CN 201810366026 A CN201810366026 A CN 201810366026A CN 108540484 A CN108540484 A CN 108540484A
- Authority
- CN
- China
- Prior art keywords
- transaction
- account
- block chain
- transaction information
- field
- 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.)
- Pending
Links
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L63/00—Network architectures or network communication protocols for network security
- H04L63/04—Network architectures or network communication protocols for network security for providing a confidential data exchange among entities communicating through data packet networks
- H04L63/0428—Network architectures or network communication protocols for network security for providing a confidential data exchange among entities communicating through data packet networks wherein the data content is protected, e.g. by encrypting or encapsulating the payload
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06Q—INFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
- G06Q20/00—Payment architectures, schemes or protocols
- G06Q20/38—Payment protocols; Details thereof
- G06Q20/382—Payment protocols; Details thereof insuring higher security of transaction
- G06Q20/3825—Use of electronic signatures
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L12/00—Data switching networks
- H04L12/02—Details
- H04L12/14—Charging, metering or billing arrangements for data wireline or wireless communications
- H04L12/1403—Architecture for metering, charging or billing
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L63/00—Network architectures or network communication protocols for network security
- H04L63/08—Network architectures or network communication protocols for network security for authentication of entities
- H04L63/083—Network architectures or network communication protocols for network security for authentication of entities using passwords
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L9/00—Cryptographic mechanisms or cryptographic arrangements for secret or secure communications; Network security protocols
- H04L9/32—Cryptographic mechanisms or cryptographic arrangements for secret or secure communications; Network security protocols including means for verifying the identity or authority of a user of the system or for message authentication, e.g. authorization, entity authentication, data integrity or data verification, non-repudiation, key authentication or verification of credentials
- H04L9/3247—Cryptographic mechanisms or cryptographic arrangements for secret or secure communications; Network security protocols including means for verifying the identity or authority of a user of the system or for message authentication, e.g. authorization, entity authentication, data integrity or data verification, non-repudiation, key authentication or verification of credentials involving digital signatures
Landscapes
- Engineering & Computer Science (AREA)
- Computer Security & Cryptography (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Business, Economics & Management (AREA)
- Accounting & Taxation (AREA)
- General Engineering & Computer Science (AREA)
- Computing Systems (AREA)
- Computer Hardware Design (AREA)
- Finance (AREA)
- Strategic Management (AREA)
- Physics & Mathematics (AREA)
- General Business, Economics & Management (AREA)
- General Physics & Mathematics (AREA)
- Theoretical Computer Science (AREA)
- Management, Administration, Business Operations System, And Electronic Commerce (AREA)
Abstract
The application embodiment discloses a kind of method of commerce, apparatus and system based on block chain, wherein method of commerce includes:Key pair is generated, account is obtained;Wherein, the key pair includes private key and public key;Transaction data is obtained in the account, and Transaction Information is built according to the transaction data, the private key and the public key;It whether legal verifies the Transaction Information, in the case of legal, the Transaction Information is broadcasted to entire block chain network, until the entire block chain network is reached common understanding, the Transaction Information is written in block chain;Corresponding trading activity is executed in the account according to the Transaction Information in the block chain.The technical program can not depend on the network service of centralization, being capable of efficient completion metering and billing transaction business.Also, under the premise of ensureing privacy of user, abundanter information inquiry service is provided;And it can be ensured with technological means rather than one-side credit ensures the authenticity of data.
Description
Technical field
This application involves block chain technical field, more particularly to a kind of method of commerce, apparatus and system based on block chain.
Background technology
As shown in Figure 1, for the metering and billing pattern diagram of conventional center.Existing electrical energy measurement charging method is logical
It crosses traditional ammeter or intelligent electric meter completes, service node of this charging mode dependent on the centralization of power supply department, by
For server request data from measuring terminals to centralization or transmission data, the every operation of user will be with the service of centralization
Node interacts.
This mode is excessively high to the reliability dependence of the service node of centralization, once the service node of centralization is asked
Topic, can cause entire metering and billing network can not operate normally.
The service node of centralization is unilaterally provided and is safeguarded by power supply department, and data are unilaterally slapped by power supply department completely
It holds and controls.Such consequence is:Data-query interfaces (the Fee Schedule that one side user can only be provided by power supply department
Single, ammeter echoes data, networking inquiry APP etc.) obtain very limited information;On the other hand, data grasp side can only be relied on
Credit assure the authenticity of data and the safety of privacy of user data.
Invention content
The purpose of the application embodiment is to provide a kind of method of commerce, apparatus and system based on block chain, can not
The network service of centralization is relied on, efficient can complete existing metering and billing business.
To achieve the above object, the application embodiment provides a kind of method of commerce based on block chain, including:
Key pair is generated, account is obtained;Wherein, the key pair includes private key and public key;
Transaction data is obtained in the account, and is built and handed over according to the transaction data, the private key and the public key
Easy information;
It whether legal verifies the Transaction Information, in the case of legal, the Transaction Information is broadcasted to entire block
Chain network the Transaction Information is written in block chain until the entire block chain network is reached common understanding;
Corresponding trading activity is executed in the account according to the Transaction Information in the block chain.
Preferably, the Transaction Information includes:Sign and issue account field, type of transaction field, transaction data field, time word
Section, signature field;Wherein, described to sign and issue the public key that account field is the account for signing and issuing the Transaction Information;The time field
For the acknowledging time merchandised at the latest;The signature field is the private key for the account for signing and issuing the Transaction Information to the Transaction Information
Signature result.
Preferably, the type of transaction includes:Distribution transaction, the transfer transactions of token, the metering of token authorize transaction, meter
Amount, which authorizes, releases transaction, metering transaction and inquiry transaction.
Preferably, it is PoW algorithms or PoS algorithms by the method that the Transaction Information is written in block chain.
Preferably, the signature result is obtained by secp256k1 algorithms using the private key.
Preferably, the account includes:Issuing account, accounts of consumption and metering account.
To achieve the above object, the application embodiment also provides a kind of transaction system based on block chain, including:
Account creation module obtains account for generating key pair;Wherein, the key pair includes private key and public key;
Transaction Information module, for generating Transaction Information in the account according to the key pair;
Block chain module, it is whether legal for verifying the Transaction Information, in the case of legal, the Transaction Information
Broadcast is to entire block chain network, and until the entire block chain network is reached common understanding, block chain is written in the Transaction Information
It is interior;
Transaction modules, for executing corresponding transaction row in the account according to the Transaction Information in the block chain
For.
Preferably, the Transaction Information of the Transaction Information module generation includes:Sign and issue account field, type of transaction field,
Transaction data field, time field, signature field;Wherein, the account field of signing and issuing is to sign and issue the account of the Transaction Information
Public key;The time field is the acknowledging time of transaction at the latest;The signature field is to sign and issue the account of the Transaction Information
Private key to the signature result of the Transaction Information.
To achieve the above object, the application embodiment also provides a kind of transaction system based on block chain, including:Service
Node, measuring terminals;Wherein, the service node and the measuring terminals are performed both by the transaction described above based on block chain
The program of method.
Preferably, when the service node and/or the measuring terminals are trusted node, then the service node and/or
Measuring terminals have the function of generating block chain data, query function and the function of sending the Transaction Information;Otherwise, then described
Service node and/or the measuring terminals have the function of query function and send the Transaction Information.
Therefore compared with prior art, the technical program can not depend on the network service of centralization, Neng Gougao
The completion metering and billing transaction business of efficiency.Also, under the premise of ensureing privacy of user, abundanter information inquiry clothes are provided
Business;And it can be ensured with technological means rather than one-side credit ensures the authenticity of data.
Description of the drawings
It, below will be to embodiment in order to illustrate more clearly of the application embodiment or technical solution in the prior art
Or attached drawing needed to be used in the description of the prior art is briefly described, it should be apparent that, the accompanying drawings in the following description is only
It is some embodiments described in the application, for those of ordinary skill in the art, in not making the creative labor property
Under the premise of, other drawings may also be obtained based on these drawings.
Fig. 1 is the metering and billing pattern diagram of conventional center;
Fig. 2 is the trade network schematic diagram based on block chain of the technical program;
Fig. 3 is the method for commerce flow chart based on block chain of the present embodiment;
Fig. 4 is a kind of transaction system functional block diagram based on block chain that the embodiment of the present application proposes.
Specific implementation mode
In order to make those skilled in the art better understand the technical solutions in the application, below in conjunction with the application reality
The attached drawing in mode is applied, the technical solution in the application embodiment is clearly and completely described, it is clear that described
Embodiment is only a part of embodiment of the application, rather than whole embodiments.Based on the embodiment party in the application
Formula, every other embodiment obtained by those of ordinary skill in the art without making creative efforts, is all answered
When the range for belonging to the application protection.
As shown in Fig. 2, for the trade network schematic diagram based on block chain of the technical program.Including:Service node and survey
Measure terminal.Based on the interface of block chain network, a set of interactive program is set, is shown as in fig. 2 " user ".The set journey can be passed through
Sequence carries out the generation of account, obtains unsymmetrical key according to Encryption Algorithm, all kinds of Transaction Informations are signed and issued using unsymmetrical key, and
Any one service node being connected in network sends transaction request, the also ability with Query Information to block chain network.Clothes
The concept of business node is a server for having complete block chain data copy.Any one node can be handled arbitrarily
The transaction that client is initiated submits request and provides the inquiry service for storing data on block chain, and independent of a center
The node of change.
This block chain network be it is semi-open, either power supply bureau either consumer it is personal or independently of this two side except
Third party can run oneself service node be added network.Only authorized trusted node can generate block chain.
Such as:Trusted node is the service node for only allowing power supply bureau and third party notary organization trusty that can run.It is not awarded
The service node of power only has the ability inquired and send transaction.Such as:Node is not trusted to be consumer individual or be directed to public
Open the service node that the third party of serving data or data analysis can allow.
This semi-open network only has trusted node to generate block, the side that untrusted node can also be added by control
Formula greatly improves the reliability and scalability of network.
As shown in figure 3, for the method for commerce flow chart based on block chain of the present embodiment.This method is applied and above-mentioned block
Chain network, in the present embodiment, measuring terminals are used to measure the consumption of electric energy.For measuring device, in traditional electricity
On the basis of energy measuring terminals (electric energy meter), increase network function (part intelligent electric meter has network savvy) and block chain data
Processing module can also sign other than the consumption of metering electric energy and issue metering transaction to distributed network.Measuring terminals
The private key of the built-in metering account of block chain data processing module, the private key is among manufacture link is built in equipment, either
The both parties of electric energy are unable to get the private key;But the corresponding public key of the private key is public information, the both parties of electric energy
Can it know.Method of commerce includes:
Step 301):Key pair is generated, account is obtained;Wherein, the key pair includes private key and public key.
In the present embodiment, account refer to it is a pair of can be with the key pair (public key and private key) of one user of unique mark.Wherein,
Private key is held by the owner of account, not external disclosure, and user can sign to one piece of data using the private key, to show
Oneself approval to the data.Public key external disclosure can verify whether some signature is that the public key corresponds to using the public key
Private key sign and issue.During the signature of this asymmetric encryption and verification, and privacy of user is protected, guaranteed data
Safety.
In block chain network, there is the account of following several types:
1. issuing account, corresponding is the side of selling (power supply bureau) of electric energy.
2. accounts of consumption, corresponding is the consumer of electric energy.
3. measuring account, corresponding is the measuring terminal (ammeter) of electric energy.
Step 302):Transaction data is obtained in the account, and according to the transaction data, the private key and the public affairs
Key builds Transaction Information.
In the present embodiment, account is by sending the sides of the data of one section of key signature by oneself to block chain network
Formula, to allow block chain network to record or change the data on block chain.Record or the data of modification are Transaction Information.Transaction Information
Data format and type provide that only format is correct by block chain network, signature is correct, and the data manipulation in merchandising is symbol
Close set operation condition (such as:Whether have corresponding permission, if having sufficient remaining sum etc.) transaction be possible to by
Network receives and is written into final block chain data.
In the technical scheme, the Transaction Information stored in the form of block chain, i.e., the transaction letter recorded in each block
Breath is reached common understanding by distributed network, and ensures the continuity and not of data by recording the form of previous block Hash
It can distort, to ensure that the reliability of data.Do not include the privacy information of user in Transaction Information, only includes public key and label
Name, for public key with society Identity Association and there is no in block chain, Transaction Information is stored in distribution in the form of block chain
In network, it can not be modified by the data of block chained record.Any node in network can receive transaction or inquiry is handed over
Easy information.
In the present embodiment, a basic transaction includes following several fields:
Field | Explanation |
Sign and issue account | Sign and issue the public key of the account of the transaction |
Type of transaction | The type of transaction |
Transaction data | The data of the corresponding type of transaction |
Time | Transaction acknowledging time at the latest is then merchandised calcellation more than the time |
Signature | By result of the private key to above-mentioned data signature for signing and issuing account |
In the detailed description of the manageable type of transaction of block chain network:
The distribution of token is merchandised, and is signed and issued by issuing account, and issuing account can authorize specified consumed accounts by this kind of transaction
The specified token amount in family.
The money transfer transactions of token, the accounts of consumption by holding token are signed and issued, and are held the accounts of consumption of token and can be passed through this
Token is transferred to another accounts of consumption by one transaction.
Metering authorizes transaction, is signed and issued by accounts of consumption, accounts of consumption can authorize a certain metering account by this transaction
Reduce the right of the scrip balances in account.
Metering, which authorizes, releases transaction, is signed and issued by accounts of consumption, and accounts of consumption can be cancelled by this transaction to a certain meter
Measure the mandate of account.
Metering transaction, is signed and issued by metering account, which will include the metrical information that metering account measures, and from mandate
Trading account in the token amount that deducts.
In the present embodiment, token is the basic measurement unit of expense in block chain network, is issued by issuing account, consumption
Account is held, metering account consumption.In principle, the franc of token and society bind, only by issuing account provide franc with
The conversion services of token.Token can circulate between accounts of consumption.Token can be mutually forwarded between different accounts of consumption, than
Such as:Agency's (bank or other generations fill mechanism), which can also be used as an accounts of consumption, to be existed, and power supply bureau is issued to these
After account, these accounts can be distributed further to scattered accounts of consumption (common power customer).And scattered accounts of consumption
Between can also by shift token form achieve the purpose that supplement with money.
Step 303):Whether legal verify the Transaction Information, in the case of legal, the Transaction Information broadcast to
Entire block chain network the Transaction Information is written in block chain until the entire block chain network is reached common understanding.
In the present embodiment, trusted node is reached by way of PoW (proof of work) come what is known together, specific to calculate
The PoW algorithms of method reference bits coin.Because network itself is semi-enclosed, will not cause bit coin like that because dig mine contest and
The consumption of caused mass energy and slower confirmation speed.Again because network is semi-open, the node in addition to generating block
Outside, other nodes (trusted node and non-trusted node) can verify the data in network, and this guarantees blocks
Generation node can not practise fraud and altered data.
Step 304):Corresponding trading activity is executed in the account according to the Transaction Information in the block chain.
In the present embodiment, the node in network initiates inquiry transaction with arbitrary node of the public key of account into network.
This is an inquiry operation to block chain network, because each service node preserves complete data, it is possible to think
Any one node that can be connected initiates inquiry request.
In the present embodiment, non-encrypted algorithm is generated in the program that consumer side is set by " user " shown in Fig. 2, is disappeared
The private key that expense person side holds oneself, and corresponding public key is supplied to the service node that power supply bureau side is run, this pair of secret keys is
Represent accounts of consumption hereinbefore.The preservation form of corresponding private key is including but not limited to electronic document, IC card data etc..Private key
It is generated by the Encryption Algorithm of block chain, can just be received by block chain network by the transaction of the private key signature at random.
In practice, consumer pays franc to power supply bureau.In technology implementation, the service node of power supply bureau side's operation is used
Issuing account initiates to merchandise for the distribution of the accounts of consumption, authorizes the corresponding token volume of service node of consumer side operation
Degree.It is that concrete implementation form includes but be not limited to sales counter operation, network trading etc..
Distribution transaction is a transaction of the private key signature generated in the program set by " user " shown in Fig. 2, is handed over
Any node for being easily sent to block chain network is broadcast to entire block chain network if the transaction is verified legal, until
Network is reached common understanding, and is written into block data, at this point, will produce token amount on accounts of consumption.
In practice, the accounts of consumption for the Program Generating that consumer side is set by " user " shown in Fig. 2 initiates metering
Transaction is authorized, the public key of corresponding measuring terminals is specified in transaction.Same accounts of consumption can authorize multiple measurements simultaneously herein
Terminal, all measuring terminals share the scrip balances of the accounts of consumption, first with first obtaining, are finished and stop.It is accounts of consumption to fill table
One metering of private key signature authorizes transaction, and Transaction Information is sent to any node of block chain network, if the Transaction Information quilt
It is legal to verify, then is broadcast to entire block chain network, until network is reached common understanding, is written into block data, takes at this time
Business node obtains the token consumption permission of accounts of consumption.
In practice, the accounts of consumption for the Program Generating that consumer side is set by " user " shown in Fig. 2 is released to certain
The mandate of one measuring terminals signs and issues metering with accounts of consumption and authorizes releasing transaction, the terminal built-in to be released is specified in transaction
Measure account.De-authorization is a transaction of the key signature of accounts of consumption, and Transaction Information is sent to any of block chain network
Node is broadcast to entire block chain network if the transaction is verified legal, until network is reached common understanding, is written into
In block data, measuring device can not continue the token of accounts of consumption at this time.
In practical applications, scrip balances transfer can be carried out between consumer, corresponding application scenarios can be consumption
Person merchandises to the remaining sum of consumer, can also be that (bank itself is also an accounts of consumption, only for the sale of electricity operation of bank counter
One agency of power supply bureau).The mode of operation is to initiate token transfer operation with the accounts of consumption for the side of producing, and specifies and turns in transaction
Move the accounts of consumption of target.
In implementer face, balance transfer transaction can be understood as money transfer transactions, i.e., the token that accounts of consumption A will hold
It is transferred to accounts of consumption B, the transaction is by the key signature of account A, and transaction is sent to any node of block chain network, if the friendship
It is easily verified legal, then it is broadcast to entire block chain network, until network is reached common understanding, is written into block data, this
When account A scrip balances can reduce, the scrip balances of account B can increase corresponding amount.
In practical applications, measuring terminals are deducted fees according to the power consumption of measurement to consumer.The process of realization is as follows:Rule
A fixed minimum measurement unit (such as 10kwh) calculates minimum measurement unit according to current electricity price (being provided by power supply bureau)
Corresponding token amount;Measuring terminals sign and issue metering transaction with the private key of built-in metering account, and the content of transaction is to deduct to award
The token of amount is corresponded in power account;If the transaction by network validation (terminal is authorized to, and account with power of attorney have it is enough remaining
Volume), then measuring terminals are let pass the electricity of corresponding amount (minimum measurement unit);When corresponding amount consumption finishes soon, weigh again
The step of multiple front.
In implementer face, transaction of deducting fees is signed as the key built in measuring terminals, which has that account A's is close
Key is signed, and any node that transaction is sent to block chain network is broadcast to entire block chain if the transaction is verified legal
Network is written into block data until network is reached common understanding, and measuring terminals are awarded electricity amount at this time, and user can be with
Use corresponding electricity.
Seen from the above description, service network of the technical program metering and billing process independent of centralization, and with skill
Art rather than credit instrument ensure the authenticity of data.
As shown in figure 4, a kind of transaction system functional block diagram based on block chain proposed for the embodiment of the present application.Including:
Account creation module 401 obtains account for generating key pair;Wherein, the key pair includes private key and public affairs
Key;
Transaction Information module 402, for obtaining transaction data in the account, and according to the transaction data, described
Private key and the public key build Transaction Information;
Block chain module 403, it is whether legal for verifying the Transaction Information, in the case of legal, the transaction
Information is broadcasted to entire block chain network, until the entire block chain network is reached common understanding, by the Transaction Information write area
In block chain;
Transaction modules 404, for executing corresponding transaction in the account according to the Transaction Information in the block chain
Behavior.
In the present embodiment, the Transaction Information of the generation of Transaction Information module 402 includes:Sign and issue account field, transaction
Type field, transaction data field, time field, signature field;Wherein, the account field of signing and issuing is to sign and issue the transaction letter
The public key of the account of breath;The time field is the acknowledging time of transaction at the latest;The signature field is to sign and issue the transaction letter
Signature result of the private key of the account of breath to the Transaction Information.
In the 1990s, the improvement of a technology can be distinguished clearly be on hardware improvement (for example,
Improvement to circuit structures such as diode, transistor, switches) or software on improvement (improvement for method flow).So
And with the development of technology, the improvement of current many method flows can be considered as directly improving for hardware circuit.
Designer nearly all obtains corresponding hardware circuit by the way that improved method flow to be programmed into hardware circuit.Cause
This, it cannot be said that the improvement of a method flow cannot be realized with hardware entities module.For example, programmable logic device
(Programmable Logic Device, PLD) (such as field programmable gate array (Field Programmable Gate
Array, FPGA)) it is exactly such a integrated circuit, logic function determines device programming by user.By designer
Voluntarily programming comes a digital display circuit " integrated " on a piece of PLD, designs and makes without asking chip maker
Dedicated IC chip.Moreover, nowadays, substitution manually makes IC chip, this programming is also used instead mostly " patrols
Volume compiler (logic compiler) " software realizes that software compiler used is similar when it writes with program development,
And the source code before compiling also write by handy specific programming language, this is referred to as hardware description language
(Hardware Description Language, HDL), and HDL is also not only a kind of, but there are many kind, such as ABEL
(Advanced Boolean Expression Language)、AHDL(Altera Hardware Description
Language)、Confluence、CUPL(Cornell University Programming Language)、HDCal、JHDL
(Java Hardware Description Language)、Lava、Lola、MyHDL、PALASM、RHDL(Ruby
Hardware Description Language) etc., VHDL (Very-High-Speed are most generally used at present
Integrated Circuit Hardware Description Language) and Verilog2.Those skilled in the art
It will be apparent to the skilled artisan that only needing method flow slightly programming in logic and being programmed into integrated circuit with above-mentioned several hardware description languages
In, so that it may to be readily available the hardware circuit for realizing the logical method flow.
It is also known in the art that in addition to realizing client, server in a manner of pure computer readable program code
In addition, completely can by by method and step carry out programming in logic come so that client, server with logic gate, switch, special
The form of integrated circuit, programmable logic controller (PLC) and embedded microcontroller etc. realizes identical function.Therefore this client,
Server is considered a kind of hardware component, and can also be considered as to the device for realizing various functions for including in it
Structure in hardware component.Or even, can will be considered as realizing the device of various functions either implementation method
Software module can be the structure in hardware component again.
As seen through the above description of the embodiments, those skilled in the art can be understood that the application can
It is realized by the mode of software plus required general hardware platform.Based on this understanding, the technical solution essence of the application
On in other words the part that contributes to existing technology can be expressed in the form of software products, the computer software product
It can be stored in a storage medium, such as ROM/RAM, magnetic disc, CD, including some instructions are used so that a computer equipment
(can be personal computer, server either network equipment etc.) executes each embodiment of the application or embodiment
Method described in certain parts.
Each embodiment in this specification is described in a progressive manner, identical similar between each embodiment
Just to refer each other for part, what each embodiment stressed is the difference with other embodiment.In particular, needle
For the embodiment of client, the introduction control for being referred to the embodiment of preceding method is explained.
The application can describe in the general context of computer-executable instructions executed by a computer, such as program
Module.Usually, program module includes routines performing specific tasks or implementing specific abstract data types, program, object, group
Part, data structure etc..The application can also be put into practice in a distributed computing environment, in these distributed computing environments, by
Task is executed by the connected remote processing devices of communication network.In a distributed computing environment, program module can be with
In the local and remote computer storage media including storage device.
Although depicting the application by embodiment, it will be appreciated by the skilled addressee that there are many deformations by the application
With variation without departing from spirit herein, it is desirable to which the attached claims include these deformations and change without departing from the application
Spirit.
Claims (10)
1. a kind of method of commerce based on block chain, which is characterized in that including:
Key pair is generated, account is obtained;Wherein, the key pair includes private key and public key;
Transaction data is obtained in the account, and transaction letter is built according to the transaction data, the private key and the public key
Breath;
It whether legal verifies the Transaction Information, in the case of legal, the Transaction Information is broadcasted to entire block link network
Network the Transaction Information is written in block chain until the entire block chain network is reached common understanding;
Corresponding trading activity is executed in the account according to the Transaction Information in the block chain.
2. the method as described in claim 1, which is characterized in that the Transaction Information includes:Sign and issue account field, type of transaction
Field, transaction data field, time field, signature field;Wherein, the account field of signing and issuing is to sign and issue the Transaction Information
The public key of account;The time field is the acknowledging time of transaction at the latest;The signature field is to sign and issue the Transaction Information
Signature result of the private key of account to the Transaction Information.
3. method as claimed in claim 2, which is characterized in that the type of transaction includes:The distribution transaction of token, token
Transfer transactions, metering authorize transaction, metering to authorize and release transaction, metering transaction and inquiry transaction.
4. the method as described in claim 1, which is characterized in that the method in block chain is written as PoW in the Transaction Information
Algorithm or PoS algorithms.
5. method as claimed in claim 2, which is characterized in that the signature result is passed through using the private key
Secp256k1 algorithms obtain.
6. the method as described in claim 1, which is characterized in that the account includes:Issuing account, accounts of consumption and metering account
Family.
7. a kind of transaction system based on block chain, which is characterized in that including:
Account creation module obtains account for generating key pair;Wherein, the key pair includes private key and public key;
Transaction Information module, for obtaining transaction data in the account, and according to the transaction data, the private key and institute
State public key structure Transaction Information;
Block chain module, it is whether legal for verifying the Transaction Information, in the case of legal, the Transaction Information is broadcasted
To entire block chain network, until the entire block chain network is reached common understanding, the Transaction Information is written in block chain;
Transaction modules, for executing corresponding trading activity in the account according to the Transaction Information in the block chain.
8. device as claimed in claim 7, which is characterized in that the Transaction Information that the Transaction Information module generates includes:Label
Send out account field, type of transaction field, transaction data field, time field, signature field;Wherein, described to sign and issue account field
For sign and issue the Transaction Information account public key;The time field is the acknowledging time of transaction at the latest;The signature field
For sign and issue the Transaction Information account private key to the signature result of the Transaction Information.
9. a kind of transaction system based on block chain, which is characterized in that including:Service node, measuring terminals;Wherein, the clothes
Business node and the measuring terminals are performed both by the counterparty based on block chain as described in claim 1~6 any claim
Method.
10. system as claimed in claim 9, which is characterized in that when the service node is trusted node, then the service saves
Point has the function of generating block chain data, query function and the function of sending the Transaction Information;Otherwise, then the service saves
Point has the function of query function and sends the Transaction Information.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201810366026.6A CN108540484A (en) | 2018-04-23 | 2018-04-23 | A kind of method of commerce, apparatus and system based on block chain |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201810366026.6A CN108540484A (en) | 2018-04-23 | 2018-04-23 | A kind of method of commerce, apparatus and system based on block chain |
Publications (1)
Publication Number | Publication Date |
---|---|
CN108540484A true CN108540484A (en) | 2018-09-14 |
Family
ID=63479405
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201810366026.6A Pending CN108540484A (en) | 2018-04-23 | 2018-04-23 | A kind of method of commerce, apparatus and system based on block chain |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN108540484A (en) |
Cited By (19)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN109377226A (en) * | 2018-10-30 | 2019-02-22 | 深圳市元征科技股份有限公司 | A kind of Transaction Information management method and relevant device |
CN109886039A (en) * | 2019-01-23 | 2019-06-14 | 深圳壹账通智能科技有限公司 | Faculty of Finance integration rule detection method and relevant device based on block chain |
CN110046990A (en) * | 2018-11-05 | 2019-07-23 | 阿里巴巴集团控股有限公司 | Data processing method, device and server based on block chain |
CN110149335A (en) * | 2019-05-24 | 2019-08-20 | 众安信息技术服务有限公司 | Establish the method and apparatus of the home zone for the protection of block chain data-privacy |
CN110443713A (en) * | 2019-09-06 | 2019-11-12 | 江门职业技术学院 | A kind of method and system promoted for block chain trading efficiency |
CN111079198A (en) * | 2020-03-10 | 2020-04-28 | 广州电力交易中心有限责任公司 | Data publishing method and system based on electric power transaction |
CN111178884A (en) * | 2019-12-16 | 2020-05-19 | 平安壹钱包电子商务有限公司 | Information processing method, device, equipment and readable storage medium |
CN111311253A (en) * | 2018-12-12 | 2020-06-19 | 阿里巴巴集团控股有限公司 | Transaction method, device and system based on block chain |
WO2020181412A1 (en) * | 2019-03-08 | 2020-09-17 | 云图有限公司 | Blockchain consensus processing method, apparatus, and system |
CN111768203A (en) * | 2018-11-07 | 2020-10-13 | 阿里巴巴集团控股有限公司 | Meckel tree construction and simple payment verification method and device |
CN111835929A (en) * | 2020-07-14 | 2020-10-27 | 中国联合网络通信集团有限公司 | Telephone charge transaction method and system based on block chain |
CN111861429A (en) * | 2020-06-30 | 2020-10-30 | 上海佩俪信息科技有限公司 | Block chain transaction mining work fee entrusting method and down-chain repeater |
CN111967031A (en) * | 2020-08-13 | 2020-11-20 | 合肥安时智造科技有限公司 | Data transaction type transmission method |
CN112418867A (en) * | 2020-11-18 | 2021-02-26 | 中国电子科技集团公司第三十研究所 | Distributed token payment method based on block chain |
CN112926967A (en) * | 2021-03-18 | 2021-06-08 | 上海能链众合科技有限公司 | Metering and paying method for block chain platform |
CN113221169A (en) * | 2019-10-30 | 2021-08-06 | 支付宝(杭州)信息技术有限公司 | Method and device for inquiring block chain private data |
CN116405334A (en) * | 2023-06-07 | 2023-07-07 | 北京中科江南信息技术股份有限公司 | Block chain-based computing power network flow processing method, equipment and medium |
CN117313169A (en) * | 2023-11-30 | 2023-12-29 | 临沂市中信信息技术有限公司 | Intelligent monitoring system for circulation data of finished oil and tamper resistance method thereof |
CN117709947A (en) * | 2024-02-05 | 2024-03-15 | 广东通莞科技股份有限公司 | POS machine settlement authority management method based on blockchain |
Citations (9)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20160234026A1 (en) * | 2015-02-09 | 2016-08-11 | Medici, Inc. | Crypto integration platform |
CN106506146A (en) * | 2016-10-26 | 2017-03-15 | 北京瑞卓喜投科技发展有限公司 | Based on the Transaction Information method of calibration of block chain technology, apparatus and system |
CN106503589A (en) * | 2016-10-26 | 2017-03-15 | 北京瑞卓喜投科技发展有限公司 | The method of calibration of block chain Transaction Information correctness, apparatus and system |
CN107038638A (en) * | 2017-02-24 | 2017-08-11 | 杭州象链网络技术有限公司 | A kind of equity registration transaction system construction method based on alliance's chain |
CN107094155A (en) * | 2017-06-14 | 2017-08-25 | 广东工业大学 | A kind of secure storage method of data and device based on alliance's block chain |
CN107292735A (en) * | 2017-05-27 | 2017-10-24 | 唐盛(北京)物联技术有限公司 | A kind of mortgage finance method and system based on block chain technology |
CN107392767A (en) * | 2017-07-28 | 2017-11-24 | 广州亦云信息技术股份有限公司 | Method of commerce, electronic equipment and the storage medium of electricity market based on block chain |
CN107426234A (en) * | 2017-08-08 | 2017-12-01 | 武汉协鑫新能源电力设计有限公司 | A kind of green electric power supply authentication mechanism based on block chain technology |
CN107817381A (en) * | 2017-11-10 | 2018-03-20 | 赫普科技发展(北京)有限公司 | A kind of intelligent electric meter |
-
2018
- 2018-04-23 CN CN201810366026.6A patent/CN108540484A/en active Pending
Patent Citations (9)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20160234026A1 (en) * | 2015-02-09 | 2016-08-11 | Medici, Inc. | Crypto integration platform |
CN106506146A (en) * | 2016-10-26 | 2017-03-15 | 北京瑞卓喜投科技发展有限公司 | Based on the Transaction Information method of calibration of block chain technology, apparatus and system |
CN106503589A (en) * | 2016-10-26 | 2017-03-15 | 北京瑞卓喜投科技发展有限公司 | The method of calibration of block chain Transaction Information correctness, apparatus and system |
CN107038638A (en) * | 2017-02-24 | 2017-08-11 | 杭州象链网络技术有限公司 | A kind of equity registration transaction system construction method based on alliance's chain |
CN107292735A (en) * | 2017-05-27 | 2017-10-24 | 唐盛(北京)物联技术有限公司 | A kind of mortgage finance method and system based on block chain technology |
CN107094155A (en) * | 2017-06-14 | 2017-08-25 | 广东工业大学 | A kind of secure storage method of data and device based on alliance's block chain |
CN107392767A (en) * | 2017-07-28 | 2017-11-24 | 广州亦云信息技术股份有限公司 | Method of commerce, electronic equipment and the storage medium of electricity market based on block chain |
CN107426234A (en) * | 2017-08-08 | 2017-12-01 | 武汉协鑫新能源电力设计有限公司 | A kind of green electric power supply authentication mechanism based on block chain technology |
CN107817381A (en) * | 2017-11-10 | 2018-03-20 | 赫普科技发展(北京)有限公司 | A kind of intelligent electric meter |
Cited By (28)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN109377226A (en) * | 2018-10-30 | 2019-02-22 | 深圳市元征科技股份有限公司 | A kind of Transaction Information management method and relevant device |
CN110046990A (en) * | 2018-11-05 | 2019-07-23 | 阿里巴巴集团控股有限公司 | Data processing method, device and server based on block chain |
CN111768203A (en) * | 2018-11-07 | 2020-10-13 | 阿里巴巴集团控股有限公司 | Meckel tree construction and simple payment verification method and device |
CN111311253A (en) * | 2018-12-12 | 2020-06-19 | 阿里巴巴集团控股有限公司 | Transaction method, device and system based on block chain |
CN109886039A (en) * | 2019-01-23 | 2019-06-14 | 深圳壹账通智能科技有限公司 | Faculty of Finance integration rule detection method and relevant device based on block chain |
WO2020181412A1 (en) * | 2019-03-08 | 2020-09-17 | 云图有限公司 | Blockchain consensus processing method, apparatus, and system |
CN110149335A (en) * | 2019-05-24 | 2019-08-20 | 众安信息技术服务有限公司 | Establish the method and apparatus of the home zone for the protection of block chain data-privacy |
CN110149335B (en) * | 2019-05-24 | 2022-06-21 | 众安信息技术服务有限公司 | Method and equipment for establishing private area for block chain data privacy protection |
CN110443713A (en) * | 2019-09-06 | 2019-11-12 | 江门职业技术学院 | A kind of method and system promoted for block chain trading efficiency |
CN113221169B (en) * | 2019-10-30 | 2023-01-20 | 支付宝(杭州)信息技术有限公司 | Method and device for inquiring block chain private data |
CN113221169A (en) * | 2019-10-30 | 2021-08-06 | 支付宝(杭州)信息技术有限公司 | Method and device for inquiring block chain private data |
CN111178884A (en) * | 2019-12-16 | 2020-05-19 | 平安壹钱包电子商务有限公司 | Information processing method, device, equipment and readable storage medium |
CN111178884B (en) * | 2019-12-16 | 2024-04-12 | 平安壹钱包电子商务有限公司 | Information processing method, device, equipment and readable storage medium |
CN111079198A (en) * | 2020-03-10 | 2020-04-28 | 广州电力交易中心有限责任公司 | Data publishing method and system based on electric power transaction |
CN111861429A (en) * | 2020-06-30 | 2020-10-30 | 上海佩俪信息科技有限公司 | Block chain transaction mining work fee entrusting method and down-chain repeater |
CN111835929B (en) * | 2020-07-14 | 2022-02-25 | 中国联合网络通信集团有限公司 | Telephone charge transaction method and system based on block chain |
CN111835929A (en) * | 2020-07-14 | 2020-10-27 | 中国联合网络通信集团有限公司 | Telephone charge transaction method and system based on block chain |
CN111967031A (en) * | 2020-08-13 | 2020-11-20 | 合肥安时智造科技有限公司 | Data transaction type transmission method |
CN111967031B (en) * | 2020-08-13 | 2024-02-20 | 合肥壹物易证科技有限公司 | Data transaction type transmission method |
CN112418867A (en) * | 2020-11-18 | 2021-02-26 | 中国电子科技集团公司第三十研究所 | Distributed token payment method based on block chain |
CN112926967A (en) * | 2021-03-18 | 2021-06-08 | 上海能链众合科技有限公司 | Metering and paying method for block chain platform |
CN112926967B (en) * | 2021-03-18 | 2024-02-02 | 上海零数众合信息科技有限公司 | Metering and payment method for blockchain platform |
CN116405334B (en) * | 2023-06-07 | 2023-08-29 | 北京中科江南信息技术股份有限公司 | Block chain-based computing power network flow processing method, equipment and medium |
CN116405334A (en) * | 2023-06-07 | 2023-07-07 | 北京中科江南信息技术股份有限公司 | Block chain-based computing power network flow processing method, equipment and medium |
CN117313169A (en) * | 2023-11-30 | 2023-12-29 | 临沂市中信信息技术有限公司 | Intelligent monitoring system for circulation data of finished oil and tamper resistance method thereof |
CN117313169B (en) * | 2023-11-30 | 2024-04-09 | 临沂市中信信息技术有限公司 | Tamper-resistant method of intelligent monitoring system for circulation data of finished oil |
CN117709947A (en) * | 2024-02-05 | 2024-03-15 | 广东通莞科技股份有限公司 | POS machine settlement authority management method based on blockchain |
CN117709947B (en) * | 2024-02-05 | 2024-04-19 | 广东通莞科技股份有限公司 | POS machine settlement authority management method based on blockchain |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN108540484A (en) | A kind of method of commerce, apparatus and system based on block chain | |
CN109863719B (en) | Method and system for controlling transfer through block chain | |
Ma et al. | A blockchain-based application system for product anti-counterfeiting | |
CN103270524B (en) | Integration of verification tokens with mobile communication devices | |
US20190325407A1 (en) | Crypto digital currency (virtual payment cards) issued by central bank or other issuer for mobile and wearable devices | |
CN109214792A (en) | Via the method and system of the electronics coupons of block chain | |
CN107209891A (en) | The equity forwarding of digital request is authorized | |
CN108667632A (en) | Based on the credit record sharing method and device of block chain, electronic equipment | |
CN107403372A (en) | Internet finance data processing platform | |
CN108369703A (en) | Use the method and system of encryption money-system managing payment and payment alternative | |
CN108604344A (en) | Method and system for using digital signature creation Trusted Digital assets transfer | |
CN108370319A (en) | unique code for token authentication | |
CN105956923A (en) | Asset transaction platform and digital certification and transaction method for assets | |
CN110458700A (en) | The logical card generation method of one kind, supply chain financial system and electronic equipment | |
CN109478282A (en) | Digital asset distribution is carried out by the transaction device | |
CN107230055A (en) | The method and system of payout figure currency | |
CN107230051A (en) | The method of payment and payment system of digital cash | |
CN107230079A (en) | The method and system of offline electronic payment are carried out using digital cash chip card | |
CN109493047A (en) | A kind of commission settlement method, device and terminal device based on block chain | |
CN109325747A (en) | Money transfer method and device based on block chain | |
JP2019530032A (en) | Tax refund method using blockchain-based cryptocurrency, program, and computer-readable recording medium | |
CA2416550A1 (en) | Advanced asset management systems | |
CN107026838A (en) | The distribution method and device of a kind of electronic certificate | |
CN107230068A (en) | Use the method and system of viewable numbers currency chip card payout figure currency | |
CN110221919A (en) | Virtual resource allocation method and apparatus based on block chain |
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 | ||
RJ01 | Rejection of invention patent application after publication | ||
RJ01 | Rejection of invention patent application after publication |
Application publication date: 20180914 |