A secure and reliable bridge for transferring assets across different networks
A secure enclave environment with a trusted bridge within an untrusted system addresses the inefficiencies and security challenges of cross-chain asset transfers, ensuring low-cost and secure transactions across blockchains.
Patent Information
- Application Number
- JP2024500603
- Authority / Receiving Office
- JP · JP
- Patent Type
- Patents
- Current Assignee / Owner
- Priority Date
- 2022-04-22
- Filing Date
- 2022-07-07
- Publication Date
- 2024-09-19
- Estimated Expiration
- 2042-07-07
AI Technical Summary
Existing blockchain systems face challenges in transferring digital assets across different networks due to high transfer fees, incompatibility for cross-chain transfers, and security risks from third-party actors, leading to inefficiencies and limited user trust.
A secure enclave environment is established to facilitate asset transfers between blockchains using a trusted bridge that operates within an untrusted but secure enclave, validated by remote authentication, ensuring that assets are transferred securely and efficiently without exposure to malicious actors.
The solution provides a low-cost, low-latency, and secure means for transferring assets across blockchains, reducing the risk of security attacks and transaction fees, enhancing user trust and enabling seamless asset movement between different networks.
Smart Images

Figure 0007554380000014 
Figure 0007554380000008 
Figure 0007554380000016
Abstract
Description
[Technical field]
[0001] This document generally describes devices, systems, and methods relating to transferring assets from one network to another using a secure enclave environment. [Background technology]
[0002] Various computer systems have been developed to provide electronic exchanges that enable and process transactions between market participants. For example, centralized and decentralized exchanges have been developed that enable digital assets to be traded between market participants. A centralized exchange can include, for example, a centralized ledger maintained by a centralized host to track and resolve asset ownership between market participants. A decentralized exchange can include, for example, multiple ledgers maintained across multiple different hosts that coordinate and resolve asset ownership between market participants via consensus processes. Decentralized exchanges are implemented using blockchain technology. Each blockchain can have different exchanges, assets, digital currencies, cryptocurrencies, or other types of tokens. To transfer assets from one blockchain or network to another, users may pay significant transfer fees. In some cases, these transfer fees may exceed the amount of assets being transferred. Additionally, in some implementations, users may not be able to transfer assets from one blockchain to another because blockchains do not support cross-chain transfers.
[0003] Various secure computing environments have been developed that can protect various aspects of processes within the secure computing environment from observation, detection, or manipulation by third party actors (e.g., malware). For example, secure computing enclaves have been developed that include hardware components of a computing device that provide operations for executing code in an encrypted environment that can protect operations and / or data being processed from third party actors. For example, a computing device can include one or more specialized processors configured to allow user-level and / or operating system code to define private and encrypted regions of memory, sometimes referred to as enclaves. Summary of the Invention
[0004] This document relates to a secure and trusted computing bridge, or environment, for providing transfer of tokens, cryptocurrencies, and / or other digital assets. The disclosed technology provides for building a bridge between two or more blockchains and operating the bridge through an untrusted but secure environment, such as an enclave. Because the enclave is untrusted and secure, the bridge cannot be exploited by the enclave and / or bridge operator, and the bridge cannot be exploited by third party actors or malicious entities. The bridge described herein can simplify the asset transfer process by transferring assets between wallets at the same address but on the respective blockchains. For example, the bridge can provide for the transfer of a quantity of tokens from a first blockchain to a second blockchain. The quantity of tokens on the first blockchain can be transferred from a user's wallet on the first blockchain to a bridge wallet on that same blockchain. The bridge can facilitate minting (e.g., wrapping) the tokens on the second blockchain and placing the minted tokens into a user's wallet on the second blockchain. Tokens can be minted in quantities corresponding to the quantity of tokens transferred to the bridge wallet of the first blockchain. As a result, a user can control both wallets on both blockchains using the same private key, thereby reducing the possibility that token quantities are minted to the wrong wallet. In some implementations, the disclosed techniques can also provide for transferring token quantities between wallets with different addresses. In general, the disclosed techniques can provide a low-cost, low-latency, and secure means for transferring assets from one blockchain to another or between one or more other networks.
[0005] In some implementations, assets from the first blockchain may be transferred to an address controlled by the bridge (e.g., assets or tokens may be transferred from a user wallet to a bridge wallet on the first blockchain), and the enclave (secure environment) may mint an equal amount of the corresponding token on the second blockchain to the same address to which the token on the first blockchain was sent. Additionally, in some implementations, the wrapped token may be burned on the second blockchain. The wrapped token may be sent to a burn address and / or bridge wallet on the second blockchain. Burning the wrapped token on the second blockchain may render the wrapped token unusable. Thus, the enclave may validate instructions that cause the corresponding amount of tokens in the bridge wallet on the first blockchain to be released to the user wallet on the first blockchain. The bridge operating through the secure enclave may operate like a cross-chain smart contract.
[0006] To ensure that the enclave is valid and secure, the enclave can be validated by one or more third-party actors via remote attestation. For example, one or more wardens can be anonymous nodes tasked with validating that the enclave is operating securely. The wardens can also be tasked with monitoring state changes to the blockchain to determine when minting and / or burning has begun on the respective blockchain. The wardens can use remote attestation to validate that the enclave is operating in a valid and secure environment. One or more other entities, such as users transferring tokens across the blockchain, can also perform remote attestation of the enclave and / or request that the wardens perform remote attestation.
[0007] One or more embodiments described herein may include a system for providing secure transfer of assets between blockchain networks. The system may include a storage device capable of storing a bridge program and programmed to perform (i) a locking operation to lock native assets from a first blockchain network and mint synthetic assets representing the native assets in a second blockchain network, and (ii) an unlocking operation to unlock the native assets by transferring the native assets to an address in the first blockchain network in response to the synthetic assets being returned or destroyed. The system may also include a computer system capable of loading and executing the bridge program, including performing the locking and unlocking operations to provide a bridge between the first blockchain network and the second blockchain network.
[0008] In some implementations, the device may optionally include one or more of the following features. For example, a computer system may include a secure computing enclave that can provide a trusted execution environment in which processing of a program is secure against observation and manipulation by other operations outside the secure enclave. Executing a bridge program in the secure enclave may include loading the bridge program from a storage device into a secure memory within the secure enclave, performing an authentication operation on the bridge program loaded into the secure memory within the secure enclave, the authentication operation being configured to validate the bridge program, and outputting a result of the authentication operation to identify whether the bridge program loaded into the secure enclave is valid.
[0009] As another example, the bridge program may be stored in a storage device and the secure enclave may be programmed to generate a signature of the bridge program loaded into the secure memory, and the signature of the bridge program loaded into the secure memory may be used to validate the bridge program as part of the authentication operation. Further, performing the authentication operation may include performing a hash operation on at least a portion of the bridge program in the secure memory to generate the signature, and the result may include a signature that includes a hash value generated by performing the hash operation.
[0010] As another example, one or more other computing devices may be programmed to request that an authentication operation be performed and to compare the result with a validated authentication value stored in a third party server system for the bridge program.
[0011] In some cases, the first wallet on the first blockchain network may include a first private key and a first public key, and the second wallet on the second blockchain network may include a second private key and a second public key, where the first private key may be the same as the second private key across the first blockchain network and the second blockchain network. In some cases, the first public key of the first wallet may be the same as the second public key of the second wallet. In other cases, the first public key of the first wallet may be different from the second public key of the second wallet. As yet another example, the second public key associated with the second private key of the second wallet may be recovered from a first signature associated with a transaction with the first wallet on the first blockchain network. In some implementations, the second public key of the second wallet, which may include a mint address for receiving minted synthetic assets on the second blockchain network, may be configured to be determined by a bridge program using the public key recovered from the first signature from the first wallet on the first blockchain network. As yet another example, a first public key associated with a first private key of a first wallet may be configured to be recovered from a second signature associated with a transaction with a second wallet on a second blockchain network. Additionally, a first public key of a first wallet, which may include an address for receiving unlocked native assets on the first blockchain network, may be configured to be determined by a bridge program using the second signature from the second wallet on the second blockchain network.
[0012] As another example, the remote witness systems may each be configured to maintain secret shares of a public key for a bridge program used to perform locking and unlocking operations to lock native assets and mint synthetic assets. The secret shares maintained by each of the remote witness systems may be configured to be used in combination to regenerate private keys.
[0013] In some cases, each of the remote monitor systems may collectively store a portion of a pool of shared secrets that can be used to instantiate a new instance of the bridge program, and if the first instance of the bridge program fails, provide the portion of the pool of shared secrets to a second instance of the bridge program upon instantiation.
[0014] Further, each of the remote monitor systems may be further configured to provide a portion of the pool of shared secrets to the second instance of the bridge program in response to the second instance of the bridge program being validated using an authentication operation by the remote monitor system.
[0015] As another example, each of the remote monitor systems may be configured to provide information related to the first blockchain network and the second blockchain network to a second instance of the bridge program.
[0016] As yet another example, the remote witness system may be configured to receive the encrypted transaction from the bridge to approve that the asset operation was performed on the first blockchain network and the second blockchain network, and the bridge program may be further configured to validate that the asset operation was successfully performed on the first blockchain network and the second blockchain network in response to receiving approval from at least a threshold value of the remote witness system. In some cases, the threshold value may include at least a majority of the remote witness system. In some cases, the asset operation may include a native asset being transferred to a wallet associated with the bridge on the first blockchain network. In some implementations, the bridge program may be further configured to mint only the synthetic asset in response to at least a threshold value of the remote witness system approving that the native asset was transferred to a wallet associated with the bridge in the first blockchain network.
[0017] In some cases, the remote monitor system may be configured to automatically notify the bridge program that the native assets are transferred to a wallet associated with the bridge in the first blockchain network without being prompted by the bridge program. Further, the asset action may include the synthetic assets being minted on the second blockchain network. In some cases, the asset action may include the synthetic assets being returned or destroyed on the second blockchain network.
[0018] The bridge program may be further configured to only unlock the native assets in response to at least a threshold of the remote monitor system approving that the synthetic assets have been returned or destroyed on the second blockchain network. Additionally, the remote monitor system may be configured to automatically notify the bridge program that the synthetic assets are returned or destroyed in the second blockchain network without being prompted by the bridge program.
[0019] In some cases, the asset operation may include unlocking the native assets on the first blockchain network. Further, the bridge program may be configured to be modified by (i) generating a new private key associated with a new wallet for the bridge program, (ii) modifying on-chain smart contracts of one or more of the first blockchain network and the second blockchain network with respect to the new private key, and (iii) moving the native assets to a new wallet associated with the new private key.
[0020] As another example, the bridge program may be configured to execute a cross-chain smart contract during a cross-chain asset transfer, where the cross-chain smart contract executes within a secure enclave. In some cases, the cross-chain smart contract may be configured to be used to perform on-chain operations on one or more of the first and second blockchain networks.
[0021] Additionally, fees may be collected for the locking and unlocking operations. In some implementations, the bridge program may be further configured to provide native coins to a wallet in the second blockchain network as part of the locking operation to pay network transaction fees in the second blockchain network. In some cases, the bridge program may be further configured to provide native coins to a wallet in the first blockchain network as part of the unlocking operation to pay network transaction fees in the first blockchain network. In some cases, the fee may be determined based on the asset type, the quantity of assets being transferred, and the network transaction fee. In some cases, fees may be reduced for transactions involving wallets having credentials in the form of non-fungible tokens (NFTs).
[0022] As another example, the bridge program may be further configured to transfer assets bidirectionally between the first blockchain network and the second blockchain network. In some cases, transferring assets bidirectionally can include the bridge program being configured to perform a lock operation on the native assets in the second blockchain, mint the synthetic assets in the first blockchain, and perform an unlock operation by unlocking the native assets in the second blockchain in response to the synthetic assets in the first blockchain being returned or destroyed.
[0023] As yet another example, the bridge program may be further configured to transfer assets between three or more blockchain networks. In some cases, the bridge program may be further configured to transfer synthetic assets between multiple different non-origin blockchain networks by burning the synthetic assets in a first non-origin blockchain network and minting new synthetic assets in a second non-origin blockchain network. In some cases, the bridge program may be further configured to unlock the corresponding native assets in the origin blockchain network in response to the new synthetic assets being returned or destroyed in the second non-origin blockchain network.
[0024] The devices, systems, and techniques described herein may provide one or more of the following advantages: For example, the disclosed techniques may be more secure and safer against security attacks than other networks. The disclosed techniques may not include public APIs. Because there are no user-facing APIs, there may be no SSL certificates, no validity checks, and no rate limits. With such a small attack surface, the transfer of assets over a bridge through an enclave is a more secure process, as there may be limited or no exposure to DDOS attacks. Because this process is more secure, users are more likely to trust the enclave environment and use the bridge to transfer assets.
[0025] As another example, the disclosed technology provides a simplified wallet structure. The enclave may manage one address on each blockchain between which the bridge is built. Thus, one address can be used to identify a user's wallet on both blockchains. One address can also be used to identify the address of the bridge on both blockchains. Using one address to identify a user's wallet on both blockchains can be advantageous to ensure that the amount of tokens or other assets is transferred to the correct wallet. The use of one address increases the security of the disclosed technology and increases the trust that users can have in the disclosed technology. Furthermore, additional wallet structures may not be needed to move funds to cover the cost of the transaction. As a result, the enclave can generate and send transactions while simultaneously reducing the cost of transaction fees.
[0026] The disclosed techniques can also provide for a smaller trusted code base, which can be provided to analyze transactions on nodes such as witnesses that run outside of the enclave and are less restrictive than the enclave, thereby minimizing the liability of the enclave, further reducing the risk of attack from a security perspective.
[0027] Additionally, the disclosed technology may not require know your customer or anti-money laundering validation. By configuration, the disclosed technology may provide for the transfer of assets held by a single individual. In other words, as described, assets may be transferred from a user's wallet on one blockchain to a user's wallet on another blockchain using the same address. The disclosed technology may not send funds to a user who does not already have access to the assets. Thus, there may be no need for know your customer and / or anti-money laundering validation that may be required to transfer assets between other blockchains or networks. This may be further beneficial to make the regulated nature and operation of the bridge more secure.
[0028] The disclosed technology may also provide one or more benefits to users. For example, some blockchains that interact via smart contracts and transfer assets that may be expensive and prohibitive may impose gas fees. In some cases, sending assets through a blockchain may cost more in transaction fees than the amount or quantity moved. Using the disclosed technology, a user only needs to pay a transaction fee that covers the gas for one transfer transaction on a first blockchain to wrap the asset, and then the gas for one transfer transaction on a second blockchain to unwrap or otherwise burn the asset. In some implementations, the bridge operator may charge a small fee to fund the cost of operation, but this fee may not be prohibitively expensive like the fees of the blockchain or other network. In some implementations, the disclosed technology may also provide for determining the fee amount based on the current price of the asset being transferred. Thus, the fee to cross the bridge may be the bridge operator's flat transfer fee amount plus the cost of gas for two transfers, one on each blockchain. Low fees for transfers may make the adoption and use of the disclosed technology more desirable for users seeking to engage in exchanges on both blockchains.
[0029] User interaction with the bridge can also be simplified. A user can transfer a token from the user's wallet on the first blockchain to a static address that represents the bridge's wallet on the first blockchain. The wrapped token can be minted at the same wallet address of the user, but on the second blockchain. To unwrap a token, the user can send the user's wrapped token from the user's wallet on the second blockchain to a static burn address and / or bridge wallet on the second blockchain. The original token can then be sent back to the same wallet address on the first blockchain. This interface can be easy for users to learn and interact with, and may not require the user to directly interact with the enclave, the watcher, and / or the bridge.
[0030] Remote attestation techniques can also be used to validate that the bridge is operating correctly. Remote attestation can assure users that no entities, other than the code running in the enclave itself, have access to manipulate the bridge or the assets being transferred through it. Secure transactions can be performed and users can trust the enclave using the disclosed techniques.
[0031] Furthermore, the disclosed technology can provide users to transfer tokens or other digital assets across different blockchains or networks. Traditionally, users cannot trade different digital assets across different networks. If users were able to transfer or trade assets, they may be charged significant transfer fees. As a result, users are limited in their ability to invest in different opportunities and ventures across different networks or exchanges. Thus, the disclosed technology can enable users to move their digital assets across chains, thereby increasing the user's ability to invest in different opportunities and ventures.
[0032] The details of one or more implementations are set forth in the accompanying drawings and the description below. Other features and advantages of the invention will be apparent from the description and drawings, and from the claims. [Brief description of the drawings]
[0033] [Figure 1] FIG. 1 is a conceptual diagram of a secure enclave environment for transferring tokens across a blockchain. [Diagram 2] FIG. 1 is a conceptual diagram of a monitor implementing some of the techniques described herein. [Figure 3A] FIG. 1 is a conceptual diagram of a process for minting tokens on a blockchain using the techniques described herein. [Figure 3B] FIG. 1 is a conceptual diagram of a process for minting tokens on a blockchain using the techniques described herein. [Figure 3C] FIG. 1 is a conceptual diagram of a process for minting tokens on a blockchain using the techniques described herein. [Figure 3D] FIG. 1 is a conceptual diagram of a process for minting tokens on a blockchain using the techniques described herein. [Figure 4A] FIG. 1 is a conceptual diagram of a process for releasing tokens on a blockchain using the techniques described herein. [Figure 4B] FIG. 1 is a conceptual diagram of a process for releasing tokens on a blockchain using the techniques described herein. [Figure 4C] FIG. 1 is a conceptual diagram of a process for releasing tokens on a blockchain using the techniques described herein. [Figure 4D] FIG. 1 is a conceptual diagram of a process for releasing tokens on a blockchain using the techniques described herein. [Diagram 5] FIG. 1 is a swimlane diagram of a process for minting tokens. [Figure 6]FIG. 1 is a swimlane diagram of a process for releasing a token. [Figure 7] FIG. 2 is a swimlane diagram of a process for starting an enclave. [Figure 8] FIG. 1 is a swimlane diagram of the process for remote attestation of an enclave during enclave invocation. [Figure 9] FIG. 1 is a swimlane diagram of the process for restarting an enclave. [Figure 10] FIG. 13 is a swimlane diagram of another process for restarting an enclave. [Figure 11] 1 is a schematic diagram illustrating an example of a computing device and a mobile computing device.
[0034] Like reference numbers in the various drawings indicate like elements. DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS
[0035] This document relates to a secure enclave environment for transferring assets, such as digital assets, tokens, cryptocurrencies, etc., across different networks. The networks can be different blockchains. The disclosed technology can provide a bridge between two or more blockchains, where the bridge operates within a secure and trusted enclave. Assets can be transferred between wallets at the same address but on the respective blockchains, thereby allowing a user to control both wallets using the same private key and reducing the possibility of assets being transferred to the wrong wallet. The disclosed technology operates like a cross-chain smart contract that can be validated through remote attestation via a designated witness (e.g., party, entity, node). Because the transfer of assets (e.g., smart contracts) can occur within a secure enclave environment, the transfer may not be altered by a malicious actor. Additionally, a witness that is not fully trusted can use remote attestation techniques to validate the integrity of the enclave and any smart contracts implemented within the enclave. Since only the enclave performs or executes smart contract transactions, instead of multiple nodes, it may become more feasible to have the enclave support transfers between different blockchains (e.g., networks).
[0036] Referring to the drawings, FIG. 1 is a conceptual diagram of a secure enclave environment 100 for transferring tokens across blockchains. A first blockchain 104A and a second blockchain 104B can communicate over a network 102. The first blockchain 104A can include multiple nodes 106A-N. Each of the nodes 106A-N can communicate with each other and perform one or more operations in the first blockchain 104A. For example, the nodes 106A-N can transfer tokens from a user wallet to a bridge wallet in the first blockchain 104A when a user wishes to transfer a token, or a quantity of tokens, to the second blockchain 104B. The nodes 106A-N can also release tokens from the bridge wallet to the user wallet once a burn request is made and validated in the second blockchain 104B. Similarly, the second blockchain 104B can include multiple nodes 108A-N that can communicate with each other and perform one or more operations in the second blockchain 104B. For example, when a user burns tokens in the second blockchain 104B, nodes 108A-N can release the tokens from the user's wallet in the second blockchain 104B. Nodes 106A-N and 108A-N can be anonymous nodes that run the first blockchain 104A and the second blockchain 104B.
[0037] In some implementations, the first blockchain 104A and the second blockchain 104B may be any other type of network in which assets may be created, traded, stored, and / or used in transactions. Assets such as tokens may be transferred between the first blockchain 104A and the second blockchain 104B via the bridge 114. Each of the blockchains 104A and 104B may have their own digital assets, cryptocurrencies, and / or tokens.
[0038] The enclave 110 can provide transfer of token quantities between the first blockchain 104A and the second blockchain 104B via a bridge 114. The enclave 110 can exist between two or more blockchains or other networks. Although the enclave 110 can run as its own standalone computing environment, the enclave 110 affects the state of both the first blockchain 104A and the second blockchain 104B by issuing (e.g., minting and burning) transactions.
[0039] Enclave 110 may be a secure computing environment operated on a server, a computing system, and / or a network of servers and / or computing systems. Enclave 110 is stateless and can change constantly. This secure environment can be run by an operator. The same operator can also run bridge 114. The operator can be anonymous. When started by an operator, enclave 110 can be authenticated using remote attestation to ensure that correct and secure code is being run by the correct operator, as will be further described with reference to Figures 7-10. For example, if enclave 110 goes down, watchers 112A-N may make a decision, independent of each other, whether bridge 114 will respond. Collectively, watchers 112A-N can then contact the operator of enclave 110 and inform the operator that bridge 114 needs to be fixed. In some cases, the operator can shut down enclave 110 or otherwise cause enclave 110 to disappear / stop running. In such a scenario, the watchers 112A-N can collectively select another entity to become the operator of the enclave 110. In some implementations, the operator may be any one of the watchers 112A-N or any other entity operating within the secure enclave environment 100. Once a new operator is selected, the watchers 112A-N can use a secret share of the master secret key of the enclave 110 to reconstruct in the new enclave a master secret key that the operator would use to run the same code. Thus, transactions and activity from the enclave 110 can resume as if the enclave 110 had never gone down and a new operator had not been selected.
[0040] The enclave 110 may allow the transfer of tokens from one blockchain, such as the first blockchain 104A, to another blockchain, such as the second blockchain 104B. For example, a quantity of tokens from the first blockchain 104A may be minted on the second blockchain 104B such that the quantity may be used in an exchange on the second blockchain 104B.
[0041] In some implementations, the secure enclave environment 100 can provide communication and transfer of assets between two or more blockchains. For example, the secure enclave environment 100 can provide a bridge 114 between a first blockchain 104A and a second blockchain 104B, and a second bridge between the second blockchain 104B and a third blockchain. One or more additional blockchains or other networks can also be bridged to one or more of the first blockchain 104A and the second blockchain 104B using the techniques described herein.
[0042] The secure enclave environment 100 may be comprised of a trusted code base and an untrusted code base. The trusted code base may be the portion of the code base that runs within the enclave 110, and the untrusted code may run outside of the enclave 110. For example, the untrusted code may be responsible for initializing and starting the enclave 110, as well as performing remote attestation of the enclave 110. As described further below, remote attestation is a process by which a third party can prove to a remote entity that the third party can be trusted and establish an authenticated communication channel with that entity. As part of the attestation, the enclave 110 may attest to its identity, that its source code has not been tampered with, and that the enclave 110 is running on an authentic, validated platform with the latest security updates.
[0043] As described herein, the enclave 110 may be responsible for processing on-chain events to support the operation of the bridge 114. These events may include creating a smart contract on the second blockchain 104B to mint wrapped tokens from the first blockchain 104A, minting assets on the second blockchain 104A, holding assets in a controlled wallet on the first blockchain 104A, and releasing tokens or other assets on the first blockchain 104A to a specified address. One or more other on-chain events may be processed by the enclave 110.
[0044] The secure enclave environment 100 may also include multiple watchers 112A-N. The watchers 112A-N may be remote servers or other computing systems that are trusted partners of the enclave 110. The watchers 112A-N may be anonymous and may communicate with the enclave 110 and the first and second blockchains 104A, 104B. The watchers 112A-N may monitor the first and second blockchains 104A, 104B for on-chain events, such as transferring tokens from a user's address to a bridge wallet on the first blockchain 104A and releasing wrapped tokens on the second blockchain 104B. The watchers 112A-N may validate such on-chain events and broadcast instructions to execute the on-chain events on the respective blockchains.
[0045] The private keys of the addresses used by the enclave 110 in both the first blockchain 104A and the second blockchain 104B can be derived from a single master secret key. The master secret key can be securely held within the enclave 110. The master secret key can be split into shares and distributed to multiple watchers 112A-N using secret share techniques. The secret shares can be transmitted via Transport Layer Security (TLS) and / or remote authentication. Upon restart, the enclave 110 can, for example, fetch K of the N shares of the master secret key from the watchers 112A-N and recalculate the master secret key. The master secret key can then be used to re-derive private keys of the first blockchain 104A addresses that can be used to hold assets or tokens, and private keys of the second blockchain 104B that can be used to deploy smart contracts and mint new assets or tokens on the second blockchain 104B.
[0046] In general, the enclave 110 can track funds moving to a bridge wallet on the first blockchain 104A or funds burned via a smart contract on the second blockchain 104B. This information can be relayed from the watchers 112A-N to the watcher 110, and K of N consensus between the watchers 112A-N can be required for the watcher 110 to take action. Similarly, the watchers 112A-N can be responsible for tracking which transactions have already been processed by the enclave 110. The enclave 110 can use on-chain components for the first and / or second blockchains 104A and 104B. For example, on the first blockchain 104A, the enclave 110 can own the private key of a standard wallet (e.g., hereafter, a bridge wallet) on the first blockchain 104A. The wallet can contain a mixture of assets or tokens, including tokens from the first blockchain 104A and tokens that have been moved to the second blockchain 104B via the bridge 114. The enclave 110 can maintain a one-to-one relationship between all token funds held on the first blockchain 104A and tokens minted on the second blockchain 104B (excluding burned tokens). The tokens from the first blockchain 104A can, in some implementations, be used to pay associated fees for returning tokens (e.g., token quantities) from the second blockchain 104B.
[0047] As another example, on the second blockchain 104B, the enclave 110 may own the private key of a standard wallet on the second blockchain 104B. In addition, the enclave 110 may have a template token that can be used to mint each asset type that is migrated to the second blockchain 104B. The wallet on the second blockchain 104B may contain the token used to pay the transaction feed of the mint transaction and may further be the only address authorized to mint the token. When a token is moved from the first blockchain 104A to the second blockchain 104B, a small portion of the token may also be minted to the bridge operator's address as payment of a fee. Similarly, when a token is unwrapped (e.g., when moving from the second blockchain 104B to the first blockchain 104A), a small portion of the token may be sent to an operator-controlled wallet (e.g., a bridge wallet) on the first blockchain 104A.
[0048] Once the enclave 110 has determined that an action (e.g., minting or releasing a token) is to be performed, the enclave 110 can generate and sign the transactions necessary to process the action (e.g., the request) on the opposing network. After generating the signed transactions, the enclave 110 can encrypt them using a key generated from a master secret key and send the encrypted transactions to each of the watchers 112A-N. Once K of the watchers 112A-N have acknowledged receipt of the encrypted transactions, the enclave 110 can complete the action by sending each of the watchers 112A-N an unencrypted transaction for broadcast to their respective blockchains depending on the transaction type. This two-phase process can be beneficial to ensure that none of the watchers 112A-N can control which transactions the enclave 110 processes.
[0049] As an illustrative example, consider a scenario in which an encrypted transaction is not sent to the watchers 112A-N initially, but instead a signed transaction is sent directly, and the enclave 110 fails to send the transaction to all but one of the watchers 112A-N due to a network failure, an unexpected error, or malicious behavior. If the enclave 110 needs to be restarted, it may query the watchers 112A-N about the incomplete transaction that the enclave 110 would have to reprocess. In this case, a threshold of watchers 112A-N may honestly say that the transaction was not processed, but a single one of the watchers 112A-N that received the signed transaction may have reported to the enclave 110 that it did not broadcast the signed transaction when it could have broadcast the transaction to its respective blockchain. A single one of the watchers 112A-N may be malicious. In this case, the enclave 110 may double-process the request, which may result in a double mint of tokens. On the other hand, using the two-phase process disclosed herein, a threshold number of watchers 112A-N must first acknowledge the encrypted transaction. Only enclave 110 can decrypt the transaction. Upon any restart, enclave 110 can ask each of watchers 112A-N about any transactions in the "preparation" stage, and then decrypt and replay those transactions that enclave 110 has already created. Even if only a single watcher receives the encrypted transaction, enclave 110 can still validate that it generated the transactions contained within the encrypted transaction. If only a single watcher receives the unencrypted signed transaction after a threshold number of watchers 112A-N have acknowledged the encrypted transaction, upon restart, enclave 110 can resynchronize watchers 112A-N that did not previously receive the unencrypted transaction.
[0050] The enclave 110 described herein may be stateless. As a result, new bridges can be created or migrated at any time. New bridges and / or enclaves can be established as long as consensus is reached among at least a majority of the watchers 112A-N. Bridges can also be reconstructed using secret shares of the enclave 110's master private key held by the watchers 112A-N. Reconstructing a bridge can also include building a bridge wallet 118 with the same quantity of tokens held in the previous version of the bridge wallet 118.
[0051] Figure 2 is a conceptual diagram of watchers 112A-N implementing some of the techniques described herein. As described with reference to Figure 1, the multiple watchers 112A-N may be anonymous computer servers, systems, and / or networks of computing devices that communicate with each other and with the first blockchain 104A and the second blockchain 104B over the network 102. The watchers 112A-N may be oracles or other out of the box blockchain clients.
[0052] The watchers 112A-N can also communicate with a private data store 202 and a public data store 200. In some implementations, for example, each of the watchers 112A-N can communicate with a different private data store 202, and all of the watchers 112A-N can communicate with the same public data store 200. In some implementations, each of the watchers 112A-N can communicate with different private and public data stores.
[0053] The watchers 112A-N may be trusted parties with several responsibilities in the secure enclave environment described throughout this disclosure. The bridge may rely on the watchers 112A-N to read and update the state of the first blockchain 104A and the second blockchain 104B supported by the secure enclave environment, for example. The enclave may be configured to send all blockchain requests to multiple independent watchers 112A-N, and a quorum of these watchers 112A-N must provide equivalent responses for the enclave to accept the responses. This can ensure that no single watcher lies or acts maliciously to deceive the enclave. The more watchers 112A-N there are and the more watchers 112A-N required for a quorum, the more distributed and secure the bridge can be.
[0054] As mentioned with reference to FIG. 1, each of the watchers 112A-N can receive a single secret share of the master secret key from the enclave when the enclave first initializes. A configurable threshold of these shares can be sufficient to regenerate the enclave's master secret key. If the enclave restarts, the enclave can query the watchers 112A-N to obtain the secret shares and recalculate the enclave's master secret key value. All other secret values used by the enclave can be derived deterministically from the master secret key.
[0055] The watchers 112A-N may also continuously monitor or otherwise index the first and second blockchains 104A, 104B. The enclave may query the watchers 112A-N for transactions sent to specific addresses in each of the first and second blockchains 104A, 104B. The watchers 112A-N may build an index of transactions in a data store, such as the private data store 202. To build the index, the watchers 112A-N may iterate through the transactions, querying the nodes 106A-N of the first blockchain 104A and the nodes 108A-N of the second blockchain 104B for each block.
[0056] The watchers 112A-N can also track which bridge requests have been processed by the enclave. More specifically, the watchers can track wrapping and unwrapping transactions. Upon receiving a wrapping transaction, the bridge's trusted code base can generate and send a mint transaction on the second blockchain 104B as described herein. Similarly, upon receiving an unwrapping transaction, the bridge can generate and send a release / transfer transaction on the first blockchain 104A. To send these transactions to their respective networks, the enclave must first relay the transactions to the watchers 112A-N, where they can be broadcast to the nodes 106A-N of the first blockchain 104A and the nodes 108A-N of the second blockchain 104B. Once broadcast, the watchers 112A-N can mark the transactions as processed in the private data store 202.
[0057] Additionally, the watchdog 112A-N can track wrapped token pairings. A bridge as described herein can create a wrapped token contract on the second blockchain 104B for each token of the first blockchain 104A that the bridge supports. When restarted, the bridge can list additional tokens it supports and create new wrapped token contracts. A bridge cannot delete a list of tokens that it previously supported. To prevent a bridge from deleting its list of supported tokens, all supported tokens and their corresponding wrapped token contract addresses can be stored in the watchdog 112A-N (e.g., in the private data store 202) and fetched by the enclave at startup.
[0058] In some implementations, the watchers 112A-N can also maintain which users or entities are authorized to mint assets on the second blockchain 104B. Bridges can be built to allow the watchers 112A-N to add the ability to remove and mint assets via smart contracts on the second blockchain 104B. If a new bridge comes online or an existing bridge needs to migrate to a new address, the watchers 112A-N can explicitly grant permission to do so.
[0059] The watchers 112A-N may also host public information. Information such as fees, minimum transfer requirements, supported tokens, etc. may be configured and maintained in an enclave. Since the enclave is not publicly accessible, the watchers 112A-N may be responsible for hosting that information publicly. In addition, the watchers may be responsible for hosting authentication reports for public consumption. This information may be stored in the public data store 200 and retrieved as it is publicly reported by the watchers 112A-N.
[0060] In some implementations, the watchers 112A-N can be changed. To change the membership of the watchers 112A-N for a particular secure enclave environment, the code executed by the enclave can be modified to include an identifier (e.g., domain) of each watcher operating in the secure enclave environment. Existing watchers 112A-N may need to agree to the change in membership before the watchers 112A-N are updated. Standard TLS techniques can be used to ensure that proper secure communications are established between the watchers 112A-N, enclaves, and bridges described herein.
[0061] Additionally, in some implementations, information about the watchers 112A-N may be made public. This information may include identifiers or domains that otherwise identify the watchers 112A-N governing across secure enclave environments. Publishing such information may be beneficial to help the watchers 112A-N trust each other and to help users trust the secure enclave environment. Additionally, in some implementations, any one or more of the watchers 112A-N may be enclaves or operators of other enclaves in other secure enclave environments.
[0062] 3A-3D are conceptual diagrams of a process for minting a token on a blockchain using the techniques described herein. Referring to FIG. 3A, as described with reference to FIG. 1, a user can initiate a transfer of a token 126A from the user's wallet 116 to a bridge wallet 118 on the first blockchain 104A (step A). The token 126A can be a token, cryptocurrency, or other digital asset of the first blockchain 104A. Transferring the token 126A can include transferring a quantity of the token 126A to the bridge wallet 118. Once the token 126A is transferred to the bridge wallet 118, the user initiates a transaction to transfer the token 126A from the first blockchain 104A for use on the second blockchain 104B. In other words, the user is initiating a transaction to mint a token on the second blockchain 104B.
[0063] The user wallet 116 may have an address that may also be used for a corresponding wallet on the second blockchain 104B. Thus, a quantity of tokens 126A may be transferred from the user wallet 116 on the first blockchain 104A to a user wallet on the second blockchain 104B using the same address. This may be advantageous to reduce the likelihood that a quantity of tokens 126A is transferred to an incorrect wallet on the second blockchain 104B, thereby increasing security and trust of the secure enclave environment 100.
[0064] The bridge wallet 118 can have a private key held by the enclave 110. The bridge wallet 118 can be operated by the enclave 110 and can store or otherwise lock tokens, such as the token 126A, transferred from a user wallet on the first blockchain 104A. The bridge wallet 118 can hold a token, such as the token 126A, therein until, for example, a burn request / transaction is received on the second blockchain 104B (see, for example, FIGS. 4A-4D). As long as the token 126A is held in the bridge wallet 118, the token 126A cannot be duplicated or otherwise used by a user. Additionally, the first blockchain 104A can maintain user wallets for all users that have assets, tokens, and / or transactions on the first blockchain 104A. The nodes 106A-N of the first blockchain 104A can perform operations, such as transferring the token 126A from the user wallet 116 to the bridge wallet 118.
[0065] 3A, the watchers 112A-N may poll the first blockchain 104A for updates to the bridge wallet 118 (Step B). Polling the first blockchain 104A may include communicating with one or more of the nodes 106A-N to determine if the state of the bridge wallet 118 has been modified or otherwise changed. For example, the watchers 112A-N may poll the nodes 106A-N to determine if a user has transferred a token from the user's wallet to the bridge wallet 118. As described above, when a user transfers a token from the user's wallet to the bridge wallet 118, the user has begun the process of transferring the token to the second blockchain 104B.
[0066] One or more of the watchers 112A-N can poll the first blockchain 104A at predetermined times, such as every few seconds, minutes, and / or hours. For example, the watchers 112A-N can poll the first blockchain 104A every 5 seconds. In some implementations, the enclave 110 can poll the watchers 112A-N, which in turn poll the first blockchain 104A.
[0067] In some implementations, a first subset of the watchers 112A-N may poll the first blockchain 104A, and one or more other subsets of the watchers 112A-N may or may not poll the first blockchain 104A. For example, the first subset of the watchers 112A-N may poll the first blockchain 104A at a first time, and a second subset of the watchers 112A-N may poll the first blockchain 104A at a second time that is different from the first time (e.g., after the first time, before the first time).
[0068] One or more of the watchers 112A-N may identify the update to the bridge wallet 118 (step C). In the example of FIG. 3A, the watchers 112A, 112B, and 112N may identify (e.g., validate) that a transfer of the token 126A from the user wallet 116 to the bridge wallet 118 occurred on the first blockchain 104A. The watchers 112A, 112B, and 112N may notify the enclave 110 of this token transfer. Thus, the watchers 112A-N may look for an on-chain deposit of the token from one user wallet to the bridge wallet 118. In some cases, all of the watchers 112A-N may identify that the token transfer occurred on the first blockchain 104A. As shown in FIG. 3A, in some implementations, fewer than all of the watchers 112A-N may identify that the token transfer occurred.
[0069] Once the enclave 110 receives a notification from one or more of the watchers 112A-N regarding the token transfer, the enclave 110 may determine whether a consensus has been reached on the token transfer (step D). The consensus may be a minimum amount of watchers 112A-N required to validate that the transaction can proceed to transfer the amount of tokens 126A from the first blockchain 104A to the second blockchain 104B. Determining whether a consensus is reached among the watchers 112A-N may be beneficial to ensure that no single watcher lies about the state of the bridge wallet 118 and / or maliciously attempts to control the enclave 110 and the token minting process. Thus, consensus among the watchers 112A-N may allow the enclave 110 to trust the watchers 112A-N, thereby creating a secure environment for transferring tokens across blockchains.
[0070] In some implementations, the consensus may be greater than or equal to 50% of the watchers 112A-N. In some implementations, the consensus may be any value greater than a majority of the watchers 112A-N, including but not limited to 55%, 60%, 70%, 80%, 90%, 95%, etc.
[0071] In the example of Figure 3A, the consensus may be 50%. Thus, in step D, the enclave 110 may determine whether 50% or more of the watchers 112A-N have identified a transfer of the token 126A from the user wallet 116 to the bridge wallet 118. Now, since three of the four watchers 112A-N have identified the token transfer, the 50% consensus has been met. Thus, the process may proceed to Figure 3B.
[0072] As shown in FIG. 3B, now that a consensus has been reached (see, e.g., step D of FIG. 3A), the enclave 110 can generate instructions to mint the tokens on the second blockchain 104B (step E). The instructions can identify an address associated with the user wallet 116 that initiated the transaction to the bridge wallet 118. The instructions can also identify the quantity of tokens that will need to be quantified or otherwise minted on the second blockchain 104B. As described above with reference to FIG. 1, the same address associated with the user wallet 116 can be used to identify which wallet in the second blockchain 104B to mint the tokens for. Using the same address can be advantageous to reduce the likelihood that the tokens are minted for the wrong wallet on the second blockchain 104B.
[0073] Once the instructions to mint are generated, the enclave 110 may encrypt the instructions (step F). Encrypting the instructions may be beneficial to ensure that user privacy is maintained and that transactions are secure when they are transferred from the enclave 110 to the watchers 112A-N. This may also be beneficial if the enclave 110 goes down and must boot back up. Encryption may protect the transactions from the activities of malicious nodes or other malicious users operating outside the enclave 110. The encrypted instructions 302 may include the address of the requesting user's wallet on the second blockchain 104B and the quantity of tokens 126A to be minted on the second blockchain 104B.
[0074] Enclave 110 may send the encrypted instructions to watchers 112A-N for validation (step G). Performing this step may be advantageous to ensure that none of watchers 112A-N acts alone to control the minting process. Additionally, encrypting the instructions may be beneficial so that if enclave 110 goes down and is rebooted, the encrypted instructions can be requested by enclave 110 from watchers 112A-N, decrypted, and then used to complete the minting of the transaction.
[0075] With reference to FIG. 3C, one or more of the watchers 112A-N may validate receipt of the encrypted instruction (step H). The enclave 110 may want to receive acknowledgment of receipt from a majority of the watchers 112A-N before sending the actual instruction to the watchers 112A-N to mint. One or more of the watchers 112A-N may send this acknowledgment to the enclave 110. The enclave 110 may then determine whether K of the watchers 112A-N have validated receipt of the encrypted instruction (step I). The K of the watchers may be any quantity of the watchers 112A-N, such as 50% or some quantity greater than or equal to a majority of the watchers 112A-N (see, e.g., the consensus described with reference to step D of FIG. 3A). In the example of FIG. 3C, K may be equal to at least half of the watchers 112A-N. Now, all watchers 112A-N have validated receipt of the encrypted instructions in step H. Thus, in step I, enclave 110 can determine that at least K of the watchers have validated receipt.
[0076] Because the K threshold has been met, the enclave 110 can now decrypt the instructions (Step J). In other words, there is a secure connection between the enclave 110 and the watchers 112A-N. Together, the watchers 112A-N can broadcast instructions to mint tokens on the second blockchain 104B.
[0077] The decrypted instructions may then be sent to the watchers 112A-N (step K). Since the enclave 110 may use the same decryption key for all transactions, the enclave 110 may keep the decryption key. Thus, the enclave 110 may send the fully decrypted instructions to the watchers 112A-N in step K.
[0078] 3D, once the watchers 112A-N receive the decrypted mint instructions, the watchers 112A-N may broadcast the decrypted instructions to the second blockchain 104B. More specifically, the watchers 112A-N may broadcast the instructions to one or more of the nodes 108A-N.
[0079] One or more of the nodes 108A-N can mint the token 126B, which can include placing the minted token 126B into the user wallet 120 (step M). As described above, the user wallet 120 may be identified using the same address as the address used for the user wallet 116. The address can be identified in the decrypted instructions 302. In some implementations, the address of the user wallet 120 is different from the address of the user wallet 116, and the address of the user wallet 120 can be included in a memo field of a transfer transaction made on the first blockchain 104A from the user wallet 116 to the bridge wallet 118. The nodes 108A-N can then mint the token 126B into the user wallet 120 using the address in the memo field. When the destination address is in the memo field or another part of the transaction, the watchers 112A-N can be polled to validate that the destination address in the memo field matches the address of the user wallet 120. This process can be used to ensure that tokens 126B are not minted into the wrong wallet.
[0080] Minting the token 126B may include wrapping the token 126A. In other words, the actual token 126A is not transferred from the first blockchain 104A to the second blockchain 104B. Instead, the token 126B is the wrapped token 126A that acts as an IOU and indicates how much value the user has on the first blockchain 104 as the token 126A. Thus, minting the token 126B may include generating a token 126B that corresponds to the quantity of the token 126A identified in the decrypted instructions 302. The user may then use the minted token 126B in an exchange on the second blockchain 104B.
[0081] 4A-4D are conceptual diagrams of a process for releasing tokens on a blockchain using the techniques described herein. Releasing tokens includes burning tokens on a blockchain. With reference to FIG. 4A, a user, such as the user described with reference to FIG. 3A-3D, can transfer tokens 126B from a user wallet 120 to a burn address 122 and / or a bridge wallet 124 on the second blockchain 104B (step A). The same user from FIG. 3A-3D cannot be involved in the release process described in FIG. 4A-4D. Instead, any other user transacting cross-chain can be assigned a user wallet 120 and transfer their tokens 126B to the burn address 122 and / or the bridge wallet 124.
[0082] The user can invoke or initiate a smart contract (e.g., a transaction) to burn their tokens 126B on the second blockchain 104B. The nodes 108A-N can then release the tokens 126B from the user wallets 120. As described with reference to FIGS. 3A-3D, the tokens 126B can be minted tokens of the quantity of tokens 126A that the user moved to the bridge wallet 118 on the first blockchain 104A. In this manner, the tokens 126B can be wrapping the tokens 126A.
[0083] The user wallet 120 on the second blockchain 104B can have the same address and the same private key as the user wallet 116 on the first blockchain 104A. Thus, the same user can access the user wallet 120 and the user wallet 116. As mentioned above, using the same address can be advantageous to ensure security of transactions such as minting and burning tokens. In some implementations, the user wallet 120 and the user wallet 116 can have different addresses, as mentioned above.
[0084] The burn address 122 can be a public address of the second blockchain 104B. Users can send assets, such as tokens and other cryptocurrencies, to the burn address 122. Once sent to the burn address 122, the assets cannot be recovered because there is no private key for the burn address 122. Assets sent to the burn address 122 are essentially burned and can never be used again. Thus, when a user sends a token 126B from a user wallet 120 to the burn address 122, the user is deleting the token 126B from their wallet 120 and cannot access or use the token 126B again.
[0085] As shown in FIGS. 4A-4D, the enclave 110 can operate and maintain a bridge wallet 124 on the second blockchain 104B and a bridge wallet 118 on the first blockchain 104A. Assets, such as tokens 126A, may be held in the bridge wallet 118 on the first blockchain 104A until such token quantities are exhausted and / or released back to the user of the user wallet 116. Assets, such as tokens 126B, may be placed in the bridge wallet 124 on the second blockchain 104A, such that the assets can be burned and can no longer be used or recovered by the user. In some implementations, assets may be held in the bridge wallet 124 for a predetermined period of time, and then the assets may be burned in one or more batches. In some implementations, assets transferred to the bridge wallet 124 may be burned upon arrival at the bridge wallet 124.
[0086] 4A, one or more of the watchers 112A-N may poll the second blockchain 104B for any updates to the burn address 122 and / or bridge wallet 124 (step B). As described with reference to step B of FIG. 3A, the watchers 112A-N may poll the nodes 108A-N for state changes of the second blockchain 104B at a predetermined time, such as every 5 seconds. The enclave 110 may also request the watchers 112A-N to poll the nodes 108A-N of the second blockchain 104B at a predetermined time. The watchers 112A-N may poll the second blockchain 104B to determine whether a smart contract (e.g., a transaction) involving a transfer of the token 126B (or other token) from the user wallet 120 (or other wallet) to the burn address 122 and / or bridge wallet 124 has been executed by the nodes 108A-N. Thus, the watchers 112A-N can recognize any changes to the state of the second blockchain 104B that indicate a burn request has occurred.
[0087] One or more of the watchers 112A-N may identify that a transfer of the token 126B occurred on the second blockchain 104B (step C). As described with reference to step C of FIG. 3A, the watchers 112A-N may validate that a smart contract (e.g., a transaction) involving the burning of the token 126B was created and executed. Further, as described above, in some implementations, fewer than all of the watchers 112A-N may identify the token transfer. In some implementations, all of the watchers 112A-N may identify the token transfer. Here, the watchers 112A, 112B, and 112N identify that a token transfer occurred. The watchers 112A, 112B, and 112N may forward the identification of the token transfer to the enclave 110.
[0088] The enclave may then determine whether a consensus has been reached for the corresponding token 126A to be released from the bridge wallet 118 on the first blockchain 104A (step D). As described with reference to step D of FIG. 3A, the consensus may be a predetermined quantity of watchers 112A-N that must provide an identification of the token transfer in order for the token release action to occur. For example, the consensus may be at least a majority of the watchers 112A-N. In some implementations, the consensus may be at least a majority of the watchers 112A-N that poll the second blockchain 104B for updates in step B. In some implementations, the consensus may be at least a majority of the watchers 112A-N that govern the secure enclave environment 100. Further, in some implementations, the consensus may be any number, quantity, or percentage of monitors 112A-N, including but not limited to 55%, 60%, 65%, 70%, 75%, 80%, 85%, 90%, 95%, etc.
[0089] In the example of FIG. 4A, the enclave 110 can determine that a consensus has been reached to release the token 126A from the bridge wallet 118 on the first blockchain 104A, where three of the four watchers 112A-N have identified a token transfer on the second blockchain 104B that is greater than 50%, or a majority, of the watchers 112A-N operating in the secure enclave environment 100. Thus, the enclave 110 can determine that a sufficient number of the watchers 112A-N have validated the smart contract (e.g., transaction) to transfer the token 126B from the user wallet 120 to the burn address 122 and / or the bridge wallet 124.
[0090] As shown in FIG. 4B, the enclave 110 can generate instructions to release the corresponding tokens 126A in the bridge wallet 118 on the first blockchain 104A (step E). As described with reference to step E of FIG. 3B, the instructions can include an address of the user wallet 116 from which the tokens 126A should be released on the first blockchain 104A. The instructions can also include a quantity of the tokens 126A to be released from the bridge wallet 118 on the first blockchain 104A. As described throughout, the address of the user wallet 116 may be the same as the address of the user wallet 120. In some implementations, the addresses may be different. If the addresses are different, the smart contract executed in step A to transfer the tokens 126B on the second blockchain 104B can indicate the address of the user wallet 116, such as in a memo field. The enclave 110 may validate the address in the memo field by polling the watchers 112A-N to identify an address match with a user wallet 116 on the first blockchain 104A. Once the watchers 112A-N (e.g., at least a majority of the watchers 112A-N) validate the address, the enclave 110 may include the address in the instructions generated in step E.
[0091] The enclave 110 may then encrypt the instructions (step F). As described with reference to Figures 3B and 7-10, encrypting the instructions may be advantageous if the enclave 110 goes down and needs to be rebooted. The encrypted instructions 402 may include the address of the user wallet 116 and the quantity of tokens 126A to be released from the bridge wallet 118.
[0092] The enclave 110 may send the encrypted instructions 402 to the watchers 112A-N for validation (step G). As described with reference to Figures 3B and 7-10, sending the encrypted instructions to the watchers 112A-N may be advantageous to ensure that none of the watchers 112A-N maliciously controls the release of the tokens 126A on the first blockchain 104A.
[0093] 4C, one or more of the watchers 112A-N can validate receipt of the encrypted instructions and therefore can send a validation to the enclave 110 (step H).
[0094] Once enclave 110 receives validation from one or more of watchers 112A-N, enclave 110 may determine whether K of watchers 112A-N validated the encrypted instructions (Step I). As described with reference to step I of FIG. 3C, K may be any amount of watchers 112A-N that is equal to or greater than a majority (e.g., 50%, 55%, 60%, 65%, 70%, 75%, 80%, 85%, 90%, 95%, etc.) of watchers 112A-N.
[0095] In FIG. 4C, all of the watchers 112A-N have validated receipt of the encrypted instruction. Thus, the enclave 110 can determine in step I that K of the watchers 112A-N have validated the encrypted instruction (100% of the watchers 112A-N in this example). Because K of the watchers 112A-N have validated, the enclave 110 can decrypt the instruction (step J). The enclave 110 has established a secure connection and trust with the watchers 112A-N. Thus, the enclave 110 can provide the watchers 112A-N with the necessary instructions to effect the release of the token 126A on the first blockchain 104A. Because the enclave 110 holds the private key used for decryption, the enclave 110 can decrypt the instruction and send the decrypted instruction to the watchers 112A-N (step K). The enclave 110 can use the same private key to decrypt all the release transactions of FIG. 4C. Additionally, as further described with reference to FIGS. 7-10, a private decryption key can be created from the master secret key of the enclave 110. The decryption key can only be known to and used by the enclave 110. The decryption key cannot be transmitted with the encrypted instruction 402 to the watchers 112A-N so that the watchers 112A-N can decrypt the instruction. Maintaining the decryption key at the enclave 110 can be advantageous to ensure that none of the watchers 112A-N can act independently and / or maliciously with respect to the release transactions. Security and trust can be maintained between the enclave 110, the watchers 112A-N, and the users involved in the release transactions.
[0096] In FIG. 4D, when the watchers 112A-N receive the decrypted instructions, the watchers 112A-N may broadcast the decrypted instructions to the first blockchain 104A (step L). In other words, the decrypted instructions may be broadcast to the nodes 106A-N of the first blockchain 104A. One or more of the nodes 106A-N may use the instructions to execute a release transaction. For example, one or more of the nodes 106A-N may release the token 126A from the bridge wallet 118 (step M). Releasing the token 126A may include returning the amount of the token 126A indicated in the decrypted instructions to the user wallet 116. As described herein, the nodes 106A-N may identify the user wallet 116 using the address included in the decrypted instructions. Once the token 126A is released from the bridge wallet 118, the token 126A is no longer frozen. A user of the user wallet 116 can use the tokens 126A in transactions, smart contracts, exchanges, etc. on the first blockchain 104A. The user can also transfer quantities of the tokens 126A to one or more other blockchains or networks, including but not limited to the second blockchain 104B, for example, via the bridge 114.
[0097] FIG. 5 is a swim lane diagram of a process 500 for minting tokens. Process 500 is similar to the process for minting tokens described with reference to FIGS. 3A-3D. Minting can occur when a user on one blockchain requests to transfer a quantity of tokens from that blockchain to another blockchain. The request to transfer a quantity of tokens can be in the form of a smart contract.
[0098] One or more blocks of process 500 may be performed by enclave 110, guardians 112A-N, and second blockchain 104B. One or more blocks of process 500 may also be performed by other actors, servers, and / or computing environments.
[0099] Referring to process 500, a watcher 112A-N may poll (502) a first blockchain, such as the blockchain 104A described with reference to FIGS. 1-4, for updates to a bridge wallet on the first blockchain. See step B of FIG. 3A. The updates to the bridge wallet may include a transfer of a token quantity from a user's wallet to the bridge wallet. This transfer may be initiated by a user via a smart contract and executed by one or more nodes operating the first blockchain 104A.
[0100] One or more of the watchers 112A-N can identify that a token transfer occurred to the bridge wallet at 504. See step C of FIG. 3A. For example, the watchers 112A-N can validate that a token quantity was indeed transferred from a user wallet to the bridge wallet on the first blockchain 104A.
[0101] The enclave 110 may then determine at 506 whether a consensus was reached among the watchers 112A-N on the token transfer. See step D of FIG. 3A. If a consensus was not reached among the watchers 112A-N, the process 500 may return to block 502, where the watchers 112A-N may continually poll the first blockchain 104A for any updates made to the bridge wallet. Consensus may not be reached if an insufficient number of watchers 112A-N poll the first blockchain 104A for updates. Consensus may also not be reached if a sufficient number of watchers 112A-N poll the first blockchain 104A for updates, but fewer than the majority of the watchers 112A-N validate that the token transfer occurred.
[0102] If consensus is reached among the watchers 112A-N, the enclave 110 may generate 508 instructions to mint tokens on the second blockchain 104B. See step E of FIG. 3B. The instructions may indicate an address of a user's wallet on the second blockchain 104B where the tokens may be minted. The instructions may also indicate a quantity of tokens to be minted on the second blockchain 104B. The quantity may correspond to a quantity of tokens transferred from the user wallet to the bridge wallet on the first blockchain 104A.
[0103] The enclave 110 may encrypt the instructions at 510. See step F of Figure 3B.
[0104] The enclave 110 may then transmit the encrypted instructions to the monitors 112A-N for validation at 512. See step G of FIG. 3B.
[0105] The watchers 112A-N may validate the encrypted command at 514. See step H of Figure 3C. For example, the watchers 112A-N may validate receipt of the encrypted command.
[0106] The enclave 110 may determine 516 whether K of the watchers 112A-N validate receipt of the encrypted instruction. See step I of FIG. 3C. As described throughout, K may be a majority of the watchers 112A-N, or any quantity of watchers 112A-N greater than a majority of the watchers 112A-N.
[0107] At 516, if K of the watchers 112A-N do not acknowledge receipt of the encrypted instruction, process 500 may return to block 502. As discussed above with reference to block 506, for example, if not all of the watchers 112A-N received the encrypted instruction, K of the watchers 112A-N may not acknowledge receipt. If all of the watchers 112A-N received the encrypted instruction, but fewer than a majority of the watchers 112A-N responded to the enclave 110 within a predetermined period of time, K of the watchers 112A-N may not acknowledge receipt. For example, the watchers 112A-N may have a threshold period of time to acknowledge receipt of the instruction before the validation request from the enclave 110 expires.
[0108] If K of the watchers 112A-N validate receipt of the encrypted instruction at 516, then the enclave 110 may decrypt the instruction at 518. See step J of FIG. 3C.
[0109] The enclave 110 may then transmit 520 the decrypted instructions to the monitors 112A-N. See step K of FIG. 3C.
[0110] The watchers 112A-N may broadcast 522 the decrypted instructions to mint tokens on the second blockchain 104B. See step L of FIG. 3D. The instructions may be broadcast to one or more nodes operating the second blockchain 104B.
[0111] The second blockchain 104B can then mint a token using the decrypted instructions in step 524. See step M of Figure 3D. As described above, the token may be minted by one or more nodes operating the second blockchain 104B.
[0112] FIG. 6 is a swim lane diagram of a process 600 for releasing tokens. The process 600 is similar to the process for releasing tokens described with reference to FIGS. 4A-4D. Releasing tokens can occur when a user on one blockchain requests or otherwise burns a quantity of tokens on that blockchain. Burning tokens affects the corresponding wallet of a user on another blockchain. Eventually, the quantity of tokens on one blockchain that are burned can be released from the bridge wallet on the other blockchain and returned to the user's wallet on the other blockchain. The request to burn the quantity of tokens on one blockchain can be in the form of a smart contract.
[0113] One or more blocks of process 600 may be performed by enclave 110, watchers 112A-N, and first blockchain 104A. One or more blocks of process 600 may also be performed by other actors, servers, and / or computing environments.
[0114] Referring to process 600, a watcher 112A-N may poll 602 a second blockchain, such as the second blockchain 104B, for updates to burn addresses and / or bridge wallets on the second blockchain 104B. See step B of FIG. 4A.
[0115] One or more of the watchers 112A-N can identify 604 that a token transfer has occurred from the user's wallet to the burn address and / or bridge wallet on the second blockchain 104B. See step C of FIG. 4A.
[0116] The enclave 110 may then determine 606 whether a consensus has been reached among the watchers 112A-N on the token transfer. See step D of FIG. 4A. If a consensus has not been reached, the process 600 may return to block 602. If a consensus has been reached among the watchers 112A-N, then the enclave 110 may generate instructions to release the quantity of tokens held in the bridge wallet on the first blockchain 104A at 608. See step E of FIG. 4B. The instructions may indicate an address of the user's wallet on the first blockchain 104A from which the token quantity may be released. The instructions may also indicate the quantity of tokens to release from the bridge wallet on the first blockchain 104A. As discussed above, the quantity released from the bridge wallet and returned to the user's wallet on the first blockchain 104A may correspond to the quantity of tokens burned on the second blockchain 104B.
[0117] The enclave 110 may encrypt the instructions at 610. See step F of Figure 4B. The enclave 110 may encrypt the instructions using a private key. The private key may be generated from a master secret key used to operate the enclave 110.
[0118] The enclave 110 may send the encrypted instructions to the monitors 112A-N for validation at 612. See step G of FIG. 4B.
[0119] One or more of the watchers 112A-N may validate receipt of the encrypted instructions at 614. See step H of FIG. 4C.
[0120] The enclave 110 may then determine whether K of the watchers 112A-N validate receipt of the encrypted instruction at 616. See step I of FIG. 4C. If K of the watchers 112A-N do not validate receipt, the process 600 may return to block 602. If K of the watchers 112A-N validate receipt, then the enclave 110 may decrypt the instruction at 618. See step J of FIG. 4C. As discussed above with reference to FIG. 6, the enclave 110 may decrypt the instruction using a private decryption key derived from the master secret key. The enclave 110 may retain the private decryption key and may not forward the key to the watchers 112A-N. Thus, the enclave 110 sends the decrypted instruction to the watchers 112A-N at 620 instead of the encrypted instruction and the decryption key. See step K in FIG. 4C.
[0121] The watchdog 112A-N can broadcast 622 the decrypted instructions to release the token quantity from the bridge wallet on the first blockchain 104A. See step L of FIG. 4D. For example, the watchdog 112A-N broadcasts the instructions to one or more nodes operating the first blockchain 104A.
[0122] Thus, the first blockchain 104A can release the token quantity from the bridge wallet and return the token quantity to the user's wallet at 624. See step M of Figure 4D. For example, one or more nodes of the first blockchain 104A can use the decrypted instructions to release the amount of tokens from the bridge wallet to the user's wallet on the first blockchain 104A using the address of the user's wallet identified in the instructions.
[0123] 7 is a swim lane diagram of a process 700 for starting an enclave. Process 700 may be performed each time an enclave, such as enclave 110, is instantiated. One or more blocks of process 700 may be performed by enclave 110 and watchers 112A-N. One or more blocks of process 700 may also be performed by other actors, servers, and / or computing environments.
[0124] Referring to process 700, enclave 110 may be booted with a configuration file at 702. The configuration file may be a secure code base used by an operator to establish enclave 110. The configuration file may include information such as addresses and / or domains that identify the guardians 112A-N that govern the enclave 110, the bridge, and the network or blockchain being bridged. The configuration file may also include instructions for generating a master secret key for enclave 110. Additionally, the configuration file may indicate the network or blockchain on which the bridge resides.
[0125] Using the configuration file, the enclave 110 can generate a master secret key at 704. The master secret key can be a cryptographically secure random key. All other private keys and other secret values can be deterministically derived from this master secret key. As described throughout this disclosure, the master secret key can be used to derive private keys that can be used by the enclave 110 to encrypt and decrypt instructions. The master secret key can also be used to boot the enclave 110 if it goes down and needs to be restarted. Additionally, the master secret key can be used to establish new enclaves that can continue to perform transactions of the previous enclave.
[0126] The enclave 110 may also add a checksum to the master secret key when it is generated. Adding a checksum may be advantageous to resolve potential situations where the enclave 110 requests a watchdog to obtain its secret shares and the watchdog cannot validate that the request originated from within a valid enclave. In such a situation, the enclave operator may maliciously collect secret shares from each watchdog. Similarly, the watchdog may not know if the configuration request properly came from the enclave 110, so the operator may maliciously configure secret shares that were generated outside of the enclave 110. Furthermore, a single malicious watchdog may provide an incorrect secret share, thereby causing the bridge to regenerate an incorrect master secret key. Adding a checksum to the master secret key may resolve these situations. For example, after generating the master secret key, the value of the key is random, followed by the last four bytes of the SHA256 hash of the key. In this way, the enclave 110 can instantly check whether the master secret key it regenerates using the secret shares from the watchdogs 112A-N is correct. If the checksums do not match, then the enclave 110 can attempt to regenerate the master secret key using a different group of secret shares obtained from the monitors 112A-N. In some implementations, any group of secret shares threshold out of the total number of secret shares can be used to regenerate the master secret key.
[0127] The enclave 110 may also identify 706 which entities will act as watchers 112A-N. As mentioned above, the configuration file may include addresses, domains, or other identifiers that may be used to identify the entities selected as watchers 112A-N.
[0128] The enclave 110 may then validate the watchers 112A-N at 708. Validating the watchers 112A-N may include establishing a connection with each of the watchers 112A-N using the addresses of the watchers 112A-N. SSL certificate validation techniques and / or TLS may also be used to validate that the watchers 112A-N are, in fact, the correct watchers 112A-N to govern the secure enclave environment. Additionally, during validation, the watchers 112A-N may perform remote attestation. The watchers 112A-N may not yet trust the bridge established by the enclave 110, since the watchers 112A-N may not be sure if the bridge is running within the enclave 110. Thus, with remote attestation, the enclave 110 may send a request to the watchers 112A-N to start up. The watchdog 112A-N can initiate a remote attestation to ensure that the bridge is running within the enclave 110 and is using the correct configuration file. The remote attestation can occur whenever the enclave 110 starts up for the first time, or at any subsequent time. The remote attestation provides the watchdog 112A-N to trust the enclave 110 so that the enclave 110 can share a portion of the master secret key with the watchdog 112A-N.
[0129] Once the watchers 112A-N are validated (and the remote authentication is completed), the enclave 110 may split 710 the master secret key into secret shares. The master secret key may be split into a number of secret shares equal to the quantity of watchers 112A-N. Thus, if there are ten validated watchers 112A-N, the master secret key may be split into ten secret shares. The master secret key may be split into a number of secret shares as indicated in a configuration file. For example, in some implementations, the master secret key may be split into a number of secret shares that is less than the quantity of watchers 112A-N. In some implementations, the master secret key may be split into a number of secret shares that is greater than the quantity of watchers 112A-N.
[0130] The secret shares can be distributed among the watchers 112A-N. Thus, each watcher 112A-N (or a subset of the watchers 112A-N) can receive the secret share at 712. The watchers 112A-N can validate the secret shares, for example, using remote attestation, to validate that the enclave 110 is operating with the correct configuration file and in a secure environment. Distributing the secret shares of the master secret key can be advantageous to protect the enclave 110 and prevent attacks or other security breaches against the enclave 110. Furthermore, no watcher can act alone or maliciously within the enclave 110 using one of the secret shares. Changes to and transactions occurring in the enclave 110 can only be made by pooling the secret shares and reconstructing the master secret key with K of the secret shares.
[0131] Thus, each of the watchers 112A-N may store 714 their secret share of the master secret key. The secret shares may be stored in a secret data store or database, such as secret data store 202 depicted and described in FIGURE 2. For example, each time the enclave 110 boots or reboots, the enclave 110 may obtain the secret shares from the watchers 112A-N in order to regenerate the master secret key.
[0132] Once the enclave 110 transmits the secret shares to the watchers 112A-N, the enclave may execute 716. In other words, the enclave 110 may operate to implement transactions that affect the state of the blockchains being bridged. For example, the enclave 110 may complete or otherwise authorize mint and burn transactions as described with reference to FIGS. 1-6. Executing the enclave 110 includes initiating the bridge. A smart contract may be created by the enclave 110 for each supported asset between the first and second blockchains. For example, in some implementations, a creator smart contract may be invoked by the enclave to create any necessary smart contracts for the supported assets.
[0133] 8 is a swim lane diagram of a process 800 for remote attestation of enclave 110 at enclave startup. Process 800 may be performed each time enclave 110 or another enclave is booted and / or rebooted. Performing process 800 may be advantageous to ensure that enclave 110 is running with valid secure code so that enclave 110 can be trusted. One or more blocks of process 800 may be performed by enclave 110 and watchers 112A-N. One or more blocks of process 800 may also be performed by other actors, servers, and / or computing environments.
[0134] Referring to process 800, enclave 110 may boot with a configuration file at 802. For a discussion regarding configuration files, see block 702 of Figure 7. Block 802 may occur when enclave 110 is booted for the first time. Block 802 may also occur when enclave 110 goes down and is being restarted.
[0135] The enclave 110 can then send a request to initiate with the temporary session key, at 804. Instructions for sending the request can be derived from a configuration file. The watchers 112A-N can then receive the request, at 806. The watchers 112A-N can then perform remote attestation, at 808, to validate the enclave 110, at 810. The enclave 110 must send the temporary session key before it can receive a secret share of the master secret key from any of the watchers 112A-N.
[0136] When a watcher 112A-N receives a request, it may not know if the request originates from within a valid enclave. Thus, when a watcher 112A-N receives a request, the watcher 112A-N may perform a remote attestation of the bridge to validate the enclave 110. In some implementations, the remote attestation may include obtaining a validated hash value of the enclave 110 previously generated from a validated version of the enclave 110. A current hash value generated for the enclave 110 may be compared to the validated hash value to determine whether the enclave 110 is in fact secure and valid. In some implementations, a user or other entity of a client computing device may also initiate the remote attestation. The client computing device may send the request to either the enclave 110 and / or the watcher 112A-N. The request may include, for example, obtaining a validated hash value of enclave 110, receiving a current hash value, and performing a comparison between the validated hash value and the current hash value to remotely validate enclave 110. The current hash value may be retrieved from another computer system that makes the validated hash value of enclave 110 publicly accessible.
[0137] If the remote attestation fails, the request may be rejected by the watchdog 112A-N. In other words, the watchdog 112A-N may determine that a malicious operator may be attempting to execute the enclave 110 and the bridge therein. The watchdog 112A-N may not transmit the secret share of the master secret key to the enclave 110 when the remote attestation fails.
[0138] If the remote attestation passes, the watchers 112A-N can share secret shares (e.g., derived using a Diffie-Hellman key exchange in the remote attestation process) with the enclave 110. As described throughout this disclosure, the remote attestation can pass when the watchers 112A-N collectively validate that a valid and secure enclave is communicating with the watchers 112A-N and that the enclave 110 is running with a correct configuration file. Checksums, as described above, can be performed by the watchers 112A-N to determine whether the enclave 110 is running valid and secure code.
[0139] Thus, once enclave 110 is validated at 810, watchers 112A-N can send their secret shares of the master secret key to enclave 110. Trust has been established between watchers 112A-N and enclave 110. Enclave 110 can receive, at 814, the secret shares of the master secret key.
[0140] The enclave 110 can then use the secret shares to encrypt secret shares that it can return in response and can also provide 808 the remote authentication context that was used as part of the remote attestation process. The enclave 110 can decrypt the secret shares of the watchers 112A-N by using the same shared secret. Because the enclave 110 can request the secret shares from the watchers 112A-N before setting up the secret shares, the enclave 110 can also use these shared secrets for remote attestation to encrypt the secret shares that it sends to each of the watchers 112A-N. In this way, the watchers 112A-N can validate that the secret shares were in fact generated by the enclave 110 itself and know that the watchers 112A-N have not provided the secret shares to any entity other than the enclave 110.
[0141] The enclave 110 can reconstruct the master secret key at 816 using K of the received secret shares. In some implementations, the master secret key can be adequately reconstructed with fewer than all of the secret shares. In some implementations, the master secret key can be reconstructed with all of the secret shares. The configuration file can identify the K or how many secret shares may be needed to reconstruct the master secret key.
[0142] Once the master secret key has been reconstructed, the enclave 110 can use the key to operate the bridge at 818. For example, transactions such as minting and releasing tokens can be performed across the chains connected via the bridge.
[0143] FIG. 9 is a swim-lane diagram of a process 900 for restarting an enclave 110. Process 900 may be performed whenever an enclave 110 boots and / or goes down for any reason for the first time. As described throughout, an enclave 110 is stateless. When an enclave 110 boots back, it can poll watchers 112A-N to determine which mint and / or burn transactions were currently in progress, queued, completed, and / or stalled at the time that the enclave 110 went down. Thus, the enclave 110 can pick up by completing mint and / or burn transactions as if the enclave 110 had never gone down in the first place. Process 900 may occur after processes 700 and / or 800. Process 900 can be performed when the enclave 110 goes down after encrypting instructions to mint or release a token (e.g., see step F of Figures 3B and 4B) and / or when the encrypted instructions are sent to a monitor 112A-N for validation (e.g., see step G of Figures 3B and 4B).
[0144] One or more blocks of process 900 may be performed by enclave 110 and watchers 112A-N. One or more blocks of process 900 may also be performed by other actors, servers, and / or computing environments.
[0145] Referring to process 900, once enclave 110 is booted (e.g., remote attestation is performed and watchers 112A-N validate that enclave 110 is running valid code in a secure environment), enclave 110 may poll watchers 112A-N (902) to determine whether watchers 112A-N have received any encrypted instructions before enclave 110 is rebooted. As described with reference to Figures 3-6, the encrypted instructions may include instructions to mint and / or burn tokens on the respective blockchains.
[0146] The watchers 112A-N can then validate (904) whether they received the encrypted instructions before the enclave 110 went down and was then restarted. As described with reference to FIG. 2, the watchers 112A-N can index the transactions and activity that occurs on the first blockchain 104A and the second blockchain 104B in the private data store 202. Thus, the watchers 112A-N can retrieve the index of the encrypted instructions.
[0147] The enclave 110 may determine at 906 whether K of the watchers 112A-N have acknowledged receipt. As described throughout this disclosure, K may be any value greater than a majority of the watchers 112A-N. If K of the watchers 112A-N do not acknowledge receipt of the encrypted instructions before restarting, any of the watchers 112A-N that acknowledged receipt may be acting maliciously. Thus, the enclave 110 may not continue to decrypt the instructions and broadcast them on their respective blockchains. If the enclave 110 is unable to acknowledge that K of the watchers 112A-N have received the encrypted instructions, the process 900 may be restarted and the enclave 110 may continue to poll the watchers 112A-N until a sufficient number of the watchers 112A-N (e.g., K of the N watchers) are back online and / or acknowledge receipt of the encrypted instructions.
[0148] In some cases, enclave 110 may not need to receive validation from K of the watchers 112A-N. Instead, enclave 110 may receive a single copy of the encrypted and signed instruction from one of the watchers 112A-N. Upon receiving the encrypted instruction, enclave 110 may send the instruction to any of the watchers 112A-N that did not previously receive the encrypted instruction. Once the enclave acknowledges that K of the watchers 112A-N have the encrypted instruction, thereby making it fault-tolerant, enclave 110 may send a decrypted version of the instruction to the watchers 112A-N.
[0149] If K of the watchers 112A-N validate receipt of the encrypted instructions before rebooting at 906 (or if the enclave 110 receives an encrypted and signed instruction from one of the watchers 112A-N), the enclave 110 can determine that an instruction to mint or release a token was generated but not completed before the enclave 110 went down. Thus, the enclave 110 can decrypt the instruction at 908 as described throughout this disclosure. For example, the watchers 112A-N can return the encrypted instructions to the enclave 110. The enclave 110 can decrypt the instruction using a private decryption key held by the enclave 110 and derived from a master secret key.
[0150] Enclave 110 may then replay the decrypted instructions at 910. Replaying the instructions may include sending the decrypted instructions to watchers 112A-N. Watchers 112A-N may then broadcast the instructions to their respective blockchain nodes so that the instructions can be executed and completed as if enclave 110 had not gone down. In such a scenario, even if watchers 112A-N rebroadcast instructions that were already broadcast and accepted, those instructions may simply be ignored, and the respective blockchain nodes may not unlock or transfer tokens from one user wallet to another if the tokens have already been unlocked or transferred.
[0151] 10 is a swim-lane diagram of a process 1000 for restarting an enclave 110. For example, process 1000 may occur when an enclave 110 goes down after an encrypted transaction has been sent to a watcher 112A-N for validation (e.g., see step G in FIGS. 3B and 4B), and optionally after a watcher 112A-N validates receipt of an encrypted instruction (e.g., see step H in FIGS. 3C and 4C). Process 1000 may also be performed when an enclave 110 goes down after it has decrypted an instruction (e.g., see step J in FIGS. 3C and 4C), and / or when an enclave 110 has sent a decrypted instruction to a watcher 112A-N (e.g., see step K in FIGS. 3C and 4C).
[0152] One or more blocks of process 1000 may be performed by enclave 110 and guardians 112A-N. One or more blocks of process 1000 may also be performed by other actors, servers, and / or computing environments.
[0153] Referring to process 1000, enclave 110 may poll watchers 112A-N to determine whether watchers 112A-N received the decrypted instructions (1002) before enclave 110 is restarted. Watchers 112A-N may validate receipt of the decrypted instructions at 1004. See block 904 of FIG. 9 for a description of validating receipt of instructions.
[0154] The enclave 110 may then determine, at 1006, whether one of the watchers 112A-N validates receipt of the decrypted instruction. Validating receipt of the decrypted instruction with one watcher may be sufficient because if one watcher received the decrypted instruction, at least a majority of the watchers 112A-N had already validated receipt of the encrypted instruction before the enclave 110 went down. Thus, the watchers 112A-N have already been validated and may be trusted by the enclave 110 to execute the instruction. Furthermore, if at least one watcher validates receipt of the decrypted instruction, this may indicate that the enclave 110 went down before any of the other watchers 112A-N could receive the decrypted instruction. Receipt of the decrypted instruction may also indicate that a mint transaction and / or a burn transaction went through before the enclave 110 went down.
[0155] If even one of the watchers 112A-N does not validate receipt of the decrypted instruction before the enclave 110 goes down, the process 1000 can stop. In some cases, upon restart, the enclave 110 can poll the watchers 112A-N for the encrypted instruction. Any of the watchers 112A-N that received the corresponding decrypted instruction can not respond with anything. If the enclave 110 receives an encrypted instruction from at least one of the watchers 112A-N, it can send the encrypted instruction to the remaining watchers 112A-N. It can then send a decrypted version of the instruction to all watchers 112A-N. If none of the watchers 112A-N have previously received the decrypted instruction, it can broadcast the instruction and add it to the blockchain. Otherwise, if the instruction has already been broadcast, the transaction associated with the instruction does not affect the blockchain.
[0156] As described above, if at least one of the watchers 112A-N validates receipt of the decrypted instruction at 1006, the enclave 110 can determine that the instruction may have been broadcast to the respective blockchain by at least one watcher. To ensure that the instruction is indeed broadcast for the nodes of the respective blockchain to complete the corresponding transaction (e.g., minting or burning a token), the enclave 110 can identify which of the watchers 112A-N did not receive the decrypted instruction at 1008. To do so, the enclave 110 can simply identify which watchers 112A-N validated receipt of the decrypted instruction and then select all of the watchers 112A-N that were polled but did not validate receipt.
[0157] The enclave 110 can then send the decrypted instructions to the identified watchers, at 1010. The watchers 112A-N can then receive the encrypted instructions, at 1012. The watchers 112A-N can then broadcast the instructions on their respective blockchains, at 1014, so that the minting and / or unlocking and transfer of the tokens can be completed.
[0158] FIG. 11 illustrates an example computing device 1100 and an example mobile computing device that can be used to implement the techniques described herein. The computing device 1100 is intended to represent various forms of digital computers, such as laptops, desktops, workstations, personal digital assistants, servers, blade servers, mainframes, and other suitable computers. The mobile computing device is intended to represent various forms of mobile devices, such as personal digital assistants, mobile phones, smartphones, and other similar computing devices. The components illustrated herein, their connections and relationships, and their functions are merely exemplary and are not meant to limit the implementation of the inventions described and / or claimed in this document.
[0159] The computing device 1100 includes a processor 1102, a memory 1104, a storage device 1106, a high-speed interface 1108 connected to the memory 1104 and a number of high-speed expansion ports 1110, and a low-speed interface 1112 connected to a low-speed expansion port 1114 and the storage device 1106. Each of the processor 1102, the memory 1104, the storage device 1106, the high-speed interface 1108, the high-speed expansion port 1110, and the low-speed interface 1112 are interconnected using various buses and may be mounted on a common motherboard or otherwise as needed. The processor 1102 may process instructions for execution within the computing device 1100, including instructions stored in the memory 1104 or on the storage device 1106, to display graphical information for a GUI on an external input / output device, such as a display 1116 coupled to the high-speed interface 1108. In other implementations, multiple processors and / or multiple buses may be used along with multiple memories and types of memories as needed. Also, multiple computing devices can be connected, each providing a portion of the required operations (eg, a bank of servers, a group of blade servers, or a multi-processor system).
[0160] The memory 1104 stores information within the remote device 1100. In some implementations, the memory 1104 is a volatile memory unit. In some implementations, the memory 1104 is a non-volatile memory unit. The memory 1104 may also be another form of computer-readable medium, such as a magnetic disk or an optical disk.
[0161] The storage device 1106 can provide mass storage for the computing device 1100. In some implementations, the storage device 1106 can be or include a computer-readable medium such as a floppy disk device, a hard disk device, an optical disk device, or an array of devices including a tape device, a flash memory or other similar solid-state memory device, or a device in a storage area network or other configuration. The computer program product can be tangibly embodied in an information carrier. The computer program product can also include instructions that, when executed, perform one or more methods, such as those described above. The computer program product can also be tangibly embodied in a computer-readable medium or machine-readable medium, such as the memory 1104, the storage device 1106, or a memory on the processor 1102.
[0162] The high-speed interface 1108 manages bandwidth-intensive operations for the computing device 1100, while the low-speed interface 1112 manages low-bandwidth-intensive operations. Such an allocation of functions is merely exemplary. In some implementations, the high-speed interface 1108 is coupled to the memory 1104, the display 1116 (e.g., via a graphics processor or accelerator), and a high-speed expansion port 1110 that can accept various expansion cards (not shown). In an implementation, the low-speed interface 1112 is coupled to the storage device 1106 and the low-speed expansion port 1114. The low-speed expansion port 1114, which can include various communication ports (e.g., USB, Bluetooth, Ethernet, wireless Ethernet), can be coupled, for example, via a network adapter, to one or more input / output devices, such as a keyboard, a pointing device, a scanner, or a networking device such as a switch or router.
[0163] Computing device 1100 may be implemented in a number of different forms, as shown in the figure. For example, it may be implemented as a standard server 1120, or multiple times within a group of such servers. In addition, it may be implemented in a personal computer, such as a laptop computer 1122. It may also be implemented as part of a rack server system 1124. Alternatively, components from computing device 1100 may be combined with other components in a mobile device (not shown), such as mobile computing device 1150. Each such device may include one or more of computing device 1100 and mobile computing device 1150, and the entire system may be made up of multiple computing devices in communication with each other.
[0164] The mobile computing device 1150 includes, among other components, a processor 1152, a memory 1164, an input / output device such as a display 1154, a communication interface 1166, and a transceiver 1168. The mobile computing device 1150 may also include a storage device, such as a microdrive or other device, to provide additional storage. Each of the processor 1152, memory 1164, display 1154, communication interface 1166, and transceiver 1168 are interconnected using various buses, and several components may be mounted on a common motherboard or in other manners as desired.
[0165] The processor 1152 can execute instructions within the mobile computing device 1150, including instructions stored in the memory 1164. The processor 1152 can be implemented as a chipset of chips including discrete and multiple analog and digital processors. The processor 1152 can provide coordination of other components of the mobile computing device 1150, such as control of a user interface, applications run by the mobile computing device 1150, and wireless communication by the mobile computing device 1150.
[0166] The processor 1152 can communicate with a user via a control interface 1158 and a display interface 1156 coupled to a display 1154. The display 1154 can be, for example, a TFT (thin film transistor liquid crystal display) display or an OLED (organic light emitting diode) display, or other suitable display technology. The display interface 1156 can comprise appropriate circuitry for driving the display 1154 to present graphical and other information to the user. The control interface 1158 can receive commands from the user and translate them for submission to the processor 1152. Additionally, an external interface 1162 can provide communication with the processor 1152 to enable short-range communication of the mobile computing device 1150 with other devices. The external interface 1162 can be provided, for example, for wired communication in some implementations or for wireless communication in other implementations, and multiple interfaces can also be used.
[0167] The memory 1164 stores information within the remote device 1150. The memory 1164 may be implemented as one or more of a computer-readable medium, a volatile memory unit, or a non-volatile memory unit. An expansion memory 1174 may also be provided and connected to the mobile computing device 1150 via an expansion interface 1172, which may include, for example, a SIMM (single in-line memory module) card interface. The expansion memory 1174 may provide additional storage space to the mobile computing device 1150 or may store applications or other information on the mobile computing device 1150. In particular, the expansion memory 1174 may include instructions that perform or complement the processes described above and may also include secure information. Thus, for example, the expansion memory 1174 may be provided as a security module for the mobile computing device 1150 and may be programmed with instructions that enable secure use of the mobile computing device 1150. In addition, secure applications may be provided via a SIMM card along with additional information, such as placing identification information on the SIMM card in an unhackable manner.
[0168] The memory may include, for example, flash memory and / or NVRAM memory (non-volatile random access memory), as discussed below. In some implementations, the computer program product is tangibly embodied in an information carrier. The computer program product includes instructions that, when executed, perform one or more methods, such as those described above. The computer program product may be a computer-readable or machine-readable medium, such as memory 1164, expansion memory 1174, or memory on processor 1152. In some implementations, the computer program product may be received in a propagated signal, for example, via transceiver 1168 or external interface 1162.
[0169] The mobile computing device 1150 may communicate wirelessly via a communication interface 1166, which may include digital signal processing circuitry as necessary. The communication interface 1166 may provide for communication under various modes or protocols, such as GSM voice (Global System for Mobile Communications), SMS (Short Message Service), EMS (Enhanced Messaging Service), or MMS messaging (Multimedia Messaging Service), CDMA (Code Division Multiple Access), TDMA (Time Division Multiple Access), PDC (Personal Digital Cellular), WCDMA (Wideband Code Division Multiple Access), CDMA2000, or GPRS (General Packet Radio Service), among others. Such communication may occur via the transceiver 1168, for example, using radio frequencies. Additionally, short range communication may occur, such as using Bluetooth, WiFi, or other such transceivers (not shown). In addition, a GPS (Global Positioning System) receiver module 1170 can provide additional navigation-related and location-related radio data to the mobile computing device 1150, which can be used as needed by applications executing on the mobile computing device 1150.
[0170] The mobile computing device 1150 can also communicate audibly using an audio codec 1160, which can receive spoken information from a user and convert it into usable digital information. The audio codec 1160 can similarly generate audible sounds for the user via a speaker, for example, in a handset of the mobile computing device 1150. Such sounds can include sounds from a voice telephone call, can include recorded sounds (e.g., voice messages, music files, etc.), and can also include sounds generated by applications running on the mobile computing device 1150.
[0171] The mobile computing device 1150 may be implemented in a number of different forms, as shown in the figure, for example as a mobile phone 1180, or as part of a smartphone 1182, personal digital assistant, or other similar mobile device.
[0172] Various implementations of the systems and techniques described herein may be realized in digital electronic circuitry, integrated circuits, specially designed ASICs (application-specific integrated circuits), computer hardware, firmware, software, and / or combinations thereof. These various implementations may include implementations in one or more computer programs executable and / or interpretable on a programmable system including at least one programmable processor, which may be special-purpose or general-purpose, coupled to receive data and instructions from, and transmit data and instructions to, a storage system, at least one input device, and at least one output device.
[0173] These computer programs (also known as programs, software, software applications or codes) include machine instructions for a programmable processor and may be implemented in high level procedural and / or object-oriented programming languages, and / or assembly / machine languages. As used herein, the terms machine-readable medium and computer-readable medium refer to any computer program product, apparatus and / or device used to provide machine instructions and / or data to a programmable processor (e.g., magnetic disks, optical disks, memory, programmable logic devices (PLDs)), including machine-readable media that receive machine instructions as machine-readable signals. The term machine-readable signal refers to any signal used to provide machine instructions and / or data to a programmable processor.
[0174] To provide for interaction with a user, the systems and techniques described herein may be implemented on a computer having a display device (e.g., a CRT (cathode ray tube) or LCD (liquid crystal display) monitor) for displaying information to a user, and a keyboard and pointing device (e.g., a mouse or trackball) by which the user can provide input to the computer. Other types of devices may also be used to provide interaction with a user, for example, feedback provided to the user may be any form of sensory feedback (e.g., visual feedback, auditory feedback, or haptic feedback), and input from the user may be received in any form, including acoustic, velocity, or tactile input.
[0175] The systems and techniques described herein may be implemented in a computing system that includes a back-end component (e.g., a data server), includes a middleware component (e.g., an application server), or includes a front-end component (e.g., a client computer including a client computer having a graphical user interface or a web browser through which a user can interact with an implementation of the systems and techniques described herein), or any combination of such back-end, middleware, or front-end components. The components of the system may be interconnected by any form or medium of digital data communication (e.g., a communication network). Examples of communication networks include local area networks (LANs) and wide area networks (WANs), such as the Internet.
[0176] A computing system may include clients and servers. Clients and servers are generally remote from each other and typically interact through a communication network. The relationship of client and server arises by virtue of computer programs running on the respective computers and having a client-server relationship to each other.
[0177] Although the specification contains many specific implementation details, these should not be construed as limitations on the scope of the disclosure, but rather as descriptions of features that may be specific to certain embodiments of the particular disclosed technology. Certain features described herein in the context of separate embodiments may also be implemented in part or in whole in a single embodiment. Conversely, various features described in the context of a single embodiment may also be implemented separately in multiple embodiments or in any suitable subcombination. Furthermore, although features may be described herein as acting in a particular combination and / or originally claimed as such, one or more features from the claimed combination may, in some cases, be deleted from the combination, and the claimed combination may be reassigned to a subcombination or subcombination variation. Similarly, although operations have been described in a particular order, this should not be understood as requiring such operations to be performed in the particular order shown, or in sequence, or all of the operations to be performed, in order to achieve desirable results. Certain embodiments of the subject matter have been described. Other embodiments are within the scope of the following claims.
[0178] Exemplary embodiments include the following: 1. A system for providing secure transfer of assets between blockchain networks, comprising: a storage device capable of storing a bridge program programmed to perform: (i) a locking operation to lock native assets from a first blockchain network and mint synthetic assets representing the native assets in a second blockchain network; and (ii) an unlocking operation to unlock the native assets by transferring the native assets to an address in the first blockchain network in response to the synthetic assets being returned or destroyed; and a computer system configured to load and execute a bridge program, the bridge program including performing locking and unlocking operations to provide a bridge between a first blockchain network and a second blockchain network. 2. A computer system includes a secure computing enclave configured to provide a trusted execution environment in which the processing of a program is secure from observation and manipulation by other operations outside the secure enclave; The execution of the bridge program in the secure enclave is loading the bridge program from the storage device into a secure memory within the secure enclave; performing an authentication operation on a bridge program loaded into a secure memory within the secure enclave, the authentication operation being configured to validate the bridge program; and outputting a result of the authentication operation to identify whether the bridge program loaded into the secure enclave is valid. 3. The bridge program is stored in a storage device; The secure enclave is programmed to generate a signature of the bridge program loaded into the secure memory; 3. The system of embodiment 2, wherein a signature of the bridge program loaded into the secure memory is used to validate the bridge program as part of an authentication operation. 4. performing an authentication operation includes performing a hash operation on at least a portion of the bridge program in the secure memory to generate a signature; 4. The system of embodiment 3, wherein the result includes a signature including a hash value generated by performing the hash operation. 5. The system of embodiment 2, wherein one or more other computing devices are programmed to request that an authentication operation be performed and compare the result with a validated authentication value stored in the third party server system for the bridge program. 6. A first wallet on a first blockchain network includes a first private key and a first public key; a second wallet on the second blockchain network including a second private key and a second public key; 2. The system of embodiment 1, wherein the first private key is the same as the second private key across the first blockchain network and the second blockchain network. 7. The system of embodiment 6, wherein the first public key of the first wallet is the same as the second public key of the second wallet. 8. The system of embodiment 6, wherein the first public key of the first wallet is different from the second public key of the second wallet. 9. The system of embodiment 6, wherein the second public key associated with the second private key of the second wallet is configured to be recovered from a first signature associated with a transaction with the first wallet on the first blockchain network. 10. The system of embodiment 9, wherein a second public key of the second wallet including a mint address for receiving the minted synthetic asset on the second blockchain network is configured to be determined by the bridge program using the public key recovered from the first signature from the first wallet on the first blockchain network. 11. The system of embodiment 6, wherein the first public key associated with the first private key of the first wallet is configured to be recovered from a second signature associated with a transaction with the second wallet on the second blockchain network. 12. The system of embodiment 11, wherein a first public key of the first wallet including an address for receiving the unlocked native assets on the first blockchain network is configured to be determined by the bridge program using the second signature from the second wallet on the second blockchain network. 13. The system of embodiment 1, further comprising: remote monitor systems, each configured to maintain a secret share of a public key for a bridge program used to perform locking and unlocking operations to lock native assets and mint synthetic assets, the secret shares maintained by each of the remote monitor systems being configured to be used in combination to regenerate private keys. 14. Each of the remote monitor systems comprises: storing a portion of a pool of shared secrets that can be collectively used to instantiate new instances of the bridge program; 14. The system of embodiment 13, further configured to: if the first instance of the bridge program fails, provide a portion of the pool of shared secrets to a second instance of the bridge program upon instantiation. 15. The system of embodiment 14, wherein each of the remote monitor systems is further configured to provide a portion of the pool of shared secrets to the second instance of the bridge program in response to the second instance of the bridge program being validated using an authentication operation by the remote monitor system. 16. The system of embodiment 15, wherein each of the remote monitor systems is configured to provide information related to the first blockchain network and the second blockchain network to the second instance of the bridge program. 17. The remote monitor system is configured to receive encrypted transactions from the bridge to acknowledge that asset operations have been performed on the first blockchain network and the second blockchain network; The system of embodiment 13, wherein the bridge program is further configured to validate that the asset operation was successfully performed on the first blockchain network and the second blockchain network in response to receiving approval from at least a threshold number of remote monitor systems. 18. The system of embodiment 17, wherein the threshold includes at least a majority of the remote monitor system. 19. The system of embodiment 17, wherein the asset operation includes the native asset being transferred to a wallet associated with the bridge on the first blockchain network. 20. The system of embodiment 19, wherein the bridge program is further configured to mint only the synthetic assets in response to at least a threshold of the remote monitor system approving that the native assets have been transferred to a wallet associated with the bridged in the first blockchain network. 21. The system of embodiment 20, wherein the remote monitor system is configured to automatically notify the bridge program that native assets are to be transferred to a wallet associated with the bridge in the first blockchain network without being prompted by the bridge program. 22. The system of embodiment 17, wherein the asset operation includes the synthetic asset being minted on a second blockchain network. 23. The system of embodiment 17, wherein the asset action includes the synthetic asset being returned or destroyed on the second blockchain network. 24. The system of embodiment 23, wherein the bridge program is further configured to unlock only the native assets in response to at least a threshold of the remote monitor system approving that the synthetic assets have been returned or destroyed on the second blockchain network. 25. The system of embodiment 24, wherein the remote monitor system is configured to automatically notify the bridge program that the synthetic assets are returned or destroyed in the second blockchain network without being prompted by the bridge program. 26. The system of embodiment 17, wherein the asset operation includes the native asset being unlocked on the first blockchain network. 27. The system of embodiment 17, wherein the bridge program is configured to be modified by: (i) generating a new private key associated with a new wallet for the bridge program; (ii) modifying on-chain smart contracts of one or more of the first blockchain network and the second blockchain network with respect to the new private key; and (iii) moving native assets to a new wallet associated with the new private key. 28. The system of embodiment 17, wherein the bridge program is configured to execute a cross-chain smart contract during the cross-chain asset transfer, and the cross-chain smart contract is executed within the secure enclave. 29. The system of embodiment 28, wherein the cross-chain smart contract is configured to be used to perform on-chain operations on one or more of the first and second blockchain networks. 30. The system of embodiment 1, wherein a fee is charged for locking and unlocking operations. 31. The system of embodiment 30, wherein the bridge program is further configured to provide the native coins to a wallet in the second blockchain network as part of the locking operation for paying network transaction fees in the second blockchain network. 32. The system of embodiment 30, wherein the bridge program is further configured to provide native coins to a wallet in the first blockchain network as part of the unlocking operation for paying network transaction fees in the first blockchain network. 33. The system of embodiment 30, wherein the fee is determined based on the asset type, the amount of the asset being transferred, and the network transaction fee. 34. The system of embodiment 30, wherein fees are reduced for transactions involving wallets having credentials in the form of non-fungible tokens (NFTs). 35. The system of embodiment 1, wherein the bridge program is further configured to transfer assets bidirectionally between the first blockchain network and the second blockchain network. 36. The system of embodiment 35, wherein transferring assets in both directions includes a bridge program configured to perform a lock operation on the native assets in the second blockchain, mint the synthetic assets in the first blockchain, and perform an unlock operation by unlocking the native assets in the second blockchain in response to the synthetic assets in the first blockchain being returned or destroyed. 37. The system of embodiment 1, wherein the bridge program is further configured to transfer assets between two or more blockchain networks. 38. The system of embodiment 37, wherein the bridge program is further configured to transfer the synthetic assets between a plurality of different non-origin blockchain networks by burning the synthetic assets in a first non-origin blockchain network and minting new synthetic assets in a second non-origin blockchain network. 39. The system of embodiment 38, wherein the bridge program is further configured to unlock the corresponding native asset in the origin blockchain network in response to the new synthetic asset being returned or destroyed in the second, non-origin blockchain network.
Claims
1. A system for bridging assets between blockchain networks, the system comprising: A secure module and a remote monitor system, the secure module comprising: providing a trusted computing environment in which the processing of programs is secure from observation and manipulation by other operations external to said secure module; and and loading a bridge program from a memory external to the secure module into a secure memory within the secure module, the bridge program including instructions that, when executed by the secure module, cause the secure module to: Accessing a first blockchain network that records transactions of a first asset; accessing a second blockchain network that records transactions of a second asset; locking some of the first assets on the first blockchain network and correspondingly minting some of the second assets on the second blockchain network; in response to the deletion of the minted second asset in the second blockchain network, unlocking the locked first asset in the first blockchain network; the remote monitor systems each configured to maintain a secret share of secret data for the bridge program to lock the first asset and to mint the second asset, the secret shares maintained by each of the remote monitor systems being configured to be used in combination to regenerate a private key. system.
2. a first wallet on the first blockchain network including a first private key and a first public key; a second wallet on the second blockchain network including a second private key and a second public key; 2. The system of claim 1, wherein the first private key is the same as the second private key across the first blockchain network and the second blockchain network.
3. 3. The system of claim 2, wherein the first public key of the first wallet is the same as the second public key of the second wallet.
4. 3. The system of claim 2, wherein the first public key of the first wallet is different from the second public key of the second wallet.
5. the second public key associated with the second private key of the second wallet is configured to be recovered from a first signature associated with a transaction with the first wallet on the first blockchain network; 3. The system of claim 2, wherein the second public key of the second wallet including a mint address for receiving the minted second asset on the second blockchain network is configured to be determined by the bridge program using the second public key recovered from the first signature from the first wallet on the first blockchain network.
6. the first public key associated with the first private key of the first wallet is configured to be recovered from a second signature associated with a transaction with the second wallet on the second blockchain network; 3. The system of claim 2, wherein the first public key of the first wallet including an address for receiving the unlocked first asset on the first blockchain network is configured to be determined by the bridge program using the second signature from the second wallet on the second blockchain network.
7. Each of the remote monitor systems comprises: storing a portion of a pool of shared secrets that, collectively, can be used to instantiate new instances of the bridge program; in response to determining that a first instance of the bridge program fails, providing the portion of the pool of shared secrets to a second instance of the bridge program upon instantiation; 2. The system of claim 1, further configured to: provide the portion of the pool of shared secrets to the second instance of the bridge program in response to the second instance of the bridge program being validated using an authentication operation by the remote observer system.
8. 8. The system of claim 7, wherein each of the remote monitor systems is configured to provide information related to the first blockchain network and the second blockchain network to the second instance of the bridge program.
9. the remote monitor system is configured to receive encrypted transactions from the bridge to acknowledge that asset operations have been performed on the first blockchain network and the second blockchain network; The bridge program is further configured to validate that the asset operation was successfully performed on the first blockchain network and the second blockchain network in response to receiving the approval from at least a threshold value of the remote monitor system; The system of claim 1 , wherein the bridge program is further configured to request, upon restart, any outstanding encrypted transactions for reissuance to the monitor system.
10. The system of claim 9 , wherein the threshold comprises at least a majority of the remote observer systems.
11. The asset action includes transferring the first asset to a wallet associated with the bridge on the first blockchain network; the bridge program is further configured to mint only the second asset in response to at least the threshold of the remote monitor system approving the transfer of the first asset to the wallet associated with the bridge in the first blockchain network; 10. The system of claim 9, wherein the remote monitor system is configured to automatically notify the bridge program that the first asset is to be transferred to the wallet associated with the bridge in the first blockchain network without being prompted by the bridge program.
12. The asset action includes deleting the second asset from the second blockchain network; The bridge program is further configured to unlock only the first asset in response to at least the threshold of the remote monitor system approving that the second asset has been removed from the second blockchain network; 10. The system of claim 9, wherein the remote monitor system is configured to automatically notify the bridge program that the second asset is being removed from the second blockchain network without being prompted by the bridge program.
13. 2. The system of claim 1, wherein the bridge program is configured to be modified by: (i) generating a new private key associated with a new wallet for the bridge program; (ii) modifying on-chain smart contracts of one or more of the first blockchain network and the second blockchain network with a new secret; and (iii) moving the first assets to the new wallet associated with the new private key.
14. The bridge program is configured to execute a cross-chain smart contract during a cross-chain asset transfer, the cross-chain smart contract being executed within a secure enclave; 2. The system of claim 1, wherein the cross-chain smart contract is configured to be used to perform on-chain operations on one or more of the first and second blockchain networks.
15. 1. A method for bridging assets between blockchain networks, the method comprising: Providing, by a secure module, a trusted computing environment in which program operations are secure against observation and manipulation by other operations external to said secure module; loading, by the secure module, a bridge program from a memory external to the secure module into a secure memory within the secure module, the bridge program including instructions that, when executed by the secure module, cause the secure module to: Accessing a first blockchain network that records transactions of a first asset; accessing a second blockchain network that records transactions of a second asset; locking some of the first assets on the first blockchain network and correspondingly minting some of the second assets on the second blockchain network; in response to the deletion of the minted second asset in the second blockchain network, unlocking the locked first asset in the first blockchain network; maintaining, by each of a plurality of remote monitor systems, a secret share of secret data for the bridge program to lock the first asset and to mint the second asset, the secret shares maintained by each of the remote monitor systems being configured to be used in combination to regenerate a private key. method.
16. each of said remote monitor systems storing a portion of a pool of shared secrets that can collectively be used to instantiate new instances of said bridge program; in response to determining that the first instance of the bridge program fails, each of the remote monitor systems provides the portion of the pool of shared secrets to a second instance of the bridge program upon instantiation; each of the remote monitor systems providing the portion of the pool of shared secrets to the second instance of the bridge program in response to the second instance of the bridge program being validated using an authentication operation by the remote monitor system; The method of claim 15 , further comprising:
17. 17. The method of claim 16, wherein each of the remote monitor systems is configured to provide information related to the first blockchain network and the second blockchain network to the second instance of the bridge program.
18. the remote monitor system is configured to receive encrypted transactions from the bridge to acknowledge that asset operations have been performed on the first blockchain network and the second blockchain network; The bridge program is further configured to validate that the asset operation was successfully performed on the first blockchain network and the second blockchain network in response to receiving the approval from at least a threshold value of the remote monitor system; 16. The method of claim 15, wherein the bridge program is further configured to, upon restart, request any outstanding encrypted transactions for reissuance to the watcher system.
19. The method of claim 18 , wherein the threshold comprises at least a majority of the remote monitor systems.
20. The asset action includes transferring the first asset to a wallet associated with the bridge on the first blockchain network; the bridge program is further configured to mint only the second asset in response to at least the threshold of the remote monitor system approving the transfer of the first asset to the wallet associated with the bridge in the first blockchain network; 20. The method of claim 18, wherein the remote monitor system is configured to automatically notify the bridge program that the first assets are being transferred to the wallet associated with the bridge in the first blockchain network without being prompted by the bridge program.
Citation Information
Patent Citations
System for transferring digital assets between block chains
JP2020177372A
Intermediate blockchain system for managing transactions
US20190026821A1
Performing transactions using private and public blockchains
WO2021092434A1
