Methods and systems for blockchain-implemented script-based byte interpretation
Abstract
The invention relates to distributed ledger technologies such as consensus-based blockchains, for example, a Bitcoin blockchain. Computer-implemented methods for a trustless, deterministic state machine that is embodied by the locking script of a spending transaction are described. The spending transaction transfers control of at least one digital asset or portion thereof. The spending transaction references a previous transaction that includes a locking script with a bytecode sequence. The spending transaction also includes a locking script with the same bytecode sequence. The spending transaction can be validated by verifying that the bytecode sequences of the locking scripts of the spending and previous transactions match one another. Control of the at least one digital asset or portion thereof can be transferred as a result of execution of the locking script. For example, the locking script can impose a set of conditions for validation of the spending transaction.
Interactive Citation Constellation Global Citation Ranking
Interactive SVG Citation Constellation renders in Rust/WebAssembly. Prior art cited: 20 · Forward citations: 0.
Claims (8 — 1 Independent, 7 Dependent)
- Claim 1Independent Claim
A computer-implemented method comprising: receiving a spending transaction to transfer control of at least one digital asset or portion thereof, wherein the spending transaction includes a locking script represented by a bytecode sequence, and wherein the spending transaction references a previous transaction that includes a locking script represented by a bytecode sequence such that first and second locking scripts share the same bytecode sequence; and validating the spending transaction by verifying that the bytecode sequence of the locking script of the spending transaction matches the bytecode sequence of the locking script of the previous transaction, wherein: at least part of the spending transaction is replicated to generate a new spending transaction until a termination condition is fulfilled; and the bytecode sequence of the locking script is replicated as part of a locking script of an ordered number of spending transactions until the termination condition is fulfilled.
- Claim 2Depends on #1
The computer-implemented method of claim 1, wherein the previous transaction is stored on a blockchain, and interpreter code supports translation of at least one high-level bytecode operation into low-level bytecode operations that are executed by a node.
- Claim 3Depends on #1
The computer-implemented method of claim 1, wherein the locking script of the previous transaction and the locking script of the spending transaction further include data relating to different execution states of the bytecode sequence shared by the locking script of the previous transaction and the locking script of the spending transaction, where such data is used to control execution of interpretation of the bytecode sequence when validating the spending transaction.
- Claim 4Depends on #2
The computer-implemented method of claim 2, wherein the locking script of the previous transaction further includes state data for a current execution state of the bytecode sequence of the locking script as well as an execution pointer corresponding to the current execution state of the bytecode sequence of the locking script, wherein the locking script of the spending transaction further includes state data for a next execution state of the bytecode sequence of the locking script as well as an execution pointer corresponding to the next execution state of the bytecode sequence of the locking script, and validating the spending transaction further involves: i) using the state data representing the current execution state of the bytecode sequence of the locking script to restore the current execution state of the bytecode sequence; ii) executing the bytecode sequence of the locking script beginning at the execution pointer corresponding to the current execution state of the bytecode seq
- Claim 5Depends on #4
The computer-implemented method claimed in claim 4, wherein validating the spending transaction further involves extracting the state data for the current execution state of the bytecode sequence of the locking script from virtual memory, extracting the execution pointer corresponding to the current execution state of the bytecode sequence of the locking script from virtual memory, and extracting the execution pointer corresponding to the next execution state of the bytecode sequence of the locking script from virtual memory.
- Claim 6Depends on #5
The computer-implemented method claimed in claim 5, wherein the virtual memory stores the state data relating to different execution states of the bytecode sequence in different first and second formats, wherein a first format is used to store such data as part of the locking script, and wherein the second format is suitable for manipulation of data in the virtual memory when executing the bytecode sequence of the locking script.
- Claim 7Depends on #6
The computer-implemented method claimed in claim 6, wherein the virtual memory comprises at least one stack data structure, the first format comprises a serialized byte format, and the second format comprises a stack format.
- Claim 8Depends on #7
The computer-implemented method claimed in claim 7, further comprising extracting state data for the current execution state of the bytecode sequence of the locking script from the virtual memory by deserialization of data representing the current execution state of the bytecode sequence from the serialized byte format to the stack format, and/or comparing state data resulting from execution of the bytecode sequence of the locking script to the state data for a next execution state of the bytecode sequence of the locking script as included in the spending transaction by serialization of the state data resulting from the execution of the bytecode sequence of the locking script from the stack format to the serialized byte format.
Technical Overview & Description
CROSSREFERENCE TO RELATED APPLICATIONS This application is a continuation of U.S. patent application Ser. No. 16/639,517, filed Feb. 14, 2020, entitled “ METHODS AND SYSTEMS FOR BLOCKCHAIN-IMPLEMENTED SCRIPT-BASED BYTE INTERPRETATION, ” which is a 371 National Stage of International Patent Application No. PCT/IB2018/055892, filed Aug. 6, 2018, entitled “ METHODS AND SYSTEMS FOR BLOCKCHAIN-IMPLEMENTED SCRIPT-BASED BYTE INTERPRETATION, ” which claims priority to United Kingdom Patent Application No. 1713046.9, filed on Aug. 15, 2017, the disclosures of which are herein incorporated by reference in their entirety. FIELD OF INVENTION This invention relates generally to blockchain technologies, and more particularly to blockchain transactions employing a spending transaction script. The invention is particularly suited for, but not limited to, use in automated execution of smart contracts. BACKGROUND OF INVENTION In this document, we use the term “ blockchain ” to include all forms of electronic, computer-based, distributed ledgers. These include consensus-based blockchain and transaction-chain technologies, permissioned and un-permissioned ledgers, shared ledgers and variations thereof. The most widely known application of blockchain technology is the Bitcoin ledger, although other blockchain implementations have been proposed and developed. While “ Bitcoin ” may be referred to for the purpose of convenience and illustration in the present disclosure, it should be noted that the invention is not limited to use with the Bitcoin blockchain and alternative blockchain implementations and protocols fall within the scope of the present invention. For example, the invention may be useful in other blockchain implementations that have limitations similar to Bitcoin regarding what constraints can be encoded within transactions. A blockchain is a peer-to-peer, electronic ledger which is implemented as a computer-based decentralised, distributed system made up of blocks which in tu
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 (20)
| Patent | Title | Year | Citations |
|---|
Non-Patent Literature (10)
- “
- Arvind Narayanan et al., Bitcoin and Cryptocurrency Technologies, Feb. 9, 2016, Princeton University Press, pp. 79-84
- ”
- (Year: 2016).
- Anonymous,
- “
- Smart Contracts/EVM FAQ Counterparty,
- ”
- retrieved from https://web.archive.org/web/20170719092538/https://counterparty.io/docs/faq-smartcontracts/, Jul. 19, 2017, 7 pages.
- Antonopoulos,