IP Library Granted Patent US 11,055,792
Granted Patent B2
US 11,055,792 · App. 16/803,955 · Granted Jul 6, 2021

Blockchain-based service source tracing method, apparatus, and electronic device

Inventors: Xu Wang (Hangzhou, CN); Zhaolin Feng (Hangzhou, CN)
Assignee: Advanced New Technologies Co., Ltd.
G06Q40/12G06F16/2379G06F16/27G06Q10/10G06Q20/38215G06Q30/04G06Q40/02
View Patent ↗
Loading inventors, assignments & file history…
Monitor This Case
Get email alerts when status or documents change.
Order Certified Copies
Most orders are placed with the USPTO same day — all within 24 business hours.
Order via The Patent Place →
Pre-filled with this patent's details
Quick Facts
Patent No.
US 11,055,792
App. No.
16/803,955
Granted
Jul 6, 2021
Kind
B2
Abstract

Computer-implemented methods, non-transitory, computer-readable media, and computer-implemented systems for blockchain-based service source tracing are provided. A blockchain stores service certificates of multiple service dimensions which constitute multiple service certificate linked lists. A service system maintains a mapping relationship between a last node of each service certificate linked list and a service index of a service dimension that each service certificate linked list belongs to. In response to a client-initiated service source tracing request for a target service dimension that includes a service index of the target service dimension, the mapping relationship is queried to determine the last node corresponding to the service index of the target service dimension. A service certificate of the target service dimension stored on the blockchain is queried based on a linked list pointer recorded in the last node. The identified service certificate is returned to the client.

Claims (75)

1. A computer-implemented method for blockchain-based service source tracing, comprising:

receiving, by a service system, a service source tracing request from a client for a target service dimension of a plurality of service dimensions, wherein service certificates of the plurality of service dimensions are stored on a blockchain, the service certificates of the plurality of service dimensions form a plurality of service certificate linked lists, and the service system maintains a mapping relationship between a last node of each of the plurality of service certificate linked lists and a corresponding service index of a service dimension that each of the plurality of service certificate linked lists belongs to, wherein the service source tracing request comprises a service index of the target service dimension;

in response to the service source tracing request, querying, by the service system, the mapping relationship to determine a last node corresponding to the service index of the target service dimension;

querying, by the service system, a service certificate of the target service dimension stored on the blockchain based on a linked list pointer recorded in the last node; and

returning, by the service system, the service certificate of the target service dimension to the client, wherein the computer-implemented method further comprises:

monitoring the service certificate of the target service dimension stored on the blockchain;

in response to detecting that the blockchain stores a target service certificate of a newly added node in a target service certificate linked list corresponding to the target service dimension, updating the service index of the target service dimension from an unlocked state to a locked state, and updating the last node of the target service certificate linked list into the target service certificate; and

after the last node of the target service certificate linked list is updated into the target service certificate, updating the service certificate of the target service dimension from a locked state to an unlocked state.

2. The computer-implemented method according to claim 1 , wherein:

the service certificate of the target service dimension comprises a plurality of pointer fields, and the plurality of pointer fields correspond to different service dimensions, respectively;

the plurality of pointer fields comprise linked list pointers; and

the service certificates of the plurality of service dimensions stored on the blockchain form the plurality of service certificate linked lists based on the linked list pointers in the plurality of pointer fields of the service certificates.

3. The computer-implemented method according to claim 2 , wherein at least one of the linked list pointers is a hash pointer.

4. The computer-implemented method according to claim 1 , wherein at least one of the plurality of the service certificate linked lists is a one-way linked list.

5. The computer-implemented method according to claim 1 , wherein at least one of the plurality of the service certificate linked lists comprises:

a first-type service certificate linked list comprising service certificates of a same service at different service stages stored on the blockchain in an order of service stages; or

a second-type service certificate linked list comprising service certificates of plurality of services stored on the blockchain in an order of service occurrences.

6. The computer-implemented method according to claim 5 , wherein the first-type service certificate linked list is a linked list comprising a billing certificate, a payment certificate, a write-off certificate, and a settlement certificate of a same payment agency collection service in an order of service stages of the same payment agency collection service.

7. The computer-implemented method according to claim 5 , wherein the second-type service certificate linked list comprises one of:

a plurality of billing certificates in an order of billing occurrences;

a plurality of payment certificates in an order of payment occurrences;

a plurality of write-off certificates in an order of write-off occurrences; or

a plurality of settlement certificates in an order of settlement occurrences.

8. The computer-implemented method according to claim 1 , wherein:

the blockchain comprises a consortium blockchain comprising a payment institution and a payment platform;

a service of the service system comprises a payment agency collection service provided by the payment platform for the payment institution; and

the service certificates comprise a payment bill, a payment certificate, a write-off certificate, a settlement certificate, and a refund certificate.

9. A non-transitory, computer-readable medium storing one or more instructions executable by a computer system to perform operations for blockchain-based service source tracing, comprising:

receiving, by a service system, a service source tracing request from a client for a target service dimension of a plurality of service dimensions, wherein service certificates of the plurality of service dimensions are stored on a blockchain, the service certificates of the plurality of service dimensions form a plurality of service certificate linked lists, and the service system maintains a mapping relationship between a last node of each of the plurality of service certificate linked lists and a corresponding service index of a service dimension that each of the plurality of service certificate linked lists belongs to, wherein the service source tracing request comprises a service index of the target service dimension;

in response to the service source tracing request, querying, by the service system, the mapping relationship to determine a last node corresponding to the service index of the target service dimension;

querying, by the service system, a service certificate of the target service dimension stored on the blockchain based on a linked list pointer recorded in the last node; and

returning, by the service system, the service certificate of the target service dimension to the client, wherein the operations further comprise:

monitoring the service certificate of the target service dimension stored on the blockchain;

in response to detecting that the blockchain stores a target service certificate of a newly added node in a target service certificate linked list corresponding to the target service dimension, updating the service index of the target service dimension from an unlocked state to a locked state, and updating the last node of the target service certificate linked list into the target service certificate; and

after the last node of the target service certificate linked list is updated into the target service certificate, updating the service certificate of the target service dimension from a locked state to an unlocked state.

10. The non-transitory, computer-readable medium according to claim 9 , wherein:

the service certificate of the target service dimension comprises a plurality of pointer fields, and the plurality of pointer fields correspond to different service dimensions, respectively;

the plurality of pointer fields comprise linked list pointers; and

the service certificates of the plurality of service dimensions stored on the blockchain form the plurality of service certificate linked lists based on the linked list pointers in the plurality of pointer fields of the service certificates.

11. The non-transitory, computer-readable medium according to claim 10 , wherein at least one of the linked list pointers is a hash pointer.

12. The non-transitory, computer-readable medium according to claim 9 , wherein at least one of the plurality of the service certificate linked lists is a one-way linked list.

13. The non-transitory, computer-readable medium according to claim 9 , wherein at least one of the plurality of the service certificate linked lists comprises:

a first-type service certificate linked list comprising service certificates of a same service at different service stages stored on the blockchain in an order of service stages; or

a second-type service certificate linked list comprising service certificates of plurality of services stored on the blockchain in an order of service occurrences.

14. The non-transitory, computer-readable medium according to claim 9 , wherein:

the blockchain comprises a consortium blockchain comprising a payment institution and a payment platform;

a service of the service system comprises a payment agency collection service provided by the payment platform for the payment institution; and

the service certificates comprise a payment bill, a payment certificate, a write-off certificate, a settlement certificate, and a refund certificate.

15. A computer-implemented system for blockchain-based service source tracing, comprising:

one or more computers; and

one or more computer memory devices interoperably coupled with the one or more computers and having tangible, non-transitory, machine-readable media storing one or more instructions that, when executed by the one or more computers, perform one or more operations comprising:

receiving, by a service system, a service source tracing request from a client for a target service dimension of a plurality of service dimensions, wherein service certificates of the plurality of service dimensions are stored on a blockchain, the service certificates of the plurality of service dimensions form a plurality of service certificate linked lists, and the service system maintains a mapping relationship between a last node of each of the plurality of service certificate linked lists and a corresponding service index of a service dimension that each of the plurality of service certificate linked lists belongs to, wherein the service source tracing request comprises a service index of the target service dimension;

in response to the service source tracing request, querying, by the service system, the mapping relationship to determine a last node corresponding to the service index of the target service dimension;

querying, by the service system, a service certificate of the target service dimension stored on the blockchain based on a linked list pointer recorded in the last node; and

returning, by the service system, the service certificate of the target service dimension to the client, wherein the operations further comprise:

monitoring the service certificate of the target service dimension stored on the blockchain;

in response to detecting that the blockchain stores a target service certificate of a newly added node in a target service certificate linked list corresponding to the target service dimension, updating the service index of the target service dimension from an unlocked state to a locked state, and updating the last node of the target service certificate linked list into the target service certificate; and

after the last node of the target service certificate linked list is updated into the target service certificate, updating the service certificate of the target service dimension from a locked state to an unlocked state.

16. The computer-implemented system according to claim 15 , wherein:

the service certificate of the target service dimension comprises a plurality of pointer fields, and the plurality of pointer fields correspond to different service dimensions, respectively;

the plurality of pointer fields comprise linked list pointers; and

the service certificates of the plurality of service dimensions stored on the blockchain form the plurality of service certificate linked lists based on the linked list pointers in the plurality of pointer fields of the service certificates.

17. The computer-implemented system according to claim 15 , wherein at least one of the plurality of the service certificate linked lists comprises:

a first-type service certificate linked list comprising service certificates of a same service at different service stages stored on the blockchain in an order of service stages; or

a second-type service certificate linked list comprising service certificates of plurality of services stored on the blockchain in an order of service occurrences.

18. The computer-implemented system according to claim 17 , wherein the second-type service certificate linked list comprises one of:

a plurality of billing certificates in an order of billing occurrences;

a plurality of payment certificates in an order of payment occurrences;

a plurality of write-off certificates in an order of write-off occurrences; or

a plurality of settlement certificates in an order of settlement occurrences.

19. The computer-implemented system according to claim 15 , wherein at least one of the plurality of the service certificate linked lists is a one-way linked list.

20. The computer-implemented system according to claim 15 , wherein:

the blockchain comprises a consortium blockchain comprising a payment institution and a payment platform;

a service of the service system comprises a payment agency collection service provided by the payment platform for the payment institution; and

the service certificates comprise a payment bill, a payment certificate, a write-off certificate, a settlement certificate, and a refund certificate.

Assignments (3)
ASSIGNMENT OF ASSIGNOR'S INTEREST Recorded Sep 10, 2020
From: ADVANTAGEOUS NEW TECHNOLOGIES CO., LTD.
To: ADVANCED NEW TECHNOLOGIES CO., LTD.
Reel/Frame 053754/0625 →
ASSIGNMENT OF ASSIGNOR'S INTEREST Recorded Aug 31, 2020
From: ALIBABA GROUP HOLDING LIMITED
To: ADVANTAGEOUS NEW TECHNOLOGIES CO., LTD.
Reel/Frame 053743/0464 →
ASSIGNMENT OF ASSIGNOR'S INTEREST Recorded Mar 19, 2020
From: WANG, XU; FENG, ZHAOLIN
To: ALIBABA GROUP HOLDING LIMITED
Reel/Frame 052171/0183 →