hottub.patents
US 12,309,168 B2#3540551 Most CitedActiveUnited States (USPTO)Utility

Arithmetic enhancement of C-like smart contracts for verifiable computation

0Forward Citations (#3540551 Global)
0.0/yrCitation Velocity (#3540551 Global)
0.00Citation PageRank (#3540551 Global)
80Prior Art Cited
8Claims (1 Indep. · 7 Dep.)
0Drawings / Sheets

Abstract

The invention provides systems and methods for converting high level source code into an arithmetic circuit which represents the functionality expressed in the source code. The invention comprises a translation/interpretation component for performing this conversion. In a preferred embodiment, the source code is a smart contract such as those used in relation to a blockchain platform. The invention could be used in relation to the Bitcoin network, for example. A method in accordance with an embodiment comprises the steps of: processing a portion of high level source code (e.g. a smart contract) to generate an arithmetic circuit. The arithmetic circuit comprises one or more arithmetic gates arranged to represent at least some of the functionality expressed in the source code. The processing involves evaluating one or more constants provided in the source code to produce one or more expressions that include Boolean and/or arithmetic operators. The arithmetic circuit comprises n-bit wires connected to arithmetic gates; it can be used to provide a hardware and/or software circuit. The arithmetic circuit can be used to generate a quadratic program which can be executed upon a processor.

Interactive Citation Constellation Global Citation Ranking

Interactive SVG Citation Constellation renders in Rust/WebAssembly. Prior art cited: 80 · Forward citations: 0.

Claims (8 — 1 Independent, 7 Dependent)

  1. Claim 1Independent Claim

    A computer-implemented method comprising the steps: processing a portion of source code to generate an arithmetic circuit, wherein: the source code is written in a high level programming language, and the arithmetic circuit comprises: one or more arithmetic gates arranged to represent a portion of functionality expressed in the portion of source code, and n-bit wires connected to arithmetic gates; producing a proof of correctness using an output of one or more circuit wires of the arithmetic circuit and a public evaluation key (EK), wherein the proof of correctness is stored on a blockchain; and verifying, by one or more nodes of the blockchain, the proof of correctness stored on the blockchain by using a public verification key and the proof of correctness.

  2. Claim 2Depends on #1

    The computer-implemented method according to claim 1, wherein the public evaluation key (EK) is derived using a secret value.

  3. Claim 3Depends on #1

    The computer-implemented method according to claim 1, and further comprising the step of: using the arithmetic circuit to provide a hardware and/or a software circuit.

  4. Claim 4Depends on #1

    The computer-implemented method according to claim 1, wherein: the arithmetic circuit is architecture independent.

  5. Claim 5Depends on #1

    The computer-implemented method according to claim 1, wherein the method further comprises pre-processing of the source code to determine one or more constants, the pre-processing comprising one or more of the following steps: removing comments; importing header declarations from header files of two or more source files; merging the two or more source files; and solving or evaluating directives and macros.

  6. Claim 6Depends on #1

    The computer-implemented method according to claim 1, wherein the method further comprises the step of detecting all global variables declared in the source code, wherein a global variable relates to a function, a structure or class, a constant and/or an entry point for execution.

  7. Claim 7Depends on #1

    The computer-implemented method according to claim 1, wherein the method further comprises the step of: generating a table of symbols to associate each symbol provided in the source code with declaration information provided in the source code, the symbols in the table being global and or local symbols.

  8. Claim 8Depends on #1

    The computer-implemented method according to claim 1, wherein the method further comprises the step of performing a line-by-line evaluation of the source code that results in an arithmetic and/or a logic expression that expresses one or more output variables as a combination of an arithmetic and/or a logic operation applied on one or more input variables.

Technical Overview & Description

CROSS REFERENCE TO RELATED APPLICATIONS This application is a continuation of U.S. patent application Ser. No. 16/762,475, filed May 7, 2020, entitled “ ARITHMETIC ENHANCEMENT OF C-LIKE SMART CONTRACTS FOR VERIFIABLE COMPUTATION, ” which is a 371 National Stage of International Patent Application No. PCT/IB2018/058437, filed Oct. 29, 2018, which claims priority to United Kingdom Patent Application No. 1805948.5, filed Apr. 10, 2018, United Kingdom Patent Application No. 1720768.9, filed Dec. 13, 2017, United Kingdom Patent Application No. 1718505.9, filed Nov. 9, 2017, United Kingdom Patent Application No. 1719998.5, filed Nov. 30, 2017, United Kingdom Patent Application No. 1806444.4, filed Apr. 20, 2018, and United Kingdom Patent Application No. 1801753.3, filed Feb. 2, 2018, the disclosures of which are incorporated herein by reference in their entirety. This invention relates generally to the field of tools, techniques and systems for converting high level source code into another form e.g. interpreters. It also relates to blockchain technologies and, in particular, it relates to tools for building blockchain-implemented solutions. It also relates to the improved generation of machine-executable technologies such as, for example, smart contracts that are arranged to execute on a blockchain. BACKGROUND OF INVENTION In this document, the term “ blockchain ” refers to any of several types of electronic, computer-based, distributed ledgers. These include consensus-based blockchain and transaction-chain technologies, permissioned and unpermissioned ledgers, shared ledgers and variations thereof. It also includes private and public blockchains. The most widely known application of blockchain technology is the Bitcoin ledger, although other blockchain implementations have been proposed and developed. While the example of Bitcoin may be referred to in the present disclosure, for the purpose of convenience and illustration, it should be noted that the invention is not li

Cited By — Indexed Forward Citations (0 of 0 total)

No indexed citing patents in this generation yet. Ingest USPTO/PatentsView bulk citation tables via patents-ingest to expand the local forward citation graph.

References Cited — Backward Prior Art (80)

Non-Patent Literature (10)

  • Paganini, Pierluigi What is a Digital Signature? Fundamental Principles, Security Affairs, May 2012, https://securityaffairs.com/5223/digital-id/what-is-a-digital-signature-fundamental-principles.html, 7 pages.
  • Justus, Benjamin,
  • “
  • Point Compression and Coordinate Recovery for Edwards Curves over Finite Field
  • ”
  • , Annals of West University of Timisoara-Mathematics and Computer Science, 2014, 15 pages.
  • Intellectual Property Office of Korea,
  • “
  • Request for the Submission of an Opinion
  • ”