System and method for controlling asset-related actions via blockchain
A blockchain-based system with smart contracts and computational agents automates asset transactions, addressing the challenge of income and expense allocation among multiple owners, ensuring secure and transparent record-keeping.
Patent Information
- Application Number
- JP2024113075
- Authority / Receiving Office
- JP · JP
- Patent Type
- Applications
- Current Assignee / Owner
- Priority Date
- 2016-11-15
- Filing Date
- 2024-07-16
- Publication Date
- 2024-10-16
- Estimated Expiration
- Not applicable · inactive patent
AI Technical Summary
Existing systems lack efficient mechanisms for automatically calculating and allocating income and expenses to owners of blockchain-based assets, ensuring secure and public record-keeping of transactions, and managing asset ownership and value distribution among multiple entities.
A computer-implemented system utilizing smart contracts and computational agents to manage asset transfers on a blockchain, including private cryptographic keys, registries, and agents for income, cost, and notification, which automatically generate and execute transactions based on predefined rules and triggers.
Enables secure, automated, and transparent management of asset-related transactions, ensuring accurate income and expense distribution among owners, reducing the need for proprietary systems and providing a public record of transactions.
Smart Images

Figure 2024147682000001_ABST
Abstract
Description
[Technical field]
[0001] The present invention relates generally to computer-implemented asset control, exchange, and processing. In particular, the present invention relates to the field of smart contracts and is suitable for use with peer-to-peer distributed networks such as the blockchain, which may be the Bitcoin blockchain or an alternative blockchain platform. The present invention is particularly advantageous in situations where ownership of an asset is divided among multiple entities and / or value is derived or generated from the asset. The present invention provides mechanisms for determining and responding to events that act as triggers for action in such situations. The present invention also includes cryptographic techniques that provide enhanced security and anonymity in connection with the control and transfer of electronic assets. [Background technology]
[0002] A blockchain is a decentralized, consensus-based, distributed computer-implemented system made up of blocks, which in turn are made up of transactions. Each block contains a hash of the previous block, and blocks are chained together to create a permanent, immutable record of all transactions that have been written to the blockchain since its inception. Transactions contain small programs, known as scripts, that are embedded in their inputs and outputs. The scripts specify how and by whom the output of a transaction can be accessed.
[0003] The most widely known application of blockchain technology is the Bitcoin ledger, although other blockchain implementations have been proposed and developed. Although Bitcoin is referred to herein for convenience and purposes of explanation, it should be noted that the present invention is not limited to use with the Bitcoin blockchain, and alternative blockchain implementations are within the scope of the present invention.
[0004] Blockchain technology is most widely known for its use in implementing cryptocurrencies. However, in more recent years, digital entrepreneurs have begun to explore both the use of the cryptocurrency security system that Bitcoin is based on, and the data that can be stored on the blockchain, to implement new systems. These include, but are not limited to: Stores metadata: Information can be transferred over the blockchain by embedding it as metadata within transactions. This can be used to: Implement digital tokens. Establishing signed transactions with digital signatures. Smart contracts can be designed to provide self-executing, machine-readable solutions that may contain conditions and tests that can be evaluated to determine what actions should be performed, for example whether a payment should be made to a particular party.
[0005] It would be advantageous to be able to calculate and allocate income and / or expenses to owners of blockchain-based assets in an automated, secure and efficient manner. To do this, an event (trigger) may need to be detected that generates an action such as income or expenses payable to or by the owner of such an asset. Techniques are then needed to automatically (i.e., by machine) generate and sign blockchain transactions to effect the income or expense payment.
[0006] Such an improved solution has been devised. The invention may include a technology solution built on a blockchain protocol that allows for the automatic generation of blockchain transactions. The transactions may be used to make transfers between entities over the blockchain, such as income or expense payments. The use of blockchain ensures that there is a secure, public record of any payment made for a given transaction. This eliminates or at least mitigates the need to gain access to proprietary systems and data sources to provide evidence of delinquency for a transaction in a dispute scenario. The invention may also include and utilize novel techniques for the generation of cryptographic keys. Some of the other advantages that arise from the invention are discussed below. Summary of the Invention
[0007] The present invention may provide a computer-implemented system or mechanism for controlling, computing, generating, and / or executing exchanges on a blockchain. The exchanges (transfers) may involve any type of physical, virtual, or logical assets.
[0008] The invention may be configured to control transfers made over a blockchain with respect to assets, which may include assets or representations of assets. The assets or representations may include one or more private cryptographic keys, each private key being associated with an owner of the asset. The private keys may be part of a cryptographic key pair. One or more of the private keys may be generated according to the techniques described below in the section entitled "Methods of Subkey Generation." One or more of the private keys may be generated using a common secret, which may be a subkey generated from a master cryptographic key.
[0009] The present invention may include techniques for determining a secret common to a first and a second entity, where the first or second entity may be an asset and the other entity may be a control or other entity associated with the asset. The method may include the following steps: determining a first entity second private key based on at least one of the first entity master private key and the generator value; determining a second entity second private key based on at least one of the second entity master private key and the generator value; determining a common secret (CS) at the first entity based on the first entity second private key and the second entity second public key, and determining the common secret (CS) at the second entity based on the second entity second private key and the first entity second public key; The first entity second public key and the second entity second public key are based on the first / second entity master key and a generator value, respectively.
[0010] The invention may further include a registry. The registry may store one or more public cryptographic keys. Each public key may correspond to one of the private keys of the assets. The public key(s) may be associated with a RedeemScript hash identifiable in an unspent blockchain transaction (UTXO).
[0011] The present invention may include a smart contract that includes at least one rule for the automated generation of one or more blockchain transactions that allow transfers to be made regarding assets. A smart contract may be machine readable and / or executable.
[0012] The present invention may include a computational agent configured to evaluate and / or execute at least one rule of a smart contract. The computational agent may be substantially as described below.
[0013] The transfer may be of any currency, for example a portion of a bond or cryptocurrency. It may be a payment to be made for an asset. It may relate to income or expenses associated with an asset. The transfer may be between parties specified in a smart contract. The currency may be Bitcoin, or any digital (crypto) currency, or tokenized value.
[0014] At least one rule provided in the smart contract may define a payment schedule associated with the asset.
[0015] A computing agent may be configured to communicate with other computing agents, each of which may be configured to perform a task associated with the asset. A computing agent may be configured to coordinate and / or authorize the activities of each of the other computing agents. Thus, there may be a "master" computing agent and one or more subordinate (other) computing agents. The master agent may be configured to control, direct, or monitor the activities of one or more subordinate computing agents.
[0016] The present invention may include at least one other computational agent ("revenue agent" as described below) configured to generate blockchain transactions related to revenue associated with the asset.
[0017] The present invention may include at least one other computation agent ("expense agent" as described below) configured to generate blockchain transactions related to expenses associated with the assets.
[0018] The present invention may include at least one further calculation agent (an "offsetting agent" as described below) configured to process the offsetting of income against payments associated with the assets.
[0019] The invention may include at least one further computing agent (a "notification agent" as described below) configured to generate and / or send alerts to the owners of the assets, the alerts providing notification of events related to the assets.
[0020] A computational agent may be configured to generate a blockchain transaction upon detecting an event or trigger specified in a smart contract.
[0021] Smart contracts may be stored in a distributed hash table, and a hash of the transaction may be provided in the metadata associated with the blockchain transaction.
[0022] The present invention relates to a computer-implemented method for controlling transfers made over a blockchain for assets, the method comprising the steps of: defining an asset including at least one private cryptographic key, each private key being associated with an owner of the asset; generating a registry containing at least one public cryptographic key, each public key comprising: corresponds to one of the asset's one or more private keys; associated with a RedeemScript hash identifiable in the unspent blockchain transaction; generating a smart contract that includes at least one rule for the automatic generation of one or more blockchain transactions that allow a transfer to be made regarding the assets; and using a computational agent configured to evaluate and / or execute at least one rule of the smart contract.
[0023] The transfer may be a transfer of currency to be made in respect of the asset, the transfer relating to income or expenses associated with the asset, the currency may be Bitcoin, or any digital currency, or tokenized value.
[0024] At least one rule provided in the smart contract may define a payment schedule associated with the asset.
[0025] The method may further include configuring the computing agent to communicate with other computing agents, and configuring each of the other computing agents to perform a task associated with the asset.
[0026] A computing agent may be configured to coordinate and / or authorize the activities of each of the other computing agents.
[0027] The method comprises: i) at least one other computational agent configured to generate blockchain transactions related to income associated with the assets; ii) at least one other computational agent configured to generate blockchain transactions related to costs associated with the assets; iii) at least one further calculation agent configured to process offsetting settlements of income against payments associated with the assets; iv) at least one further computing agent configured to generate and / or send an alert to an owner of the asset, the alert providing a notification about an event related to the asset.
[0028] A computational agent may be configured to generate a blockchain transaction upon detecting an event or trigger specified in a smart contract.
[0029] The smart contract may be stored in a distributed hash table, and a hash of the transaction is provided in metadata associated with a blockchain transaction.
[0030] One or more embodiments of the present invention may include techniques described below in the section entitled "Method of Subkey Generation." This may include techniques for determining a secret common to a first and a second entity. Hereinafter, the term "node" may be used instead of "entity" for ease of reference. The method includes the following steps: determining a first node second private key based on at least one of the first node master private key and the generator value; determining a second node second private key based on at least one second node master private key and the generator value; determining a common secret (CS) at the first node based on the first node second private key and the second node second public key, and determining the common secret (CS) at the second node based on the second node second private key and the first node second public key; The first node second public key and the second node second public key are based on the first / second node master keys and generator values, respectively.
[0031] Additionally or alternatively, one or more embodiments of the invention may include a computer-implemented method comprising: In the first node (C), a common secret (CS) common to the first node (C) and the second node (S) is determined, and the first node (C) determines a first node master private key (V 1C ) and the first node master public key (P 1C ) and the second node is associated with a first asymmetric cryptographic pair having a second node master private key (V 1S ) and the second node master public key (P 1S ) associated with a second asymmetric cryptographic pair having At least one first node master private key (V 1C) and the decision key (DK), the first node determines the second private key (V 2C ) At least one second node master public key (P 1S ) and the decision key (DK), the second node derives the second public key (P 2S ) 1st node 2nd private key (V 2C ) and the second node second public key (P 2S determining a common secret (CS) based on the The second node (S) receives the second public key (P 2C ) and the second node second private key (V 2S ) First node second public key (P 2S ) contains at least one first node master public key (P 1C ) and Decision Key (DK), Second node second private key (V 2S ) has at least one second node master private key (V 1S ) and decision key (DK).
[0032] The decision key (DK) may be based on the message (M). The method comprises the following steps: A message (M) and the second private key (V 2C ) generating a first signed message (SM1); and transmitting the first signed message (SM1) to a second node (S) via a communication network, The first signed message (SM1) contains the first node's second public key (P 2C ) can be verified.
[0033] Preferably, the method comprises the following steps: receiving a second signed message (SM2) from a second node (S) via a communications network; Second node second public key (P 2S) verifying the second signed message (SM2) with and authenticating the second node (S) based on a result of the step of verifying the second signed message (SM2), The second signed message (SM2) is generated by combining the message (M) or the second message (M2) and the second node second private key (V 2S ) is generated based on
[0034] Preferably, the method comprises the following steps: generating a message (M); Sending the message (M) to a second node (S) via a communications network.
[0035] Preferably, the method comprises the following steps: Receiving the message (M) from a second node (S) via the communications network.
[0036] Preferably, the method comprises the following steps: Receiving a message (M) from another node via a communications network.
[0037] Preferably, the method comprises the following steps: The method may include receiving a message (M) from a data store and / or an input interface associated with the first node (C).
[0038] Preferably, the first node master public key (P 1C ) and the second node master public key (P 1S ) may be based on elliptic curve point multiplication of the respective first node master private key (V1C) and second node master private key (V1S) and a generator (G).
[0039] Preferably, the method comprises the following steps: The second node master public key (P 1S), The datastore associated with the first node (C) contains the master public key of the second node (P 1S ) storing the
[0040] Preferably, the method comprises the following steps: generating a first node private key (V1C) and a first node master public key (P1C) at a first node (C); The first node master public key (P 1C ) to a second node (S) and / or other nodes; The first data store associated with the first node (C) stores the first node master private key (V 1C ) storing the
[0041] Preferably, the method comprises the following steps: sending, via the communications network, a notification to the second node indicating use of a common Elliptic Curve Cryptography (ECC) system with a common generator (G) for the method of determining the common secret (CS); First node master private key (V 1C ) and the first node master public key (P 1C ) is generated by: The first node master private key (V 1C ), Following formula:P 1C =V 1C ×G, the first node master private key (V 1C ) and the common generator (G) based on the elliptic curve point multiplication, the first node master public key (P 1C ) determining
[0042] Preferably, the method comprises the following steps: determining a determination key (DK) based on determining a hash of the message (M); 1st node 2nd private key (V 2C The step of determining V 2C =V 1C +DK, the first node master private key (V 1C ) and the scalar sum of the decision key (DK), Second node second public key (P 2S The step of determining P 2S =P 1S +DK×G, the second node master public key (P 1S ) elliptic curve point addition.
[0043] Preferably, the determination key (DK) may be based on determining a hash of a previous determination key.
[0044] The first asymmetric cryptographic pair and the second asymmetric cryptographic pair may be based on a function of a previous first asymmetric cryptographic pair and a previous second asymmetric cryptographic pair, respectively.
[0045] Any feature described above in relation to one embodiment or aspect may be used in relation to any other embodiment or aspect, for example any feature described in relation to a method may be used in relation to a system, and vice versa.
[0046] These and other aspects of the invention are apparent from and will be taught with reference to the embodiments described herein. [Brief description of the drawings]
[0047] Embodiments of the present invention will now be described, by way of example only, with reference to the accompanying drawings, in which: [Figure 1] 1 shows an overview of a system implemented according to an embodiment of the present invention. [Diagram 2] Some illustrative use cases that may be utilized in connection with the present invention are provided below. [Diagram 3]For the Racehorse example used in this application, the formats of metadata used in the transactions of FIGS. [Figure 4] Here is the definition of the Racehorse assets: [Diagram 5] This shows the transaction that begins the sequence for the "racehorse" scenario used below, in which the stable generates a private key for the racehorse using the method for generating subkeys described below, and then the seed finds the racehorse account for the stock issuance. [Figure 6] Continuing from Figure 5, this shows the blockchain transaction in which the racehorse then issues a share to itself. Note that technically the stable owns the racehorse's private key, but this is what is happening logically. [Figure 7] Represents a transaction that requests a stable set of fees from an investor. [Figure 8] Shows a transaction in which a racehorse passes stable fee to its stable. [Figure 9] Shown is a transaction that is generated when the racehorse wins its first race, and the stable earns £20,400. Using a standard BTC broker transaction (not shown), the exchange pays the stable the equivalent amount in BTC in exchange for GBP20,400 (transaction ID=EXCHANGE-S3-T1). Using the output from EXCHANGE-S3-T1 as input, the stable generates a transaction to pay the winnings in BTC to the racehorse key. [Figure 10] Shown is a transaction in which a racehorse pays out its winnings to an investor. [Figure 11] Here is a transaction in which Alice sells 1 share to Eve. [Figure 12] Various aspects of an illustrative technique for deriving a subkey from a parent key are presented below. [Figure 13]Various aspects of an illustrative technique for deriving a subkey from a parent key are presented below. [Figure 14] Various aspects of an illustrative technique for deriving a subkey from a parent key are presented below. [Figure 15] Various aspects of an illustrative technique for deriving a subkey from a parent key are presented below. [Figure 16] Various aspects of an illustrative technique for deriving a subkey from a parent key are presented below. [Figure 17] Various aspects of an illustrative technique for deriving a subkey from a parent key are presented below. [Figure 18] Various aspects of an illustrative technique for deriving a subkey from a parent key are presented below.
[0048] This technique is suitable for use in connection with aspects of the present invention. DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS
[0049] <Key terms used in this specification> The following terms are used herein to define key concepts and components. [Table 1] From one perspective, the invention described herein can be considered as providing a general technical mechanism for controlling exchanges on a blockchain. These exchanges can be financial exchanges related to payments. The present invention is directed to the technical mechanisms or boxes that enable this exchange.
[0050] According to one aspect, the present invention provides a technical arrangement for calculating, registering, and / or allocating costs and / or generating income in proportion to the current ownership of an asset. Thus, one advantage provided by the present invention is that it allows for the allocation or transfer of data representing the costs and income of an asset that is registered and maintained on a blockchain. This also increases the ability of such assets to meet real-world needs of various entities, such as the assets themselves and investment entities.
[0051] Recent research into blockchain applications includes exploration of mechanisms for creating and using what are known as "smart contracts", and how these can be monitored and managed on a blockchain. One possibility is to use smart contracts to represent assets where the ownership of the assets can be divided among multiple other entities. This ownership can then be securely transferred between entities using the blockchain, such as a transfer vehicle.
[0052] In some instances, an asset confers rights to income generated. Additionally or alternatively, an asset can bind a holder to specific expense obligations. The present invention provides a general mechanism by which value, such as expenses owed against an asset or income generated from an asset, can be exchanged via the blockchain.
[0053] <Main elements of the present invention> Some elements of the present invention are as follows: Technological solutions and techniques that determine the events (triggers) that generate income payable to owners of blockchain-based assets. Technological solutions and techniques that determine the events (triggers) that generate charges payable by the owners of blockchain-based assets. Technological solutions and techniques for calculating and allocating income / expenses to owners of blockchain-based assets based on a predefined set of rules. Technical solutions and techniques for generating and signing Bitcoin transactions to effect income / expense payments.
[0054] As shown in Figure 1, processing is controlled by a hierarchy of agents. These agents may be computer-based resources that run in parallel with the blockchain. They may be suitably programmed to monitor the state of the blockchain and respond to test results and conditions and / or receive input from external resources. For examples of how such agents may be implemented, see the section below entitled "Illustrative Computational Agents for Use with the Invention."
[0055] In the examples described herein, the following assumptions are made: However, it is understood that the examples do not limit the variations possible in the underlying method. There is one Master Agent per transaction (i.e. per asset). There may be several subordinate agents performing discrete functions. · The Master Agent manages and "authorizes" all subordinate agents. The subordinate agents of the present invention include one or a combination of the following types of agents: - One or more Income Agents responsible for processing the income generated from the assets. - One or more Cost Agents responsible for processing the costs generated by the assets. Optionally, one or more Netting Agents responsible for offsetting revenues against payments where appropriate. - One or more Notification Agents responsible for alerting the share holders of various events such as revenue payments made, expenses payable, events affecting or related to the assets, or any other notices. - Any other kind of agent that performs any necessary or arbitrary discrete function.
[0056] The behavior of the agents is rule-based and may follow any predefined set of rules. The rules are determined according to the requirements of the task to be performed. According to the invention, a master agent manages all other agents. An example of the hierarchy and possible flow of control and processing may be as follows: The Master Agent authorizes the Revenue / Expense Agents to perform their tasks, for example: - The master agent monitors all triggers, or - the subordinate agent listens for triggers and requests permission from the master agent to process them, or Subordinate agents are pre-authorized to monitor and execute those tasks, or - Any combination of the above. · Output and control from the Revenue / Expense Agent is passed to the Master Agent. · The Master Agent ensures the offsetting agent (to pass on the data from the Income / Expense Agent). · The countervailing agent passes the output to the master agent. · The master agent authorizes transaction broadcasts (itself broadcasts, authorizes subordinate agents to broadcast, or a combination, etc.).
[0057] Below is a summary of the key requirements of one embodiment of the present invention.
[0058] <Determine current ownership> In order to allocate costs / revenues to an asset, it is necessary to be able to determine the current ownership of that asset. According to one embodiment of the invention, details regarding the current ownership are maintained in a registry (public or private, decentralized or centralized). The registry may contain the public keys of the individual owners associated with RedeemScript hashes identifiable in unspent blockchain transactions (UTXOs). The UTXOs indicate the number of shares owned by each public key. Additionally, other information may be stored, such as email addresses, etc.
[0059] <Calculate and pay the cost> To create a cost to ownership of the asset, · The asset must have the ability to determine its current ownership; · The asset must be capable of determining the total cost / revenue for a given time period; The asset must be able to split costs / revenues between current ownership interests; The asset must be capable of triggering payment of these costs / income from / to the current asset holder, and payment is performed by generating a blockchain transaction to exchange some value between the parties.
[0060] The payment rules can be simple or complex, depending on the type of assets and type of income, providing the necessary input data and / or parameters. For example, an income rule can be to pay out a share of the total income according to their current ownership percentage. In another example, each holder may be given a share of the income based on their ownership percentage over the time period the income was generated. In another example, a "bonus" may be paid for holding stock ownership for a given length of time. These examples are merely illustrative and do not limit the number or types of different payment rules that can be set.
[0061] Transaction execution (e.g., collection of unpaid fees) can be achieved in several ways. Some of these can be controlled automatically (here also by using a computing agent) or by non-automatic means. For example, as follows. · Legal compensation · Reassignment of asset ownership (possible only if the issuer is required to countersign the asset reassignment) · Prevent payment of income until the fees are recovered.
[0062] <Other functions> Other (optional) functions can be constructed by designing the agent and setting the rules accordingly. Non-exhaustive examples for illustration include: · Assets may be able to offset fees from income. · Assets may be able to retain income if previous fees have not been paid. · This income / fee / offset may occur at the end of a time period (e.g., every six months) or when generated (e.g., immediately).
[0063] <Technical model> The technical solution presented in this specification provides a blockchain-based mechanism for asset control through the use of computing agents and smart contracts. The present invention enables the automatic generation of a blockchain transaction set. These transactions can be used for either the recovery of fees associated with the execution of smart contracts or the payment of income. Figure 1 shows an overview of a system according to an embodiment of the present invention. The system includes components that can be configured to implement the architecture of the system.
[0064] <Cost Agent> When the trigger condition is met, the cost agent · Calculates the total outstanding amount of assets as a whole, · Based on the payment rules defined within the transaction, calculate individual payments proportionally, for example, across the current ownership split of the assets. · Generate payment transactions for each of the individual asset holders.
[0065] If necessary, for a given transaction, there may be more than one, for example, one for regular expenses and one for ad - hoc expenses, expense agent defined.
[0066] <Income Agent(収入エージェント)> When the trigger condition is violated, the income agent · Calculates the total outstanding amount of the assets as a whole. · Based on the payment rules defined within the transaction, calculate individual payments proportionally, for example, across the current ownership split of the assets. · Generate payment transactions for each of the individual asset holders.
[0067] If necessary, for a given transaction, there may be more than one (for example, one for regular income and one for ad - hoc income) income agent defined.
[0068] <Netting Agent(相殺エージェント)> When the trigger condition is met, the netting agent · Consolidates payment transactions from multiple individual transactions with matching payment addresses into a single netting transaction.
[0069] In the example provided in this application, there is only a single netting transaction. However, it is important to note that the present invention is not limited in this regard. In one or more embodiments, there may be multiple netting agents. In such a case, each instance is provided with a clearly defined separate set of rules.
[0070] <Determine the current ownership split> The embodiments described herein assume that the current ownership of an asset can be determined through a combination of a registry (or database) and a UTXO list. The term "UTXO list" refers to a list of transaction outputs on a blockchain that are known in the art and have not yet been used.
[0071] Figure 2 illustrates some key use cases related to the technical model described herein, which are explained in more detail below.
[0072] <Determination of Ownership
[0100] > Note that the following example assumes that the actions are performed directly by the asset itself. However, in other embodiments, this entity may be replaced by some other asset control entity using the same process. In this use case, an Asset needs to determine its current ownership in order to effect a payment. [Table 1] [Table 2] <Payment calculation
[0200] > Again, the primary entity in this example is the asset, however, in other embodiments, the asset may be replaced by a different primary entity. In this use case of calculating a payment, the asset wishes to calculate the amount of income and / or expenses it owes to or collects from its current owner (as determined in use case 100 above). [Table 2] [Table 3] <Pay the fee
[0300] > Again, the primary actor in this example is the asset: the Asset Holder wishes to pay the costs incurred as a result of ownership of the asset. [Table 3] [Table 4] <Consideration> It should be noted that there is no particular incentive for asset holders to pay their share of the costs. In the process described above, there are two possible paths of compensation. If expenses are not paid, later income may be withheld. This needs to be accounted for in the transaction (assuming there is income generated against the asset). However, this is easy to detect in step 100.10. Legal compensation through relevant legal channels.
[0073] It is possible to create a transaction such that there is a notary on the issuing transaction, such that if the asset holder does not pay, their asset ownership is revoked and returned to the asset itself, using an m out of n multi-signature transaction. In this scenario: After step 300.20 is executed, a second transaction is generated with a lock time set based on the time allowed to pay the fee. It incorporates the transaction inputs of the last transaction issue, but allocates the assets back to the assets. This transaction is signed by the relevant notary. If the asset holder pays their fee, this transaction is invalid (because the transaction input has been used), but if they do not pay, the asset ownership is cancelled. Since the payment transaction effectively reissues the shares along with the asset, this transaction cannot be rolled over to the next period, rather, two transactions must be generated whenever a fee transaction is generated.
[0074] <Transformation 1> The above example assumed that the expense was paid in Bitcoin. However, there is no requirement for this as any tokenized value can be used. In this situation, the following modifications are necessary: Step 300.50 adds two transaction inputs instead of simply one. The first is the mining fee in BTC, and the second is the tokenized fee transaction (e.g. in a fiat currency).
[0075] <Transformation 2> The above example assumes that mining fees are paid by the asset holder (among other costs). There is no requirement for this. If mining fees are paid by the asset itself, the following changes are needed: Step 300.20 generates two transaction inputs, an asset issuance transaction input, and a BTC transaction input for the mining fee.
[0076] <Transformation 3> Rather than generating a cost transaction for each asset owner, a single cost transaction is generated and each individual asset owner adds their input (rather than a separate transaction for each asset owner). The transaction output is the sum of the corresponding costs with details of the amounts per asset owner communicated through the alternative channel.
[0077] While this model works for simple partitioning and a relatively small number of asset holders, it is often impractical since the transaction is only valid if all owners agree to pay. In situations where it is expected that payments may be delayed or not made by many asset holders from an asset perspective, variant 3 is preferred in that it maximizes the amount of revenue received in the shortest possible time.
[0078] The actual variant used for payment can be controlled by the Master Agent based on a predefined set of rules that may be embedded (hard-coded) in the Master Agent or placed in a separate look-up table. For example, the rules may be based on a simple Boolean flag governing which variant should be used, or may include a threshold number of owners or any other suitable testable condition.
[0079] <Pay income
[0400] > Again, the primary actors in this example are assets. Assets wish to pay income to their owners in proportion to their ownership. [Table 4] [Table 5] <Transformation> Consider the case where revenue is paid in a tokenized form rather than in native BTC. In this situation, the transaction revenue transaction would be addressed to a RedeemScript containing the following: The asset owner's public key, Metadata associated with revenue sharing <Example scenario - Racehorse> For the purposes of illustrating a possible implementation of the present invention, an exemplary scenario is provided below, with the individual transaction sequences for the scenario provided in the accompanying drawings.
[0080] In this illustrative scenario, the stable chooses to issue shares in the racehorses while retaining rights to associated prize money and payment obligations such as stable fees. In this example, the stable retains 50% ownership, while Alice purchases 30% and Bob purchases 20%.
[0081] As a contractual obligation, holders must register their details with the issuer (Issure, Stable). This may be as simple as a public key for Bitcoin payments (i.e. a BTC Address). However, this may also include an email address for notifications, legal name, date of birth, residential / work address, tax number, etc. Any of these may be contractual requirements or options depending on the issuer's own processing requirements and / or any provisions that the issuer may or may not feel they must meet.
[0082] Depending on the wishes of the issuer, the transaction token (i.e., the Bitcoin transaction including the metadata) may require the issuer's signature for every transfer of ownership (i.e., in a "web-of-trust" situation), or may be allowed to be transferred without the issuer's signature (as in this example). In the latter case, the terms of the transaction require that the new owners agree to register their ownership with the issuer (see Section 1.1).
[0083] These registered details are stored within the transaction itself and rely on a hash of the transaction excluding mutable fields (such as ownership information). Effectively, the hash for the transaction is defined within the transaction itself. This means that not all attributes of the transaction need to be included in the hash. This allows the ownership list to be kept in the transaction document, but the owners are not included in the hash. Thus, the signature of the document remains immutable, even if the owner of the document changes.
[0084] <Transaction summary> Below are selected highlights of a human-readable version of the transaction that includes details about the two agents implementing these provisions. [Table 6] <Issuance> The stable first registers the horse with its own private key, which may be an entirely new private key or may use a mechanism substantially as described below in the section entitled "Methods for Subkey Generation."
[0085] The Stable then needs to seed funds the racehorse account of the issue transaction in STABLE-S3-T1 (see Figure 5).
[0086] RaceHorse then issues its shares to various asset holders in RACEHORSE-S3-T1 (see Figure 6). The issue transaction allows for free transfer of assets directly by the owner, since the transaction stipulates that no prize money will be paid in case of cost overhang (meaning ownership rights are not directly invalidated). Output 4 of this transaction generates a smart contract that covers RaceHorse itself making clause 28 of the transaction enforceable.
[0087] <Cost Agent (Stable Fee)> Every two years, a fee agent responsible for charging stable fees is triggered by date. The fee is calculated as 1000 satoshis / share / day (for simplicity, this example assumes 6 months = 180 days).
[0088] To improve cash flow, the agent generates a separate transaction for each public key holder, where the owner details are taken from the asset registry associated with the current transaction (or the issuer's own private internal database), and the current share allocation (based on the underlying BTC on the UTXO and the pegging rate specified in the transaction) is taken from the blockchain. For more information on pegging rates, see the section on "Encoding Scheme" below.
[0089] The high level process of the agent is as follows: Determine ownership from the Ownership Registry and associated UTXOs. - In this example, this gives us the lists Stable-5 (PubK-Stable), Alice-3 (PubK-Alice), and Bob-2 (PubK-Bob). Calculate the total corresponding costs for the period. - In this example, this provides a total of 180,000 satoshis. -Determine allocation rules from the contract. - In this example, we only charge Alice (54,000 satoshis), Bob (36,000 satoshis), and Stable (90,000 satoshis). Create a payment transaction, and none of the transaction inputs are signed with the SIGHASH_ANYONECANPAY marker (to allow subsequent transaction inputs to be added). In this example, this is RACEHORSE-S3-T2 and RACEHORSE-S3-T3. Wait for the payment to be published on the blockchain. The transaction itself instructs the agent how to behave when payment is not received. For example, a reminder can be sent if payment is not received within 14 days, and after 60 days the account is marked as delinquent. · Update monitoring agents to stop further collection efforts if payment is later received.
[0090] Figure 7 shows the transactions relevant to this aspect of the example. Here, a first set of stable fees needs to be charged from the investors (6 month value, 180000 satoshis / share). Since the money is paid back to the stable, no fee transactions are generated for the hidden owner (if the stable was trying to "hide" its shares, the public record on the blockchain would not distinguish between the owners). Since no changes are given to Alice and Bob, there are transactions that are assumed to generate the correct size transaction inputs (let's assume they are ALICE-S3-T1 and BOB-S3-T1).
[0091] <Expenses paid by investor> Upon receiving the incomplete transaction, the investors (Alice and Bob) allocate the correct transaction inputs to satisfy the fees and complete the transaction using their Bitcoin wallets, which adds the transaction inputs to the stubbed transactions RACEHORSE-S3-T2 (Alice) and RACEHORSE-S3-T3 (Bob) (see Figure 7).
[0092] <Income Agent> Winnings generated by racehorses are paid out once the stable receives payment from the racetrack. Depending on the circumstances, winnings may be received in BTC (e.g., if the horse racing industry is enabled for Bitcoin transactions, or if a particular racetrack enables winnings in Bitcoin, etc.) or may be received in fiat currency. In the latter case, the stable may perform steps to convert the winnings into BTC before performing revenue distribution steps.
[0093] The high level process of this agent is as follows: · The use of trading determines how income will be generated on this investment. - In this example, an external news feed is consulted for details of the race results. · Communicating with relevant parties (as defined in the transaction) regarding funding requirements. - In this example, an email is sent to the Stable containing an invoice for payment based on the prize money they are due from the racetrack on behalf of the racehorse. Determine ownership from the Ownership Repository. - In this example, this gives us the lists Stable-5 (PubK-Stable), Alice-3 (PubK-Alice), and Bob-2 (PubK-Bob). Wait for the income to be paid into the relevant account. - In this example, the prize money of £20,400, which is 80 BTC, will be paid to the racehorse's Public Key Hash address. Calculate how to divide the corresponding winnings over the period. - In this example, this provides a total of 8 BTC / share. -Determine allocation rules from the contract. - In this example, Stable 40BTC, Alice 24BTC, and Bob 16BTC. Generate payment transactions to pay rewards.
[0094] Figure 8 shows a transaction in which the racehorse passes the stable fee to the stable. Note that if the stable did not keep its ownership secret, it would be possible to have the stable fee paid directly to it by simply using the stable's public key instead of the racehorse's public key in S3-T2 through S3-T5.
[0095] Other techniques and mechanisms that may be used in conjunction with the present invention are described in further detail below.
[0096] <encoding scheme> The metadata in a blockchain transaction can be formatted in a variety of ways, however one possible encoding scheme is described here.
[0097] A transaction is transferable if the rights it defines are vested in the holder or owner of the transaction. An example of a non-transferable transaction is a participant-named transaction, i.e., the rights are vest in a specific named entity rather than in the holder of the transaction. Only transferable transactions are discussed in this coding scheme.
[0098] A token represents a particular transaction that details or defines the rights conferred by the transaction. A token is a representation of a transaction in the form of a Bitcoin transaction.
[0099] This coding method uses metadata having three parameters or data items. This data can indicate: i) The amount of shares available under the transaction (which may be referred to herein as "NumShares"); ii) the amount of transmission units to be transferred from the sender to at least one receiver (this is sometimes called "ShareVal"); iii) A factor for calculating the value of the amount of transfer units (this is sometimes called the "pegging rate").
[0100] The advantage of this encoding scheme is that it can be used to encapsulate or represent a transaction as a token on the blockchain using only the three parameters mentioned above. In fact, a transaction can be specified using a minimum of these three data items. Since this encoding scheme can be used for any kind of transferable transaction, a common algorithm can be devised and applied. Further details of these metadata items are provided below.
[0101] A divisible token is one in which the value on a transaction output can be divided into smaller amounts that are allocated across multiple tokens (i.e. across multiple transactions). A typical example is a tokenized fiat currency. A divisible transaction is defined as a transaction that specifies a non-zero PeggingRate. In a divisible transaction, the tokenized value transferred in the transaction output is tied to the underlying bitcoin (BTC) value by a pegging rate. That is, the transaction specifies the holder's rights in terms of a pegging rate. In a non-divisible token, there is no pegging rate and the transaction specifies the holder's rights in terms of a fixed value (e.g., a bearer bond that says "this transaction can be redeemed for exactly $1000" or a voucher that says "this transaction is redeemable for 1 haircut"). In a non-divisible transaction, the underlying transaction BTC value is unrelated to the transaction value.
[0102] The expression "underlying BTC value" refers to the amount of Bitcoin (BTC) that is attached to a transaction output. In the Bitcoin protocol, each transaction output must have a non-zero BTC amount to be considered valid. In practice, the BTC amount must be greater than a set minimum value ("dust"), currently set at 546 satoshis at the time of writing. One Bitcoin is defined to be equal to 100 million satoshis. Since Bitcoin transactions are used herein only as a means to facilitate the exchange of ownership, the actual underlying BTC amount is arbitrary. The true value is in the transaction specifications. In theory, all tokens can be transferred by dust.
[0103] In accordance with the encoding scheme of the present invention, specifically for divisible tokens, the underlying BTC value has the following meaning: it carries a relationship to the transaction value through the pegging rate. The pegging rate is itself arbitrary and is chosen to keep the underlying BTC amount small. The reason for using a pegging rate rather than simply each underlying token transaction with dust is that the protocol of the present invention provides visibility. When a token is split into several smaller transaction outputs, there is no need to adjust the original transaction. Rather, the transaction value of each fractional token is simply calculated based on the pegging rate and the fractionalized amount of the underlying BTC value.
[0104] Limited tokens are tokens whose total issuance value is fixed (or "limited") by a fixed non-zero number of shares defined by a quantity called NumShares. Thus, no further shares can be issued under a limited transaction. For example, a transaction for co-ownership of a racehorse may be limited to 100% of the racehorse (e.g., 100 shares at 1% each, or 10 shares at 10% each, etc.). An unlimited transaction means that the issuer can undertake further issuance of shares, for example by adding the required amount of fiat currency to their Reserve Account. NumShares must be explicitly stated in all transactions. Limited transactions must have NumShares>0. An unlimited transaction is indicated by setting NumShares=0.
[0105] A typical example is a monetary reserve (similar to a gold reserve) where the total value held in the reserve account matches the total value of the promissory notes (i.e., outstanding tokens) in existence. This concept extends beyond monetary reserves to inventory stocks. For example, an issuer of licensed printed t-shirt tokens may start with a stock of 10,000 t-shirts and issue divisible tokens representing these 10,000 t-shirts (where each share = 1 t-shirt). The original token can be subdivided, and each subdivided token is redeemable for a number of t-shirts according to the underlying BTC value of the transaction output, as determined by the pegged rate. However, if demand increases, the issuer may decide to issue more shares (i.e., increase the number of shares in circulation by another 10,000). In such a case, it is the issuer's obligation to deposit another 10,000 t-shirts in the issuer's reserve account (i.e., inventory warehouse) to undertake further issuances. Therefore, the total number of t-shirts in inventory at any one time is the total number of unredeemed shares (where inventory acts as a "reserve account").
[0106] The pegged rate only applies to divisible transactions, where the value of the shares (represented by a quantity called ShareVal) is fixed to the underlying BTC amount. For example, a transaction may specify that the issuer promises to redeem tokens at a rate of $10,000 per underlying BTC. This may mean that a transaction with a tokenized underlying output value of (for example) 15,400 satoshis is redeemable for $1.54. A value of 0 for the pegged rate indicates that the transaction is non-divisible (i.e., only the whole can be transferred, like a bearer bond). When the pegged rate is set to 0 (implying a non-divisible token), the underlying BTC value is unrelated to the transaction value and can be set to any amount. Typically, in this case, it is desirable to keep the underlying BTC amount as small as possible (i.e., set it to dust) to minimize operational costs.
[0107] NumShares is the total (fixed) number of shares available under the (limited) deal. In limited deals, NumShares must be a whole number greater than zero. In non-limited deals, NumShares is not fixed since more shares can be issued at any time (if they can be subscribed). This is indicated by setting the value to 0.
[0108] A share is defined as the transfer unit and ShareVal is the value of that unit. For example, in fiat currency, the transfer unit may be set to 1 cent. Or, for example, the transfer unit may be set to 50 cents, in which case transfers can only be performed in 50 cent "lots". ShareVal can also be expressed as a percentage. For example, if a breeder wants to sell a racehorse for 10 equal shares, set ShareVal=0, which is 10%. ShareVal must be greater than 0 and must be defined in the transaction.
[0109] TotalIssuance represents the total value of shares issued. This value is only relevant for capped deals. For non-capped deals, the issue is not fixed and more shares may be issued. When shares are expressed as a percentage, by definition, set TotalIssuance=0 to 100%.
[0110] In a limited transaction, NumShares, ShareVal, and TotalIssuance are related as follows:
[0111] NumShares×ShareVal=TotalIssuance A value of 0 for TotalIssuance means that it is an unlimited transaction. An example of an unlimited transaction is a fiat currency (so TotalIssuance is set to 0). Examples of limited transactions are (i) a limited edition commemorative coin (1000 are minted, 1 share = 1 coin), where TotalIssuance = 1000 x 1 = 1000 coins, and (ii) tickets for seats in a venue, where TotalIssuance = total number of seats available.
[0112] Distribution is defined as the total value of unspent tokens (i.e., determined by transactions in UTXO (unspent transaction output)). The complete set of all unspent transactions is kept in a list available to all Bitcoin nodes. For example, if an issuer initially issues $10,000 in fiat currency tokens and over time redeems $5500 worth of tokens, then Distribution = $4500 (the value of unredeemed tokens). This value should be adjusted to the balance of the relevant reserve account.
[0113] <How to generate subkeys> Above we have referred to situations where it is advantageous to generate subkeys from the original (master) key. To illustrate one way in which this may be done, a method for achieving this is provided below. The following description is given with reference to Figures 12 to 18.
[0114] 12 shows a system 1 including a first node 3 in communication with a second node 7 via a communications network 5. The first node 3 has an associated first processing device 23, and the second node 5 has an associated second processing device 27. The first and second nodes 3, 7 may include electronic devices such as computers, phones, tablet computers, mobile communications devices, computer servers, etc. In one example, the first node 3 may be a client (user) device and the second node 7 may be a server. The server may be a server of a digital wallet provider.
[0115] The first node 3 uses the first node master private key (V 1C ) and the first node master public key (P 1C ) The second node 7 is associated with a first asymmetric crypto pair having a second node master private key (V 1S ) and the second node master public key (P 1S ) In other words, the first and second nodes each possess an individual public-private key pair.
[0116] The first and second asymmetric cryptographic pairs of each first and second node 3, 7 may be generated during a registration process, such as registering a wallet. The public key of each node may be publicly shared across the communications network 5.
[0117] To determine a common secret (SC) in both the first node 3 and the second node 7, the nodes 3, 7 perform the steps of methods 300, 400 respectively, without communicating a secret key over the communications network 5.
[0118] The method 300 performed by the first node 3 includes obtaining at least the first node master private key (V 1C ) and the Generator Value (GV), the first node 2nd private key (V 2CThe method 300 includes determining 330 a generator value (M) based on a message (M) shared between the first node and the second node, which may include sharing the message over the communication network 5, as described in more detail below. The method 300 includes determining 330 a generator value (M) based on a message (M) shared between the first node and the second node, which may include sharing the message over the communication network 5, as described in more detail below. 1S ) and the Generator Value (GV), the second node 2S The method 300 further includes determining 370 the first node second private key (V 2C ) and the second node second public key (P 2S ) to determine 380 a common secret (CS).
[0119] Importantly, the same common secret (CS) can also be determined at the second node 7 by the method 400. The method 400 determines the first node master public key (P 1C ) and the Generator Value (GV), the first node derives a second public key (P 2C The method 400 includes a step 430 of determining the second node master private key (V 1S ) and the Generator Value (GV), the second node 2S The method 400 further includes determining 470 a second node second private key (V 2S ) and the first node second public key (P 2C ) to determine 480 a common secret (CS).
[0120] The communications network 5 may include a local area network, a wide area network, a cellular network, a wireless communications network, the Internet, etc. In these networks, data may be transmitted over communications media such as electrical wires, optical fibers, or radio waves and may be susceptible to eavesdropping, such as by an eavesdropper 11. The methods 300, 400 enable the first node 3 and the second node 7 to both independently determine the common secret without transmitting the common secret over the communications network 5.
[0121] Thus, one advantage is that the common secret (CS) can be determined securely and independently by each node, without the need to transmit the private key over a potentially insecure communications network 5. The common secret may also be used as (or as the basis for) the private key.
[0122] The methods 300, 400 may include additional steps. See Fig. 13. The method 300 includes, at the first node 3, transmitting a message (M) and a first node second private key (V 2C ), generating a signed message (SM1) based on the first signed message (SM1). The method 300 further comprises a step 360 of transmitting the first signed message (SM1) to the second node 7 via the communication network. Meanwhile, the second node 7 may perform a step 440 of receiving the first signed message (SM1). The method 400 further comprises a step 450 of verifying the first signed message (SM2) with the first node second public key (P2C), and a step 460 of authenticating the first node 3 based on the result of the step of verifying the first signed message (SM1). Advantageously, this allows the second node 7 to authenticate that the intended first node (where the first signed message was generated) is the first node 3. This means that only the first node 3 knows the first node master private key (V 1C ), therefore, only the first node 3 has access to the first node second private key (V 2C) can be determined. It should be appreciated that similarly, a second signed message (SM2) can be generated at the second node 7 and sent to the first node 3. Thus, as in a peer-to-peer scenario, the first node 3 can authenticate the second node 7.
[0123] The sharing of a message (M) between the first node and the second node may be accomplished in various ways. In one example, a message may be generated at the first node 3 and then transmitted to the second node 7 over the communication network 5. Alternatively, a message may be generated at the second node 7 and then transmitted to the first node 3 over the communication network 5. In some examples, the message (M) may be public and therefore transmitted over the insecure network 5. One or more messages (M) may be stored in a data store 13, 17, 19. One skilled in the art will appreciate that the sharing of a message may be accomplished in various ways.
[0124] Advantageously, a record that allows recreation of the common secret (CS) can be kept without the record itself having to be stored in secret or transmitted securely.
[0125] <How to register 100, 200> An example of a registration method 100, 200 will now be described with reference to Figure 14, where the method 100 is performed by a first node 3 and the method 200 is performed by a second node 7. This includes establishing first and second asymmetric cryptographic pairs for the first node 3 and the second node 7, respectively.
[0126] An asymmetric cryptopair includes an associated private key and a public key, such as those used in public key cryptography, in this example, the asymmetric cryptopair is generated using the properties of Elliptic Curve Cryptography (ECC) and elliptic curve arithmetic.
[0127] In the methods 100, 200, this involves a first node and a second node agreeing 110, 210 on a common ECC system and using a base point (G) (Note: the base point may be referred to as a common generator, but the term "base point" is used to avoid confusion with the generator value GV). In one example, the common ECC system may be based on secp256K1, which is the ECC system used by Bitcoin. The base point (G) may be selected, randomly generated, or assigned.
[0128] Considering now the first node 3, the method 100 includes resolving 110 the common ECC system and base point (G). This may include receiving the common ECC system and base point from the second node 7 or the third node 9. Alternatively, a user interface 15 is associated with the first node 3, which allows a user to selectively provide the common ECC system and / or base point (G). In yet another alternative, one or both of the common ECC system and / or base point (G) may be randomly selected by the first node 3. The first node 3 may send a notification to the second node 7 over the communication network 5 indicating the use of the common ECC system with the base point (G), which may then resolve 210 by sending a notification indicating an acknowledgment to the use of the common ECC system and base point (G).
[0129] The method 100 includes a step of: 1C ) and the first node master public key (P 1C ), based at least in part on random integers within a specified range of tolerances in the common ECC system, 1C ), which generates the first node master private key (V 1C ) and the base point (G) based on the elliptic curve point multiplication, the first node master public key (P 1C ) P 1C =V 1C ×G (Formula 1) Thus, the first asymmetric crypto-pair comprises: V 1C : The first node master private key, which is kept secret by the first node. P 1C : The first node master public key that will be made public.
[0130] The first node 3 uses the first node master private key (V 1C ) and the first node master public key (P 1C ) may be stored in a first data store 13 associated with the first node 3. For security purposes, the first node master private key (V 1C ) may be stored in a secure part of the first data store 13 to ensure that the key remains secret.
[0131] The method 100 includes, as shown in FIG. 14, generating a first node master public key (P 1C ) to the second node 7 via the communication network 5. The second node 7 transmits the first node master public key (P 1C ) is received 220, the first node master public key (P 1C ) may be stored 230 in a second data store 17 associated with the second node 7.
[0132] Similar to the first node 3, the method 200 of the second node 7 includes the step of determining the second node master private key (V 1S ) and the second node master public key (P 1S ) and generating 240 a second asymmetric cryptopair having a second node master private key (V 1S ) is also a random integer within the allowed range. The second node master public key (P 1S ) is determined by the following formula: P 1S =V 1S ×G (Formula 2) Thus, the second asymmetric crypto-pair comprises: V 1S : The second node master private key, which is kept secret by the second node. P 1S: The second node master public key, which will be made publicly available.
[0133] The second node 7 may store the second asymmetric cryptographic pair in the second data store 17. The method 200 may further include storing the second node master public key (P 1S ) to the first node 3. The first node 3 also transmits the second node master public key (P 1S ) Receive 140, store 150.
[0134] It should be appreciated that in some alternatives, each public master key may be received and stored in a third data store 19 associated with a third node 9 (such as a trusted third party). This may include a third party acting as a public directory, such as a certification authority. Thus, in some examples, the first node master public key (P 1C ) may be requested and received by the second node 7 only when a common secret (CS) is requested, and vice versa.
[0135] The registration step only needs to occur once as an initial setup.
[0136] <Session start and determination of shared secret by first node 3> One example of determining the common secret (CS) is described herein with reference to Figure 15. The common secret (CS) may be used for a particular session, time, transaction, or other purpose between the first node 3 and the second node 7, and it may not be desirable or secure to use the same common secret (CS) and therefore the common secret (CS) may be changed between different sessions, times, transactions, etc.
[0137] The following is provided for illustration of the above mentioned secure transmission techniques.
[0138] [Generate message (M) 310] In this example, the method 300 performed by the first node 3 includes a step 310 of generating a message (M). The message (M) may be random, pseudorandom, or user defined. In one example, the message (M) is based on Unix time or a nonce (as well as any value). For example, the message (M) may be given as:
[0139] Message (M) = Unix time + nonce (Equation 3) In some examples, the message (M) is arbitrary. However, it should be understood that the message (M) may have optional values (such as Unix time, etc.) that may be useful in some applications.
[0140] The method 300 includes a step 315 of sending the message (M) to the second node 7 via the communication network 5. Since the message (M) does not contain information about the private key, the message (M) may be sent over an insecure network.
[0141] [320 Determine Generator Value (GV)] The method 300 further includes determining 320 a Generator Value (GV) based on the message (M). In this example, this includes determining a cryptographic hash of the message. An example of a cryptographic hash algorithm includes SHA-256 to generate a 256-bit Generator Value (GV), i.e. GV = SHA-256(M) (Equation 4) It should be understood that other hash algorithms may be used. This may include other hash algorithms in the Secure Hash Algorithm (SHA) family. Some specific examples include instances in the SHA-3 subset, including SHA3-224, SHA3-256, SHA3-384, SHA3-512, SHAKE128, and SHAKE256. Other hash algorithms may include algorithms in the RACE Integrity Primitives Evaluation Message Digest (RIPEMD) family. A specific example may include RIPEMD-160. Other hash functions may include families based on the Zemor-Tillich hash function and the Knapsack hash function.
[0142] [First node determines second private key 330] The method 300 then determines the second node master private key (V 1C ) and the generator value (GV), the first node second private key (V 2C This involves determining 330 the first node master private key (V 1C ) and a generator value (GV). V 2C =V 1C +GV (Equation 5) Therefore, the first node's second private key (V 2C ) is not a random value, but is instead deterministically derived from the first node master private key. The corresponding public key in the cryptographic pair, i.e., the first node second public key (P 2C ) have the following relationship: P 2C =V 2C ×G (Formula 6) From equation 5 to equation 6, V 2C Substituting, we get the following equation: P 2C =(V 1C +GV)×G (Formula 7) Here, the “+” operator represents elliptic curve point addition. Elliptic curve cryptography algebra is distributive, and Equation 7 can be expressed as follows: P 2C =V 1C ×G+GV×G (Formula 8) Finally, (Equation 1) is substituted into (Equation 7) to obtain the following equation: P 2C =P 1C +GV×G (Formula 9.1) P 2C =P 1C +SHA-256(M)×G (Equation 9.2) Therefore, the corresponding first node second public key (P 2C ) is the first node master public key (P 1C ) and derivable given knowledge of the message (M). As described in more detail below with respect to method 400, the second node 7 may receive the first node second public key (P 2C With such knowledge, it is possible to independently determine
[0143] [Generate 350 a first signed message (SM1) based on the message and the first node's second private key] The method 300 includes receiving a message (M) and a determined first node second private key (V 2C ) to generate 350 a first signed message (SM1). The step of generating a signed message includes applying a digital signature algorithm to digitally sign the message (M). In one example, this includes applying a first node second private key (V) to the message in an Elliptic Curve Digital Signature Algorithm (ECDSA) to obtain the first signed message (SM1). 2C Examples of ECDSA include those based on ECC systems having secp256k1, secp256r1, secp384r1, se3cp521r1.
[0144] The first signed message (SM1) is sent to the second node 7 using the corresponding first node second public key (P2C ) This verification of the first signed message (SM1) may be used by the second node 7 to authenticate the first node 3, which is discussed below in method 400.
[0145] [Second node determines second public key 370'] The first node 3 then transmits the second node second public key (P 2S ) may be determined 370. As described above, the second node second public key (P 2S ) contains at least the second node master public key (P 1S ) and a generator value (GV). In this example, the public key is determined as a private key by elliptic curve point multiplication with the base point (G) 370, so that the second node's second public key (P 2S ) can be expressed similarly to Equation 6 as follows: P 2S =V 2S ×G (Equation 10.1) P 2S =P 1S +GV×G (Equation 10.2) The mathematical proof of Equation 10.2 is as follows: 2C ) is the same as that described above to derive equation 9.1 for . It should be understood that the first node 3 can determine 370 the second node second public key independently of the second node 7.
[0146] [380 Determine the common secret at the first node 3] The first node 3 then transmits the first node second private key (V 2C ) and the second node second public key (P 2S ) a common secret (CS) may be determined 380 by the first node 3 according to the following formula: S=V 2C ×P 2S (Formula 11) <Method 400 performed in second node 7> A corresponding method 400 performed in the second node 7 will now be described. It should be understood that some of these steps are similar to the steps performed by the first node 3 described above.
[0147] The method 400 includes a step 410 of receiving a message (M) from the first node 3 via the communications network 5. This may include the message (M) sent by the first node 3 in step 315. The second node 7 then determines 420 a generator value (GV) based on the message (M). The step 420 of determining a generator value (GV) by the second node 7 is similar to the step 320 performed by the first node 3 described above. In this example, the second node 7 performs this determining step 420 independent of the first node 3.
[0148] The next step is to create the first node master public key (P 1C ) and the generator value (GV), the first node second public key (P 2C In this example, the public key is determined as a private key by elliptic curve point multiplication with the base point (G) 430′, so that the first node second public key (P 2C ) can be expressed similarly to Equation 9 as follows: P 2C =V 2C ×G (Equation 12.1) P 2C =P 1C +GV×G (Equation 12.2) The mathematical proofs of Equations 12.1 and 12.2 are the same as those given above for Equations 10.1 and 10.2.
[0149] [Second node 7 authenticates first node 3] The method 400 may include steps performed by the second node 7 to authenticate the unconfirmed first node 3 as the first node 3. As mentioned above, this includes step 440 of receiving the first signed message (SM1) from the first node 3. The second node 7 then receives the first node second public key (P 2C) may verify 450 the signature of the first signed message (SM1).
[0150] The verification of the digital signature may be performed according to the Elliptic Curve Digital Signature Algorithm (ECDSA) described above. Importantly, the first node's second private key (V 2C The first signed message (SM1) signed by V 2C and P 2C form a cryptographic pair, the corresponding first node second public key (P 2C ) should be correctly verified. These keys are generated by the first node master private key (V 1C ) and the first node master public key (P 1C ), verification of the first signed message (SM1) can be used as a basis for authenticating that the unconfirmed first node sending the first signed message (SM1) is the same first node 3 being registered. Therefore, the second node 7 may further perform a step (460) of authenticating the first node 3 based on the result of the step of verifying the first signed message (450) (see FIG. 16 ).
[0151] [Second node 7 determines the shared secret] The method 400 includes a step of: 1S ) and the generator value (GV), the second node second private key (V 2S ) in a manner similar to step 330 performed by the first node 3. 2S ) is calculated by the following formula: 1S ) and a generator value (GV). V 2S =V 1S +GV (Equation 13.1) V 2S =V 1S +SHA-256(M) (Formula 13.2) The second node 7 then derives the second node second private key (V 2S ) and the first node second public key (P 2C ) based on which a common secret (CS) may be determined. S=V 2S ×P 2C (Formula 14) [Certification of the common secret (CS) determined by the first node 3 and the second node 7] The common secret (CS) determined by the first node 3 is the same as the common secret (CS) determined at the second node 7. A mathematical proof that Equation 11 and Equation 14 provide the same common secret (CS) is now described.
[0152] Given the common secret (CS) determined by the first node 3, Equation 10.1 can be substituted into Equation 11 as follows: S=V 2C ×P 2S (Formula 11) S=V 2C ×(V 2S ×G) S=(V 2C ×V 2S )×G (Equation 15) Given the common secret (CS) determined by the second node 7, Equation 12.1 can be substituted into Equation 14 as follows: S=V 2S ×P 2C (Formula 14) S=V 2S ×(V 2C ×G) S=(V 2S ×V 2C )×G (Equation 16) Since ECC algebra is commutative, Equation 15 and Equation 16 are equivalent: S=(V 2C ×V 2S )×G=(V 2S ×V 2C )×G (Equation 17) [Common Secret (CS) and Private Key] The common secret (CS) can now be used as a private key or as the basis for a private key in a symmetric key algorithm for secure communication between the first node 3 and the second node 7 .
[0153] The shared secret (CS) is the elliptic curve point (x S ,y S ), which may be converted to a standard key format using a standard publicly known operation agreed upon by nodes 3 and 7. For example, x S The value is AES 256 It may be a 256-bit integer that can be used as a cryptographic key, which can be further converted to a 160-bit integer using RIPEMD160 for any application that requires a 160-bit key length.
[0154] The common secret (CS) may be determined as needed. Importantly, the first node 3 does not need to store the common secret (CS) since it can be re-determined based on the message (M). In some examples, the message (M) used may be stored in a data store 13, 17, 19 (or other data store) that does not have the same level of security as required for a master private key. In some examples, the message (M) may be publicly available.
[0155] However, depending on some applications, the shared secret (CS) may be the first node master private key (V 1C ), the common secret (CS) may be stored in a first data store (X) associated with the first node.
[0156] Advantageously, this technique can be used to determine multiple common secrets, which may correspond to multiple secure private keys, based on a single master key crypto-pair.
[0157] <Hierarchical structure of generator values (keys)> For example, a series of successive generator values (GV) may be determined, where each successive GV may be determined based on the previous generator value (GV). For example, instead of repeating steps 310-370, 410-470 to generate successive private keys, previously used generator values (GV) may be repeatedly rehashed by both parties to establish a hierarchy of generator values by prior agreement between the nodes. In fact, a generator value based on a hash of a message (M) may become a next generation message (M') for a next generation generator value (GV'). Doing this allows for successive generation of shared secrets to be calculated, without the need for further protocol-established transmissions, in particular the transmission of multiple messages each time a common secret is generated. The next generation common secret (CS') may be calculated as follows:
[0158] First, both the first node 3 and the second node 7 independently determine the next generation generator value (GV'), which is similar to steps 320 and 420, but adapted according to the following equation: M' = SHA-256(M) (Equation 18) GV'=SHA-256(M') (Equation 19.1) GV'=SHA-256(SHA-256(M)) (Eq. 19.2) The first node 3 then generates the next-generation second node second public key (P 2S ') and the first node second private key (V 2C ') may be determined similarly to steps 370 and 330 above, but adapted according to the following formula: P 2S '=P 1S +GV'×G (Equation 20.1) V 2C '=V 1C +GV' (Equation 20.2) The second node 7 then generates the next-generation first node second public key (P 2C ') and the second node second private key (V 2S ') may be determined similarly to steps 430 and 470 above, but adapted according to the following formula: P 2C '=P 1C+GV'×G (Equation 21.1) V 2S '=V 1S +GV' (Equation 21.2) The first node 3 and the second node 7 may then each determine a next generation common secret (CS'). In particular, the first node 3 determines the next generation common secret (CS') according to the following formula: CS'=V 2C '×P 2S ' (Formula 22) The second node 7 determines a next-generation common secret (CS') according to the following formula. CS'=V 2S '×P 2C ' (Formula 23) Further generations (CS'', CS''', etc.) can be calculated in the same way to generate the chain hierarchy. This technique requires that both the first node 3 and the second node 7 keep track of the original message (M) or the originally calculated Generator Value (GV), and which node it relates to. As this is publicly known information, there are no security issues with possessing this information. Therefore, this information may be kept in a "hash table" (linking hash values to public keys) and freely distributed across the network 5 (e.g. using Torrent). Furthermore, if any individual shared secret (CS) in the hierarchy has not been solved before, it can be solved by solving the private key V. 1C , V 1S remains secure, it does not affect the security of any other shared secrets in the hierarchy.
[0159] <Key tree structure> Similar to the chain (linear) hierarchical structure described above, hierarchical structures in the form of trees can be created. According to the tree structure, various keys for different purposes such as authentication keys, encryption keys, signature keys, payment keys, etc. can be determined. These keys are then all linked to a single securely maintained master key. This is illustrated in FIG. 17, which shows a tree structure 901 with various different keys. Each of these can be used to generate secrets that are shared with another party. Branching trees can be achieved in several ways, three of which are described below.
[0160] (i) Master Key Spawning In the chain hierarchy, each new "link" (public / private key pair) is generated by adding the multiplied rehashed message to the original master key. For example (for clarity, only the private key of the first node 3 is shown): V 2C =V 1C +SHA-256(M) (Equation 24) V 2C '=V 1C +SHA-256(SHA-256(M)) (Eq. 25) V 2C ''=V 1C +SHA-256(SHA-256(SHA-256(M))) (Eq. 26) etc.
[0161] To generate a branch, any key can be used as a submaster key. For example, V 2C ' is generated by adding hashes to the submaster key (V 3C ) can be used. V 3C =V 2C '+SHA-256(M) (Eq. 27) Submaster Key (V 3C ) is itself a next-generation key (V 3C '), for example: V 3C '=V 2C'+SHA-256(SHA-256(M)) (Eq. 28) It uses the master key spawning method shown in FIG.
[0162] (ii) Logical Association In this method, all the nodes (public / private key pairs) in the tree are generated as a chain (or in any other way) and the logical relationships between the nodes in the tree are maintained by a table where each node in the tree is simply related to its parent node in the tree using a pointer, which can then be used to determine the associated public / private key pair in order to determine the common secret (CS) for the session.
[0163] (iii) Message diversity A new public / private key pair can be generated by introducing a new message at any point in the chain or tree. The message itself may be arbitrary or may convey some meaning or function (e.g., it may relate to a "real" bank account number, etc.). It may be desirable for such a new message for forming the new public / private key pair to be kept secure.
[0164] Illustrative Computational Agents for Use with the Invention The present invention can utilize computational resources or agents to perform automated aspects of transaction processing. An example of a suitable agent is provided below, although other implementations may be used.
[0165] An agent may work in conjunction with the blockchain, using the blockchain as a non-erasable tape in a Turing machine implementation. This agent runs in parallel with the blockchain network and oversees and handles the execution of (loop) processes. The loop processes are designed to perform a given task, such as automating the processing or control of a device or system. This parallel resource can monitor the state of the blockchain and cause transactions to be written to the blockchain. In a sense, this utilizes the blockchain as a non-erasable tape of a Turing machine, with the following definition and characteristics: 1. The blockchain acts as the tape of a Turing machine. Each transaction in the blockchain represents a cell on the tape. This cell can contain symbols from a finite alphabet. 2. The tape head can read information from blocks that have already been written on the blockchain. 3. Tape heads can write new blocks containing many transactions to the end of the blockchain, however they cannot write to blocks that already exist, thus making the blockchain tape non-erasable. 4. It can be stored as part of a multi-signature pay-to-script-hash (P2SH) transaction for each transaction.
[0166] An important function of an agent is to act as an automated entity that monitors the current state of the blockchain. It can further receive signals or inputs from any off-block source. Depending on the blockchain state and / or the inputs received, the agent may perform certain actions. The agent decides which actions should be performed. These may or may not include actions in the "real world" (i.e., off-block) and / or actions on the blockchain (such as generating and broadcasting new transactions). The actions taken by the agent may be triggered by the blockchain state. The agent may further decide on the next set of transactions to be broadcast to the Bitcoin network and later written to the blockchain.
[0167] The actions of the agents execute in parallel and simultaneously against the blockchain (e.g., Bitcoin) network. In a sense, this stores the functionality of the blockchain (e.g., Bitcoin) script. This continuous monitoring enforces a "loop" control flow construct that makes the combined agent and blockchain system Turing Complete.
[0168] A Turing machine contains two stacks: · Data Stack: This is represented by the blockchain as described above. Control Stack: This is represented by an agent function. It stores information related to repeated control flow functions.
[0169] Separating the control stack from the data stack provides the advantage of preventing infinite loops from occurring in Bitcoin core and mitigating denial of service attacks.
[0170] The Agent manages and executes subroutines that can be looped using any type of loop construct (e.g., FOR-NEXT, REPEAT UNTIL, etc.). The illustrative embodiment described herein includes a process that uses an example of a "repeat" construct. The user may specify an index (i) and a limit (J), which represent the current iteration number (which typically counts starting from 0) and the total number of iterations of the repeat loop, respectively.
[0171] For each iteration, 1. The index is increased by 1. As for the termination condition, when the index reaches the limit, the iteration stops. 2. A block of code containing an “if condition then action” (ICTA) statement is executed. The action can be any action on or off the blockchain. 3. A cryptographic hash of this subroutine is calculated, which can be stored as part of the transaction on the blockchain. The hash is unique for each code, allowing for verification of which code was used.
[0172] The loop body contains code blocks, each of which contains an "if condition then action" (ICTA) statement that monitors the current state of the blockchain for transactions that match: Start or trigger conditions (e.g. when a certain date is reached), the iteration condition (i.e. the metadata or hash associated with the previous iteration), The stopping condition (i.e. the last iteration of the loop).
[0173] The ICTA statement allows the agent to decide about the next transaction based on the current state of the blockchain. Generating the next transaction involves broadcasting the transaction to the Bitcoin network and writing the new transaction to the blockchain, which acts as a record that this iteration has been executed. Once the transaction is written to the blockchain, the manager will then know that the previous iteration has been executed and written to the blockchain, and will execute the next iteration. The latter continues until an iteration loop exists, when the index (i) reaches a limit (J) specified in the code block.
[0174] Each transaction is stored in the blockchain in a reusable way. In the Bitcoin implementation, each signature in a transaction is tagged with a SIGHASH flag. This flag can take different values. Each of these values indicates whether other parts of the transaction can be modified without the involvement of the owner of this signature. Reusable transactions have the SIGHASH flag "SigHash_AnyoneCanPay" in one of the transaction inputs. This allows anyone to contribute to the inputs of the transaction. This parameter allows the agent's ICTA function to be executed and repeated multiple times with different inputs. The use of this function can be restricted to authorized parties, for example by cloning the reuse transaction.
[0175] The "If condition" portion of the ICTA code block can monitor any kind of condition. This is similar to other programming languages (e.g., C, C++, Java) and is not limited to information stored in the blockchain. For example, it could monitor the date and time (i.e., when a certain date and time is reached), or monitor the weather (i.e., when the temperature is below 10°C and it is raining), or monitor the conditions of a transaction or credit (i.e., when company A buys company B).
[0176] The "Then action" portion of an ICTA code block can perform a number of actions. The invention is not limited with respect to the number or type of actions that can be taken. Actions are not limited to transactions on the blockchain, but transactions, including metadata related to the action, may be written to the blockchain.
[0177] The metadata can be in any form, however, in one embodiment, the metadata may store a hyperlink to a file containing more data or instructions related to the action, the metadata may store both a hyperlink to a hash table containing more data or instructions related to the action, and a hash of the action that acts as a lookup key into the hash table.
[0178] The agent's control stack can be implemented in a number of ways, specialized for each user's needs. For example, the control stack's iteration loop can be based on any Turing-complete language. One possible choice of language is a language based on a Forth-style stack. The advantage of using this language is that it keeps the control stack consistent in programming style with the well-known and widely used Bitcoin script.
[0179] <Using the Bitcoin Script Alternate Stack as a data storage space> Bitcoin scripts contain commands, also called opcodes, that allow users to move data into an alternate-style stack known as an "alt stack."
[0180] The opcodes are as follows: OP_TOALTSTACK, which moves data from the top of the primary stack to the top of the alt stack. OP_FROMALTSTACK, which moves data from the top of the alt stack to the top of the primary stack.
[0181] This allows data from intermediate computation steps to be stored in the alt stack, similar to the "memory" function that allows a calculator to store data. In one embodiment, the alt stack is used to compose Bitcoin scripts to solve small computational tasks and return results to the computation.
[0182] <Use the code register to manage agents> The agent also manages a registry of all the code it owns and executes. This registry is structured like a lookup table or dictionary that maps specific keys to specific values. The key and value pair is represented by the hash of the code block (H1) and the IPv6 address where the code is stored, respectively. To retrieve a code block with key H1, the lookup table is used to retrieve the associated value (which is the location where the code is stored) and retrieve the source code accordingly. The implementation of the code registry may vary.
[0183] <Agent code transaction metadata and respawn loop> The information needed to respawn a loop of agents for a particular iteration is stored as metadata in the transaction recorded on the blockchain.
[0184] Thus, a transaction on the blockchain stores or provides access to information about a given iteration of a loop running on an agent, which may include the values of any variables associated with the loop, such as the index i, and any other required information, such as values of parameters used within a code block or location related data where further required information can be accessed.
[0185] The metadata itself is stored as part of a multi-signature pay-to-script-hash (P2SH) script within the transaction. The metadata recorded with the transaction also gives the ability to record an audit trail of how the code has been executed in the past.
[0186] There are several ways that an agent can repeatedly respawn a loop code block on each iteration. The code block may be hard-coded into the agent itself, or may be stored in a private or publicly available file, or may be stored as an entry on a private or public hash table file, or a combination of these. The code block may be fixed to a hard-coded variable, or may contain fixed but portable parameters. The parameters may be single values in any data format, or may be small chunks of code, or a combination thereof. The parameters may be populated by reading them directly from metadata in the transaction (e.g., a Bitcoin transaction), or from an external source such as an internal database, or a private / public file, or a hash table, or any combination of these. A pointer to the external source of the parameter value may be stored in the metadata in the transaction.
[0187] The following steps provide an example of how an agent can respawn a repeating loop code block on the i-th iteration. In this example, the code registry is a hash table, whereby the hash value acts as a lookup key for the table and is stored in metadata on the transaction. 1. An agent monitors the blockchain for transactions that contain hashes of code blocks that match entries in the code registry. 2. The agent finds the transaction that contains the corresponding hash (H1). 3. The agent reads "Metadata-CodeHash", gets the CodeHash field to get H1, and uses H1 to read the code (C1). If RIPEMD-160(SHA256(C1)) equals H1, the code has not changed and it is safe to proceed to the next step. 4. The agent reads the "Metadata-CodeHash" which stores the index i and respawns the code at the ith iteration. In other words, the loop is "reloaded" at the appropriate iteration. 5. The user’s signature is included in the P2SH command to verify the origin of the metadata. 6. The Agent reads the Metadata-OutputHash and Metadata-OutputPointer to retrieve the output of the previous step if these data are needed for this iteration of the loop.
[0188] It should be noted that the above-described embodiments do not limit the present invention, and that those skilled in the art can devise numerous alternative embodiments without departing from the scope of the present invention, which is defined by the appended claims. In the claims, any reference signs placed between parentheses shall not be construed as limiting the claims. The word "comprising" or "comprises" and the like does not exclude the presence of elements or steps other than those listed in any claim and the specification as a whole. In this specification, "comprises" means "includes" or "consists of", and "comprising" means "including" or "including of". The singular reference of an element does not exclude the presence of a plurality of such elements and vice versa. The invention can be implemented by means of hardware comprising several distinct elements, or by means of a suitably programmed computer. In a device claim enumerating several means, these several means may be implemented by one and the same hardware element. The fact that certain quantities are recited in mutually different dependent claims does not indicate that a combination of these quantities cannot be used to advantage.
Claims
1. 1. A computer-implemented method for determining a common secret for control of transfers between a first node and a second node over a blockchain, comprising: generating a message (M); determining a Generator Value (GV) based on the generated message; determining a first node second private key (V2C) based on a second node master private key (V1C) and the generator value; generating a first signed message (SM1) based on the message and the determined first node second private key; determining a second node second public key (P2S) based on at least a second node master public key (P1S) and the generator value; determining a common secret based on the determined first node second private key and the determined second node second public key; 23. A computer-implemented method comprising:
2. The computer-implemented method of claim 1 , wherein the message is based on a time value and a nonce.
3. The computer-implemented method of any of claims 1 to 2, wherein determining a generator value comprises determining a cryptographic hash of the message.
4. The step of determining a cryptographic hash of the message applies a cryptographic hash algorithm SHA-256 to the message as follows: GV=SHA-256(M) 4. The computer-implemented method of claim 3, comprising generating a 256-bit generator value according to:
5. The step of determining the first node second private key may include the following: V 2C = V 1C +GV According to the above, the first node master private key (V 1C5. The computer-implemented method of claim 1, further comprising the step of applying a scalar addition of (GV) to said generator value.
6. The step of determining the first node second private key may include the following: V2C=V1C+GV 6. The computer-implemented method of claim 5, wherein the first node is based on a scalar addition of the first node master private key and the generator value according to:
7. The computer-implemented method of any of claims 1 to 6, wherein generating the first signed message comprises applying a digital signature algorithm to digitally sign the message.
8. 8. The computer-implemented method of claim 7, wherein applying a digital signature algorithm to digitally sign the message comprises applying the first node second private key to the message in an Elliptic Curve Digital Signature Algorithm (ECDSA) to obtain the first signed message.
9. The common secret has the following formula: S = V2C x P2S The computer-implemented method of any preceding claim, wherein the first node determines the first node's identity using:
10. A non-transitory computer readable medium comprising program instructions for causing a computer to carry out the method according to any one of claims 1 to 9.
11. A system configured to carry out the method according to any one of claims 1 to 9.
Citation Information
Patent Citations
Information sharing method, information sharing system, information sharing device, and program
JP2012151648A
Information sharing system, method, device and program
JP2012244232A
Virtual account based new digital cash protocols
US20140195440A1
Hash function preprocessing device, id base encryption system using the device, and digital signature system
WO2009075374A1
