Invention Grant
- Patent Title: Automatic smart contract analysis
-
Application No.: US17351305Application Date: 2021-06-18
-
Publication No.: US11544045B2Publication Date: 2023-01-03
- Inventor: Peter Kacherginsky
- Applicant: Coinbase, Inc.
- Applicant Address: US CA San Francisco
- Assignee: Coinbase, Inc.
- Current Assignee: Coinbase, Inc.
- Current Assignee Address: US CA San Francisco
- Agency: Banner & Witcoff, Ltd.
- Main IPC: G06F8/41
- IPC: G06F8/41 ; H04L9/32 ; G06F8/73 ; H04L9/00

Abstract:
One or more aspects described herein provide automatic smart contract feature analysis and risk assessment based on unique source code signatures and/or fingerprints within the smart contract. A risk assessment engine may automatically analyze a smart contract by first retrieving smart contract source code from a contract address on a blockchain where the smart contract is accessible. The risk assessment engine may generate an abstract syntax tree (AST) of the smart contract using a compiler for the smart contract source code, and then flatten the AST by removing non-differentiating elements from the AST. The flattened AST may be divided by function calls within the smart contract, and then each division may be fingerprinted, e.g., hashed using a one-way hash. The fingerprint is compared to a database of known functions to automatically identify one or more features of the smart contract with associated risk levels.
Public/Granted literature
- US20220179626A1 AUTOMATIC SMART CONTRACT ANALYSIS Public/Granted day:2022-06-09
Information query