IP Library › Granted Patent US 12,626,253
Granted Patent B2
US 12,626,253 · App. 18/709,031 · Granted May 12, 2026

Method for extracting and parsing bitcoin transaction autonomy information

Inventors: Jinsong Wang (Tianjin, CN); Zening Zhao (Tianjin, CN); Kai Shi (Tianjin, CN)
Assignee: TIANJIN UNIVERSITY OF TECHNOLOGY
G06Q20/401G06Q2220/00
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 12,626,253
App. No.
18/709,031
Granted
May 12, 2026
Kind
B2
Abstract

A method for extracting and parsing Bitcoin transaction autonomy information comprises data extraction, transaction autonomy information extraction, feature extraction, information decoding, information cleaning, information fusion, and data table construction. The method has the following beneficial effects. 1. Universality: This method is applicable to mainstream blockchain systems such as Ethereum, EOS, Polkadot, and Fabric through analysis of the current architecture of blockchain technology. 2. Effectiveness: Taking the relationship between emotional tendency of transaction autonomy information and price changes as an example, a generated dataset shows good performance in monitoring online public opinions. 3. Progressiveness: This method for extracting and parsing Bitcoin transaction autonomy information is helpful for implementing public opinion monitoring in blockchain systems, enhancing cybersecurity, and improving the level of information analysis.

Claims (24)

1 . A method for extracting and parsing Bitcoin transaction autonomy information, includes the following steps in sequence:

(1) building a Bitcoin client and synchronizing original block stream data to a local area, then parsing and structuring the original block stream data to obtain Bitcoin structured data, and then obtaining an output script of each transaction from the Bitcoin structured data;

(2) verifying a validity of the transaction output script by using a transaction script verification algorithm Algorithm test , and returning transaction autonomy information Tx information in response to determining failure to verify the validity of the transaction output script; and executing remaining steps, wherein the transaction autonomy information Tx information corresponds to online public opinion information; and

wherein obtaining the transaction autonomy information Tx information using the transaction script verification algorithm Algorithm test comprises:

( 201 ) converting the transaction output script Tx script out from a string format to a binary byte stream Scirpt bytearray ;

( 202 ) initializing an empty stack data structure;

( 203 ) reading a byte from the binary byte stream Scirpt bytearray ; and deleting the byte from the binary byte stream Scirpt bytearray ;

( 204 ) converting the byte into a Bitcoin operation code Op code;

( 205 ) putting the Bitcoin operation code OP code into a stack;

( 206 ) acquiring a stack top Bitcoin operation code OP code, and operating the stack according to the stack top Bitcoin operation code Op code;

( 207 ) in response to the stack top Bitcoin operation code Op code has subsequent input parameters, reading a corresponding number of bytes Bytes from the binary byte stream Scirpt bytearray ;

( 208 ) putting the number of bytes Bytes into the stack;

( 209 ) repeating ( 203 ) to ( 208 ) until the binary byte stream Scirpt bytearray is empty; and

( 210 ) verifying a stack top element; in response to the top stack element is a Boolean type True, determining that the transaction output script verification succeeds; in response to the top stack element is a Boolean type False, determining that the transaction output script verification fails; and in response to the top stack element is not a Boolean type, determining that it is the extracted transaction autonomy information Tx information , which will still be preserved on the blockchain, wherein corresponding unspent coins will be transferred to miners;

(3) extracting blockchain features from the transaction autonomy information Tx information , and then constructing a transaction autonomy information data table by using the transaction autonomy information and the blockchain features;

(4) sequentially reading the transaction autonomy information Tx in formation from the transaction autonomy information data table, and decoding the transaction autonomy information Tx information by using a transaction autonomy information decoding algorithm Algorithm code_recognition to obtain decoded information Information decode , and then inserting the decoded information Information decode into the transaction autonomy information data table as features;

(5) cleaning the decoded information Information decode by feature extraction and identification, marking decodable signs Sign decode of the decoded information Information decode which is successfully decoded as 1, and decodable signs Sign decode of other decoded information as 0, and inserting the decodable signs Sign decode into the transaction autonomy information data table as features;

(6) determining a fusion possibility of successfully decoded transaction autonomy information Information decode by using an information fusion algorithm Algorithm address_association based on transaction address association analysis, and fusing fusible transaction autonomy information Information decode to form fused information Information related ; and

(7) extracting an information ID info id before fusion from the fused information Information related, and constructing a transaction autonomy information fusion information data table,

wherein monitoring the online public opinion information on a blockchain is achieved.

2 . The method for extracting and parsing Bitcoin transaction autonomy information of claim 1 , wherein the step (1) of, building the Bitcoin client and synchronizing the original block stream data to the local area; then parsing and structuring the original block stream data to obtain the Bitcoin structured data; and then obtaining the output script of each transaction from the Bitcoin structured data, specifically comprises:

building a Bitcoin client Bitcoin Core, and synchronizing original block stream data Dt to the local area; parsing and structuring the original block stream data Dt to obtain Bitcoin structured data St, wherein the original block stream data Dt represent all block data of the Bitcoin system up to time t, and the Bitcoin structured data St are obtained by processing the block data before time t, including block size BTC_Block size and transaction list Tx_List; then, searching the transaction list Tx_List in the bitcoin structured data St to output a script field in array Outputs; and finally obtaining an output script of each transaction Tx script out .

3 . The method for extracting and parsing Bitcoin transaction autonomy information of claim 1 , wherein the step (3) of, extracting blockchain features from the transaction autonomy information Tx information , and then constructing a transaction autonomy information data table by using the transaction autonomy information and the blockchain features, specifically comprises:

extracting blockchain features from the transaction autonomy information Tx information : ID Block id , block hash Block hash , transaction version Block version , block height Block number , block generation time Block timestamp , transaction hash Block this_txhash , input script transaction hash Block input_txhash , input value Block input_value , input address Block input_address , miner's fee Block fee , output script Block output_script_asm , ASCII script Block output_script_asc and decoded output script Block output_script_decode , and then constructing the transaction autonomy information data table by using the transaction autonomy information and the blockchain features.

Assignments (1)
ASSIGNMENT OF ASSIGNOR'S INTEREST Recorded May 15, 2024
From: WANG, JINSONG; ZHAO, ZENING; SHI, KAI
To: TIANJIN UNIVERSITY OF TECHNOLOGY
Reel/Frame 067413/0066 →
Priority Claims (1)
CN 202210878845.5 · Jul 25, 2022 · national
Continuity (1)
Related Publication 20250037124A1 · Jan 30, 2025
References Cited (125)
US 9304703B1 · Ignomirello · 2016 [cited by examiner]
US 10984483B2 · Cuomo · 2021 [cited by examiner]
US 11991299B1 · Rosenoer · 2024 [cited by examiner]
US 12033136B2 · Dalton · 2024 [cited by examiner]
US 12511630B2 · Marinkovich · 2025 [cited by examiner]
US 20150143196A1 · Zhang · 2015 [cited by examiner]
US 20160342977A1 · Lam · 2016 [cited by examiner]
US 20180268491A1 · Cuomo · 2018 [cited by examiner]
US 20190065709A1 · Salomon · 2019 [cited by examiner]
US 20200074464A1 · Trevethan · 2020 [cited by examiner]
US 20200142965A1 · Weldemariam · 2020 [cited by examiner]
US 20210264520A1 · Cummings · 2021 [cited by examiner]
US 20210374693A1 · La Salle · 2021 [cited by examiner]
US 20230222493A1 · Jain · 2023 [cited by examiner]
US 20230351342A1 · Mallik · 2023 [cited by examiner]
US 20240113880A1 · Jain · 2024 [cited by examiner]
US 20240420131A1 · Taneja · 2024 [cited by examiner]
US 20250190966A1 · Gutierrez-Sheris · 2025 [cited by examiner]
US 20250378436A1 · Lochrane · 2025 [cited by examiner]
AU 2022311805A1 · 2024 [cited by examiner]
CA 3072719C · 2024 [cited by examiner]
CN 104639278A · 2015 [cited by examiner]
CN 109670950A · 2019 [cited by examiner]
CN 110458554A · 2019 [cited by examiner]
CN 110751554 · 2020 [cited by applicant]
CN 110751554A · 2020 [cited by examiner]
CN 110782252A · 2020 [cited by examiner]
CN 110838064A · 2020 [cited by examiner]
CN 110930149A · 2020 [cited by examiner]
CN 111090875A · 2020 [cited by examiner]
CN 111149332A · 2020 [cited by examiner]
CN 111201749A · 2020 [cited by examiner]
CN 111433744A · 2020 [cited by examiner]
CN 112052235A · 2020 [cited by examiner]
CN 112286963A · 2021 [cited by examiner]
CN 112435027A · 2021 [cited by examiner]
CN 112818014A · 2021 [cited by examiner]
CN 112860712A · 2021 [cited by examiner]
CN 109347868B · 2021 [cited by examiner]
CN 107679045B · 2021 [cited by examiner]
CN 113282810A · 2021 [cited by examiner]
CN 113364576A · 2021 [cited by examiner]
CN 116012150 · 2023 [cited by applicant]
CN 111459672B · 2023 [cited by examiner]
CN 116795926A · 2023 [cited by examiner]
CN 117057806A · 2023 [cited by examiner]
CN 117094719A · 2023 [cited by examiner]
CN 117195313A · 2023 [cited by examiner]
CN 116308841B · 2024 [cited by examiner]
CN 117574320A · 2024 [cited by examiner]
CN 117579628A · 2024 [cited by examiner]
CN 117668924A · 2024 [cited by examiner]
CN 117896120A · 2024 [cited by examiner]
CN 118013560A · 2024 [cited by examiner]
CN 118316710A · 2024 [cited by examiner]
CN 118316743A · 2024 [cited by examiner]
CN 114461623B · 2024 [cited by examiner]
CN 118631434A · 2024 [cited by examiner]
CN 118780790A · 2024 [cited by examiner]
CN 118897855A · 2024 [cited by examiner]
CN 114757773B · 2024 [cited by examiner]
CN 115396110B · 2024 [cited by examiner]
CN 119203152A · 2024 [cited by examiner]
CN 119226250A · 2024 [cited by examiner]
CN 119271745A · 2025 [cited by examiner]
CN 119416208A · 2025 [cited by examiner]
CN 115203647B · 2025 [cited by examiner]
CN 119808159A · 2025 [cited by examiner]
CN 119831590A · 2025 [cited by examiner]
CN 119865502A · 2025 [cited by examiner]
CN 119941249A · 2025 [cited by examiner]
CN 120013557A · 2025 [cited by examiner]
CN 120075250A · 2025 [cited by examiner]
CN 120146852A · 2025 [cited by examiner]
CN 120219076A · 2025 [cited by examiner]
CN 120235530A · 2025 [cited by examiner]
CN 120494850A · 2025 [cited by examiner]
CN 120512278A · 2025 [cited by examiner]
CN 120543176A · 2025 [cited by examiner]
CN 120550417A · 2025 [cited by examiner]
CN 120567462A · 2025 [cited by examiner]
CN 120634776A · 2025 [cited by examiner]
CN 120655300A · 2025 [cited by examiner]
CN 120671196A · 2025 [cited by examiner]
CN 120744988A · 2025 [cited by examiner]
CN 120785520A · 2025 [cited by examiner]
CN 120811618A · 2025 [cited by examiner]
CN 120811710A · 2025 [cited by examiner]
CN 120812066A · 2025 [cited by examiner]
CN 120850266A · 2025 [cited by examiner]
CN 120875953A · 2025 [cited by examiner]
CN 120893924A · 2025 [cited by examiner]
CN 120951378A · 2025 [cited by examiner]
CN 121030772A · 2025 [cited by examiner]
CN 121032491A · 2025 [cited by examiner]
CN 121052757A · 2025 [cited by examiner]
CN 121056113A · 2025 [cited by examiner]
CN 121077653A · 2025 [cited by examiner]
CN 121094811A · 2025 [cited by examiner]
EP 3577767B1 · 2020 [cited by examiner]
GB 2559165A · 2018 [cited by examiner]
GB 2635232A · 2025 [cited by examiner]
JP 7589173B2 · 2024 [cited by examiner]
JP 2025538950A · 2025 [cited by examiner]
KR 102032924B1 · 2019 [cited by examiner]
KR 20200124495 · 2020 [cited by applicant]
KR 20200124495A · 2020 [cited by examiner]
KR 102719619B1 · 2024 [cited by examiner]
KR 20250136804A · 2025 [cited by examiner]
WO WO2017011601A1 · 2017 [cited by examiner]
WO WO2017187396A1 · 2017 [cited by examiner]
WO WO2018142367A1 · 2018 [cited by examiner]
WO 2019034959 · 2019 [cited by applicant]
WO WO2020061105A1 · 2020 [cited by examiner]
WO 2020087739 · 2020 [cited by applicant]
WO WO2020125839A1 · 2020 [cited by examiner]
WO WO2021063181A1 · 2021 [cited by examiner]
WO WO2023287969A1 · 2023 [cited by examiner]
WO WO2024022242A1 · 2024 [cited by examiner]
WO WO2025123054A1 · 2025 [cited by examiner]
WO WO2025050067A9 · 2025 [cited by examiner]
V. Vallois and F. A. Guenane, “Bitcoin transaction: From the creation to validation, a protocol overview,” 2017 1st Cyber Security in Networking Conference (CSNet), Rio de Janeiro, Brazil, 2017. https://ieeexplore.ieee.… [cited by examiner]
Bartoletti et al. “An analysis of Bitcoin OP RETURN metadata,” 2017 Universita degli Studi di Cagliari, Cagliari, Italy. 2017. https://arxiv.org/pdf/1702.01024 (Year: 2017). [cited by examiner]
X. Hei, B. Bai, Y. Wang, L. Zhang, L. Zhu and W. Ji, “Feature Extraction Optimization for Bitstream Communication Protocol Format Reverse Analysis,” 2019 18th IEEE Int. Conf. (TrustCom/BigDataSE), Rotorua, New Zealand, … [cited by examiner]
“International Search Report (Form PCT/ISA/210) of PCT/CN2023/108600,” mailed on Oct. 20, 2023, with English translation thereof, pp. 1-4. [cited by applicant]