CN-121981405-A - Volunteer duration trusted evidence-storing method and system based on blockchain and Beidou
Abstract
The invention relates to the technical field of blockchain and satellite navigation, in particular to a volunteer duration trusted verification method based on blockchain and Beidou, which comprises the steps of receiving a volunteer duration long verification instruction, confirming a distributed verification environment based on the volunteer duration long verification instruction, acquiring a service track time sequence by using a Beidou positioning terminal, acquiring a service object confirmation record set by using a face recognition terminal, acquiring a tissue sign record set by using an Internet of things card punching terminal, acquiring a volunteer identifier, carrying out labeling encapsulation on a multi-source verification data node by using an interface service layer to obtain a labeled verification transaction body, carrying out hash operation on the labeled verification transaction body to obtain a verification data fingerprint, and carrying out track rail matching and service confirmation time period coincidence comparison on the multi-source verification data node in a target verification record set to obtain a multi-dimensional verification result. The invention can solve the problems of easy counterfeiting, dependence on manual verification and difficult traceability of data of long-term evidence during volunteer.
Inventors
- WANG JIAN
- ZHAN CHEN
- ZHAO CONG
Assignees
- 秦云技术股份公司
Dates
- Publication Date
- 20260505
- Application Date
- 20260407
Claims (10)
- 1. The method for trusted evidence storage of volunteer duration based on blockchain and Beidou is characterized by comprising the following steps of: Receiving a volunteer long-term evidence storage instruction, and confirming a distributed evidence storage environment based on the volunteer long-term evidence storage instruction, wherein the distributed evidence storage environment comprises a multi-source acquisition layer, a distributed account book layer and an interface service layer, and the multi-source acquisition layer comprises a Beidou positioning terminal, a face recognition terminal and an Internet of things card punching terminal; acquiring a service track time sequence by using a Beidou positioning terminal, acquiring a service object confirmation record set by using a face recognition terminal, acquiring an organization check-in record set by using an Internet of things card punching terminal, acquiring volunteer identifications, and performing space-time consistency association based on the service track time sequence, the service object confirmation record set, the organization check-in record set and the volunteer identifications to obtain a multi-source evidence storage data node; the multi-source certificate storing data node is subjected to label packaging by utilizing an interface service layer to obtain a label certificate storing transaction body, hash operation is carried out on the label certificate storing transaction body to obtain a certificate storing data fingerprint, the certificate storing data fingerprint and the label certificate storing transaction body are submitted to a preset alliance chain link point set in a distributed account book layer, and after consensus verification, a preset distributed account book is written to obtain an on-chain certificate storing record; Receiving a duration verification request, analyzing the duration verification request to obtain a volunteer identification to be verified and a period to be verified, and searching a target evidence storage record set in the on-chain evidence storage records through an interface service layer by utilizing the volunteer identification to be verified and the period to be verified; And performing track fence matching and service confirmation time period coincidence ratio comparison on the multi-source evidence storage data nodes in the target evidence storage record set to obtain a multi-dimensional verification result, wherein the multi-dimensional verification result is passed or not, and after the multi-dimensional verification result is confirmed to be passed, the identification of the volunteer to be verified, the time period to be verified and the target evidence storage record set are associated to generate a trusted duration certificate, so that the trusted evidence storage of the volunteer duration is realized.
- 2. The method for trusted forensic storage of volunteer duration based on blockchains and beidou as claimed in claim 1, wherein the step of acquiring the service track time sequence by using the beidou positioning terminal comprises the following steps: Acquiring positioning coordinates of volunteers in real time by using a Beidou positioning terminal based on a preset sampling period to obtain an original positioning coordinate sequence, wherein the original positioning coordinate sequence comprises a plurality of original positioning coordinates, and the original positioning coordinates comprise longitude values, latitude values and acquisition time stamps; the following is performed for each original positioning coordinate in the original positioning coordinate sequence: confirming adjacent positioning coordinates in an original positioning coordinate sequence based on the original positioning coordinates, wherein the adjacent positioning coordinates are adjacent to the original positioning coordinates and lag behind the original positioning coordinates, calculating displacement distances between the original positioning coordinates and the adjacent positioning coordinates, obtaining sampling displacement distances, and comparing the sampling displacement distances with a preset drift distance threshold; If the sampling displacement distance is greater than or equal to the drift distance threshold, calculating the absolute difference value of the acquisition time stamp corresponding to the original positioning coordinate and the acquisition time stamp corresponding to the adjacent positioning coordinate to obtain a sampling time interval, calculating the ratio of the sampling displacement distance to the sampling time interval to obtain an instantaneous movement rate, comparing the instantaneous movement rate with a preset rate threshold, and if the instantaneous movement rate is greater than or equal to the rate threshold, eliminating the adjacent positioning coordinate in the original positioning coordinate sequence; summarizing the original positioning coordinates in the removed original positioning coordinate sequence to obtain a service track time sequence.
- 3. The method for trusted forensic evidence storage of volunteer duration based on blockchains and beidou as claimed in claim 2, wherein the performing space-time consistency association based on the service track time sequence, service object confirmation record set, organization check-in record set and volunteer identification to obtain the multi-source evidence storage data node comprises the following steps: extracting an acquisition time stamp corresponding to the first original positioning coordinate and an acquisition time stamp corresponding to the last original positioning coordinate from the service track time sequence to obtain track starting time and track ending time, and calculating the difference between the track ending time and the track starting time to obtain track duration; obtaining the signing time and the signing time from the organization signing record set, and calculating the difference value between the signing time and the signing time to obtain the organization recording duration; Calculating an absolute difference value of the track duration and the tissue recording duration to obtain a space-time deviation value, comparing the space-time deviation value with a preset space-time deviation threshold, and taking the smaller duration of the track duration and the tissue recording duration as an effective service duration if the space-time deviation value is smaller than or equal to the space-time deviation threshold; And counting the number of service object confirmation records in the service object confirmation record set to obtain the number of confirmation records, comparing the number of confirmation records with a preset minimum confirmation number threshold, and associating the service track time sequence, the service object confirmation record set, the organization check-in record set, the effective service duration and the volunteer identification after the number of the confirmation records is greater than or equal to the minimum confirmation number threshold to obtain the multi-source evidence storage data node.
- 4. The method for trusted forensic evidence storage of volunteer duration based on blockchains and beidou as in claim 3, wherein the step of using an interface service layer to perform label packaging on the multisource evidence storage data node to obtain a labeled evidence storage transaction body comprises the following steps: acquiring activity registration information, wherein the activity registration information comprises an activity type name and an activity period interval; Generating a service type label based on the activity type name, extracting a volunteer identification from a multi-source evidence-storing data node, generating a volunteer identification label based on the volunteer identification, and generating a time period label based on the activity time period interval and the effective service duration; And writing the service type label, the volunteer identification label and the time period label into the metadata domain of the multi-source certificate storage data node in the form of key value pairs by utilizing an interface service layer to obtain a labeled certificate storage transaction body.
- 5. The method for trusted forensic evidence preservation of volunteer duration based on blockchains and beidou according to claim 4, wherein the hash operation is performed on the tagged evidence preservation transaction body to obtain evidence preservation data fingerprints, the evidence preservation data fingerprints and the tagged evidence preservation transaction body are submitted to a preset alliance chain link point set in a distributed ledger layer, and after consensus verification, the preset distributed ledger is written to obtain the on-chain evidence preservation record, and the method comprises the following steps: Carrying out serialization coding on the labeled verification-storing transaction body to obtain serialized transaction data, and carrying out hash operation on the serialized transaction data by utilizing a preset hash algorithm to obtain a verification-storing data fingerprint; Digitally signing the evidence-storing data fingerprint by using a preset node private key to obtain organization signature data, and associating the labeled evidence-storing transaction body, the evidence-storing data fingerprint and the organization signature data to obtain a transaction body to be agreed; broadcasting the transaction body to be shared to a alliance chain node set, wherein the alliance chain node set comprises a plurality of alliance chain nodes, performing Bayesian fault-tolerant sharing on the transaction body to be shared by using verification nodes preset in the alliance chain node set, and after the sharing is confirmed, additionally writing the transaction body to be shared into a preset block of a distributed account book to obtain an on-chain certificate record.
- 6. The method for trusted forensic evidence storage of volunteer duration based on blockchains and Beidou according to claim 5, wherein the steps of performing track fence matching and service confirmation period coincidence comparison on multi-source evidence storage data nodes in a target evidence storage record set to obtain a multi-dimensional verification result include: Extracting multi-source certificate data nodes from the target certificate record set, and respectively extracting service track time sequence, service object confirmation record set and organization sign-in record set from the multi-source certificate data nodes; the method comprises the steps of obtaining a service activity geofence corresponding to a period to be verified, wherein the service activity geofence comprises a fence center coordinate and a fence radius, and executing the following operations on each original positioning coordinate in a service track time sequence: Calculating the spherical distance between the original positioning coordinate and the center coordinate of the fence to obtain a positioning deviation distance, comparing the positioning deviation distance with the radius of the fence, and if the positioning deviation distance is smaller than or equal to the radius of the fence, marking the original positioning coordinate as the inner coordinate of the fence, otherwise, marking the original positioning coordinate as the outer coordinate of the fence; counting the number of coordinates in the rail in the service track time sequence to obtain the number in the rail, counting the number of original positioning coordinates in the service track time sequence to obtain the total positioning number, and calculating the ratio of the number in the rail to the total positioning number to obtain the track coincidence rate; extracting the acquisition time stamp corresponding to each service object confirmation record in the service object confirmation record set to obtain a confirmation time stamp set, extracting the check-in time and the check-out time in the organization check-in record set, counting the number of the confirmation time stamps positioned between the check-in time and the check-out time in the confirmation time stamp set to obtain an effective confirmation number, counting the total number of the confirmation time stamps in the confirmation time stamp set to obtain a confirmation total number, and calculating the ratio of the effective confirmation number to the confirmation total number to obtain the coincidence degree of service confirmation time periods; confirming that the track coincidence rate is greater than or equal to a preset coincidence rate threshold, confirming that the multi-dimensional verification result is passed after confirming that the coincidence rate of the service confirmation period is greater than or equal to the preset coincidence rate threshold, and otherwise, confirming that the multi-dimensional verification result is not passed.
- 7. The method for trusted forensic evidence of volunteer duration based on blockchain and beidou of claim 6, wherein calculating the spherical distance between the original positioning coordinate and the center coordinate of the fence to obtain the positioning deviation distance comprises: extracting a longitude value and a latitude value from original positioning coordinates, obtaining a fence longitude value and a fence latitude value of a fence center coordinate, and performing radian conversion on the longitude value, the latitude value, the fence longitude value and the fence latitude value by using a preset radian conversion coefficient to obtain a longitude radian value, a latitude radian value, a fence longitude radian value and a fence latitude radian value; And calculating the spherical distance based on the longitude radian value, the latitude radian value, the fence longitude radian value and the fence latitude radian value to obtain a positioning deviation distance, wherein the calculation formula is as follows: , Wherein, the Representing the distance of the positional deviation, Indicating a preset average radius of the earth, Representing the value of the radian of the latitude, Representing the fence latitude arc value, Representing the value of the radian of the longitude, Representing the fence longitude radian value.
- 8. The method for trusted forensic evidence of volunteer duration based on blockchain and beidou of claim 7, wherein after the multi-dimensional verification result is confirmed to be passed, correlating the volunteer identification to be verified, the period to be verified and the target forensic record set to generate a trusted duration certificate, and the method comprises the following steps: Extracting effective service time length corresponding to each chain certificate record in a target certificate record set to obtain a segmented time length set, and summing the segmented time lengths in the segmented time length set to obtain accumulated service time length; extracting the stored data fingerprints corresponding to each chain stored record in the target stored record set to obtain a fingerprint sequence, and performing cascading hash operation on the fingerprint sequence by utilizing the hash algorithm to obtain a credential abstract value; correlating the volunteer identification to be verified, the period to be verified, the accumulated service duration, the certificate abstract value and the multidimensional verification result to obtain a certificate data body, and carrying out on-chain signature on the certificate data body by utilizing a verification intelligent contract to obtain a signature certificate data body; And additionally writing the signature credential data body into a distributed account book to obtain an on-chain credential storage address, and associating the identification of the volunteer to be verified, the period to be verified, the accumulated service duration, the credential abstract value and the on-chain credential storage address to obtain the trusted duration credential.
- 9. The method for trusted forensic logging of volunteer duration based on blockchain and beidou of claim 5, wherein the searching the target forensic record set in the on-chain forensic records by using the identification of the volunteer to be verified and the period to be verified through the interface service layer comprises: Transmitting a tag retrieval request to the alliance link point set by utilizing an interface service layer, wherein the tag retrieval request comprises a volunteer identification to be verified and a period to be verified; Matching the volunteer identification label in a distributed account book based on the volunteer identification to be verified to obtain a candidate evidence-storing record set, wherein the candidate evidence-storing record set comprises a plurality of candidate evidence-storing records; and executing the following operations on each candidate certificate record in the candidate certificate record set: extracting a time period label from the candidate evidence storage record, judging whether an intersection exists between an active time period interval corresponding to the time period label and a time period to be verified, and if so, confirming the candidate evidence storage record as a matched evidence storage record; And carrying out hash operation on the labeled certificate transaction body in the matched certificate record again by utilizing the hash algorithm to obtain a check fingerprint, comparing the check fingerprint with the certificate data fingerprint in the matched certificate record, confirming that the check fingerprint is consistent with the certificate data fingerprint, confirming the matched certificate record as an effective certificate record, and summarizing the effective certificate record to obtain a target certificate record set.
- 10. The utility model provides a reliable system of depositing of volunteer duration based on blockchain and big dipper which characterized in that, the system includes: The system comprises a verification environment confirming module, a verification module and a verification module, wherein the verification environment confirming module is used for receiving a long verification instruction in volunteer, and confirming a distributed verification environment based on the long verification instruction in volunteer, wherein the distributed verification environment comprises a multi-source acquisition layer, a distributed account book layer and an interface service layer, and the multi-source acquisition layer comprises a Beidou positioning terminal, a face recognition terminal and an Internet of things card punching terminal; the multi-source data acquisition module is used for acquiring a service track time sequence by using the Beidou positioning terminal, acquiring a service object confirmation record set by using the face recognition terminal, acquiring an organization sign-in record set by using the internet-of-things card punching terminal, acquiring volunteer identifications, and performing space-time consistency association on the basis of the service track time sequence, the service object confirmation record set, the organization sign-in record set and the volunteer identifications to obtain a multi-source evidence storage data node; The on-chain evidence storage writing module is used for carrying out label packaging on the multi-source evidence storage data nodes by utilizing an interface service layer to obtain a label evidence storage transaction body, carrying out hash operation on the label evidence storage transaction body to obtain evidence storage data fingerprints, submitting the evidence storage data fingerprints and the label evidence storage transaction body to a preset alliance chain link point set in a distributed account book layer, and writing the evidence storage data fingerprints and the label evidence storage transaction body into a preset distributed account book after identification verification to obtain on-chain evidence storage records; The time length verification credential module is used for receiving a time length verification request, analyzing the time length verification request to obtain a volunteer identification to be verified and a time period to be verified, and searching a target evidence storage record set in the chain evidence storage records through the interface service layer by utilizing the volunteer identification to be verified and the time period to be verified; And performing track fence matching and service confirmation time period coincidence ratio comparison on the multi-source evidence storage data nodes in the target evidence storage record set to obtain a multi-dimensional verification result, wherein the multi-dimensional verification result is passed or not, and after the multi-dimensional verification result is confirmed to be passed, the identification of the volunteer to be verified, the time period to be verified and the target evidence storage record set are associated to generate a trusted duration certificate, so that the trusted evidence storage of the volunteer duration is realized.
Description
Volunteer duration trusted evidence-storing method and system based on blockchain and Beidou Technical Field The invention relates to the technical field of blockchain and satellite navigation, in particular to a volunteer duration trusted evidence storage method based on blockchain and Beidou. Background In the field of volunteer service management, trusted recording and verification of volunteer duration has become a core support of modern volunteer service systems by virtue of its fair transparency and traceability. As a key link of volunteer service management, the evidence quality and verification accuracy of volunteer duration directly determine the level of confidence and compliance of the whole volunteer service. With the development of the volunteer service scale to a large scale and multiple scenes, the number of volunteers is expanded from tens to tens or tens of thousands, and the requirements on the time length recording and verification capability are higher. At present, the volunteer duration verification mainly depends on a manual auditing mode, and a manager carries out duration identification according to a paper sign-in table and oral confirmation. The traditional method often adopts a single-dimension time length record, is difficult to comprehensively reflect the actual service condition of the volunteer, and cannot effectively identify potential risks such as false report time length or sign-on-card. Although the traditional method can realize basic volunteer duration registration management, cross comparison of multi-source data is lacking in duration verification, repeated manual review is needed when different verification demands are met each time, and a reusable verification mechanism is difficult to form. In addition, duration recognition focuses on a single check-in record, failing to establish a multidimensional consistency check mechanism between location trajectories, service object validation, and organization check-in. More importantly, the traditional duration data are stored in each volunteer organization in a scattered manner, a unified evidence storage and tracing mechanism is lacked, and the original records are difficult to trace back quickly when duration disputes occur. Therefore, how to realize multi-source trusted acquisition of volunteer duration, on-chain untampereable evidence storage and multi-dimensional intelligent verification becomes a technical problem to be solved urgently. Disclosure of Invention The invention provides a volunteer duration credible evidence-storing method and a computer-readable storage medium based on blockchains and Beidou, and mainly aims to solve the problems that long evidence-storing is easy to falsify, verification depends on manual work and data is difficult to trace. In order to achieve the above purpose, the invention provides a volunteer duration trusted evidence-storing method based on blockchain and Beidou, which comprises the following steps: Receiving a volunteer long-term evidence storage instruction, and confirming a distributed evidence storage environment based on the volunteer long-term evidence storage instruction, wherein the distributed evidence storage environment comprises a multi-source acquisition layer, a distributed account book layer and an interface service layer, and the multi-source acquisition layer comprises a Beidou positioning terminal, a face recognition terminal and an Internet of things card punching terminal; acquiring a service track time sequence by using a Beidou positioning terminal, acquiring a service object confirmation record set by using a face recognition terminal, acquiring an organization check-in record set by using an Internet of things card punching terminal, acquiring volunteer identifications, and performing space-time consistency association based on the service track time sequence, the service object confirmation record set, the organization check-in record set and the volunteer identifications to obtain a multi-source evidence storage data node; the multi-source certificate storing data node is subjected to label packaging by utilizing an interface service layer to obtain a label certificate storing transaction body, hash operation is carried out on the label certificate storing transaction body to obtain a certificate storing data fingerprint, the certificate storing data fingerprint and the label certificate storing transaction body are submitted to a preset alliance chain link point set in a distributed account book layer, and after consensus verification, a preset distributed account book is written to obtain an on-chain certificate storing record; Receiving a duration verification request, analyzing the duration verification request to obtain a volunteer identification to be verified and a period to be verified, and searching a target evidence storage record set in the on-chain evidence storage records through an interface service layer by utilizing the volunteer identifi