Method and system for generating abstract of smart contract based on large language model and semantic enhancement
US12327088B1 · kind B1 · utility
Assignee
Inventors
Key dates
| Filing date | Jan 17, 2025 |
| Grant date | Jun 10, 2025 |
| Priority date | — |
| Expiry date | Jan 17, 2045 |
Classification
- Technology area (CPC Y)Emerging Cross-Sectional Technologies
- CPC primaryY02D10/00
- WIPO fieldComputer technology
- WIPO sectorElectrical engineering
Abstract
A method and system for generating an abstract of a smart contract based on a large language model and semantic enhancement. The method includes: parsing a source code of a smart contract to generate an abstract syntax tree; extracting code semantic information; converting a contract function node of the abstract syntax tree into a function callback chart; and generating a high-quality abstract of code of the smart contract by utilizing the code semantic information extracted by the large language model and callback information in the function callback chart. By learning and understanding the semantic information and callback information of the smart contract function, the large language model can accurately understand and reason deep semantic information of the code to generate the high-quality abstract of the code of the smart contract. The a multi-model capability of the large language model to extract, understand, and reason the callback information of the function callback chart improves comprehension capability of the large language model on a code callback structure.
Source: USPTO / EPO open patent data. Objective bibliographic and citation counts.