Computer-implemented system and method for controlling or enforcing transfers on blockchain
By using the hash value of the redemption script and the script address matching mechanism on the blockchain network, the problem of being unable to enforce subsequent transactions on the blockchain network is solved, and the constraints and control of asset transfers are achieved to ensure that transactions follow the initial rule.
Patent Information
- Application Number
- CN202410739530.1
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Priority Date
- 2018-12-21
- Filing Date
- 2019-12-17
- Publication Date
- 2024-09-03
AI Technical Summary
Existing technology is difficult to enforce or control the subsequent transactions of subsequent transfers on the blockchain network, resulting in the inability to constrain or influence the behavior of the recipient after the asset is transferred.
By generating and using the hash value of the redemption script and comparing it with the script address, if there is a match, the script address is used in the locking script of the blockchain transaction to ensure that the transaction follows the initial rules and achieve constraints and control on subsequent transfers.
It realizes the safe and immutable execution of conditions and rules for subsequent transactions on the blockchain network, ensures that asset transfers follow the initial settings, and solves the problem of traditional blockchain being unable to constrain subsequent transactions.
Smart Images

Figure CN118586907A
Abstract
Description
[0001] This application is a divisional application of the patent application with Chinese application number 201980084443.4, application date December 17, 2019, and name “Computer-implemented systems and methods for controlling or enforcing transfers on a blockchain”. Technical Field
[0002] The present invention relates generally to distributed computing networks and more specifically to distributed ledger technology (blockchain). The present invention provides advantages in security, enforcement and control of transfers and communications between participants on a blockchain network. The present invention provides a solution for enforcing how future transfers are made on the network, thereby solving a problem that has heretofore been considered unsolvable in the field. The present invention is suitable for, but not limited to, use with machine-executable smart contracts. Background Art
[0003] As used herein, the term "blockchain" encompasses all forms of computer-based electronic distributed ledgers. These ledgers include consensus-based blockchain and transaction chain technologies, permissioned and permissionless ledgers, shared ledgers, and variants thereof. It should be noted that the present invention is not limited to use with a specific blockchain, and other blockchain implementations and protocols also fall within the scope of the present invention. The term "user" herein may refer to a person or a processor-based resource.
[0004] A blockchain is a peer-to-peer electronic ledger implemented as a decentralized, distributed computer-based system consisting of blocks, which in turn consist of transactions. Each transaction is a data structure that encodes the transfer of control of digital assets between participants in the blockchain system and includes at least one input and at least one output. Each block contains a hash of the previous block, so blocks are linked together to create a permanent, unchangeable record of all transactions written to the blockchain since its creation. Transactions include small programs embedded in their inputs and outputs, called scripts, which specify how and by whom the outputs of the transaction can be accessed. On some platforms, these scripts are written using a stack-based scripting language.
[0005] In order for a transaction to be written to the blockchain, it must be "validated". Network nodes work to ensure that each transaction is valid, and invalid transactions are rejected by the network. The software client installed on the node performs this validation work on the unspent transaction output (UTXO) by executing its locking and unlocking scripts. If the execution of the locking and unlocking scripts evaluates to TRUE, then the transaction is valid and the transaction is written to the blockchain. Therefore, in order for a transaction to be written to the blockchain, the transaction must be: i) validated by the first node that receives the transaction - if the transaction is validated, this node relays it to other nodes in the network; ii) added to a new block that is constructed; iii) added to the public ledger of past transactions.
[0006] Digital entrepreneurs have begun to explore how to implement new systems using cryptographically secure systems and data that can be stored on blockchains. It would be very beneficial if blockchains could be used to automate tasks and processes. Such solutions would be able to leverage the advantages of blockchains (e.g., permanent and tamper-proof records of events, distributed processing, etc.) while also making their applications more widespread. For example, one area of research and interest is the use of blockchains to implement “smart contracts.”
[0007] In order to provide a more general blockchain platform, it would be advantageous to be able to control or influence how "onward" transfers are made on the network after an initial transfer of assets between participants Alice and Bob. In many different types of scenarios, and for many different reasons, it would be desirable to have rules (i.e., conditions or criteria) in place that would govern the subsequent transfer of assets from Bob to one or more other participants without requiring trust between the parties. To date, it has been considered within the technology community that it is impossible to impose firm constraints on future blockchain transactions. Summary of the invention
[0008] Applicants have devised an invention that addresses at least this need. The invention is defined in the claims appended hereto.
[0009] According to an embodiment of the present invention, a computer-implemented method may be provided, comprising the following steps:
[0010] generating a representation of at least one rule (r) relating to a transfer to be performed on a blockchain network;
[0011] generating a redemption script (R) comprising the representation (r); and a script address comprising a hash value (HR) of the redemption script (R);
[0012] Comparing the hash value (H) of the redemption script (R) with the script address; and
[0013] If the hash value (H) matches the script address, then the script address is used in the locking script associated with the output (UTXO) of the blockchain transaction (TX0).
[0014] Additionally or alternatively, a computer-implemented method may be provided, comprising the steps of:
[0015] providing a recipient with a representation of at least one rule (r) relating to a proposed transfer on a blockchain network;
[0016] receiving from the sender: a redemption script (R) comprising the representation (r); and a script address comprising a hash value (HR) of the redemption script (R);
[0017] Generate a hash value (H) of the redemption script (R) and compare it with the script address;
[0018] If the hash value (H) matches the script address, then the script address is used in the locking script associated with the output of the blockchain transaction (TX0).
[0019] Additionally or alternatively, a computer-implemented method may be provided, comprising the steps of:
[0020] receiving, from a sender, a representation of at least one rule (r) relating to a proposed transfer on a blockchain network;
[0021] Sending to the sender: a redemption script (R) including the representation (r); and a script address including a hash value (HR) of the redemption script (R);
[0022] The redemption script (R) is provided in another blockchain transaction (TX1) configured to unlock the output in the blockchain transaction (TX0) locked to the script address.
[0023] The blockchain network may be a non-Bitcoin blockchain network. The method may include the step of generating a hash value of a redemption script. It may include the step of generating, updating and / or completing a blockchain transaction (TX0).
[0024] Embodiments of the present disclosure may also include Figure 1 or any of the steps contained in the description below.
[0025] One or more embodiments may further include the following steps:
[0026] Generating and / or using another blockchain transaction (TX1), the another blockchain transaction (TX1) comprising an unlocking script, the unlocking script being configured to unlock the locking script of the transaction (TX0) using the script address.
[0027] Preferably, transaction TX0, and / or another transaction TX1, is a transaction type that allows a resource to be sent to / associated with / locked by a script hash in an output's locking script, requiring the user to provide a script in an unlocking script that matches the script hash and data such that the script evaluates to true to obtain (unlock) the resource. This may be a Pay to Script Hash (P2SH) transaction. The transaction may be a functionally identical / similar transaction type that complies with another blockchain protocol.
[0028] Preferably, the representation (r) is a blockchain script or a portion / fragment of code written in a blockchain scripting language, a text file, a smart contract, an image, and / or a reference or identifier of a location where at least one rule can be accessed.
[0029] Preferably, at least one rule relates to how or to whom subsequent transfers may be made on the blockchain network.
[0030] Preferably, the representation (r) of at least one rule is provided to the recipient as part of an incomplete blockchain transaction, or as a fragment of blockchain script code.
[0031] Preferably, the script address is provided as part of the blockchain transaction.
[0032] Preferably, the method further comprises the step of providing the transaction to a blockchain network.
[0033] Preferably, at least one rule specifies a cryptographic signature that must be provided to unlock an asset on said blockchain.
[0034] Additionally or alternatively, a computer-implemented method may be provided, the method being performed by a first party, the method comprising the following steps:
[0035] generating a representation of at least one rule (r) relating to a transfer to be performed on a blockchain network, and inserting the at least one rule (r) into a locking script of the partially completed transaction (TX0);
[0036] Sending the partially completed transaction (TX0) to the second party;
[0037] receiving from the second party: a redemption script (R), the redemption script (R) including the representation (r); and a completed version (or referred to as a complete version) of the transaction (TX0), the completed version of the transaction (TX0) including a script address, the script address including a hash value (HR) of the redemption script (R); and,
[0038] Submit the blockchain transaction (TX0) to the blockchain network.
[0039] Optionally, the method further comprises: comparing the hash value (H) of the redemption script (R) with the script address.
[0040] Optionally, if the hash value (H) matches the script address, submitting the blockchain transaction (TX0) to the blockchain network is performed.
[0041] Optionally, the method further comprises: if the hash value (H) does not match the script address, terminating the blockchain transaction (TX0).
[0042] Additionally or alternatively, a computer-implemented method may be provided, the method being performed by a second party, the method comprising the following steps:
[0043] receiving, from a first party, a partially completed transaction (TX0), the partially completed transaction (TX0) comprising a fragment of a locking script including a representation of at least one rule (r) relating to a proposed transfer on a blockchain network;
[0044] Sending to the first party: a redemption script (R), the redemption script (R) including the representation (r); and a completed version (or complete version) of the transaction (TX0), the completed version of the transaction (TX0) including a script address, the script address including a hash value (HR) of the redemption script (R); and,
[0045] The redemption script (R) is provided in another blockchain transaction (TX1), and the other blockchain transaction (TX1) is configured to unlock the output in the blockchain transaction (TX0) locked to the script address.
[0046] Optionally, the another blockchain transaction (TX1) includes an unlocking script, which is configured to unlock the locking script of the transaction (TX0) using the script address.
[0047] Optionally, the method further includes: submitting the other blockchain transaction (TX1) to the blockchain network.
[0048] Optionally, the transaction (TX0) and / or the another transaction (TX1) is a Pay to Script Hash (P2SH) transaction type, or a functionally similar / identical transaction type in another blockchain protocol.
[0049] Optionally, the representation (r) is a portion of a blockchain script or a code written in a blockchain scripting language, a text file, a smart contract, an image, a reference or an identifier of a location where the at least one rule can be accessed.
[0050] Optionally, the at least one rule relates to how or to whom subsequent transfers are made on the blockchain network.
[0051] Optionally, the at least one rule specifies a cryptographic signature that must be provided to unlock an asset on the blockchain.
[0052] Optionally, the at least one rule (r) comprises: a set of actions and associated conditions agreed upon by the first party and the second party.
[0053] The present disclosure also provides a computer-implemented system, comprising:
[0054] Processor; and
[0055] A memory containing executable instructions that, when executed by the processor, cause the system to perform any embodiment of the computer-implemented method described herein.
[0056] The present disclosure also provides a non-transitory computer-readable storage medium having executable instructions stored thereon. When a processor of a computer system executes the executable instructions, the computer system is enabled to at least execute the embodiments of the present invention described herein. BRIEF DESCRIPTION OF THE DRAWINGS
[0057] These and other aspects of the invention will be apparent and illustrated in conjunction with the embodiments described herein. Embodiments of the present disclosure will now be described by way of example only and with reference to the accompanying drawings, in which:
[0058] Figure 1 A flow chart illustrating, at a high level, an embodiment of the present disclosure is shown.
[0059] Figure 2 is a schematic diagram illustrating a computing environment in which various embodiments may be implemented. DETAILED DESCRIPTION
[0060] Embodiments of the present disclosure provide a novel and advantageous mechanism to control electronic transfers made through a blockchain network. Traditionally, it has been believed that it is impossible to constrain, enforce, influence, or control subsequent ("downstream") exchanges made through subsequent transactions on a blockchain network. For example, if Alice makes a transfer to Bob through a blockchain transaction, it is traditionally believed that Alice cannot dominate or control the transfers made later by Bob (or other recipients further downstream in the transfer chain). Once Bob has received the assets transferred by Alice, he is free to act as he wishes. This is undesirable in many cases because users often want to arrange their communication paths in a particular way, or want to impose constraints on how and / or who handles the transfer of their electronic assets, data, and communications.
[0061] The present disclosure solves this problem by providing a cryptographically enforced mechanism by which a party can inject conditions, constraints, and rules into an initial transfer to affect subsequent transfers. It does this through a mathematically enforced control technique that enables secure, immutable, visible, and traceable conditions to be associated with future actions that have not yet been executed on the blockchain network.
[0062] Before providing detailed examples of embodiments, we merely provide a brief summary of some known technologies by way of technical background, the use of which is beneficial to the present disclosure.
[0063] Pay to Script Hash (P2SH)
[0064] Unlike standard blockchain transactions that enable payments to a hash of a public key in some protocols, P2SH transactions allow senders to pay to a hash of a script. In traditional transactions, an output contains a (locking) script that must evaluate to TRUE for a payment attempt to be made. The locking script will specify who must sign to unlock the associated output. With P2SH transactions, on the other hand, the output does not include the script itself, but only the hash of the locking script. Therefore, a P2SH address contains the hashed script and can be recognized because it starts with 3 (whereas a public key hash address starts with 1).
[0065] P2SH transactions require the recipient to supply a script (called a redemption script, referred to herein as R) that hashes to the same hash value as the locking script and also provides the data required to satisfy any conditions listed in the locking script so that the script evaluates to TRUE, without requiring the potential recipient of the funds to provide a signature that matches the public key specified in the locking script of the unspent transaction output (UTXO). If the redemption script matches, and provides the correct data to make the UTXO locking script evaluate to TRUE, the funds associated with the output are unlocked and control is transferred to the recipient.
[0066] It should be noted that depending on the embodiments of the present disclosure implemented using different blockchain protocols, the transaction type may be referred to by other names besides "P2SH". However, the functionality may be essentially the same, in that a potential recipient of the transaction's locked funds must provide a script that, when hashed, matches the hash value provided in the transaction output's locking script. However, for ease of reference, we shall use the term "P2SH" to refer to transaction types with this functionality / feature.
[0067] Smart Contracts
[0068] Smart contracts are computer programs designed to automatically execute the conditions of a machine-readable contract or agreement. Unlike traditional contracts written in natural language, smart contracts are machine-readable and executable programs that include rules that process inputs to produce results and then cause actions to be performed based on those results.
[0069] Illustrative embodiments of the present disclosure are provided
[0070] Assume Alice owns a certain amount of tokenized assets or other resources on a blockchain. She creates a set of conditions or rules r that dictate the terms of transfer and / or access to her assets. This set of rules, if using a different blockchain protocol, might be written in some other language.
[0071] Alice wants to transfer her assets to Bob and ensure that Bob also follows these rules when unlocking the assets on the blockchain. For example, rule r could be that her assets can only be unlocked if Eve's signature is also provided. In some scripts, this situation is represented as:
[0072] r=OP_DUP OP_HASH160 <H(P E )>OP_EQUALVERIFYOP_CHECKSIGVERIFY (1)
[0073] Among them, P E is Eve's public key. This script will evaluate to TRUE only if the following input is given
[0074] r Input = <Sig P E > <P E >
[0075] Now consider the following scenario:
[0076]
[0077] Alice imposes rule r on the first transaction tx1 from herself to Bob.
[0078] Alice can force the next transaction from Bob to Charlie to follow the same rule. That is, the payment of output UTXO1 from tx1 follows the same rule r as the payment of output UTXO0. The specific operation is as follows.
[0079] 1. Alice sends the set of rules r to Bob. Recall that these rules are represented as blockchain script fragments, e.g., as shown in (1) above.
[0080] 2. Bob creates a redeem script R, which contains rule r and its own rules, such as the requirement for its own signature.
[0081] R B = r + Checksig P B
[0082] 3. Bob redeems the script R B Create a pay-to-script-hash (P2SH) address P1.
[0083] 4. Bob sends his P2SH address P1 and redemption script R B Send it to Alice.
[0084] 5. Alice checks whether Bob’s P2SH address P1 corresponds to the redemption script R B The hash value of .
[0085] Alice can now be sure that when she creates transaction tx1 that locks to Bob's P2SH address, she will be bound by rule r. In order for Bob to unlock the asset by creating another transaction tx2, rule r must be satisfied in Bob's unlocking script, otherwise the result will be FALSE and the output will not be unlocked.
[0086] Step-by-step example of using the invention
[0087] For the convenience of readers, refer to Figure 1 , we now provide a more detailed step-by-step example of an illustrative embodiment of the invention that might be put to use.
[0088] In step 101, multiple parties (e.g., Alice and Bob) decide on a course of action, which is governed by a set of conditions, rules, or criteria (hereinafter referred to as "rules" r). This can be any type of action, such as the transfer of tokens held on the blockchain, or the purchase / lease / provision of certain equipment, goods or services, etc. Similarly, the condition can be any constraint on the execution of the action, for example, Alice transfers the tokenized entity on the blockchain to Bob after confirming a specific event.
[0089] Alice (or other party) generates a representation of rule r. This representation can be in any form, such as a text file, picture, sound file, or script. Essentially, it is a record of agreed actions and the conditions / rules / criteria governing their execution. In some embodiments, this can be a smart contract, as is well known in the art and explained above. In a preferred embodiment, the condition is expressed in some blockchain-compatible and executable language. Thus, r can be a fragment or part of a (blockchain script) code.
[0090] In step 102, Bob uses Alice's script fragment r to generate a redemption script R. Therefore, the redemption script R contains rule r. Bob may also include some other rules of his own.
[0091] In step 103, Bob uses the redeem script R to generate a hash value H(R), which can be used as his P2SH address.
[0092] In step 104, Bob sends his P2SH address and redemption script R to Alice. This can be done in any suitable way. Alice can then confirm that the redemption script R includes its rule r.
[0093] In steps 105 and 106, Alice checks whether the P2SH provided by Bob is the hash of Bob's redeem script. This is a quick and computationally simple process. If they do not match, Alice can choose to terminate the transaction or query the transaction. If they do match, she can proceed knowing that her rules are included and will be enforced, so she generates blockchain transaction TX0, which she sends to the network for verification in step 107 and is mined into a block.
[0094] In step 108, when Bob wishes to access the assets locked by Alice in TX0, he generates a payment transaction TX1 that includes an output (UTXO) that will provide the required redemption script R to the locking script of TX0 to release the assets. In order for this to happen, the fragment r must evaluate to TRUE, which ensures that the rule r originally specified by Alice has been executed.
[0095] In an alternative embodiment, the above process can be performed by generating an incomplete partial transaction. This can be done by Alice inserting fragment r into the locking script of the partially completed P2SH transaction TX0. The locking script is associated with the unspent transaction output UTXO of TX0 and determines how the UTXO can be unlocked by another subsequent transaction TX1. TX0 is incomplete because it does not yet contain a P2SH address. This will be provided by Bob.
[0096] According to step 103, the partial transaction TX0 (containing fragment r) is transmitted to Bob. This can be achieved in a number of ways. Bob can check whether the rules in r match what Alice and Bob agreed to in step 101.
[0097] According to step 103, Bob creates a redemption script R, which includes rule r, and then generates a hash of R to generate its P2SH address. In step 104, Bob's redemption script R and P2SH are transmitted to Alice by inserting his P2SH address into transaction TX0 and sending it back to Alice. R can be sent by any suitable method. Based on Bob's updated version of TX0, Alice can check whether the P2SH address he provided matches the hash of the redemption script containing rule r.
[0098] In step 107, Alice submits TX0 to the blockchain network as described above. It is verified and mined into blocks according to known techniques. Of course, Bob wants to pay the UTXO in TX0, so it must be unlocked in step 108. In order to unlock the UTXO, he must provide the necessary hash for the UTXO redemption script, so he generates a payment transaction TX1, which contains the unlocking script for TX1. TX1 is then output to the blockchain, verified, and added to the public ledger of past transactions, so that the hash will be presented to the redemption script in TX0, the output will be unlocked, and the asset (e.g., token, etc.) transfer will occur. Now, Bob holds the asset.
[0099] The present invention thus provides a solution for solving problems previously considered unsolvable in the art and, through the use of mathematical and cryptographic techniques, enables the control, enforcement and binding of subsequent transfers between parties on a blockchain network.
[0100] Now go to Figure 2 , provides an illustrative simplified block diagram of a computing device 2600 that can be used to implement at least one embodiment of the present disclosure. In various embodiments, the computing device 2600 can be used to implement any of the systems shown and described above. For example, the computing device 2600 can be configured to function as a data server, a network server, a portable computing device, a personal computer, or any electronic computing device. Figure 2As shown, computing device 2600 may include one or more processors with one or more levels of cache and a memory controller (collectively referred to as 2602), which may be configured to communicate with a storage subsystem 2606 including a main memory 2608 and a permanent memory 2610. As shown, main memory 2608 may include dynamic random access memory (DRAM) 2618 and read-only memory (ROM) 2620. Storage subsystem 2606 and cache memory 2602 may be used to store information, such as details associated with transactions and blocks described in the present disclosure. Processor 2602 may be used to provide the steps or functions of any embodiment described in the present disclosure.
[0101] The processor 2602 may also communicate with one or more user interface input devices 2612 , one or more user interface output devices 2614 , and a network interface subsystem 2616 .
[0102] The bus subsystem 2604 may provide a mechanism for enabling the various components and subsystems of the computing device 2600 to communicate with each other as intended. Although the bus subsystem 2604 is schematically shown as a single bus, alternative embodiments of the bus subsystem may utilize multiple busses.
[0103] The network interface subsystem 2616 can provide an interface to other computing devices and networks. The network interface subsystem 2616 can serve as an interface for receiving data from the computing device 2600 and transmitting data to other systems. For example, the network interface subsystem 2616 can enable a data technician to connect the device to a network, so that the data technician can send data to the device and receive data from the device at a remote location (e.g., a data center).
[0104] The user interface input devices 2612 may include one or more user input devices such as a keyboard; a pointing device such as an integrated mouse, trackball, touchpad, or graphics tablet; a scanner; a barcode scanner; a touch screen included in a display; an audio input device such as a voice recognition system, a microphone; and other types of input devices. In general, the use of the term "input device" is intended to include all possible types of devices and mechanisms for inputting information into the computing device 2600.
[0105] One or more user interface output devices 2614 may include a display subsystem, a printer, or a non-visual display (e.g., an audio output device, etc.). The display subsystem may be a cathode ray tube (CRT), a flat panel device (e.g., a liquid crystal display (LCD)), a light emitting diode (LED) display, or a projection or other display device. In general, use of the term "output device" is intended to include all possible types of devices and mechanisms for outputting information from the computing device 2600. For example, one or more user interface output devices 2614 may be used to present a user interface to facilitate user interaction with an application that performs the described processes and variations therein (when such interaction may be appropriate).
[0106] The storage subsystem 2606 may provide a computer-readable storage medium for storing basic programming and data structures that may provide the functionality of at least one embodiment of the present disclosure. When executed by one or more processors, an application (program, code module, instruction) may provide the functionality of one or more embodiments of the present disclosure and may be stored in the storage subsystem 2606. These application modules or instructions may be executed by one or more processors 2602. The storage subsystem 2606 may additionally provide a repository for storing data used in accordance with the present disclosure. For example, the main memory 2608 and the cache memory 2602 may provide volatile storage for programs and data. The permanent storage 2610 may provide permanent (non-volatile) storage for programs and data, and may include flash memory, one or more solid-state drives, one or more magnetic hard drives, one or more floppy disk drives with associated removable media, one or more optical drives with associated removable media (e.g., CD-ROM or DVD or Blu-ray), and other similar storage media. Such programs and data may include programs for executing the steps of one or more embodiments as described in the present disclosure and data associated with transactions and blocks described in the present disclosure.
[0107] The computing device 2600 may be of various types, including a portable computer device, a tablet computer, a workstation, or any other device described below. Additionally, the computing device 2600 may include another device that may be connected to the computing device 2600 via one or more ports (e.g., USB, headphone jack, lightning connector, etc.). The device that may be connected to the computing device 2600 may include a plurality of ports configured to accept fiber optic connectors. Thus, the device may be configured to convert optical signals into electrical signals that may be transmitted via the port that connects the device to the computing device 2600 for processing. Due to the ever-changing nature of computers and networks, Figure 2 The depiction of computing device 2600 is intended only to illustrate a specific example of a preferred embodiment of the device. Figure 2There are many other configurations with more or fewer components of the systems shown.
[0108] It should be noted that the above embodiments illustrate rather than limit the present invention, and those skilled in the art will be able to design many alternative embodiments without departing from the scope of the present invention as defined in the appended claims. In the claims, any figure marks in brackets should not be interpreted as limiting the claims. The word "comprising" and the like do not exclude the presence of elements or steps other than those listed as a whole in any claim or specification. In this specification, "comprising" means "including or consisting of...". The singular form of an element does not exclude the plural form of such elements, and vice versa. The present invention can be implemented by hardware comprising several different elements and by appropriately programmed computers. In a device claim that lists several devices, several of these devices may be embodied by the same hardware. The fact that certain measures are cited in mutually different dependent claims does not mean that a combination of these measures cannot be used to advantage.
Claims
1. A computer-implemented method, the method being performed by a first party, the method comprising the following steps: generating a representation of at least one rule (r) relating to a transfer to be performed on a blockchain network, and inserting the at least one rule (r) into a locking script of the partially completed transaction (TX0); Sending the partially completed transaction (TX0) to the second party; receiving from the second party: a redemption script (R), the redemption script (R) comprising the representation (r); and a completed version of the transaction (TX0), the completed version of the transaction (TX0) comprising a script address, the script address comprising a hash value (HR) of the redemption script (R); Submit the blockchain transaction (TX0) to the blockchain network.
2. The method according to claim 1, further comprising: The hash value (H) of the redemption script (R) is compared to the script address.
3. The method according to claim 2, wherein: If the hash value (H) matches the script address, then submitting the blockchain transaction (TX0) to the blockchain network is performed.
4. The method according to claim 2, further comprising: If the hash value (H) does not match the script address, the blockchain transaction (TX0) is terminated.
5. A computer-implemented method, the method being performed by a second party, the method comprising the steps of: receiving, from a first party, a partially completed transaction (TX0), the partially completed transaction (TX0) comprising a fragment of a locking script including a representation of at least one rule (r) relating to a proposed transfer on a blockchain network; Sending to the first party: a redemption script (R), the redemption script (R) including the representation (r); and a completed version of the transaction (TX0), the completed version of the transaction (TX0) including a script address, the script address including a hash value (HR) of the redemption script (R); The redemption script (R) is provided in another blockchain transaction (TX1), and the other blockchain transaction (TX1) is configured to unlock the output in the blockchain transaction (TX0) locked to the script address.
6. The method according to claim 5, wherein: The another blockchain transaction (TX1) includes an unlocking script, which is configured to unlock the locking script of the transaction (TX0) using the script address.
7. The method according to claim 5 or 6, further comprising: Submitting the other blockchain transaction (TX1) to the blockchain network.
8. A method according to any of the preceding claims, wherein the transaction (TX0) and / or the further transaction (TX1) is a Pay to Script Hash (P2SH) transaction type, or a functionally similar / identical transaction type in another blockchain protocol.
9. A method according to any of the preceding claims, wherein the representation (r) is a portion of a blockchain script or a code written in a blockchain scripting language, a text file, a smart contract, an image, a reference or an identifier of a location where the at least one rule can be accessed.
10. A method according to any preceding claim, wherein: The at least one rule relates to how or to whom subsequent transfers are made on the blockchain network.
11. A method according to any preceding claim, wherein the at least one rule specifies a cryptographic signature that must be provided to unlock an asset on the blockchain.
12. The method according to any of the preceding claims, wherein the at least one rule (r) comprises: A set of actions and associated conditions agreed upon by the first party and the second party.
13. A computer-implemented system comprising: processor; as well as A memory comprising executable instructions, wherein when the processor executes the executable instructions, the system is caused to perform any embodiment of the computer-implemented method according to any one of claims 1 to 12.
14. A non-transitory computer-readable storage medium having executable instructions stored thereon, wherein when a processor of a computer system executes the executable instructions, the computer system is caused to at least perform an implementation of the method according to any one of claims 1 to 12.
