IP Library › Granted Patent US 12,737,760
Granted Patent B2
US 12,737,760 · App. 18/458,856 · Granted Sep 15, 2026

Using generative artificial intelligence for automated analysis of smart contracts on blockchain

Inventors: David Humpherys (Lehi, UT); Jonathan Lancar (Sunny Isles, FL)
Assignee: ADOBE INC.
G06Q20/401G06Q20/389
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,737,760
App. No.
18/458,856
Granted
Sep 15, 2026
Kind
B2
Abstract

Methods and systems are provided for using generative AI for automated analysis of smart contracts on blockchain. In embodiments described herein, smart contract code for a smart contract is accessed in blockchain via a retriever component. The smart contract code includes a condition of the smart contract in a programming language format. A language model generates natural language content based on the smart contract code. The natural language content is then displayed.

Claims (34)

1 . A computer-implemented method comprising:

accessing, via a retriever component, smart contract code in a blockchain or a smart contract code repository for a smart contract, the smart contract code comprising conditions of the smart contract in a programming language format;

generating, by prompting a generative artificial intelligence (AI) language model fine-tuned based on at least one of a subject matter of the smart contract or a business related to the smart contract, natural language content based on the smart contract code, the natural language content comprising natural language descriptions of each of the conditions required for execution of the smart contract, wherein prompting the generative AI language model comprises:

generating, using chain-of-thought prompting, a set of prompts based on the conditions of the smart contract in the programming language format; and

applying the set of prompts to the generative AI language model to generate the natural language content; and

causing display, via a presentation component, of the natural language content, wherein the natural language content comprises a warning related to an off-chain condition of the smart contract code, the off-chain condition corresponding to one of the conditions of the smart contract required to be fulfilled outside a domain of the blockchain in order to execute the smart contract.

2 . The computer-implemented method of claim 1 , wherein the generative AI language model is trained using training data comprising corresponding smart contract code from a public blockchain and corresponding descriptions of the corresponding smart contract code from the public blockchain.

3 . The computer-implemented method of claim 1 , wherein the generative AI language model is a pre-trained language model, and the pre-trained language model is fine-tuned using Low Rank Adaptations (LoRA) by training the pre-trained language model based on training data related to at least one of the subject matter of the smart contract or the business related to the smart contract.

4 . The computer-implemented method of claim 1 , wherein the natural language content comprises a summary of the smart contract, the summary comprising (1) a purpose of the smart contract, (2) parties to the smart contract, (3) payment terms of the smart contract, (4) timeframes of the smart contract, (5) presence or absence of accompanying legal terms for the smart contract, (6) dispute resolution of the smart contract, (7) termination procedures of the smart contract; and (8) compliance requirements of the smart contract.

5 . The computer-implemented method of claim 1 , wherein the natural language content comprises a missing condition from the smart contract code based on a corresponding condition from a related smart contract in training data of the generative AI language model.

6 . The computer-implemented method of claim 1 , wherein the natural language content comprises suggested contract language based on the smart contract corresponding to natural language contract terms of a written contract instrument.

7 . One or more non-transitory computer-readable media having a plurality of executable instructions embodied thereon, which, when executed by one or more processors, cause the one or more processors to perform a method comprising:

accessing, via a retriever component, smart contract code in a blockchain or a smart contract code repository for a smart contract, the smart contract code comprising conditions of the smart contract in a programming language format;

accessing, via the retriever component, terms accompanying the smart contract through smart contract metadata of the smart contract;

generating, by prompting a generative artificial intelligence (AI) language model fine-tuned based on at least one of a subject matter of the smart contract or a business related to the smart contract, natural language content based on the smart contract code and the terms accompanying the smart contract, the natural language content comprising natural language descriptions of each of the conditions required for execution of the smart contract, wherein prompting the generative AI language model comprises:

generating, using chain-of-thought prompting, a set of prompts based on the conditions of the smart contract in the programming language format; and

applying the set of prompts to the generative AI language model to generate the natural language content; and

causing display, via a presentation component, of the natural language content, wherein the natural language content comprises a missing condition from the smart contract code based on a corresponding condition from a related smart contract in training data of the generative AI language model.

8 . The one or more non-transitory computer-readable media of claim 7 , wherein the generative AI language model is trained using the training data comprising corresponding smart contract code from a public blockchain and corresponding descriptions of the corresponding smart contract code from the public blockchain.

9 . The one or more non-transitory computer-readable media of claim 7 , wherein the generative AI language model is a pre-trained language model, and the pre-trained language model is fine-tuned using Low Rank Adaptations (LoRA) by training the pre-trained language model based on corresponding training data related to at least one of the subject matter of the smart contract or the business related to the smart contract.

10 . The one or more non-transitory computer-readable media of claim 7 , wherein the natural language content comprises a summary of the smart contract, the summary comprising (1) a purpose of the smart contract, (2) parties to the smart contract, (3) payment terms of the smart contract, (4) timeframes of the smart contract, (5) presence or absence of accompanying legal terms for the smart contract, (6) dispute resolution of the smart contract, (7) termination procedures of the smart contract; and (8) compliance requirements of the smart contract.

11 . The one or more non-transitory computer-readable media of claim 7 , wherein the natural language content comprises a warning related to an off-chain condition of the smart contract code, the off-chain condition corresponding to one of the conditions of the smart contract required to be fulfilled outside a domain of the blockchain in order to execute the smart contract.

12 . The one or more non-transitory computer-readable media of claim 7 , wherein the natural language content comprises suggested contract language based on the smart contract code.

13 . A computing system comprising:

a processor; and

a non-transitory computer-readable medium having stored thereon instructions that when executed by the processor, cause the processor to perform operations including:

fine-tuning using Low Rank Adaptations (LoRA), via a fine-tuning component, a pre-trained generative artificial intelligence (AI) language model to generate natural language content based on smart contract code using training data related to at least one of a subject matter of a corresponding smart contract or a business related to the corresponding smart contract;

accessing, via a retriever component, corresponding smart contract code in a blockchain or a smart contract code repository for a smart contract, the corresponding smart contract code comprising conditions of the smart contract in a programming language format;

generating, by prompting the pre-trained generative AI language model as fine-tuned, corresponding natural language content based on the corresponding smart contract code, the natural language content comprising natural language descriptions of each of the conditions required for execution of the smart contract, wherein prompting the pre-trained generative AI language model comprises:

generating, using chain-of-thought prompting, a set of prompts based on the conditions of the smart contract in the programming language format; and

applying the set of prompts to the pre-trained generative AI language model to generate the natural language content; and

causing display, via a presentation component, of the corresponding natural language content, wherein the natural language content comprises a warning related to an off-chain condition of the smart contract code, the off-chain condition corresponding to one of the conditions of the smart contract required to be fulfilled outside a domain of the blockchain in order to execute the smart contract.

14 . The computing system of claim 13 , wherein the pre-trained generative AI language model is pre-trained using the training data comprising the smart contract code from a public blockchain and corresponding descriptions of the smart contract code from the public blockchain.

15 . The computing system of claim 13 , wherein the natural language content comprises a summary of the smart contract, the summary comprising (1) a purpose of the smart contract, (2) parties to the smart contract, (3) payment terms of the smart contract, (4) timeframes of the smart contract, (5) presence or absence of accompanying legal terms for the smart contract, (6) dispute resolution of the smart contract, (7) termination procedures of the smart contract; and (8) compliance requirements of the smart contract.

Assignments (1)
ASSIGNMENT OF ASSIGNOR'S INTEREST Recorded Aug 30, 2023
From: LANCAR, JONATHAN; HUMPHERYS, DAVID
To: ADOBE INC.
Reel/Frame 064758/0177 →
Continuity (1)
Related Publication 20250078074A1 · Mar 6, 2025
References Cited (39)
US 8332290B1 · Venturo et al. · 2012 [cited by applicant]
US 20170286987A1 · Carter et al. · 2017 [cited by applicant]
US 20170289223A1 · Kipp et al. · 2017 [cited by applicant]
US 20190325473A1 · Swamidurai · 2019 [cited by applicant]
US 20200328890A1 · Connor · 2020 [cited by applicant]
US 20220045849A1 · Jing et al. · 2022 [cited by applicant]
US 20220051279A1 · Czajka et al. · 2022 [cited by applicant]
US 20220292268A1 · Shillingford · 2022 [cited by examiner]
US 20220351192A1 · Mcgregor et al. · 2022 [cited by applicant]
US 20220385477A1 · Kravitz et al. · 2022 [cited by applicant]
US 20230111668A1 · Metnick et al. · 2023 [cited by applicant]
US 20230129576A1 · Root · 2023 [cited by examiner]
US 20230244938A1 · Wei · 2023 [cited by examiner]
US 20230297345A1 · Khalfan et al. · 2023 [cited by applicant]
US 20230306427A1 · Unagami et al. · 2023 [cited by applicant]
US 20230351464A1 · Beausoleil · 2023 [cited by applicant]
US 20230360329A1 · Esquivel et al. · 2023 [cited by applicant]
US 20240013199A1 · Marshall et al. · 2024 [cited by applicant]
US 20240086918A1 · Gisolfi et al. · 2024 [cited by applicant]
US 20240185209A1 · Skipper et al. · 2024 [cited by applicant]
US 20240330605A1 · Hunn · 2024 [cited by examiner]
US 20240330927A1 · Abdelrahman · 2024 [cited by examiner]
US 20240394705A1 · Abdelrahman · 2024 [cited by examiner]
US 20250156828A1 · Sliwka et al. · 2025 [cited by applicant]
CN 107491964A · 2017 [cited by applicant]
CN 114817932 · 2022 [cited by examiner]
CN 114817932A · 2022 [cited by examiner]
CN 116662991A · 2023 [cited by examiner]
EP 3933637A1 · 2022 [cited by examiner]
Huong et al.: False alarm reduction method for waekness static analysis using BERT Model, 2023, Applied Science 13.6:3502, pp. 1-10 (Year: 2023). [cited by examiner]
Napoli et al.: Evaluating ChatGPT for Smart Contracts Vulnerability Correction, 2023, 47th Annual Computing Software, and Applications Conference (COMPPSAC), pp. 1828-1833 (Year: 2023). [cited by examiner]
Dubey et al.: Confluence of Artificial Intelligence and Blockchain Powered Smart Contract in Finance, 2022, International Conference on Computing, Communication and Intellignce Systems (ICCCIS), pp. 125-130. (Year: 2022… [cited by examiner]
Kushwaha et al.: Ehtereum Smart Contract Analysis Tools: A Systematic Review, Mar. 29, 2022, Data Object Identifier, pp. 57037-57062 (Year: 2022). [cited by examiner]
Dubey et al.: Confluence of Artificial Intelligence and Blockchain Powered Smart Contract in Finance System, 2022, IEEE, pp. 125-130 (Year: 2022). [cited by examiner]
Coinbase, Why Digital Signatures are essential for blockchains, [online], published on Jan. 26, 2022, available at: < https://www.coinbase.com/developer-platform/discover/dev-foundations/digital-signatures >. [cited by applicant]
Non-Final Office Action received for U.S. Appl. No. 18/467,695, mailed on May 8, 2025, 23 pages. [cited by applicant]
Non-Final Office Action received for U.S. Appl. No. 18/530,619, mailed on May 29, 2025, 36 pages. [cited by applicant]
Final Office Action received for U.S. Appl. No. 18/530,619, mailed on Nov. 19, 2025, 54 pages. [cited by applicant]
Non-Final Office Action received for U.S. Appl. No. 18/530,619, mailed on Mar. 23, 2026, 74 pages. [cited by applicant]