{"pub_number":"US12373829B2","doc_number":"12373829","country":"US","kind_code":"B2","patent_type":"utility","status":"active","title":"Constraining injection of unlocking transaction bytecode","abstract_text":"Techniques presented are related to distributed ledge technologies such as consensus-based blockchains. The methods and systems of the present disclosure are provided for causing receiving, at a node in a blockchain network, a first transaction to validate, the first transaction including a first script that at least: includes a set of field values of the first transaction; and causes, as a result of being executed, the node to obtain the set of field values; obtaining a second transaction, the second transaction having been validated and including a second script that, as a result of being executed, causes the node to at least generate a signature based at least in part on a private cryptographic key and a mask number; and validating the first transaction by executing the first script and the second script.","claims":[{"number":1,"text":"A method comprising: receiving, at a node in a blockchain network, a first transaction to validate, the first transaction including a first script that at least: includes a set of field values of the first transaction; and causes, as a result of being executed, causes the node to obtain the set of field values; obtaining a second transaction, the second transaction having been validated and including a second script that, as a result of being executed, causes the node to at least generate a signature based at least in part on a private cryptographic key and a mask number; and validating the first transaction by executing the first script and the second script.","independent":true},{"number":2,"text":"The method according to claim 1, wherein validating the first transaction is successfully performed without verifying that an entity that created the first transaction has access to secret information.","independent":false,"depends_on":[1]},{"number":3,"text":"The method according to claim 1, wherein: the private cryptographic key is of an asymmetric key pair; and validating the first transaction further includes validating that the signature is associated with a public cryptographic key of the asymmetric key pair.","independent":false,"depends_on":[1]},{"number":4,"text":"The method according to claim 1, wherein: the first script further specifies a signature hash type; and the set of field values is based at least in part on the signature hash type.","independent":false,"depends_on":[1]},{"number":5,"text":"The method according to claim 4, wherein the signature hash type is a value that indicates which field values of the set of field values of the first transaction are to be included in the signature.","independent":false,"depends_on":[4]},{"number":6,"text":"The method according to claim 1, wherein: the second script is a locking script that imposes a set of conditions for validating the first transaction; and execution of the locking script causes the node to validate the first transaction by determining whether the set of conditions have been fulfilled.","independent":false,"depends_on":[1]},{"number":7,"text":"The method according to claim 1, wherein the first script is an unlocking script for satisfying the set of conditions of the second script.","independent":false,"depends_on":[1]},{"number":8,"text":"The method according to claim 1, wherein validating the first transaction causes the transfer of an unspent transaction output of the second transaction.","independent":false,"depends_on":[1]},{"number":9,"text":"The method according to claim 1, wherein the node is a computing device that is communicatively coupled to at least one other node in the blockchain network.","independent":false,"depends_on":[1]},{"number":10,"text":"The method according to claim 1, wherein the blockchain network is comprised of distributed electronic devices running an instance of a blockchain protocol.","independent":false,"depends_on":[1]},{"number":11,"text":"The method according to claim 1, wherein the first script and second script are written using a Turing incomplete instruction set.","independent":false,"depends_on":[1]},{"number":12,"text":"The method according to claim 1, wherein the first script and second script are written using a Turing complete instruction set.","independent":false,"depends_on":[1]},{"number":13,"text":"The method according to claim 1, wherein the first script, by including the set of fields, causes the node, as a result of execution of the first script, to make the set of fields available as input to the second script.","independent":false,"depends_on":[1]},{"number":14,"text":"A system, comprising: a processor; and memory including executable instructions that, as a result of execution by the processor, causes the system to perform the method of claim 1.","independent":false,"depends_on":[1]},{"number":15,"text":"A non-transitory computer-readable storage medium having stored thereon executable instructions that, as a result of being executed by a processor of a computer system, cause the computer system to at least perform the method of claim 1.","independent":false,"depends_on":[1]}],"claim_stats":{"total":15,"independent":1,"dependent":14},"description":"CROSS REFERENCE TO RELATED APPLICATIONS\nThis application is a continuation of U.S. patent application Ser. No. 18/064,814, filed Dec. 12, 2022, entitled\n“\nCONSTRAINING INJECTION OF UNLOCKING TRANSACTION BYTECODE,\n”\nwhich is a continuation of U.S. patent application Ser. No. 16/615,802, filed Nov. 21, 2019, entitled\n“\nCONSTRAINING INJECTION OF UNLOCKING TRANSACTION BYTECODE,\n”\nwhich is a 371 National Stage of International Patent Application No. PCT/IB2018/053335, filed May 14, 2018, which claims priority to United Kingdom Patent Application No. 1708185.2, filed May 22, 2017, United Kingdom Patent Application No. 1708190.2, filed May 22, 2017, United Kingdom Patent Application No. 1708192.8, filed May 22, 2017, United Kingdom Patent Application No. 1708196.9, filed May 22, 2017, United Kingdom Patent Application No. 1708198.5, filed May 22, 2017, and United Kingdom Patent Application No. 1708200.9, filed May 22, 2017, the disclosures of which are incorporated herein by reference in their entirety.\nTECHNICAL FIELD\nThis invention relates generally to distributed ledger technologies, including blockchain transactions, and more particularly to causing the injection of fields from blockchain transactions into the unlocking transaction scripts. The invention utilises cryptographic and mathematical techniques to enforce security in relation to electronic transfers conducted over a blockchain network. The invention is particularly suited for, but not limited to, use in smart contracts and state machines.\nBACKGROUND\nIn this document we use the term\n“\nblockchain\n”\nto 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\n“\nBitcoin\n”\nmay be referr","inventors":[{"name":"Ying Chan","slug":"ying-chan","city":"Cambridge","country":"GB"},{"name":"Dean Kramer","slug":"dean-kramer","city":"London","country":"GB"}],"assignees":[{"name":"NCHAIN LICENSING AG","slug":"nchain-licensing-ag","country":"CH"}],"examiners":[],"cpc_codes":["G06F 16/2379","G06F 21/6209","G06F 21/645","G06Q 10/10","G06Q 20/065","G06Q 20/0658","G06Q 20/36","G06Q 20/3674","G06Q 20/3825","G06Q 20/3829","G06Q 20/389","G06Q 2220/00","H04L 2209/56","H04L 9/0637","H04L 9/0643","H04L 9/30","H04L 9/3066","H04L 9/3236","H04L 9/3239","H04L 9/3247","H04L 9/3252","H04L 9/50"],"ipc_codes":["G06F 16/23","G06F 21/62","G06F 21/64","G06Q 10/10","G06Q 20/06","G06Q 20/36","G06Q 20/38","H04L 9/00","H04L 9/06","H04L 9/30","H04L 9/32"],"filing_date":"2023-12-28","pub_date":"2025-07-29","grant_date":"2025-07-29","expiration_date":"2043-12-28","family_members":[],"citations_made":[{"pub_number":"US5625692A","category":"applicant"},{"pub_number":"US10417217B2","category":"applicant"},{"pub_number":"US10423938B1","category":"applicant"},{"pub_number":"US10491402B2","category":"applicant"},{"pub_number":"US10523443B1","category":"applicant"},{"pub_number":"US10832247B2","category":"applicant"},{"pub_number":"US11509482B2","category":"applicant"},{"pub_number":"US11528145B2","category":"examiner"},{"pub_number":"US20020152385A1","category":"applicant"},{"pub_number":"US20110213982A1","category":"examiner"},{"pub_number":"US20120233469A1","category":"applicant"},{"pub_number":"US20130046983A1","category":"applicant"},{"pub_number":"US20130073867A1","category":"applicant"},{"pub_number":"US20150081566A1","category":"applicant"},{"pub_number":"US20150302400A1","category":"applicant"},{"pub_number":"US20160012465A1","category":"applicant"},{"pub_number":"US20160080156A1","category":"applicant"},{"pub_number":"US20160253663A1","category":"applicant"},{"pub_number":"US20160292672A1","category":"applicant"},{"pub_number":"US20160344550A1","category":"applicant"},{"pub_number":"US20170011460A1","category":"applicant"},{"pub_number":"US20170085545A1","category":"applicant"},{"pub_number":"US20170091750A1","category":"applicant"},{"pub_number":"US20170109734A1","category":"applicant"},{"pub_number":"US20170109748A1","category":"applicant"},{"pub_number":"US20170140408A1","category":"applicant"},{"pub_number":"US20170149819A1","category":"applicant"},{"pub_number":"US20170180134A1","category":"applicant"},{"pub_number":"US20170187535A1","category":"applicant"},{"pub_number":"US20170220815A1","category":"applicant"},{"pub_number":"US20170221052A1","category":"applicant"},{"pub_number":"US20170230189A1","category":"applicant"},{"pub_number":"US20170236121A1","category":"applicant"},{"pub_number":"US20170237554A1","category":"applicant"},{"pub_number":"US20170300912A1","category":"applicant"},{"pub_number":"US20170301047A1","category":"applicant"},{"pub_number":"US20170337534A1","category":"applicant"},{"pub_number":"US20180039667A1","category":"applicant"},{"pub_number":"US20180253702A1","category":"applicant"},{"pub_number":"US20180260921A1","category":"applicant"},{"pub_number":"US20180278594A1","category":"applicant"},{"pub_number":"US20180285838A1","category":"applicant"},{"pub_number":"US20180285996A1","category":"applicant"},{"pub_number":"US20190043048A1","category":"applicant"},{"pub_number":"US20190050832A1","category":"applicant"},{"pub_number":"US20190058592A1","category":"applicant"},{"pub_number":"US20190116024A1","category":"applicant"},{"pub_number":"US20190149337A1","category":"applicant"},{"pub_number":"US20190172026A1","category":"applicant"},{"pub_number":"US20190213564A1","category":"applicant"},{"pub_number":"US20190220836A1","category":"applicant"},{"pub_number":"US20190228391A1","category":"applicant"},{"pub_number":"US20190244227A1","category":"applicant"},{"pub_number":"US20190347658A1","category":"applicant"},{"pub_number":"US20200005277A1","category":"applicant"},{"pub_number":"US20200082361A1","category":"applicant"},{"pub_number":"US20200136815A1","category":"applicant"},{"pub_number":"US20200143339A1","category":"applicant"},{"pub_number":"US20200193432A1","category":"applicant"},{"pub_number":"US20200234386A1","category":"applicant"},{"pub_number":"US20210090037A1","category":"applicant"},{"pub_number":"US20210182433A1","category":"applicant"},{"pub_number":"US20210336956A1","category":"applicant"},{"pub_number":"US20210350360A1","category":"applicant"},{"pub_number":"US20220052857A1","category":"applicant"},{"pub_number":"CA3004423A1","category":"applicant"},{"pub_number":"CN105809062A","category":"applicant"},{"pub_number":"CN106022917A","category":"applicant"},{"pub_number":"CN106598549A","category":"applicant"},{"pub_number":"JP2016174426A","category":"applicant"},{"pub_number":"JP2018530175A","category":"applicant"},{"pub_number":"JP7232776B2","category":"applicant"},{"pub_number":"KR101590076B1","category":"applicant"},{"pub_number":"KR20160095720A","category":"applicant"},{"pub_number":"KR101661930B1","category":"applicant"},{"pub_number":"WO2015160839A1","category":"applicant"},{"pub_number":"WO2016105927A1","category":"applicant"},{"pub_number":"WO2017079218A1","category":"applicant"},{"pub_number":"WO2017091530A1","category":"applicant"}],"non_patent_literature":["Fuchita, Yasuyuki,","“","Special Feature: Innovation and Finance","—","Blockchain and Financial Transaction Innovation","”",", Nomura capital markets quarterly, Japan, Nomura Institute of Capital Markets Research, Nov. 1, 2015, vol. 19, No. 2 (consecutive number of issue 74), (with English Translation), 59 pages.","Saito Kenji,","“","Currency that Changes the Future"],"drawings_count":26,"source_id":"uspto_patent_grants","upstream_forward_citations":0,"metrics":{"forward_citations":0,"indexed_forward_citations":0,"backward_citations":79,"npl_citations":10,"citations_per_year":0.0,"pagerank":0.0,"citation_rank":3483581,"pagerank_rank":3483581,"velocity_rank":3483581,"family_citations":0}}