CN117522551A - Blockchain transaction management method, device, equipment, storage medium and program product - Google Patents
Blockchain transaction management method, device, equipment, storage medium and program product Download PDFInfo
- Publication number
- CN117522551A CN117522551A CN202311465222.6A CN202311465222A CN117522551A CN 117522551 A CN117522551 A CN 117522551A CN 202311465222 A CN202311465222 A CN 202311465222A CN 117522551 A CN117522551 A CN 117522551A
- Authority
- CN
- China
- Prior art keywords
- node
- credit
- transaction
- data
- service
- 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
- 238000007726 management method Methods 0.000 title claims abstract description 67
- 238000003860 storage Methods 0.000 title claims abstract description 26
- 238000000034 method Methods 0.000 claims abstract description 92
- 238000012545 processing Methods 0.000 claims abstract description 82
- 230000008569 process Effects 0.000 claims description 49
- 238000004590 computer program Methods 0.000 claims description 24
- 238000006243 chemical reaction Methods 0.000 claims description 21
- 230000006855 networking Effects 0.000 claims description 7
- 230000010354 integration Effects 0.000 claims description 4
- 238000010586 diagram Methods 0.000 description 14
- 230000003993 interaction Effects 0.000 description 8
- 238000012546 transfer Methods 0.000 description 7
- 238000009825 accumulation Methods 0.000 description 6
- 230000006870 function Effects 0.000 description 6
- 230000001419 dependent effect Effects 0.000 description 5
- 238000010276 construction Methods 0.000 description 4
- 238000001514 detection method Methods 0.000 description 4
- 238000011156 evaluation Methods 0.000 description 4
- 230000006978 adaptation Effects 0.000 description 3
- 238000013475 authorization Methods 0.000 description 3
- 238000004891 communication Methods 0.000 description 3
- 230000004044 response Effects 0.000 description 3
- 238000012550 audit Methods 0.000 description 2
- 230000009286 beneficial effect Effects 0.000 description 2
- 238000007405 data analysis Methods 0.000 description 2
- 238000005516 engineering process Methods 0.000 description 2
- 230000007774 longterm Effects 0.000 description 2
- 238000012423 maintenance Methods 0.000 description 2
- 238000012384 transportation and delivery Methods 0.000 description 2
- 101100016655 Mus musculus Hebp2 gene Proteins 0.000 description 1
- 238000003491 array Methods 0.000 description 1
- 238000013473 artificial intelligence Methods 0.000 description 1
- 230000003190 augmentative effect Effects 0.000 description 1
- 230000006399 behavior Effects 0.000 description 1
- 230000005540 biological transmission Effects 0.000 description 1
- 238000012790 confirmation Methods 0.000 description 1
- 238000013500 data storage Methods 0.000 description 1
- 238000013461 design Methods 0.000 description 1
- 238000011161 development Methods 0.000 description 1
- 238000009826 distribution Methods 0.000 description 1
- 230000003862 health status Effects 0.000 description 1
- 238000004519 manufacturing process Methods 0.000 description 1
- 230000007246 mechanism Effects 0.000 description 1
- 238000012986 modification Methods 0.000 description 1
- 230000004048 modification Effects 0.000 description 1
- 238000012954 risk control Methods 0.000 description 1
- 238000012795 verification Methods 0.000 description 1
- 230000000007 visual effect Effects 0.000 description 1
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06Q—INFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
- G06Q40/00—Finance; Insurance; Tax strategies; Processing of corporate or income taxes
- G06Q40/03—Credit; Loans; Processing thereof
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F16/00—Information retrieval; Database structures therefor; File system structures therefor
- G06F16/20—Information retrieval; Database structures therefor; File system structures therefor of structured data, e.g. relational data
- G06F16/27—Replication, distribution or synchronisation of data between databases or within a distributed database system; Distributed database system architectures therefor
-
- 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
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06Q—INFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
- G06Q40/00—Finance; Insurance; Tax strategies; Processing of corporate or income taxes
- G06Q40/04—Trading; Exchange, e.g. stocks, commodities, derivatives or currency exchange
-
- Y—GENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
- Y02—TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
- Y02D—CLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
- Y02D10/00—Energy efficient computing, e.g. low power processors, power management or thermal management
Landscapes
- Engineering & Computer Science (AREA)
- Business, Economics & Management (AREA)
- Accounting & Taxation (AREA)
- Finance (AREA)
- Theoretical Computer Science (AREA)
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- Strategic Management (AREA)
- General Business, Economics & Management (AREA)
- Development Economics (AREA)
- Technology Law (AREA)
- Marketing (AREA)
- Economics (AREA)
- Databases & Information Systems (AREA)
- Computer Security & Cryptography (AREA)
- Computing Systems (AREA)
- Data Mining & Analysis (AREA)
- General Engineering & Computer Science (AREA)
- Financial Or Insurance-Related Operations Such As Payment And Settlement (AREA)
Abstract
The embodiment of the application discloses a blockchain transaction management method, a device, equipment, a storage medium and a program product, wherein the method comprises the following steps: receiving a network access request sent by a service node, acquiring basic node information of the service node, determining a basic credit score of the service node based on the basic node information, and performing uplink processing on the basic node information and the basic credit score; receiving first credit associated data sent by an asset transaction node, determining a data credit coefficient corresponding to the first credit associated data based on the node type of the asset transaction node, and performing credit determination on the first credit associated data by adopting the data credit coefficient to obtain a transaction credit score corresponding to the first credit associated data; the node types of the asset transaction nodes comprise cross-region node types and conventional node types; and updating the node statistics credit of the service node according to the basic credit score and the transaction credit score. By adopting the method and the device, the safety of blockchain transaction management can be improved.
Description
Technical Field
The present disclosure relates to the field of computer technologies, and in particular, to a blockchain transaction management method, apparatus, device, storage medium, and program product.
Background
Along with the development of a blockchain network, the reliability management of the nodes is very important, and at present, a data analysis model is established by acquiring the credit index and the liability ratio index of the nodes to generate a reliability evaluation coefficient; and comparing the credibility evaluation coefficient with a threshold value to determine the credit level of the node. The credit level determined by the method depends on the data analysis model and the asset information of the node, so that the credit determination of the node is relatively fixed, the credit condition of the node cannot be well represented, and the credit determination flexibility and accuracy are relatively low.
Disclosure of Invention
The embodiment of the application provides a blockchain transaction management method, a device, equipment, a storage medium and a program product, which can improve the flexibility and accuracy of node credit determination, and further improve the security of blockchain transaction management.
In one aspect, an embodiment of the present application provides a blockchain transaction management method, including:
receiving a network access request sent by a service node, acquiring basic node information of the service node, determining a basic credit score of the service node based on the basic node information, and performing uplink processing on the basic node information and the basic credit score;
Receiving first credit associated data sent by an asset transaction node, determining a data credit coefficient corresponding to the first credit associated data based on the node type of the asset transaction node, and performing credit determination on the first credit associated data by adopting the data credit coefficient to obtain a transaction credit score corresponding to the first credit associated data; the node types of the asset transaction nodes comprise cross-region node types and conventional node types;
and updating the node statistics credit of the service node according to the basic credit score and the transaction credit score.
In one aspect, an embodiment of the present application provides a blockchain transaction management device, including:
the information acquisition module is used for receiving a network access request sent by the service node and acquiring basic node information of the service node;
the basic processing module is used for determining basic credit scores of the service nodes based on the basic node information;
the basic uplink module is used for carrying out uplink processing on basic node information and basic credit scores;
the data receiving module is used for receiving the first credit association data sent by the asset transaction node;
the coefficient acquisition module is used for determining a data credit coefficient corresponding to the first credit association data based on the node type of the asset transaction node;
The transaction processing module is used for carrying out credit determination on the first credit related data by adopting the data credit coefficient to obtain a transaction credit score corresponding to the first credit related data; the node types of the asset transaction nodes comprise cross-region node types and conventional node types;
and the credit counting module is used for updating the node counting credit of the service node according to the basic credit score and the transaction credit score.
Wherein, this basic processing module includes:
the parameter processing unit is used for acquiring N information parameters forming the basic node information, carrying out hash conversion on the N information parameters, and obtaining information hashes respectively corresponding to the N information parameters; n is a positive integer;
and the parameter integration unit is used for carrying out numerical conversion on the N information hashes to obtain parameter credit data corresponding to the N information hashes respectively, and carrying out integration processing on the N parameter credit data to obtain a basic credit score of the service node.
Wherein the apparatus further comprises:
the sample acquisition module is used for acquiring node information samples, and sample node scores of the M blockchain nodes aiming at the node information samples respectively, and determining sample credit scores of the node information samples according to the M sample node scores; m is a positive integer;
The sample prediction module is used for inputting the node information samples into the initial information scoring model to predict so as to obtain sample prediction scores corresponding to the node information samples;
the parameter adjustment module is used for carrying out parameter adjustment on the initial information scoring model according to the sample credit score and the sample prediction score to obtain an information scoring model;
the basic processing module is specifically used for:
and inputting the basic node information into an information scoring model for prediction to obtain a basic credit score of the service node.
The coefficient acquisition module is specifically configured to:
if the asset transaction node is a trans-regional asset transaction node, determining the trans-regional coefficient as a data credit coefficient corresponding to the first credit associated data;
if the asset transaction node is a conventional asset transaction node, determining a conventional coefficient as a data credit coefficient corresponding to the first credit association data;
the transaction processing module is specifically used for:
and determining a transaction basic score according to the first credit association data, and adjusting the transaction basic score by adopting a data credit coefficient to obtain a transaction credit score corresponding to the first credit association data.
Wherein, this transaction processing module includes:
The single-segment detection unit is used for detecting the business processing state of the first credit associated data in the corresponding business if the first credit associated data corresponds to a single-segment transaction type in the first transaction type, and determining the credit of the first credit associated data by adopting a data credit coefficient when the business processing state is a business processing completion state to obtain a transaction credit score corresponding to the first credit associated data;
the credit scoring unit is used for determining the credit of the first credit associated data by adopting the data credit coefficient if the first credit associated data corresponds to the second transaction type or corresponds to a plurality of sections of transaction types in the first transaction type, so as to obtain a transaction credit score corresponding to the first credit associated data; the processing time of the transaction traffic of the first transaction type is greater than the processing time of the transaction traffic of the second transaction type.
Wherein the apparatus further comprises:
the type determining module is used for acquiring a first asset type related to the service node from the trans-regional asset transaction node and acquiring a second asset type of the service node from the conventional asset transaction node;
and the coefficient updating module is used for acquiring the resource pair conversion rate between the first asset type and the second asset type, and determining the data credit coefficients respectively corresponding to the transregional node type and the conventional node type based on the asset pair conversion rate.
Wherein the apparatus further comprises:
the transaction acquisition module is used for acquiring historical trans-regional transaction information generated by the service node from trans-regional asset transaction nodes and acquiring historical conventional transaction information generated by the service node from conventional asset transaction nodes; the historical trans-regional transaction information comprises historical trans-regional transaction times and historical trans-regional transaction data volume; the historical conventional transaction information comprises historical conventional transaction times and historical conventional transaction data volume;
the coefficient determining module is used for determining data credit coefficients respectively corresponding to the transregional node type and the conventional node type according to the historical transregional transaction information and the historical conventional transaction information; the data credit coefficient corresponding to the cross-regional node type is in direct proportion to the historical cross-regional transaction times and the historical cross-regional transaction data volume, and is in inverse proportion to the historical conventional transaction times and the historical conventional transaction data volume; the data credit coefficient corresponding to the conventional node type is in direct proportion to the historical conventional transaction times and the historical conventional transaction data quantity, and is in inverse proportion to the historical trans-regional transaction times and the historical trans-regional transaction data quantity.
Wherein the apparatus further comprises:
The contract construction module is used for receiving a business transaction request sent by the business node and constructing a business transaction contract aiming at the business node based on the business transaction request; the business transaction contract comprises a contract trigger condition and a contract executing process;
the parameter construction module is used for constructing node credit parameters aiming at the service nodes;
the parameter updating module is used for updating the node credit parameter based on the contract triggering condition to obtain the node contract credit of the service node;
and the contract executing module is used for calling the business transaction contract if the node contract credit meets the contract triggering condition and executing the contract executing process through the business transaction contract.
The parameter updating module is specifically configured to:
if the contract triggering condition comprises a credit triggering threshold value, assigning the node statistics credit to the node credit parameter to obtain node contract credit of the service node;
if the contract triggering condition comprises a credit triggering threshold value and a credit counting period, acquiring cross-regional transaction data and conventional transaction data generated by the service node in the credit counting period, and updating node credit parameters according to the cross-regional transaction data and the conventional transaction data to obtain node contract credit of the service node;
If the contract triggering condition comprises a credit triggering threshold and a credit counting period, updating a node credit parameter based on node counting credit of the service node in the credit counting period to obtain node contract credit of the service node.
Wherein the contract execution module includes:
the signature acquisition unit is used for calling the business transaction contract if the node contract credit meets the contract trigger condition, and acquiring an address signature and an asset address public key corresponding to the business transaction contract through the business transaction contract;
the asset acquisition unit is used for checking the address signature by adopting the asset address public key, and if the address signature passes the checking, the data quantity to be transferred in the contract execution process is acquired, and the service request asset corresponding to the data quantity to be transferred is acquired from the asset address;
and the asset transfer unit is used for transferring the service request asset to the service node.
Wherein the apparatus further comprises:
the basic calling module is used for executing the process of acquiring the basic node information of the service node if the first block chain node is the master node; the first block chain node is a node for receiving a network access request sent by the service node;
and the network access forwarding module is used for sending a node network access message aiming at the service node to the master node if the first blockchain node is not the master node, so that the master node obtains the basic node information of the service node based on the node network access message and determines the basic credit score of the service node.
Wherein the apparatus further comprises:
the contract deployment module is used for deploying transaction credit contracts if the first blockchain node is an asset transaction node; the first block chain node is a node for receiving a network access request sent by the service node;
the failure feedback module is used for acquiring the node type of the first blockchain node when receiving the first transaction data of the service node, and sending a transaction failure message to the service node if the first transaction data is not matched with the node type of the first blockchain node;
the transaction uplink module is used for executing a first transaction service based on the first transaction data if the first transaction data is matched with the node type of the first blockchain node, generating second transaction data according to the first transaction data and the first transaction service, and carrying out uplink processing on the second transaction data;
and the data sending module is used for calling the transaction credit contract when the second transaction data is successfully uplink, acquiring second credit associated data from the second transaction data through the transaction credit contract, and sending the second credit associated data to the master node so that the master node updates the node statistics credit of the service node based on the second credit associated data.
In one aspect, a computer device is provided, including a processor, a memory, and an input/output interface;
the processor is respectively connected with the memory and the input/output interface, wherein the input/output interface is used for receiving data and outputting data, the memory is used for storing a computer program, and the processor is used for calling the computer program so that the computer equipment comprising the processor executes the blockchain transaction management method in the aspect of the embodiment of the application.
An aspect of the present application provides a computer readable storage medium storing a computer program adapted to be loaded and executed by a processor to cause a computer device having the processor to perform the blockchain transaction management method of an aspect of the present application.
In one aspect, the present application provides a computer program product or computer program comprising computer instructions stored in a computer readable storage medium. The computer instructions are read from the computer-readable storage medium by a processor of a computer device, and executed by the processor, cause the computer device to perform the methods provided in the various alternatives in an aspect of the embodiments of the present application. In other words, the computer instructions, when executed by a processor, implement the methods provided in various alternatives in an aspect of the embodiments of the present application.
Implementation of the embodiment of the application has the following beneficial effects:
in the embodiment of the application, a network access request sent by a service node can be received, basic node information of the service node is obtained, a basic credit score of the service node is determined based on the basic node information, and uplink processing is carried out on the basic node information and the basic credit score; receiving first credit associated data sent by an asset transaction node, determining a data credit coefficient corresponding to the first credit associated data based on the node type of the asset transaction node, and performing credit determination on the first credit associated data by adopting the data credit coefficient to obtain a transaction credit score corresponding to the first credit associated data; the node types of the asset transaction nodes comprise cross-region node types and conventional node types; and updating the node statistics credit of the service node according to the basic credit score and the transaction credit score. That is, the basic information of the service node is adopted to construct a basic credit score, namely a basic credit score, as the reference of the service node, and on the basis, the data related to the transaction performed by the service node, namely the first credit related data, is introduced into the credit score of the service node, so that the credit of the service node can be updated and changed along with the transaction performed by the service node, thereby realizing the consideration diversification of the credit and improving the flexibility and accuracy of the credit determination. Moreover, for the service node, the updating of the credit by the transaction is influenced by the node type (namely the transaction type), so that the distinction between the cross-regional transaction and the conventional transaction of the service node is realized, and the flexibility of credit determination is further improved.
Drawings
In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings that are required in the embodiments or the description of the prior art will be briefly described below, it being obvious that the drawings in the following description are only some embodiments of the present application, and that other drawings may be obtained according to these drawings without inventive effort for a person skilled in the art.
FIG. 1 is a network interaction architecture diagram for blockchain transaction management provided by embodiments of the present application;
FIG. 2 is a schematic diagram of a blockchain transaction management scenario provided in an embodiment of the present application;
FIG. 3 is a flow chart of a method for blockchain transaction management provided by an embodiment of the present application;
fig. 4 is a schematic view of a network access scenario of a node provided in an embodiment of the present application;
FIG. 5 is a flow chart of a method of transaction processing provided by an embodiment of the present application;
FIG. 6 is a schematic diagram of transaction processing interactions provided by an embodiment of the present application;
FIG. 7 is a schematic diagram of a blockchain transaction management device according to an embodiment of the present disclosure;
fig. 8 is a schematic structural diagram of a computer device according to an embodiment of the present application.
Detailed Description
The following description of the embodiments of the present application will be made clearly and fully with reference to the accompanying drawings, in which it is evident that the embodiments described are only some, but not all, of the embodiments of the present application. All other embodiments, which can be made by one of ordinary skill in the art based on the embodiments herein without making any inventive effort, are intended to be within the scope of the present application.
If data of an object (such as a user) needs to be collected in the application, before and during collection, a prompt interface or a popup window is displayed, and the prompt interface or the popup window is used for prompting the user to collect certain data currently, and only after the user sends confirmation operation to the prompt interface or the popup window, the relevant step of data acquisition is started, otherwise, the process is ended. The acquired user data is used in a reasonable and legal scene, application, or the like. Optionally, in some scenarios where user data is required but not authorized by the user, authorization may be requested from the user, and the user data may be reused when authorization passes. That is, the use of user data by the present application complies with relevant regulations of law and regulations, i.e. is reasonably legal for use of user data.
The blockchain is a novel application mode of computer technologies such as distributed data storage, point-to-point transmission, a consensus mechanism, an encryption algorithm and the like. The Blockchain (Blockchain), which is essentially a decentralised database, is a string of data blocks that are generated by cryptographic means in association, each data block containing a batch of information of network transactions for verifying the validity of the information (anti-counterfeiting) and generating the next block. The blockchain may include a blockchain underlying platform, a platform product services layer, and an application services layer.
The blockchain bottom platform may include processing modules such as user management, basic services, intelligent contracts, operation detection, and the like. The user management module is responsible for identity information management of all blockchain participants, including maintenance of public and private key generation (account management), key management, maintenance of corresponding relation between the real identity of the user and the blockchain address (authority management) and the like, and under the condition of authorization, supervision and audit of transaction conditions of certain real identities, and provision of rule configuration (wind control audit) of risk control; the basic service module is deployed on all block chain node devices, is used for verifying the validity of a service request, recording the service request on a storage after the effective request is identified, for a new service request, the basic service firstly analyzes interface adaptation and authenticates the interface adaptation, encrypts service information (identification management) through an identification algorithm, and transmits the encrypted service information to a shared account book (network communication) in a complete and consistent manner, and records and stores the service information; the intelligent contract module is responsible for registering and issuing contracts, triggering contracts and executing contracts, a developer can define contract logic through a certain programming language, issue the contract logic to a blockchain (contract registering), invoke keys or other event triggering execution according to the logic of contract clauses to complete the contract logic, and simultaneously provide a function of registering contract upgrading; the operation detection module is mainly responsible for deployment in the product release process, modification of configuration, contract setting, cloud adaptation and visual output of real-time states in product operation, for example: alarms, detecting network conditions, detecting node device health status, etc.
The platform product service layer provides basic capabilities and implementation frameworks of typical applications, and developers can complete the blockchain implementation of business logic based on the basic capabilities and the characteristics of the superposition business. The application service layer provides the application service based on the block chain scheme to the business participants for use.
In this embodiment of the present application, please refer to fig. 1, fig. 1 is a network interaction architecture diagram for blockchain transaction management provided in this embodiment of the present application, as shown in fig. 1, in this application, a blockchain network 101 includes one or more master nodes, such as a master node 101a and a master node 101b shown in fig. 1, where the blockchain network 101 may further include a plurality of sub-chain management platforms, such as a trans-regional transaction platform and a conventional transaction platform. The cross-regional transaction platform may be considered as a real-time accounting platform of a cross-regional payment network based on a blockchain, and may include one or more cross-regional asset transaction nodes, such as a cross-regional asset transaction node 102a, a cross-regional asset transaction node 102b, and a cross-regional asset transaction node 102c, for managing cross-regional transaction data (such as cross-border transactions, etc.) of each service node, for managing cross-regional sub-blockchains, where each cross-regional asset transaction node is deployed in the cross-regional blockchain network 102, that is, one cross-regional transaction platform is deployed in the cross-regional blockchain network 102. The trans-regional transaction service refers to a transaction between different transaction areas, wherein the types of assets adopted (i.e. circulated) by the different transaction areas are different, for example, a first type of asset is circulated in the transaction area 1, a second type of asset is circulated in the transaction area 2, and the like.
The conventional transaction platform may include a conventional asset transaction node 103a, a conventional asset transaction node 103b, a conventional asset transaction node 103c, and the like, for managing conventional transaction data of each service node, for managing a conventional sub-blockchain, each conventional asset transaction node being deployed in the conventional blockchain network 103, that is, one conventional transaction platform is deployed in the conventional blockchain network 103, for conducting a conventional transaction service, which refers to a service conducted by a service node in a transaction area to which the service node belongs. By performing cross-chain management on the cross-regional transaction platform and the conventional transaction platform, transaction management on different regional transaction types is realized, and transaction statistics efficiency and processing efficiency are improved.
Wherein the master node is used to manage the master blockchain in the blockchain network 101 and has access to sub-blockchain networks, such as the cross-regional blockchain network 102 and the regular blockchain network 103. Each cross-regional asset transaction node may be considered to correspond to a node asset exchange for implementing a cross-regional transaction. For example, service node 104 is located in transaction area 1, service node 105 is located in transaction area 2, and when service node 104 requests a transaction with service node 105, the trans-regional transaction may be implemented by any trans-regional asset transaction node, or service node 104 or service node 105 may need to perform asset conversion, such as converting a first type of asset into a second type of asset, or converting a second type of asset into a first type of asset, etc., and any trans-regional asset transaction node may implement asset conversion of a service node.
Specifically, referring to fig. 2, fig. 2 is a schematic diagram of a blockchain transaction management scenario provided in an embodiment of the present application. As shown in fig. 2, the first blockchain node 201 may receive a network access request sent by the service node 202, obtain base node information of the service node 202, determine a base credit score of the service node based on the base node information, and perform a uplink processing on the base node information and the base credit score. At this point, the base credit score is determined as the node statistics credit for the service node 202, where the node statistics credit may be considered as variable data representing the credit of the service node 202, i.e., credit updates may be made as the service node 202 operates. Specifically, the first blockchain node 201 receives first credit-related data sent by the asset transaction node 203, where the first credit-related data is data related to credit generated by the asset transaction node 203 when executing the transaction service requested by the service node 202; the first blockchain node 201 may determine a data credit coefficient corresponding to the first credit-related data based on the node type of the asset transaction node 203, and perform credit determination on the first credit-related data by using the data credit coefficient to obtain a transaction credit score corresponding to the first credit-related data. The node types of the asset transaction node include a cross-regional node type and a regular node type, and the data credit coefficient corresponding to the first credit association data is determined mainly based on the regional transaction type of the transaction service corresponding to the first credit association data, wherein the regional transaction type is the transaction service of the cross-regional transaction type, which is executed by the cross-regional asset transaction node, and the regional transaction type is the transaction service of the regular transaction type, which is executed by the regular asset transaction node, so that the data credit coefficient corresponding to the first credit association data can be determined based on the node type of the asset transaction node 203. Further, the node statistics credits of the service node may be updated based on the base credit score and the transaction credit score. Therefore, the real-time updating of the credit of the service node is realized, the credit influence degree of the transaction service of the service node on the service transaction is updated freely with the regional transaction type of the transaction service, and the real-time performance and the flexibility of the credit updating are improved. Therefore, when the service node is subjected to related operation, the node statistics credit of the service node can be referred, and the safety of blockchain transaction management is improved.
It is to be appreciated that the blockchain nodes mentioned in the embodiments of the present application (e.g., the master node, the transregional asset transaction node, the conventional asset transaction node, etc.) may be a computer device, which in the embodiments of the present application includes, but is not limited to, a terminal device or a server. In other words, the computer device may be a server or a terminal device, or may be a system formed by the server and the terminal device. The above-mentioned terminal device may be an electronic device, including but not limited to a mobile phone, a tablet computer, a desktop computer, a notebook computer, a palm computer, a vehicle-mounted device, an augmented Reality/Virtual Reality (AR/VR) device, a head-mounted display, a smart television, a wearable device, a smart speaker, a digital camera, a camera, and other mobile internet devices (mobile internet device, MID) with network access capability, or a terminal device in a scene such as a train, a ship, or a flight. The servers mentioned above may be independent physical servers, or may be server clusters or distributed systems formed by a plurality of physical servers, or may be cloud servers that provide cloud services, cloud databases, cloud computing, cloud functions, cloud storage, network services, cloud communication, middleware services, domain name services, security services, vehicle-road collaboration, content distribution networks (Content Delivery Network, CDN), and basic cloud computing services such as big data and artificial intelligence platforms.
Further, referring to fig. 3, fig. 3 is a flowchart of a method for blockchain transaction management according to an embodiment of the present application. As shown in fig. 3, the blockchain transaction management process includes the steps of:
step S301, receiving a network access request sent by a service node, acquiring basic node information of the service node, determining a basic credit score of the service node based on the basic node information, and performing uplink processing on the basic node information and the basic credit score.
In this embodiment of the present application, the first block link node receives a network access request sent by a service node, and may obtain base node information of the service node, where the base node information may include, but is not limited to, an identifier on a node chain (such as SBT of the service node, a soul binding identifier, no asset value after binding, and a unique identifier of the service node in a block chain network), certificate information, and node description information (such as a name, a profile, and a related service of an enterprise). The basic credit score of the service node can be determined through the basic node information, the basic node information and the basic credit score are subjected to uplink processing, specifically, a basic credit block can be generated according to the basic node information and the basic credit score, and the basic credit block is added into a main blockchain after the basic credit block is commonly recognized. Optionally, the basic credit score may be subjected to rights management, specifically, rights management data is associated with the basic credit score, where the rights management data is used to indicate access rights to the basic credit score, and the rights management data is used to indicate that the sub-link nodes (i.e. the trans-regional asset transaction node and the regular asset transaction node) are not opened temporarily, that is, the rights management data is that the sub-link nodes do not have access rights to the basic credit score in a specified time range. Wherein the first blockchain node may be any node in a blockchain network.
The first blockchain node can acquire N information parameters forming basic node information, and perform hash conversion on the N information parameters to obtain information hashes respectively corresponding to the N information parameters; n is a positive integer. For example, parameter ranges of N parameter types are obtained, the parameter ranges of the parameter types corresponding to the N information parameters are adopted to perform hash conversion on the N information parameters respectively, and information hashes corresponding to the N information parameters are obtained, so that the information hashes can be used for representing the content of the corresponding information parameters. The N information hashes can be converted in numerical value to obtain parameter credit data corresponding to the N information hashes, and the N parameter credit data are integrated to obtain a basic credit score of the service node.
Alternatively, a node information sample may be obtained, and M blockchain nodes may be scored against sample nodes of the node information sample, respectively. Determining a sample credit score of the node information sample according to the M sample node scores; m is a positive integer. The statistical value of the scores of the M sample nodes may be determined as a sample credit score of the node information sample, where the statistical value may be a maximum value, a minimum value, a mode (i.e., a sample node score with the largest occurrence number), a median value or a mean value among the scores of the M sample nodes, and specifically, a statistical manner may be determined based on the score requirement, to obtain the statistical value of the scores of the M sample nodes, for example, the score requirement is a public approval, the statistical manner may be a mode statistical manner, the score requirement is a score trend reflection, the statistical manner may be a mean statistical manner, and so on. Further, the node information sample can be input into an initial information scoring model for prediction, so that a sample prediction score corresponding to the node information sample is obtained; and carrying out parameter adjustment on the initial information scoring model according to the sample credit score and the sample prediction score to obtain the information scoring model. When the basic credit score of the service node is determined based on the basic node information, the basic node information can be input into the information scoring model for prediction to obtain the basic credit score of the service node.
Optionally, the node type of the first blockchain node may be obtained, and if the first blockchain node is a master node, a process of obtaining the base node information of the service node is performed; the first blockchain node is a node that receives a network access request sent by a service node. If the first blockchain node is not the master node, sending a node networking message aiming at the service node to the master node so that the master node obtains basic node information of the service node based on the node networking message and determines a basic credit score of the service node. That is, referring to fig. 4, fig. 4 is a schematic view of a node networking scenario provided in the embodiment of the present application, as shown in fig. 4, a service node 401 sends a networking request to a first blockchain node 402, at this time, the first blockchain node 402 receives the networking request sent by the service node 401, if the first blockchain node 402 is a master node, acquires base node information 404 of the service node 401, determines a base credit score 405 of the service node 401 based on the base node information 404, performs uplink processing on the base node information 404 and the base credit score 405, and specifically, may generate a base credit block according to the base node information 404 and the base credit score 405, and adds the base credit block to the master blockchain 406, so as to further execute step S302; if the first blockchain node 402 is not the master node, a node network access message for the service node 401 is sent to the master node 403, so that the master node 403 obtains the base node information 404 of the service node 401 based on the node network access message, and determines the base credit score 405 of the service node 401. That is, credit management for the service node is performed by the master node in the blockchain network.
Alternatively, a node statistics credit may be constructed for the service node, and the base credit score of the service node is assigned to the node statistics credit, that is, the node statistics credit may be considered as a variable data for counting the credit of the service node in real time. For example, the node statistics credit is denoted as Conf, and the process may be denoted as conf=found_conf, where found_conf is used to represent the underlying credit score of the traffic node.
Step S302, first credit association data sent by an asset transaction node is received, a data credit coefficient corresponding to the first credit association data is determined based on the node type of the asset transaction node, and credit determination is carried out on the first credit association data by adopting the data credit coefficient, so that a transaction credit score corresponding to the first credit association data is obtained.
In this embodiment of the present application, the first blockchain node may receive first credit-related data sent by the asset transaction node, specifically, the service node may send a first transaction request to the asset transaction node, and the asset transaction node may acquire node transaction data based on the first transaction request, perform uplink processing on the node transaction data, specifically, add the node transaction data to the sub-blockchain, and simultaneously, may send first information-related data in the node transaction data to the master node, that is, when the first blockchain node is the master node, may receive the first credit-related data sent by the asset transaction node. The node types of the asset transaction nodes comprise a cross-regional node type (corresponding to a cross-regional asset transaction node) and a conventional node type (corresponding to a conventional asset transaction node), wherein the regional transaction type of the transaction service executed by the cross-regional asset transaction node is a cross-regional transaction type, and the regional transaction type of the transaction service executed by the conventional asset transaction node is a conventional transaction type. Further, a data credit coefficient corresponding to the first credit association data can be determined based on the node type of the asset transaction node, credit determination is carried out on the first credit association data by adopting the data credit coefficient, a transaction credit score corresponding to the first credit association data is obtained, credit evaluation is carried out on transaction services of different area transaction types by the data credit coefficient, the comprehensiveness and the flexibility of credit evaluation of the service node can be realized, and the credit can be updated in real time based on the transaction services carried out by the service node, so that the accuracy of the credit is improved.
Optionally, if the asset transaction node is a trans-regional asset transaction node, determining the trans-regional coefficient as a data credit coefficient corresponding to the first credit-related data; and if the asset transaction node is a conventional asset transaction node, determining the conventional coefficient as a data credit coefficient corresponding to the first credit association data. Wherein the cross-region coefficients and the regular coefficients may be commonly recognized by the master node.
Alternatively, the conversion rate of the resource pair may be determined, and the first credit related data is acquired from a trans-regional asset transaction node, so as to acquire a first asset type related to the service node, and the second asset type of the service node is acquired from a conventional asset transaction node, wherein the second asset type is an asset type of an asset used by the service node in a transaction area to which the service node belongs, and the first asset type is an asset type of an asset to be converted by the service node when the trans-regional transaction is performed. For example, the asset type of the asset used in the transaction area to which the service node belongs is asset type 1, and when the trans-regional transaction is performed, the asset of asset type 1 is converted into asset type 2, and the first asset type is asset type 2, and the second asset type is asset type 1. The resource pair conversion rate between the first asset type and the second asset type may be obtained, and the data credit coefficients respectively corresponding to the transregional node type and the regular node type may be determined based on the asset pair conversion rate, that is, the transregional coefficient and the regular coefficient may be determined based on the asset pair conversion rate. Specifically, a value ratio between a first asset type and a second asset type may be determined based on a resource pair conversion rate, and the value ratio between the first asset type and the second asset type may be normalized to obtain a cross-region coefficient and a conventional coefficient, where the cross-region coefficient corresponds to the normalized value ratio of the first asset type and the conventional coefficient corresponds to the normalized value ratio of the second asset type.
Or, the historical trans-regional transaction information generated by the service node can be obtained from trans-regional asset transaction nodes, and the historical conventional transaction information generated by the service node can be obtained from conventional asset transaction nodes; the historical trans-regional transaction information comprises historical trans-regional transaction times and historical trans-regional transaction data volume; the historical regular transaction information includes a number of historical regular transactions and an amount of historical regular transaction data. Determining data credit coefficients respectively corresponding to the cross-regional node type and the conventional node type according to the historical cross-regional transaction information and the historical conventional transaction information, specifically determining the cross-regional coefficients and the conventional coefficients according to the historical cross-regional transaction information and the historical conventional transaction information; the data credit coefficient (i.e. the cross-regional coefficient) corresponding to the cross-regional node type is in direct proportion to the historical cross-regional transaction times and the historical cross-regional transaction data volume, and is in inverse proportion to the historical conventional transaction times and the historical conventional transaction data volume; the data credit coefficient (i.e., the conventional coefficient) corresponding to the conventional node type is proportional to both the historical conventional transaction number and the historical conventional transaction data amount, and is inversely proportional to both the historical trans-regional transaction number and the historical trans-regional transaction data amount. That is, the transaction bias of the service node, that is, the regional transaction type of the transaction service that the service node performs more frequently, can be determined according to the historical transaction service that the service node has performed, so that the trans-regional coefficient and the conventional coefficient are more consistent with the transaction characteristics of the service node, and the individuation and the accuracy of credit determination are improved.
Further, the credit of the first credit related data can be determined by adopting the data credit coefficient, so that the transaction credit score corresponding to the first credit related data is obtained. Optionally, according to the time transaction type of the first credit association data, it may be determined that if the first credit association data corresponds to a single-segment transaction type in the first transaction type, detecting a service processing state of the first credit association data in a corresponding transaction service, and when the service processing state is a service processing completion state, performing credit determination on the first credit association data by using a data credit coefficient to obtain a transaction credit score corresponding to the first credit association data; if the first credit association data corresponds to the second transaction type or corresponds to a plurality of transaction types in the first transaction type, credit determination is carried out on the first credit association data by adopting a data credit coefficient, so that a transaction credit score corresponding to the first credit association data is obtained; the processing time of the transaction traffic of the first transaction type is greater than the processing time of the transaction traffic of the second transaction type. That is, transaction traffic of a first transaction type may be considered long-term transactions and transaction traffic of a second transaction type may be considered short-term transactions. The long-term transaction comprises a plurality of transaction stages and a single transaction stage, wherein the plurality of transaction stages refer to transactions (such as processes of generating transactions, booking payment, goods collection and the like, or processes of delivering goods, paying goods money and the like) with credit influence, and each transaction stage can be considered as a performance behavior, and credit can be accumulated for a service node; a single transaction refers to a transaction that will have a credit impact at the end of the last transaction, such as a reservation of a product, and only when the delivery of the goods is ultimately made, it is determined whether the transaction parties fulfill a contract, evaluating the credit for both parties. Therefore, when the first credit-related data corresponds to a single-segment transaction type in the first transaction type, if the service processing state of the first credit-related data in the corresponding transaction service is a service processing intermediate state, the first credit-related data is stored until the credit-related data of which the service processing state in the transaction service is a service processing completion state is acquired, and the transaction credit score of the transaction service is determined according to the credit-related data of which the service processing state is the service processing completion state.
When the credit of the first credit related data is determined by using the data credit coefficient, a transaction basic score can be determined according to the first credit related data, and the transaction basic score is adjusted by using the data credit coefficient, so as to obtain the transaction credit score corresponding to the first credit related data.
Step S303, updating the node statistics credit of the service node according to the basic credit score and the transaction credit score.
In this embodiment of the present application, the first blockchain node may update the node statistics credit of the service node according to the basic credit score and the transaction credit score, and specifically, may search a first credit management block associated with the service node from the master blockchain, where the first credit management block is a block associated with the service node and having a maximum block height; the current node statistics credit of the service node is obtained from the first credit management block, and the transaction credit score is adopted to update the node statistics credit of the service node, which can be recorded as Conf=Conf+trad i ,Trad i For indicating the currently acquired transaction credit score, i.e. each time a transaction credit score is acquired, the current node statistics credit may be updated with the transaction credit score. Further, a second credit management block may be generated according to the updated node statistics credits, and the second credit management block may be subjected to uplink processing, which may specifically be added to the master blockchain.
In the embodiment of the application, a network access request sent by a service node can be received, basic node information of the service node is obtained, a basic credit score of the service node is determined based on the basic node information, and uplink processing is carried out on the basic node information and the basic credit score; receiving first credit associated data sent by an asset transaction node, determining a data credit coefficient corresponding to the first credit associated data based on the node type of the asset transaction node, and performing credit determination on the first credit associated data by adopting the data credit coefficient to obtain a transaction credit score corresponding to the first credit associated data; the node types of the asset transaction nodes comprise cross-region node types and conventional node types; and updating the node statistics credit of the service node according to the basic credit score and the transaction credit score. That is, the basic information of the service node is adopted to construct a basic credit score, namely a basic credit score, as the reference of the service node, and on the basis, the data related to the transaction performed by the service node, namely the first credit related data, is introduced into the credit score of the service node, so that the credit of the service node can be updated and changed along with the transaction performed by the service node, thereby realizing the consideration diversification of the credit and improving the flexibility and accuracy of the credit determination. Moreover, for the service node, the updating of the credit by the transaction is influenced by the node type (namely the transaction type), so that the distinction between the cross-regional transaction and the conventional transaction of the service node is realized, and the flexibility of credit determination is further improved.
Further, referring to fig. 5, fig. 5 is a flowchart of a method for transaction processing according to an embodiment of the present application. As shown in fig. 5, a process for describing a credit-based transaction, the transaction processing process includes the steps of:
step S501, a service transaction request sent by a service node is received, and a service transaction contract for the service node is constructed based on the service transaction request.
In this embodiment of the present application, the first blockchain node may receive a service transaction request sent by a service node, and construct a service transaction contract for the service node based on the service transaction request, where the service transaction contract includes a contract trigger condition and a contract execution process, where the contract trigger condition is used to indicate a credit requirement that needs to be reached to trigger the service transaction contract trigger, and the contract execution process is used to indicate an operation that needs to be performed when the contract trigger condition is satisfied. Optionally, the first block link point receives the service transaction request sent by the service node, and may search a request response condition corresponding to the service transaction request, if the request response condition is found, determine the request response condition as a contract trigger condition, and construct a service transaction contract for the service node based on the contract trigger condition and a contract executing process.
Further optionally, if the first blockchain node is not the master node, the service transaction request may be forwarded to the master node, so that the master node constructs node credit parameters for the service node based on the service transaction request, updates the node credit parameters based on the contract trigger condition, and obtains node contract credits of the service node, and when the node contract credits meet the contract trigger condition, sends a credit up-to-standard message to the first blockchain node, where a determination process of the node contract credits may refer to a related description in step S502 below; the first blockchain node may invoke a business transaction contract based on the credit reaching message, through which the contract execution process is performed. If the first blockchain node is the master node, step S502 is performed.
Step S502, constructing node credit parameters for the service node, updating the node credit parameters based on contract trigger conditions, and obtaining node contract credit of the service node.
In the embodiment of the application, a node credit parameter is constructed for a service node, wherein the node credit parameter refers to a parameter required to be acquired for detecting a contract trigger condition, and further, the node credit parameter is updated based on the contract trigger condition to obtain node contract credit of the service node.
Specifically, if the contract triggering condition includes a credit triggering threshold, node statistics credit is assigned to a node credit parameter to obtain node contract credit of the service node, specifically, a first credit management block is obtained from a main block chain, the first credit management block is a block which is associated with the service node and has the largest block height, and the node statistics credit in the first credit management block is assigned to the node credit parameter to obtain node contract credit of the service node. If the node contract credit reaches the credit triggering threshold, determining that the node contract credit meets the contract triggering condition, and executing step S503; if the node contract credit does not reach the credit triggering threshold, determining that the node contract credit does not meet the contract triggering condition.
If the contract triggering condition comprises a credit triggering threshold value and a credit counting period, acquiring cross-regional transaction data and conventional transaction data generated by the service node in the credit counting period, and updating node credit parameters according to the cross-regional transaction data and the conventional transaction data to obtain node contract credit of the service node. Specifically, determining the cross-regional transaction credit according to the cross-regional transaction data, determining the conventional transaction credit according to the conventional transaction data, updating the node credit parameters based on the cross-regional transaction credit and the conventional transaction credit to obtain the node contract credit of the service node, wherein the cross-regional transaction credit and the conventional transaction credit obtaining process can refer to the transaction credit score obtaining process in step S302 of fig. 3, and is not limited herein. Optionally, in the process, a request area type corresponding to the service transaction request may be obtained, where the request area type is used to represent an execution area of a target transaction service requested by the service transaction request, and if the target transaction service is executed in a transaction area to which the service node belongs, the request area type is determined to be a conventional request type; if the target transaction service is executed through a plurality of transaction areas, the request area type is determined to be a cross-area request type. The transregional coefficient and the conventional coefficient are adjusted based on the request region type to obtain a transregional update coefficient and a conventional update coefficient, specifically, the coefficient corresponding to the request region type (for example, the transregional coefficient corresponding to the transregional request type and the conventional coefficient corresponding to the conventional request type) is subjected to increasing treatment, and the other coefficient is subjected to shrinking treatment, so that the transregional update coefficient and the conventional update coefficient are more in line with the requirements of the business transaction request, and individuation, flexibility and accuracy of credit determination are improved; further, based on the transregional update coefficient and the conventional update coefficient, determining a coefficient corresponding to transregional transaction data and a coefficient corresponding to conventional transaction data; and determining the trans-regional transaction credit and the conventional transaction credit by adopting coefficients corresponding to trans-regional transaction data and coefficients corresponding to conventional transaction data. Further, if the node contract credit reaches the credit triggering threshold, determining that the node contract credit meets the contract triggering condition, and executing step S503; and if the node contract credit does not reach the credit triggering threshold value at the end of the credit counting period, determining that the node contract credit does not meet the contract triggering condition.
If the contract triggering condition comprises a credit triggering threshold and a credit counting period, updating a node credit parameter based on node counting credit of the service node in the credit counting period to obtain node contract credit of the service node. For example, if the credit statistics deadline is 100 block heights, the node statistics credit of the service node when the block height of the main blockchain is 100 may be assigned to the node credit parameter to obtain the node contract credit of the service node. For example, if the credit statistics period is 2023, 12 th month 10, the node statistics credit of the service node at the credit statistics period is assigned to the node credit parameter, so as to obtain the node contract credit. Further, if the node contract credit reaches the credit triggering threshold, determining that the node contract credit meets the contract triggering condition, and executing step S503; if the node contract credit does not reach the credit triggering threshold value in the credit counting period, determining that the node contract credit does not meet the contract triggering condition.
Optionally, when the contract trigger condition includes a credit counting period or a credit counting period, the service node feeds back credit association data to the master node every time the service node performs a transaction. The first blockchain node may generate associated transaction credits from the credit association data, which may be referred to in the determination of the transaction credit score in step S302 of fig. 3; updating the value of the node credit parameter by adopting the associated transaction credit to obtain node contract credit, wherein when the contract trigger condition comprises a credit counting period, the initial value of the node credit parameter is 0, and when the contract trigger condition comprises the credit counting period, the initial value of the node credit parameter is the node counting credit of the service node when the service node initiates the service transaction request; when the node contract credit reaches the credit trigger threshold, step S503 is performed. That is, the first blockchain node may perform the statistical determination of node contract credits when the credit statistics period or the credit statistics period is reached; the node credit parameter may be updated once every time a credit association data is received, and step S503 may be executed when the value of the node credit parameter reaches the credit trigger threshold.
In step S503, if the node contract credit meets the contract trigger condition, the service transaction contract is invoked, and the contract execution process is executed through the service transaction contract.
In the embodiment of the application, if the node contract credit meets the contract trigger condition, a business transaction contract is called, and the contract execution process is executed through the business transaction contract. For example, the contract execution process is an asset transfer process, the first blockchain node may invoke a business transaction contract, obtain an address signature through the business transaction contract, and an asset address public key corresponding to the business transaction contract; the address signature is checked by adopting the asset address public key, if the address signature passes the check, the data quantity to be transferred in the contract executing process is obtained, and the service request asset corresponding to the data quantity to be transferred is obtained from the asset address; the service request asset is transferred to a service node. For example, the contract executing process authorizes the blockchain media data, the first blockchain node may invoke the contract executing process in the service transaction contract, obtain the blockchain media data and the request authority corresponding to the contract executing process, and add the request authority of the blockchain media data to the service node. The blockchain media data may be a resource in a blockchain network, such as digital collection, audio data, video data, text data, or multimedia data. The request rights may be, but are not limited to, use rights, holding rights or deadline holding rights, etc., the use rights being used to indicate that the blockchain media data may be used by the service node that owns the rights; the holding authority is used for indicating that the blockchain media data belongs to a service node with the authority; the deadline holding authority is used for indicating that the service node with the authority can perform all operations and the like on the blockchain media data except the holding authority transfer within a certain time range. The above are just a few possible application scenarios, and other transactions that need to be performed when certain credit conditions are met may also adopt the scheme shown in the present application.
For example, the contract trigger condition is "90 credit scores within half a year", i.e. the credit trigger threshold is 90, the credit statistics period is half a year, and the contract execution process is "pre-distributing 20 ten thousand digital assets for service nodes", wherein pre-distributing refers to the operation that needs to transfer acquired digital assets back to the source address. If the blockchain node a pre-distributes 20 ten thousand digital assets for the service node a, then the service node a needs to transfer at least 20 ten thousand digital assets to the blockchain node a. Taking the first blockchain node as an example, the first blockchain node may send a credit accumulation message for the service node to the master node, where the credit accumulation message is used to indicate a service transaction request, the master node may construct a node credit parameter for the service node based on the credit accumulation message, count the trans-regional transactions and the regular transactions of the service node in half a year, accumulate the value of the node credit parameter (i.e., node contract credit), and if the node contract credit accumulates to 90 in half a year, determine that the node contract credit meets a contract triggering condition, and may send a credit standard reaching message to the first blockchain node. The first blockchain node may trigger a business transaction contract to issue 20 ten thousand digital assets to the business node based on the credit qualifying message. Or the contract triggering condition is that the credit score reaches 90, namely the credit triggering threshold is 90, the node chain identifier and the credit acquisition permission of the service node can be acquired, a credit acquisition request is sent to the master node based on the node chain identifier and the credit acquisition permission, the credit acquisition request is used for indicating the service transaction request, and the master node can acquire the current node statistics credit of the service node based on the credit acquisition request and serve as the node contract credit of the service node; the first blockchain node may obtain node contract credits for the service node, and when the node contract credits reach 90, trigger a service transaction contract to issue 20 ten thousand digital assets to the service node.
Through the above process, more reliable, real-time and accurate credit can be adopted to evaluate the service node, so that the feasibility of credit-dependent transaction requested by the service transaction request of the service node is determined, and the safety and reliability of transaction management are improved.
Further optionally, if the first blockchain node is an asset trading node, a trading credit contract may be deployed; the first blockchain node is a node that receives a network access request sent by a service node. When the first blockchain node is a trans-regional asset transaction node, a trans-regional transaction credit contract is deployed; when the first blockchain node is a regular asset trading node, a regular trading credit contract is deployed. And when the first transaction data of the service node is received, acquiring the node type of the first blockchain node, and if the first transaction data is not matched with the node type of the first blockchain node, sending a transaction failure message to the service node. If the regional transaction type of the first transaction data is a cross-regional transaction type, the node type of the first blockchain node is a regular node type, or the regional transaction type of the first transaction data is a regular transaction type, and the node type of the first blockchain node is a cross-regional node type, the first transaction data and the node type of the first blockchain node can be considered to be not matched. If the first transaction data is matched with the node type of the first blockchain node, executing a first transaction service based on the first transaction data, generating second transaction data according to the first transaction data and the first transaction service, and performing uplink processing on the second transaction data, wherein the second transaction data is added into a cross-regional sub-blockchain when the first blockchain node is a cross-regional asset transaction node, and the second transaction data is added into a conventional sub-blockchain when the first blockchain node is a conventional asset transaction node; and when the second transaction data is successfully uplink, invoking a transaction credit contract, acquiring second credit related data from the second transaction data through the transaction credit contract, and transmitting the second credit related data to the master node so that the master node updates node statistics credit of the service node based on the second credit related data. By dividing the cross-regional transaction and the conventional transaction into the network and separately managing, generally, for the transaction of the same regional transaction type, the parameters influencing the credit are the same, so that the unified management of the transaction credit contract is realized, the transaction credit contract is more concise, the feedback of the credit is more convenient to edit, and the transaction management is more convenient.
Further, referring to fig. 6, fig. 6 is a schematic diagram of transaction processing interaction provided in the embodiment of the present application, as shown in fig. 6, and described in three parts of transaction processing, such as basic credit management 6a, transaction credit accumulation 6b, and credit-dependent transaction processing 6 c. Specifically, the transaction process may include the steps of:
in the basic credit management 6a, the procedure is as follows:
step S601, a network access request is sent.
In the embodiment of the application, the service node may send a network access request to the master node.
Step S602, determining a basic credit score of the service node.
In this embodiment of the present application, the master node may obtain base node information of the service node, and determine a base credit score of the service node based on the base node information, which may be specifically described with reference to step S301 in fig. 3.
Based on the basic credit management 6a, transaction credit accumulation 6b or credit-dependent transaction processing 6c may be performed on the service node, and in particular, the transaction credit accumulation 6b proceeds as follows:
step S603, transmitting transaction data.
In the embodiment of the present application, the service node may send transaction data to the asset transaction node, as in step S603, and send transaction data to the trans-regional asset transaction node. Further, if the transaction data matches the node type of the transregional asset transaction node, then step S604 is performed; if the transaction data does not match the node type of the transregional asset transaction node, step S605 is executed to send a transaction failure message to the service node. Wherein, for the transregional asset transaction node, the transaction data with the regional transaction type being the transregional transaction type is matched with the node type of the transregional asset transaction node. Reference is specifically made to the description above regarding the first blockchain node being an asset transaction node.
Step S604, matching with the transaction data, executing the transaction data.
In the embodiment of the present application, when the transaction data is matched with the node type, the cross-regional asset transaction node executes the transaction service corresponding to the transaction data, generates a cross-regional transaction block according to the transaction data and the transaction service, and adds the cross-regional transaction block to the cross-regional sub-block chain, so as to execute step S605.
Step S605, credit-related data is transmitted.
In this embodiment of the present application, the cross-regional transaction node may invoke a cross-regional transaction credit contract, obtain credit association data corresponding to the transaction data, and send the credit association data to the master node, where the master node may obtain transaction credits corresponding to the credit association data based on the credit association data, update node statistics credits of the service node based on the transaction credits, as described in steps S302 to S303 in fig. 3, and end the processing procedure for the transaction data.
Step S606, a transaction failure message is sent.
In the embodiment of the present application, the transregional asset transaction node may send a transaction failure message to the service node, and step S607 is performed.
In step S607, transaction data is transmitted.
In the embodiment of the present application, the service node transmits transaction data to the regular asset transaction node, so that the regular transaction node performs the related process as step S604 to step S605.
Similarly, if in step S603 the transaction node sends transaction data to the regular asset transaction node, the regular asset transaction node may perform the relevant process as in step S604 to step S607, except that in step S604, when the area transaction type of the transaction data is the regular transaction type, the regular asset transaction node matches the transaction data, and in step S604, a regular transaction block is generated according to the transaction data and the transaction service, and the regular transaction block is added to the regular sub-block chain.
Wherein the credit-dependent transaction processing 6c proceeds as follows:
step S608, a service transaction request is sent.
In the embodiment of the application, the service node sends a service transaction request to the master node.
Step S609, node contract credit of the service node is acquired.
In the embodiment of the present application, the master node may obtain the node contract credit of the service node based on the service transaction request, specifically referring to the related description in step S501 to step S502 in fig. 5. If the node contract credit satisfies the contract trigger condition, step S610 is performed.
Step S610, a contract execution process is executed.
In the embodiment of the present application, the master node performs the contract execution process, which may be described with reference to step S503 of fig. 5.
Through the above process, transaction management on the service node can be realized, including executing transaction service corresponding to the service node, credit-dependent transaction and the like, so that convenience and accuracy of credit management on the service node are improved, and security of transaction processing of the service node is improved.
Further, referring to fig. 7, fig. 7 is a schematic diagram of a blockchain transaction management device according to an embodiment of the present application. The blockchain transaction management device may be a computer program (including program code, etc.) running in a computer apparatus, for example, the blockchain transaction management device may be an application software; the device can be used for executing corresponding steps in the method provided by the embodiment of the application. As shown in fig. 7, the blockchain transaction management device 700 may be used in the computer apparatus of the embodiment corresponding to fig. 3, and specifically, the device may include: an information acquisition module 11, a basic processing module 12, a basic chaining module 13, a data receiving module 14, a coefficient acquisition module 15, a transaction processing module 16 and a credit counting module 17.
The information acquisition module 11 is configured to receive a network access request sent by a service node, and acquire base node information of the service node;
a base processing module 12 for determining a base credit score for the service node based on the base node information;
a basic uplink module 13, configured to perform uplink processing on basic node information and basic credit scores;
a data receiving module 14, configured to receive first credit-related data sent by the asset transaction node;
the coefficient obtaining module 15 is configured to determine a data credit coefficient corresponding to the first credit association data based on a node type of the asset transaction node;
the transaction processing module 16 is configured to perform credit determination on the first credit-related data by using the data credit coefficient, so as to obtain a transaction credit score corresponding to the first credit-related data; the node types of the asset transaction nodes comprise cross-region node types and conventional node types;
the credit statistics module 17 is configured to update node statistics credits of the service node according to the base credit score and the transaction credit score.
Wherein the basic processing module 12 comprises:
a parameter processing unit 121, configured to obtain N information parameters that form the basic node information, and perform hash conversion on the N information parameters to obtain information hashes corresponding to the N information parameters respectively; n is a positive integer;
The parameter integration unit 122 is configured to perform numerical conversion on the N information hashes to obtain parameter credit data corresponding to the N information hashes, and integrate the N parameter credit data to obtain a basic credit score of the service node.
Wherein the apparatus 700 further comprises:
the sample acquiring module 18 is configured to acquire a node information sample, and sample node scores of the M blockchain nodes for the node information sample respectively, and determine a sample credit score of the node information sample according to the M sample node scores; m is a positive integer;
the sample prediction module 19 is configured to input a node information sample into the initial information scoring model to perform prediction, so as to obtain a sample prediction score corresponding to the node information sample;
the parameter adjustment module 20 is configured to perform parameter adjustment on the initial information scoring model according to the sample credit score and the sample prediction score to obtain an information scoring model;
the basic processing module 12 is specifically configured to:
and inputting the basic node information into an information scoring model for prediction to obtain a basic credit score of the service node.
The coefficient obtaining module 15 is specifically configured to:
if the asset transaction node is a trans-regional asset transaction node, determining the trans-regional coefficient as a data credit coefficient corresponding to the first credit associated data;
If the asset transaction node is a conventional asset transaction node, determining a conventional coefficient as a data credit coefficient corresponding to the first credit association data;
the transaction processing module 16 is specifically configured to:
and determining a transaction basic score according to the first credit association data, and adjusting the transaction basic score by adopting a data credit coefficient to obtain a transaction credit score corresponding to the first credit association data.
Wherein the transaction processing module 16 comprises:
a single-segment detection unit 161, configured to detect a service processing state of the first credit-related data in a corresponding transaction service if the first credit-related data corresponds to a single-segment transaction type in the first transaction types, and perform credit determination on the first credit-related data by using a data credit coefficient when the service processing state is a service processing completion state, so as to obtain a transaction credit score corresponding to the first credit-related data;
the credit scoring unit 162 is configured to determine the credit of the first credit-related data by using the data credit coefficient if the first credit-related data corresponds to the second transaction type or corresponds to multiple transaction types in the first transaction type, so as to obtain a transaction credit score corresponding to the first credit-related data; the processing time of the transaction traffic of the first transaction type is greater than the processing time of the transaction traffic of the second transaction type.
Wherein the apparatus 700 further comprises:
a type determining module 21, configured to obtain a first asset type related to a service node from a trans-regional asset transaction node, and obtain a second asset type of the service node from a regular asset transaction node;
the coefficient updating module 22 is configured to obtain a resource pair conversion rate between the first asset type and the second asset type, and determine data credit coefficients corresponding to the cross-regional node type and the regular node type respectively based on the asset pair conversion rate.
Wherein the apparatus 700 further comprises:
a transaction acquisition module 23, configured to acquire historical trans-regional transaction information generated by the service node from trans-regional asset transaction nodes, and acquire historical regular transaction information generated by the service node from regular asset transaction nodes; the historical trans-regional transaction information comprises historical trans-regional transaction times and historical trans-regional transaction data volume; the historical conventional transaction information comprises historical conventional transaction times and historical conventional transaction data volume;
the coefficient determining module 24 is configured to determine data credit coefficients corresponding to the cross-regional node types and the regular node types respectively according to the historical cross-regional transaction information and the historical regular transaction information; the data credit coefficient corresponding to the cross-regional node type is in direct proportion to the historical cross-regional transaction times and the historical cross-regional transaction data volume, and is in inverse proportion to the historical conventional transaction times and the historical conventional transaction data volume; the data credit coefficient corresponding to the conventional node type is in direct proportion to the historical conventional transaction times and the historical conventional transaction data quantity, and is in inverse proportion to the historical trans-regional transaction times and the historical trans-regional transaction data quantity.
Wherein the apparatus 700 further comprises:
a contract construction module 25, configured to receive a service transaction request sent by a service node, and construct a service transaction contract for the service node based on the service transaction request; the business transaction contract comprises a contract trigger condition and a contract executing process;
a parameter construction module 26, configured to construct node credit parameters for the service node;
a parameter updating module 27, configured to update the node credit parameter based on the contract trigger condition, to obtain node contract credit of the service node;
the contract execution module 28 is configured to invoke a business transaction contract if the node contract credit meets the contract trigger condition, and execute a contract execution process through the business transaction contract.
The parameter updating module 27 is specifically configured to:
if the contract triggering condition comprises a credit triggering threshold value, assigning the node statistics credit to the node credit parameter to obtain node contract credit of the service node;
if the contract triggering condition comprises a credit triggering threshold value and a credit counting period, acquiring cross-regional transaction data and conventional transaction data generated by the service node in the credit counting period, and updating node credit parameters according to the cross-regional transaction data and the conventional transaction data to obtain node contract credit of the service node;
If the contract triggering condition comprises a credit triggering threshold and a credit counting period, updating a node credit parameter based on node counting credit of the service node in the credit counting period to obtain node contract credit of the service node.
Wherein the contract execution module 28 includes:
the signature obtaining unit 281 is configured to invoke a service transaction contract if the node contract credit meets the contract trigger condition, obtain an address signature through the service transaction contract, and obtain an asset address public key corresponding to the service transaction contract;
the asset acquisition unit 282 is configured to verify the address signature by using the public key of the asset address, and if the address signature passes the verification, acquire an amount of data to be transferred in the contract execution process, and acquire a service request asset corresponding to the amount of data to be transferred from the asset address;
asset transfer unit 283 is configured to transfer the service request asset to a service node.
Wherein the apparatus 700 further comprises:
a base calling module 29, configured to execute a process of acquiring base node information of the service node if the first blockchain node is a master node; the first block chain node is a node for receiving a network access request sent by the service node;
The network access forwarding module 30 is configured to send a node network access message for the service node to the master node if the first blockchain node is not the master node, so that the master node obtains base node information of the service node based on the node network access message, and determines a base credit score of the service node.
Wherein the apparatus 700 further comprises:
a contract deployment module 31 for deploying a transaction credit contract if the first blockchain node is an asset transaction node; the first block chain node is a node for receiving a network access request sent by the service node;
the failure feedback module 32 is configured to, when receiving the first transaction data of the service node, obtain a node type of the first blockchain node, and if the first transaction data does not match the node type of the first blockchain node, send a transaction failure message to the service node;
the transaction uplink module 33 is configured to execute a first transaction service based on the first transaction data if the first transaction data matches a node type of the first blockchain node, generate second transaction data according to the first transaction data and the first transaction service, and perform uplink processing on the second transaction data;
and the data sending module 34 is configured to invoke a transaction credit contract when the second transaction data is successfully uplink, obtain second credit-related data from the second transaction data through the transaction credit contract, and send the second credit-related data to the master node, so that the master node updates the node statistics credit of the service node based on the second credit-related data.
The embodiment of the application provides a blockchain transaction management device, which can receive a network access request sent by a service node, acquire basic node information of the service node, determine basic credit scores of the service node based on the basic node information, and perform uplink processing on the basic node information and the basic credit scores; receiving first credit associated data sent by an asset transaction node, determining a data credit coefficient corresponding to the first credit associated data based on the node type of the asset transaction node, and performing credit determination on the first credit associated data by adopting the data credit coefficient to obtain a transaction credit score corresponding to the first credit associated data; the node types of the asset transaction nodes comprise cross-region node types and conventional node types; and updating the node statistics credit of the service node according to the basic credit score and the transaction credit score. That is, the basic information of the service node is adopted to construct a basic credit score, namely a basic credit score, as the reference of the service node, and on the basis, the data related to the transaction performed by the service node, namely the first credit related data, is introduced into the credit score of the service node, so that the credit of the service node can be updated and changed along with the transaction performed by the service node, thereby realizing the consideration diversification of the credit and improving the flexibility and accuracy of the credit determination. Moreover, for the service node, the updating of the credit by the transaction is influenced by the node type (namely the transaction type), so that the distinction between the cross-regional transaction and the conventional transaction of the service node is realized, and the flexibility of credit determination is further improved.
Referring to fig. 8, fig. 8 is a schematic structural diagram of a computer device according to an embodiment of the present application. As shown in fig. 8, the computer device in the embodiment of the present application may include: one or more processors 801, memory 802, and input-output interfaces 803. The processor 801, memory 802, and input-output interface 803 are connected via a bus 804. The memory 802 is configured to store a computer program, where the computer program includes program instructions, and the input/output interface 803 is configured to receive data and output data, such as for data interaction between blockchain nodes, such as for data interaction between business nodes and trans-regional asset transaction nodes and regular asset transaction nodes, such as for data interaction between business nodes and master nodes, such as for data interaction between trans-regional asset transaction nodes or regular asset transaction nodes and master nodes; the processor 801 is configured to execute program instructions stored in the memory 802.
The processor 801 may perform the following operations, among others:
receiving a network access request sent by a service node, acquiring basic node information of the service node, determining a basic credit score of the service node based on the basic node information, and performing uplink processing on the basic node information and the basic credit score;
Receiving first credit associated data sent by an asset transaction node, determining a data credit coefficient corresponding to the first credit associated data based on the node type of the asset transaction node, and performing credit determination on the first credit associated data by adopting the data credit coefficient to obtain a transaction credit score corresponding to the first credit associated data; the node types of the asset transaction nodes comprise cross-region node types and conventional node types;
and updating the node statistics credit of the service node according to the basic credit score and the transaction credit score.
In some possible implementations, the processor 801 may be a central processing unit (central processing unit, CPU), which may also be other general purpose processors, digital signal processors (digital signal processor, DSP), application specific integrated circuits (application specific integrated circuit, ASIC), off-the-shelf programmable gate arrays (field-programmable gate array, FPGA) or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, or the like. A general purpose processor may be a microprocessor or the processor may be any conventional processor or the like.
The memory 802 may include read only memory and random access memory, and provides instructions and data to the processor 801 and the input output interface 803. A portion of memory 802 may also include non-volatile random access memory. For example, the memory 802 may also store information of device type.
In a specific implementation, the computer device may execute, through each functional module built in the computer device, an implementation manner provided by each step in fig. 3 or fig. 5, and specifically, the implementation manner provided by each step in fig. 3 or fig. 5 may be referred to, which is not described herein again.
Embodiments of the present application provide a computer device, comprising: the processor, the input/output interface and the memory are used for acquiring a computer program in the memory through the processor, executing the steps of the method shown in fig. 3 or fig. 5 and performing blockchain transaction management operation. The embodiment of the application realizes that the network access request sent by the service node is received, the basic node information of the service node is obtained, the basic credit score of the service node is determined based on the basic node information, and the basic node information and the basic credit score are subjected to uplink processing; receiving first credit associated data sent by an asset transaction node, determining a data credit coefficient corresponding to the first credit associated data based on the node type of the asset transaction node, and performing credit determination on the first credit associated data by adopting the data credit coefficient to obtain a transaction credit score corresponding to the first credit associated data; the node types of the asset transaction nodes comprise cross-region node types and conventional node types; and updating the node statistics credit of the service node according to the basic credit score and the transaction credit score. That is, the basic information of the service node is adopted to construct a basic credit score, namely a basic credit score, as the reference of the service node, and on the basis, the data related to the transaction performed by the service node, namely the first credit related data, is introduced into the credit score of the service node, so that the credit of the service node can be updated and changed along with the transaction performed by the service node, thereby realizing the consideration diversification of the credit and improving the flexibility and accuracy of the credit determination. Moreover, for the service node, the updating of the credit by the transaction is influenced by the node type (namely the transaction type), so that the distinction between the cross-regional transaction and the conventional transaction of the service node is realized, and the flexibility of credit determination is further improved.
The embodiment of the present application further provides a computer readable storage medium, where the computer readable storage medium stores a computer program, where the computer program is adapted to be loaded by the processor and execute the blockchain transaction management method provided by each step in fig. 3 or fig. 5, and specifically refer to an implementation manner provided by each step in fig. 3 or fig. 5, which is not described herein again. In addition, the description of the beneficial effects of the same method is omitted. For technical details not disclosed in the embodiments of the computer-readable storage medium according to the present application, please refer to the description of the method embodiments of the present application. As an example, a computer program may be deployed to be executed on one computer device or on multiple computer devices at one site or distributed across multiple sites and interconnected by a communication network.
The computer readable storage medium may be a blockchain transaction management device provided in any of the foregoing embodiments or an internal storage unit of the computer device, such as a hard disk or a memory of the computer device. The computer readable storage medium may also be an external storage device of the computer device, such as a plug-in hard disk, a Smart Media Card (SMC), a Secure Digital (SD) card, a flash card (flash card) or the like, which are provided on the computer device. Further, the computer-readable storage medium may also include both internal storage units and external storage devices of the computer device. The computer-readable storage medium is used to store the computer program and other programs and data required by the computer device. The computer-readable storage medium may also be used to temporarily store data that has been output or is to be output.
Embodiments of the present application also provide a computer program product or computer program comprising computer instructions stored in a computer-readable storage medium. The processor of the computer device reads the computer instructions from the computer readable storage medium, and executes the computer instructions, so that the computer device executes the method provided in various alternative modes in fig. 3 or fig. 5, thereby implementing the adoption of the basic information of the service node itself to construct a basic credit score, namely, the basic credit score, as the reference of the service node, and on the basis, introducing the data related to the transaction performed by the service node, namely, the first credit related data, into the credit score of the service node, so that the credit of the service node is updated and changed along with the transaction performed by the service node, realizing the consideration diversification of the credit, and improving the flexibility and accuracy of the credit determination. Moreover, for the service node, the updating of the credit by the transaction is influenced by the node type (namely the transaction type), so that the distinction between the cross-regional transaction and the conventional transaction of the service node is realized, and the flexibility of credit determination is further improved.
The terms first, second and the like in the description and in the claims and drawings of the embodiments of the present application are used for distinguishing between different objects and not for describing a particular sequential order. Furthermore, the term "include" and any variations thereof is intended to cover a non-exclusive inclusion. For example, a process, method, apparatus, article, or device that comprises a list of steps or elements is not limited to the list of steps or modules but may, in the alternative, include other steps or modules not listed or inherent to such process, method, apparatus, article, or device.
Those of ordinary skill in the art will appreciate that the various illustrative elements and algorithm steps described in connection with the embodiments disclosed herein may be implemented as electronic hardware, apparatus software, or combinations of both, and the various illustrative elements and steps have been described generally in terms of functionality in this description to clearly illustrate this interchangeability of hardware and software. Whether such functionality is implemented as hardware or software depends upon the particular application and design constraints imposed on the solution. Skilled artisans may implement the described functionality in varying ways for each particular application, but such implementation decisions should not be interpreted as causing a departure from the scope of the present application.
The methods and related devices provided in the embodiments of the present application are described with reference to the method flowcharts and/or structure diagrams provided in the embodiments of the present application, and each flowchart and/or block of the method flowcharts and/or structure diagrams may be implemented by computer program instructions, and combinations of flowcharts and/or blocks in the flowchart and/or block diagrams. These computer program instructions may be provided to a processor of a general purpose computer, special purpose computer, embedded processor, or other programmable blockchain transaction management device to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable blockchain transaction management device, create means for implementing the functions specified in the flowchart block or blocks. These computer program instructions may also be stored in a computer-readable memory that can direct a computer or other programmable blockchain transaction management device 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 structural diagram block or blocks. These computer program instructions may also be loaded onto a computer or other programmable blockchain transaction management device to cause a series of operational steps to be performed on the computer or other programmable device to produce a computer implemented process such that the instructions which execute on the computer or other programmable device provide steps for implementing the functions specified in the flowchart block or blocks.
The steps in the method of the embodiment of the application can be sequentially adjusted, combined and deleted according to actual needs.
The modules in the device of the embodiment of the application can be combined, divided and deleted according to actual needs.
The foregoing disclosure is only illustrative of the preferred embodiments of the present application and is not intended to limit the scope of the claims herein, as the equivalent of the claims herein shall be construed to fall within the scope of the claims herein.
Claims (16)
1. A blockchain transaction management method, the method comprising:
receiving a network access request sent by a service node, acquiring basic node information of the service node, determining a basic credit score of the service node based on the basic node information, and performing uplink processing on the basic node information and the basic credit score;
receiving first credit associated data sent by an asset transaction node, determining a data credit coefficient corresponding to the first credit associated data based on the node type of the asset transaction node, and performing credit determination on the first credit associated data by adopting the data credit coefficient to obtain a transaction credit score corresponding to the first credit associated data; the node types of the asset transaction nodes comprise cross-region node types and conventional node types;
And updating the node statistics credit of the service node according to the basic credit score and the transaction credit score.
2. The method of claim 1, wherein the determining the base credit score for the service node based on the base node information comprises:
acquiring N information parameters forming the basic node information, and performing hash conversion on the N information parameters to obtain information hashes respectively corresponding to the N information parameters; n is a positive integer;
and carrying out numerical conversion on the N information hashes to obtain parameter credit data corresponding to the N information hashes respectively, and carrying out integration processing on the N parameter credit data to obtain a basic credit score of the service node.
3. The method of claim 1, wherein the method further comprises:
acquiring node information samples, and determining sample credit scores of the node information samples according to sample node scores of M blockchain nodes aiming at the node information samples respectively; m is a positive integer;
inputting the node information sample into an initial information scoring model for prediction to obtain a sample prediction score corresponding to the node information sample;
According to the sample credit score and the sample prediction score, carrying out parameter adjustment on the initial information scoring model to obtain an information scoring model;
the determining the basic credit score of the service node based on the basic node information comprises:
and inputting the basic node information into the information scoring model for prediction to obtain the basic credit score of the service node.
4. The method of claim 1, wherein the determining the data credit coefficient corresponding to the first credit-related data based on the node type of the asset transaction node comprises:
if the asset transaction node is a trans-regional asset transaction node, determining a trans-regional coefficient as a data credit coefficient corresponding to the first credit-related data;
if the asset transaction node is a conventional asset transaction node, determining a conventional coefficient as a data credit coefficient corresponding to the first credit-related data;
the credit determining of the first credit related data by using the data credit coefficient, to obtain a transaction credit score corresponding to the first credit related data, includes:
and determining a transaction basic score according to the first credit related data, and adjusting the transaction basic score by adopting the data credit coefficient to obtain a transaction credit score corresponding to the first credit related data.
5. The method of claim 1, wherein said employing the data credit coefficient to credit the first credit-related data to obtain a transaction credit score corresponding to the first credit-related data comprises:
if the first credit related data corresponds to a single-segment transaction type in a first transaction type, detecting a service processing state of the first credit related data in a corresponding transaction service, and when the service processing state is a service processing completion state, performing credit determination on the first credit related data by adopting the data credit coefficient to obtain a transaction credit score corresponding to the first credit related data;
if the first credit association data corresponds to a second transaction type or corresponds to a plurality of sections of transaction types in the first transaction type, credit determination is carried out on the first credit association data by adopting the data credit coefficient, so as to obtain a transaction credit score corresponding to the first credit association data; the processing time of the transaction service of the first transaction type is longer than the processing time of the transaction service of the second transaction type.
6. The method of claim 1, wherein the method further comprises:
Acquiring a first asset type related to the service node from a trans-regional asset transaction node, and acquiring a second asset type of the service node from a conventional asset transaction node;
and acquiring a resource pair conversion rate between the first asset type and the second asset type, and determining data credit coefficients respectively corresponding to the transregional node type and the conventional node type based on the asset pair conversion rate.
7. The method of claim 1, wherein the method further comprises:
acquiring historical trans-regional transaction information generated by the service node from trans-regional asset transaction nodes, and acquiring historical conventional transaction information generated by the service node from conventional asset transaction nodes; the historical trans-regional transaction information comprises historical trans-regional transaction times and historical trans-regional transaction data volume; the historical conventional transaction information comprises historical conventional transaction times and historical conventional transaction data volume;
determining data credit coefficients respectively corresponding to the transregional node type and the conventional node type according to the historical transregional transaction information and the historical conventional transaction information; the data credit coefficient corresponding to the transregional node type is in direct proportion to the historical transregional transaction times and the historical transregional transaction data volume, and is in inverse proportion to the historical conventional transaction times and the historical conventional transaction data volume; the data credit coefficient corresponding to the regular node type is in direct proportion to the historical regular transaction times and the historical regular transaction data volume, and is in inverse proportion to the historical trans-regional transaction times and the historical trans-regional transaction data volume.
8. The method of claim 1, wherein the method further comprises:
receiving a service transaction request sent by the service node, and constructing a service transaction contract for the service node based on the service transaction request; the business transaction contract comprises a contract triggering condition and a contract executing process;
constructing node credit parameters aiming at the service node, and updating the node credit parameters based on the contract trigger condition to obtain node contract credit of the service node;
and if the node contract credit meets the contract trigger condition, calling the business transaction contract, and executing the contract executing process through the business transaction contract.
9. The method of claim 8, wherein updating the node credit parameter based on the contract trigger condition results in node contract credits for the service node, comprising:
if the contract trigger condition comprises a credit trigger threshold, assigning the node statistical credit to the node credit parameter to obtain node contract credit of the service node;
if the contract triggering condition comprises the credit triggering threshold value and a credit counting period, acquiring cross-regional transaction data and conventional transaction data generated by the service node in the credit counting period, and updating the node credit parameter according to the cross-regional transaction data and the conventional transaction data to obtain node contract credit of the service node;
And if the contract triggering condition comprises the credit triggering threshold and a credit counting period, updating the node credit parameter based on the node counting credit of the service node in the credit counting period to obtain the node contract credit of the service node.
10. The method of claim 8, wherein the invoking the business transaction contract if the node contract credit meets the contract trigger condition, performing the contract execution process with the business transaction contract, comprises:
if the node contract credit meets the contract triggering condition, calling the business transaction contract, and acquiring an address signature and an asset address public key corresponding to the business transaction contract through the business transaction contract;
the address signature is checked by adopting the asset address public key, if the address signature passes the check, the data quantity to be transferred in the contract executing process is obtained, and the service request asset corresponding to the data quantity to be transferred is obtained from the asset address;
and transferring the service request asset to the service node.
11. The method of claim 1, wherein the method further comprises:
If the first block chain node is the master node, executing the process of acquiring the basic node information of the service node; the first blockchain node is a node for receiving a network access request sent by a service node;
if the first blockchain node is not the master node, sending a node networking message aiming at the service node to the master node so that the master node obtains the basic node information of the service node based on the node networking message and determines the basic credit score of the service node.
12. The method of claim 1, wherein the method further comprises:
if the first blockchain node is an asset transaction node, deploying a transaction credit contract; the first blockchain node is a node for receiving a network access request sent by a service node;
when first transaction data of the service node is received, acquiring the node type of the first blockchain node, and if the first transaction data is not matched with the node type of the first blockchain node, sending a transaction failure message to the service node;
if the first transaction data is matched with the node type of the first blockchain node, executing a first transaction service based on the first transaction data, generating second transaction data according to the first transaction data and the first transaction service, and performing uplink processing on the second transaction data;
And when the second transaction data is successfully uplink, the transaction credit contract is called, second credit association data is acquired from the second transaction data through the transaction credit contract, and the second credit association data is sent to a master node, so that the master node updates the node statistics credit of the service node based on the second credit association data.
13. A blockchain transaction management device, the device comprising:
the information acquisition module is used for receiving a network access request sent by a service node and acquiring basic node information of the service node;
a base processing module, configured to determine a base credit score of the service node based on the base node information;
the basic uplink module is used for carrying out uplink processing on the basic node information and the basic credit score;
the data receiving module is used for receiving the first credit association data sent by the asset transaction node;
the coefficient acquisition module is used for determining a data credit coefficient corresponding to the first credit association data based on the node type of the asset transaction node;
the transaction processing module is used for carrying out credit determination on the first credit related data by adopting the data credit coefficient to obtain a transaction credit score corresponding to the first credit related data; the node types of the asset transaction nodes comprise cross-region node types and conventional node types;
And the credit counting module is used for updating the node counting credit of the service node according to the basic credit score and the transaction credit score.
14. A computer device, comprising a processor, a memory, and an input-output interface;
the processor is connected to the memory and the input/output interface, respectively, wherein the input/output interface is used for receiving data and outputting data, the memory is used for storing a computer program, and the processor is used for calling the computer program to enable the computer device to execute the method of any one of claims 1-12.
15. A computer readable storage medium, characterized in that the computer readable storage medium stores a computer program adapted to be loaded and executed by a processor to cause a computer device having the processor to perform the method of any of claims 1-12.
16. A computer program product comprising computer programs/instructions which, when executed by a processor, implement the method of any of claims 1-12.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202311465222.6A CN117522551A (en) | 2023-11-06 | 2023-11-06 | Blockchain transaction management method, device, equipment, storage medium and program product |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202311465222.6A CN117522551A (en) | 2023-11-06 | 2023-11-06 | Blockchain transaction management method, device, equipment, storage medium and program product |
Publications (1)
Publication Number | Publication Date |
---|---|
CN117522551A true CN117522551A (en) | 2024-02-06 |
Family
ID=89761757
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202311465222.6A Pending CN117522551A (en) | 2023-11-06 | 2023-11-06 | Blockchain transaction management method, device, equipment, storage medium and program product |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN117522551A (en) |
-
2023
- 2023-11-06 CN CN202311465222.6A patent/CN117522551A/en active Pending
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN108513669B (en) | Crowd funding information processing method and device based on block chain, storage medium and electronic equipment | |
US11669832B2 (en) | Blockchain-implemented method and system for access control on remote internet-enabled resources | |
CN111427957B (en) | Block chain voting information verification method, device, equipment and storage medium | |
CN110838065B (en) | Transaction data processing method and device | |
CN112632629B (en) | Voting management method, device, medium and electronic equipment based on block chain | |
US11568401B2 (en) | Digital payment system | |
CN110780847B (en) | Random number generation method, random number generation device and electronic equipment | |
CN109559228B (en) | Resource transfer method, device, computer equipment and readable storage medium | |
CN109598147B (en) | Data processing method and device based on block chain and electronic equipment | |
CN111339141B (en) | Data transmission method, block chain node equipment and medium | |
CN111311211A (en) | Data processing method and device based on block chain | |
CN113221191B (en) | Block chain-based data evidence storage method, device, equipment and storage medium | |
CN110634065A (en) | Block chain-based loan information processing method, device, equipment and storage medium | |
CN111461881A (en) | Data management method and device, computer equipment and storage medium | |
CN112990921A (en) | Data processing method and device based on block chain, computer and storage medium | |
CN109859001A (en) | A kind of method and device carrying out source of houses update based on block chain | |
CN111008251A (en) | Data processing method and equipment | |
CN110910099A (en) | Method for realizing labor contract and related equipment | |
CN112561384B (en) | Engine-based data processing method, device, equipment and readable storage medium | |
CN112668783B (en) | Aircraft-based data processing method, device, equipment and readable storage medium | |
CN117522551A (en) | Blockchain transaction management method, device, equipment, storage medium and program product | |
CN114154996A (en) | Cross-block-chain data transfer method and system, storage medium and terminal | |
CN111553796A (en) | Exchange rate management method and device and computer readable storage medium | |
CN113626881B (en) | Object evaluation method, device, electronic equipment and storage medium | |
CN112561198B (en) | Block chain-based data processing method, device, equipment and readable storage medium |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication |