The patent badge is an abbreviated version of the USPTO patent document. The patent badge does contain a link to the full patent document.

The patent badge is an abbreviated version of the USPTO patent document. The patent badge covers the following: Patent number, Date patent was issued, Date patent was filed, Title of the patent, Applicant, Inventor, Assignee, Attorney firm, Primary examiner, Assistant examiner, CPCs, and Abstract. The patent badge does contain a link to the full patent document (in Adobe Acrobat format, aka pdf). To download or print any patent click here.

Date of Patent:
Jun. 07, 2022

Filed:

Jun. 30, 2021
Applicant:

Alipay (Hangzhou) Information Technology Co., Ltd., Zhejiang, CN;

Inventor:

Xiaojian Liu, Zhejiang, CN;

Attorney:
Primary Examiner:
Int. Cl.
CPC ...
G06F 16/20 (2019.01); G06F 16/27 (2019.01); G06F 16/23 (2019.01); G06F 16/21 (2019.01); G06F 9/46 (2006.01); H04L 9/32 (2006.01); G06Q 20/38 (2012.01);
U.S. Cl.
CPC ...
G06F 16/27 (2019.01); G06F 16/219 (2019.01); G06F 16/2365 (2019.01); G06F 9/466 (2013.01); G06Q 20/389 (2013.01); G06Q 20/3825 (2013.01); G06Q 20/3827 (2013.01); G06Q 20/3829 (2013.01); H04L 9/3236 (2013.01); H04L 9/3247 (2013.01); H04L 2209/38 (2013.01);
Abstract

Implementations of the present specification provide a method and an apparatus for obtaining a number for a transaction-accessed variable in parallel in a blockchain. The method includes: for a first variable in a first transaction, calculating a hash value m corresponding to a variable name of the first variable, the hash value m being a value in pre-determined M values; performing the following atomic operation on an mbit in a bitmap in a shared memory: reading a current first value of the mbit, setting the mbit to 1, and returning the first value, the bitmap having M bits, and initial values of the M bits being 0; in response to the first value being 0, obtaining a first number uniquely corresponding to the first variable, the first number being a value in pre-determined N values, and N being less than M; and setting a value of an melement in a mapping array in the shared memory based on the first number, the mapping array including a total of M elements.


Find Patent Forward Citations

Loading…