CN113609519A - Timing method, device and storage medium based on block chain - Google Patents

Timing method, device and storage medium based on block chain Download PDF

Info

Publication number
CN113609519A
CN113609519A CN202110690047.5A CN202110690047A CN113609519A CN 113609519 A CN113609519 A CN 113609519A CN 202110690047 A CN202110690047 A CN 202110690047A CN 113609519 A CN113609519 A CN 113609519A
Authority
CN
China
Prior art keywords
timing
payment
information
request
logic
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
Application number
CN202110690047.5A
Other languages
Chinese (zh)
Inventor
陈敏涛
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Shanghai Magic Orange Network Technology Co ltd
Original Assignee
Shanghai Magic Orange Network Technology Co ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Shanghai Magic Orange Network Technology Co ltd filed Critical Shanghai Magic Orange Network Technology Co ltd
Priority to CN202110690047.5A priority Critical patent/CN113609519A/en
Publication of CN113609519A publication Critical patent/CN113609519A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F21/00Security arrangements for protecting computers, components thereof, programs or data against unauthorised activity
    • G06F21/60Protecting data
    • G06F21/62Protecting access to data via a platform, e.g. using keys or access control rules
    • G06F21/6218Protecting 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
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F21/00Security arrangements for protecting computers, components thereof, programs or data against unauthorised activity
    • G06F21/60Protecting data
    • G06F21/64Protecting data integrity, e.g. using checksums, certificates or signatures
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06QINFORMATION 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/00Payment architectures, schemes or protocols
    • G06Q20/38Payment protocols; Details thereof
    • G06Q20/382Payment protocols; Details thereof insuring higher security of transaction
    • G06Q20/3829Payment protocols; Details thereof insuring higher security of transaction involving key management

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Computer Security & Cryptography (AREA)
  • Physics & Mathematics (AREA)
  • Business, Economics & Management (AREA)
  • General Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • Software Systems (AREA)
  • Computer Hardware Design (AREA)
  • General Health & Medical Sciences (AREA)
  • Bioethics (AREA)
  • Health & Medical Sciences (AREA)
  • Accounting & Taxation (AREA)
  • Finance (AREA)
  • Strategic Management (AREA)
  • General Business, Economics & Management (AREA)
  • Databases & Information Systems (AREA)
  • Financial Or Insurance-Related Operations Such As Payment And Settlement (AREA)

Abstract

The invention provides a timing method, a device and a storage medium based on a block chain. The method comprises the following steps: the timing terminal creates user accounts for the hirer and the hired person and establishes a key pair for each, the key pair comprising a public key and a private key. The hired person initiates a timing request and specifies corresponding authorized user information, the timing device responds to the timing request, and the collected request information is recorded on the blockchain. Responding to a timing request of the timing equipment, calling an intelligent contract, executing identity authentication identification logic and timing logic declared by the intelligent contract, and storing the identity authentication identification event and the timing event into corresponding logs; and storing the log to a distributed account book of the block chain, so that the block chain link point equipment sends the content of the log to an authorized user when receiving an access request of the authorized user.

Description

Timing method, device and storage medium based on block chain
Technical Field
The present invention relates to a timing method, a timing device and a storage medium, and more particularly, to a timing method, a timing device and a storage medium based on a block chain.
Background
A block chain technology emerging in recent years becomes a feasible method for solving large-scale data storage and sharing, the block chain technology is firstly proposed by a white paper Bitcoin A Peer-to-Peer electronic case System published in 2008 by Satoshi Nakamoto, and integrates the technologies of cryptography, game theory, P2P network, consensus mechanism and the like, the core is to adopt a chain data structure to ensure that data cannot be falsified, establish trust through the consensus mechanism, ensure transaction safety by using the cryptography technology, have the characteristics of decentralization, high trust, high fault tolerance, incapability of falsification and the like, and have important application values in the fields of finance, supply chain, notarization, digital copyright, medical treatment and intelligent manufacturing.
With the development of society, the human cost is continuously improved, the labor mode of timing payment must become the mainstream of a new distribution mode, and the mode is more and more popular, and the mode of timing payment can prevent the service quality from reducing, and avoids the situations of overhigh service charge and the like.
In the conventional mode, the time-based charging is generally only suitable for the case where a supervisor is present, such as providing legal consultation and technical support service, but in the case where the supervisor is not present, there is no way to guarantee the authenticity of the calculated working time, and thus in many cases, employers are reluctant to calculate a reward by time-based charging.
Although the blockchain can well solve the problem of decentralized information authentication, the blockchain has not been applied to the field of timing.
Disclosure of Invention
The problem of the authenticity of the calculated labor time under the condition of calculating the labor result according to the labor time is solved. The present disclosure provides one or more embodiments.
The method comprises the following steps: the timing device creates user accounts for the hired person and the hired person, and establishes a key pair respectively, wherein the key pair comprises a public key and a private key; the hired person initiates a timing request and specifies corresponding authorized user information, the timing device responds to the timing request, and the collected request information is recorded on the blockchain. Responding to a timing request of the timing equipment, calling an intelligent contract, executing identity authentication identification logic and timing logic declared by the intelligent contract, and storing the identity authentication identification event and the timing event into corresponding logs; and storing the log to a distributed account book of the block chain, so that the block chain link point equipment sends the content of the log to an authorized user when receiving an access request of the authorized user.
In the embodiment of the present invention, the method further includes: the intelligent contract further comprises currency payment logic, the currency payment logic stated by the intelligent contract is executed, the payment event is generated based on the payment information, and the payment event and the authorized user information of the payment information are stored in a log corresponding to the payment transaction; the currency payment logic is used for calculating the amount of the required payment and anchoring the amount of the required payment with the real assets of the hired person under the chain; generating a payment notification event corresponding to the subscription information based on payment information and hirer's down-chain account information, and pushing the payment notification event to a predictive player interfacing with the blockchain; the prediction engine interfaces with a financial institution that is affiliated with the chain branch payment account of the employer.
In the embodiment of the present invention, the method further includes: the timing terminal may send supervision information to the blockchain, where the supervision information includes information such as one or more pieces of current location information, current pictures or videos.
In the embodiment of the present invention, the method further includes: the identity authentication logic is that the server calls a face recognition algorithm or a fingerprint recognition algorithm according to the picture, the camera shooting or the fingerprint information sent by the timing equipment to execute identity authentication. And acquiring the picture or fingerprint data, and carrying out neural network training on the identification algorithm to optimize the algorithm.
In a second aspect, an embodiment of the present application provides a timing device based on a blockchain, where the device includes a receiving unit that receives a timing request initiated by an employer, where the timing request includes request information collected by a timing terminal and specified authorized user information.
The execution unit is used for responding to the timing request of the timing equipment, calling the intelligent contract, executing the identity authentication identification logic and the timing logic declared by the intelligent contract, and storing the identity authentication identification event and the timing event into corresponding logs;
and the storage unit is used for storing the log to a distributed account book of the block chain, so that the block chain link point equipment sends the content of the log to an authorized user when receiving an access request of the authorized user.
In the embodiment of the present invention, the intelligent contract of the device further includes a currency payment logic, executes the currency payment logic declared by the intelligent contract, generates the payment event based on the payment information, and stores the payment event and the information of the authorized user of the payment information in a log corresponding to the payment transaction;
the currency payment logic is used for calculating the amount of the required payment and anchoring the amount of the required payment with the real assets of the hired person under the chain; generating a payment notification event corresponding to the ordering information based on the payment information and the down-chain account information of the hirer, and pushing the payment notification event to a prediction machine interfaced with the blockchain; the prediction engine interfaces with a financial institution that is affiliated with the chain branch payment account of the employer.
Based on the proposal, a computer device comprises: a memory and a processor; the memory having stored thereon a computer program executable by the processor; the processor runs the computer program and executes the computer program to realize the method.
According to the content of the description, a computer-readable storage medium is proposed, on which a computer program is stored, which, when being executed by a processor, executes the computer program to carry out the above-mentioned method.
Drawings
In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings used in the description of the embodiments or the prior art will be briefly described below, it is obvious that the drawings in the following description are only some embodiments of the present invention, and for those skilled in the art, other drawings can be obtained according to the drawings without creative efforts.
FIG. 1 is a schematic diagram of creating an intelligent contract and invoking an intelligent contract provided by an exemplary embodiment.
Fig. 2 is a schematic diagram of a system architecture for performing a blockchain-based timing method according to an exemplary embodiment.
Fig. 3 is a flowchart illustrating a blockchain-based timing method according to an exemplary embodiment.
Fig. 4 is a schematic diagram of a blockchain-based timing device provided in an exemplary embodiment.
Fig. 5 is a hardware block diagram for implementing an embodiment of a blockchain based timing device provided in the present specification.
Detailed Description
In order to make the objects, technical solutions and advantages of the present invention more apparent, the present invention is described in further detail below with reference to the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are merely illustrative of the invention and are not intended to limit the invention. In addition, the technical features involved in the embodiments of the present invention described below may be combined with each other as long as they do not conflict with each other. Also, descriptions of well-known functions and constructions are omitted in the following description for clarity and conciseness.
The block chain described in the embodiment of the present disclosure may specifically refer to a P2P network system having a distributed data storage structure, where each node device achieves through a consensus mechanism, and the book data in the block chain is distributed in temporally consecutive "blocks", where the latter block may include a data digest of the former block, and achieves full backup of data of all or part of nodes according to a difference of the particular consensus mechanism (e.g., POW, POS, DPOS, or PBFT).
Blockchains are generally divided into three types: public chain (Public Blockchain), private chain (PrivateBlockchain) and alliance chain (Consortium Blockchain). Furthermore, there may be a combination of the above types, such as private chain + federation chain, federation chain + public chain, and so on. It is contemplated that the embodiments provided herein can be implemented in a suitable type of blockchain.
The computing device can construct the data into a standard uplink format supported by the blockchain, then the data is issued to the blockchain, the node devices in the blockchain perform consensus processing on the received data, and after the consensus is achieved, the node devices serving as accounting nodes in the blockchain pack the transaction into a block, and persistent evidence storage is performed in the blockchain.
Regardless of which consensus algorithm is adopted by the block chain, the node can pack the received timing logs to generate the latest block and send the latest block to other node equipment for consensus verification. If the other node device receives the latest block and is verified to have no problem, the latest block can be added to the end of the original block chain.
Fig. 1 shows a schematic diagram of creating an intelligent contract and invoking the intelligent contract, where to create an intelligent contract in an ethernet workshop, the intelligent contract needs to be written, changed into bytecode, deployed to a blockchain, and the like. The intelligent contract is called in the Ethernet workshop, a request pointing to an intelligent contract address is initiated, the EVM of each node can respectively execute the transaction, and the intelligent contract code is distributively operated in the virtual machine of each node in the Ethernet workshop network.
The event mechanism of the intelligent contract is a mode for the interaction between the intelligent contract and the out-of-chain entity. For intelligent contracts deployed on blockchains, direct interaction with out-of-chain entities is generally not possible; for example, the intelligent contract cannot generally send the call result of the intelligent contract to the call initiator of the intelligent contract point to point after the call is completed.
Intelligent contracts produce call results (including intermediate results and final call results) that are typically recorded as events (logs) in the call to the intelligent contract and stored in the memory space of the node device. The out-of-link entity which needs to interact with the intelligent contract can acquire the calling result of the intelligent contract by monitoring the log stored in the storage space of the node equipment;
fig. 2 is a schematic diagram of a system architecture for performing a blockchain-based timing method according to an exemplary embodiment. The hired timing terminal 21 and the hired timing terminal 22 interface with node devices 23 and 24 in the block chain, respectively. Alternatively, the same node device is interfaced (this is not illustrated in fig. 2), thereby enabling interaction with data information on the blockchain. When an employer initiates a timing request, the request is encapsulated for distribution to node devices 23 or 24. Such that the transaction is broadcast, consensus, and included in the blockchain 20 after the consensus verification passes.
Fig. 3 is a flowchart illustrating a blockchain-based timing method according to an exemplary embodiment. The method comprises the following steps:
s101, a timing terminal creates user accounts for an employer and a hired person, and respectively establishes a key pair, wherein the key pair comprises a public key and a private key;
in detail, the timing terminal creates user accounts for each of the employer and the hired person to perform the calculation work time, and establishes a key for encrypting information to be issued to the employer and the hired person, respectively, the key being a parameter for encrypting or decrypting the information. In asymmetric cryptographic algorithms, this is usually achieved by the public key cooperating with the private key. Wherein the public key and the private key are a key pair obtained by an algorithm. The public key is a part of the public key pair that is used to encrypt the session key, verify the digital signature, or encrypt data that can be decrypted with the corresponding private key. The private key is a key associated with an address (the address is a hash value of a public key corresponding to the private key), is a string of characters known only by yourself, and is a part of the key pair which is not public.
It should be noted that the manner of creating the user account may be created by Web, mobile phone software, or using a separate timing terminal.
S102, an employer initiates a timing request and specifies corresponding authorized user information, the timing device responds to the timing request, and the acquired request information is recorded on the block chain.
Privacy considerations may specify that the corresponding hirer is entitled to view the request, e.g. a timekeeper may specify that only authorized persons are able to view without the person's own personal information being known to other unrelated persons. While other unrelated people are set to an "unknowable" status. The information leakage of both parties can be avoided.
For example, a timekeeping user who is a doctor does not want his own entrusting relationship to be known by others, and may specify only users who are authorized by an employee. For example, a user who is a lawyer to time may designate an authorized user who is an employer and who is authorized by a lawyer's affairs, without wishing that his or her entrusting relationship be known to others.
The timing request information may include information of authentication such as a face image and a fingerprint, and information such as time when the request is initiated and a GPS position when the request is initiated.
It should be noted that, because the information data space for identity authentication such as a face image and a fingerprint is large, the GAS cost consumed by storage is too high, and the storage space of the block chain is saved. The identity verification information may be stored in a hash mode, and the storage address may be a database address stored by a third party outside the blockchain, for example, another blockchain having a cross-chain reference relationship with the blockchain, which is not limited in this specification.
In order to facilitate the commissioned person to perform the standardized timing, the information of the timing request can be performed in a preset format.
S103, responding to a timing request of the timing device, calling an intelligent contract, executing an identity authentication identification logic and a timing logic declared by the intelligent contract, and storing the identity authentication identification event and the timing event into corresponding logs;
the smart contract is a bytecode deployed onto a blockchain, the bytecode consisting of a series of bytes, each byte identifying an operation. Based on the multiple considerations of development efficiency, readability and the like, a developer can select a high-level language to write intelligent contract codes instead of directly writing byte codes. For example, the high-level language may employ a language such as Solidity, Serpent, LLL, and the like. For intelligent contract code written in a high-level language, the intelligent contract code can be compiled by a compiler to generate byte codes which can be deployed on a blockchain.
Taking an Etherhouse as an example, a user is supported to create and call some complex logic in the Etherhouse network. The ethernet workshop is used as a programmable block chain, and the core of the ethernet workshop is an ethernet workshop virtual machine (EVM), and each ethernet workshop node can run the EVM. The EVM is a well-behaved virtual machine through which various complex logic can be implemented. The user issuing and invoking smart contracts in the etherhouse is running on the EVM. The EVM runs directly virtual machine code (virtual machine bytecode, hereinafter simply referred to as "bytecode"), so the intelligent contracts deployed on the blockchain may be bytecode.
The manager issues a timing request intelligent contract to the ethernet network, and each node can execute the transaction in the EVM. The From field is used TO record the address of the employer, the contract code held in the field value of the Data field may be a bytecode, and the TO field is used TO record the address of the employer. After the nodes reach the agreement through the consensus mechanism, the intelligent contract is successfully created, and the follow-up user can call the intelligent contract.
The identity recognition logic is to send the face picture containing identity information, video fingerprint data and the like to a centralized service provider, the service provider can be any monitoring unit, the service provider can compare the collected identity information with prestored identity information, the comparison comprises a face recognition comparison and fingerprint recognition comparison peer identity recognition method,
the step of recognizing the human face may be to pre-process the image of the user's face, and specifically may include a drying process. Feature information is then extracted from the preprocessed hired face image. The feature information may be iris information of the user, or feature information of the shape and distance of the face of the user. For how to perform the preprocessing and how to extract the adjustment information, a common image processing technology can be referred to, and details are not repeated herein. After the feature information is obtained, any known face recognition algorithm can be used for feature comparison, so as to obtain a face recognition result, it should be noted that if the face recognition passes, the collected face information and the pre-stored face information are subjected to convolution operation, so as to optimize the pre-stored face information and the face recognition algorithm. Thereby making identification more rapid and accurate.
The facilitator can provide trusted third party identification and then publish the comparison result to the prediction machine, so that the result is placed in the storage space of the intelligent contract, and the data is made available. Once data is available in the storage of the intelligent contracts, other intelligent contracts can access the intelligent contracts by calling the 'search' function of the prediction machine intelligent contracts;
the timing logic comprises that whether the identity verification result obtained by the S201 passes, if the identity verification result passes, the S202 judges whether the collected GPS position belongs to a position agreed in advance by the intelligent contract, and the S203 takes the time for sending the timing request as the starting time and starts timing.
Specifically, an intelligent contract is called, a prediction machine obtains an identity recognition result provided by a service provider outside a chain, data are transmitted on the chain by using a signature message, the data are placed in a storage space of the intelligent contract, the intelligent contract receives the result outside the chain, if the identity recognition is passed, position judgment is executed, and if the deviation between the collected position and the pre-stored position information is within a certain range, the position judgment can be considered to be passed. And taking the time of sending the timing request as the starting time and the time of initiating the timing ending request as the time of ending time calculation work. Adding the working time to the total working time.
And storing the identity authentication identification event and the timing event into corresponding logs, wherein the logs are stored in an intelligent contract MPT tree. It should be noted that the result generated by the intelligent contract (including the intermediate result and the final result) is usually recorded in the form of an Event (Event) to the log (log) invoking the intelligent contract, and stored in the storage space of the node device, and the timing log may be directly invoked to obtain the invocation result of the intelligent contract.
And S104, storing the log to a distributed book of the block chain, so that the block chain node point equipment sends the content of the log to an authorized user when receiving an access request of the authorized user.
In one embodiment, when the block link point device receives an access request from an authorized user, the specific process of sending the log content to the authorized user is as follows:
receiving an acquisition request of any user for the block chain data, wherein the access request comprises a user identifier of the user and a digital signature of the user based on a private key held by the user; verifying the digital signature, and judging whether the user identity (such as a public key corresponding to the digital signature) making the digital signature is matched with the user identifier; if the user identity (e.g., the public key corresponding to the digital signature) of the digital signature does not match the user identification, the any user is directly considered not to have the right to obtain the information. Otherwise, the accessing user is determined to have the right of accessing the log.
In another embodiment, the intelligent contract further comprises currency payment logic, executes the currency payment logic stated by the intelligent contract, generates the payment event based on the payment information, and stores the payment event and the information of the authorized user of the payment information into a log corresponding to the payment transaction;
one way is that an employer can obtain virtual assets anchored to frozen real assets and capable of circulation on a chain by freezing real-world real assets (including assets in the form of currency, stocks, bond instruments, real estate, etc.) on the chain.
For example, an employer may perform an asset freeze redemption process with a node device of the blockchain network, the employer sending a certain amount of frozen credentials for real assets to the node device corresponding to the organization having virtual asset redemption authority; alternatively, the hirer may host the real asset under the name of the organization having virtual resource exchange privileges; after receiving the freezing voucher, the node device corresponding to the organization can broadcast the freezing voucher to the blockchain network, so that the node device in the blockchain can add the virtual asset corresponding to the frozen real asset amount value to the account balance of the blockchain of the user based on the freezing voucher.
Calculating the total amount of virtual assets to be consumed based on the service amount of the appointed unit time and the current service time, transferring the virtual assets corresponding to the total amount to the blockchain account of the commissioned person or the company manager from the virtual assets held in the blockchain account of the employer, and generating corresponding payment credentials after the transfer is successful;
after the virtual assets are received in the blockchain account of the hired person or the company manager, an application can be made to the organization hosting the real assets according to the requirement of the hired person, the virtual assets are exchanged into the real assets in a proper amount at proper time, the node equipment corresponding to the organization provides virtual asset exchange transactions, and the corresponding number of virtual assets in the blockchain account of the hired person are cancelled.
Adding the virtual assets corresponding to the frozen real asset amount value into the block chain account balance of the hired person based on the frozen certificate can be further realized by the interaction between the hired person and a virtual asset exchange intelligent contract: the node device corresponding to the hired person or the institution with the virtual asset exchange authority sends a virtual asset exchange transaction to the blockchain network, wherein the virtual asset exchange transaction comprises the asset freezing certificate; and responding to the virtual asset exchange transaction, calling a virtual asset exchange contract deployed on the blockchain by the node equipment of the blockchain, executing the resource exchange logic declared by the intelligent contract, and adding the virtual asset corresponding to the real asset amount value frozen by the asset freezing voucher into the account balance of the blockchain of the hired person.
In another embodiment, the chain asset account identification of the commissionee, the payment amount and the chain asset account of the employer and the payment authorization password of the asset account are encrypted and linked up, and when the intelligent contract triggers payment, the chain asset account identification of the commissionee, the payment amount and the chain asset account of the employer and the payment authorization password of the asset account can be pushed to an oracle (oracle) which is in interface with the blockchain; the presidentifier interfacing with a financial institution corresponding to a hirer's down-chain payment account, the financial institution initiating a transfer operation from the payment-taker's down-chain asset account identification to the hirer's account upon notification of the payment notification event to the financial institution, and sending payment credential information indicating completion of the transfer back to the intelligent contract in the form of an inter-contract message (or in the form of a call-up transaction to the intelligent contract) in response to the payment notification event;
in this manner, a hirer may obtain virtual assets in the blockchain network that may be anchored to the real assets 'value based on the real assets that the hirer owns, which may represent the hirer's on-chain account balance.
Based on the above consensus mechanism and distributed storage features of blockchains, data stored to blockchains is difficult to tamper with or delete by users. Thus, one or more of the embodiments described above provide a blockchain based timing method where the employer manager has no way to tamper with the job time, while authentication may prevent the employer from committing other non-qualified or practice assistants instead of processing the job. Business logic is preset for both hiring parties in the intelligent contract and is stored in the block chain, so that the credibility of the transaction is greatly improved.
It should be noted that the specification does not limit the specific business roles of the hirer, hired person and manager, for example, the hirer may be a labor demander, hired person may be an employee, and manager may be a labor dispatching company.
The timing device can also send supervision request information, such as the currently acquired position information to the block chain, and can also upload the images acquired at the current time to the block chain, and a supervision program preset in the intelligent contract supervises the current commissioned person.
For example, the timing device may randomly activate a shooting function or request identity authentication information such as fingerprint entry within a period of time, perform identity authentication for a currently commissioned person, and chain up a shot image or a collected fingerprint, thereby playing a role of supervision.
In addition, the current position information can be uplinked, so that a commissioned person can be prevented from being separated from the current service post without permission.
It should be noted that the automatic timing interruption can be triggered only when the position change reaches a specified threshold value, or the timing interruption can be triggered only when the portrait cannot be identified in multiple image identifications.
Fig. 4 is a schematic diagram of a blockchain-based timing device 50 provided in an exemplary embodiment. The apparatus comprises:
a receiving unit 501, configured to receive a timing request initiated by an employer, where the timing request includes request information collected by a timing terminal and designated authorized user information
The execution unit 502 is used for responding to the timing request of the timing device, calling the intelligent contract, executing the identity authentication identification logic and the timing logic declared by the intelligent contract, and storing the identity authentication identification event and the timing event into corresponding logs;
the storage unit 503 stores the log to a distributed book of the blockchain, so that when receiving an access request from an authorized user, the blockchain link point device sends the content of the log to the authorized user.
In yet another illustrated embodiment, the execution unit further includes a currency payment logic that executes the currency payment logic of the smart contract statement, generates the payment event based on the payment information, and stores the payment event and the authorized user information for the payment information in a log corresponding to the payment transaction. The currency payment logic is to calculate the amount of the required payment and anchor the amount of the required payment with the real assets of the first party hirer under the chain; generating a payment notification event corresponding to the ordering information based on the payment information and supply side down-chain account information, and pushing the payment notification event to a prediction machine in butt joint with the block chain; the prediction engine interfaces with a financial institution that is affiliated with the chain branch payment account of the employer.
The flow logic of the above device is disclosed above and is not described herein again.
Fig. 5 is a hardware block diagram for implementing an embodiment of a blockchain based timing device provided in the present specification.
Corresponding to the above method embodiments, embodiments of the present specification further provide a computer device, where the computer device includes a processor 70, an input module 71, a positioning module 72, a storage module 73, a communication module 74, a display module 75, and may further include a camera module 76 or a fingerprint acquisition module 77. Wherein the memory has stored thereon a computer program executable by the processor; the processor, when running the stored computer program, performs the steps of the blockchain-based timing method performed by the node device of the blockchain in the embodiments of the present specification. For a detailed description of each step of the blockchain-based timing method executed by the node device of the above blockchain, please refer to the previous contents, and it is not repeated. The computer equipment can also be mobile phones, computers and other equipment.
The processor 70, sometimes referred to as a controller or operational control, may comprise a microprocessor or other processor device and/or logic device that receives input and controls operation of the various components of the billing terminal.
The input module 71 can input. The input module can be matched with different input modes according to different states of the timing terminal. For example, the mode can be a key, a touch screen or a voice input mode
The positioning module 72 can be positioned in any positioning manner, and integrates an RF chip and a baseband chip, and is installed in the central processing unit to provide position information for the timing device.
The storage module 73 may be, for example, one or more of a buffer, a flash memory, a hard drive, a removable media, a volatile memory, a non-volatile memory, or other suitable device. The information relating to the failure may be stored, and a program for executing the information may be stored. And the processor may execute the program stored in the memory to realize information storage or processing, or the like. May be a solid state memory such as Read Only Memory (ROM), Random Access Memory (RAM), SIM card, etc. There may also be a memory that holds information even when power is off, can be selectively erased, and is provided with more data, an example of which is sometimes called an EPROM or the like. The memory may also be some other type of device, such as a memory that includes a buffer memory (sometimes referred to as a buffer).
The communication module 74 is a transmitter/receiver that transmits and receives signals via an antenna. The communication module (transmitter/receiver) is coupled to the central processor to provide an input signal and receive an output signal, which may be the same as in the case of a conventional mobile communication terminal.
The camera module 76 may be used to capture images of a real scene with a built-in camera. Images of a real scene may also be acquired by an external and associated camera. For example, the image acquisition device may be connected to the image acquisition device through a connection line or a network, and the image acquisition device acquires an image of a real scene through a camera and transmits the acquired image to the timing device. The cameras may be monocular cameras, binocular cameras, depth cameras, 3D (three dimensional) cameras, and the like.
The display module 75 is any display.
The fingerprint acquisition module 77 is any one of fingerprint acquisition devices.
Corresponding to the above method embodiments, embodiments of the present specification also provide a computer-readable storage medium, on which computer programs are stored, which, when executed by a processor, perform the steps of the blockchain-based timing method performed by the node device of the blockchain in the embodiments of the present specification. For a detailed description of each step of the blockchain-based timing method executed by the node device of the above blockchain, please refer to the previous contents, and it is not repeated.
The present invention is described with reference to flowchart illustrations and/or block diagrams of methods, apparatus (systems), and computer program products according to embodiments of the invention. It will be understood that each flow and/or block of the flow diagrams and/or block diagrams, and combinations of flows and/or blocks in the flow diagrams and/or block diagrams, can be implemented by computer program instructions. These computer program instructions may be provided to a processor of a general purpose computer, special purpose computer, embedded processor, or other programmable data processing apparatus to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing apparatus, create means for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be stored in a computer-readable memory that can direct a computer or other programmable data processing apparatus to function in a particular manner, such that the instructions stored in the computer-readable memory produce an article of manufacture including instruction means which implement the function specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be loaded onto a computer or other programmable data processing apparatus to cause a series of operational steps to be performed on the computer or other programmable apparatus to produce a computer implemented process such that the instructions which execute on the computer or other programmable apparatus provide steps for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
The principle and the implementation mode of the invention are explained by applying specific embodiments in the invention, and the description of the embodiments is only used for helping to understand the method and the core idea of the invention; meanwhile, for a person skilled in the art, according to the idea of the present invention, there may be variations in the specific embodiments and the application scope, and in summary, the content of the present specification should not be construed as a limitation to the present invention.

Claims (10)

1. A timing method based on block chain is characterized by comprising the following steps
S101: the timing terminal creates user accounts for an employer and a hired person, and respectively establishes a key pair, wherein the key pair comprises a public key and a private key;
s102: the hired person initiates a timing request and specifies corresponding authorized user information, the timing equipment responds to the timing request, and the acquired request information is recorded on the block chain;
s103: responding to a timing request of the timing equipment, calling an intelligent contract, executing identity authentication identification logic and timing logic declared by the intelligent contract, and storing the identity authentication identification event and the timing event into corresponding logs;
s104: and storing the log to a distributed account book of the block chain, so that the block chain link point equipment sends the content of the log to an authorized user when receiving an access request of the authorized user.
2. A time keeping method as defined in claim 1, wherein the smart contract further comprises monetary payment logic that executes the monetary payment logic declared by the smart contract, generates payment events based on payment information, and stores the payment events and payment user information for the payment information in a log corresponding to the payment transaction.
3. A timekeeping method according to claim 2, wherein the monetary payment logic is to calculate an amount of required payment, value anchoring said amount of required payment to the real assets of the employer under the chain; generating a payment notification event corresponding to the payment information based on the payment information and the hirer's down-chain account information, and pushing the payment notification event to a predictive machine interfaced with the blockchain, the predictive machine interfaced with a financial institution corresponding to the hirer's down-chain payment account.
4. A timing method according to claims 1-3, wherein the timing terminal can send supervision information to the blockchain, the supervision information comprising information of one or more pieces of current position information, current picture or image, the intelligent contract executes supervision logic and stores the time of sending supervision information in a corresponding log.
5. The timing method according to claims 1-3, wherein the authentication and identification logic is that the authentication and identification server calls a face recognition algorithm or a fingerprint recognition algorithm according to the picture, camera shooting or fingerprint information sent by the timing device, executes the authentication, obtains the picture or fingerprint data, and performs neural network training on the recognition algorithm to optimize the algorithm.
6. A blockchain-based timing device, the timing device comprising: the receiving unit is used for receiving a timing request initiated by a hired person, wherein the timing request comprises request information acquired by a timing terminal and appointed authorized user information; the execution unit is used for responding to the timing request of the timing equipment, calling the intelligent contract, executing the identity authentication identification logic and the timing logic declared by the intelligent contract, and storing the identity authentication identification event and the timing event into corresponding logs; and the storage unit is used for storing the log to a distributed account book of the block chain, so that the block chain link point equipment sends the content of the log to an authorized user when receiving an access request of the authorized user.
7. The time keeping device of claim 6, wherein the smart contract further comprises monetary payment logic that executes the monetary payment logic declared by the smart contract, generates a payment event based on payment information, and stores the payment event and payment user information for the payment information in a log corresponding to the payment transaction.
8. The timing device of claim 7, wherein the monetary payment logic is to calculate an amount of required payment, value-anchor the amount of required payment to real assets of an employer under a chain; generating a payment notification event corresponding to the payment information based on the payment information and the hirer's down-chain account information, and pushing the payment notification event to a predictive machine interfaced with the blockchain, the predictive machine interfaced with a financial institution corresponding to the hirer's down-chain payment account.
9. A computer apparatus, comprising: a memory and a processor; the memory having stored thereon a computer program executable by the processor; the processor, when executing the computer program, performs the method of any of claims 1 to 8.
10. A computer-readable storage medium, on which a computer program is stored which, when being executed by a processor, carries out the method according to any one of claims 1 to 8.
CN202110690047.5A 2021-06-22 2021-06-22 Timing method, device and storage medium based on block chain Pending CN113609519A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202110690047.5A CN113609519A (en) 2021-06-22 2021-06-22 Timing method, device and storage medium based on block chain

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110690047.5A CN113609519A (en) 2021-06-22 2021-06-22 Timing method, device and storage medium based on block chain

Publications (1)

Publication Number Publication Date
CN113609519A true CN113609519A (en) 2021-11-05

Family

ID=78303609

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110690047.5A Pending CN113609519A (en) 2021-06-22 2021-06-22 Timing method, device and storage medium based on block chain

Country Status (1)

Country Link
CN (1) CN113609519A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN116456127A (en) * 2023-06-19 2023-07-18 中信建投证券股份有限公司 Video processing system, method, device, electronic equipment and storage medium

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN116456127A (en) * 2023-06-19 2023-07-18 中信建投证券股份有限公司 Video processing system, method, device, electronic equipment and storage medium
CN116456127B (en) * 2023-06-19 2023-08-11 中信建投证券股份有限公司 Video processing system, method, device, electronic equipment and storage medium

Similar Documents

Publication Publication Date Title
JP7442552B2 (en) Dynamic off-chain digital currency transaction processing
KR102054410B1 (en) Method for providing reward for delegating computing power for blockchain service management
CN109479004B (en) System and method for block chain implementation
CN109639632A (en) User information management method, electronic equipment and storage medium based on block chain
CN109003185B (en) Intelligent contract establishing method and device, computing equipment and storage medium
CN109710823A (en) Archive management method, file administration network and electronic equipment based on block chain
WO2019127532A1 (en) Blockchain-based crowdfunding information processing method and device, storage medium and electronic device
US11568401B2 (en) Digital payment system
US20220207500A1 (en) Device for directly transmitting electronic coin data records to another device, and payment system
CN111213171A (en) Method and apparatus for secure offline payment
CN112037068B (en) Resource transfer method, system, device, computer equipment and storage medium
KR102179498B1 (en) Method for providing smart group bankbook service based decentralized identifier and system thereof
CN111292174A (en) Tax payment information processing method and device and computer readable storage medium
CN111695978A (en) Block chain system for payroll distribution and payroll distribution method
CN113112262B (en) Digital asset circulation method corresponding to intellectual property
US20180300717A1 (en) Cryptographically secure token exchange
CN110969531A (en) Borrowing deposit verification and online checking method and system
CN112149077B (en) Supply chain billing method, system and computer equipment based on block chain technology
CN113609519A (en) Timing method, device and storage medium based on block chain
CN113869901B (en) Key generation method, key generation device, computer-readable storage medium and computer equipment
Yang et al. DOT-M: a dual offline transaction scheme of central bank digital currency for trusted mobile devices
CN112561533B (en) Electronic resource transfer method, internet of things terminal device, electronic device and medium
CN113159940A (en) Transaction method, system and computer equipment for enhanced bit currency wallet
CN111915313B (en) Digital asset transfer control method, device and communication system for blockchain
KR20210041984A (en) The block chain private key generation method using smart devices with KYC data and biometric information

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