Smart contract regulation
Abstract
A platform may receive a first smart contract. The first smart contract may be associated with an entity that stores a plurality of smart contracts in a distributed ledger. The platform may determine a state of the first smart contract and a state of a second smart contract and compare the state of the first smart contract and the state of the second smart contract. The platform may determine, based on the state of the first smart contract and the state of the second smart contract, that a conflict exists between the first smart contract and the second smart contract. The conflict may be determined based on at least one of the first smart contract or the second smart contract being in violation of a respective term of at least one of the first smart contract or the second smart contract.
Claims
exact text as granted — not AI-modifiedWhat is claimed is:
1 . A device, comprising:
one or more memories; and one or more processors, coupled to the one or more memories, configured to:
one or more instructions that, when executed by the one or more processors, cause the one or more processors to:
receive a first smart contract,
wherein the first smart contract is associated with an entity that stores a plurality of smart contracts in a distributed ledger;
determine, based on executing a first code of the first smart contract, a first state of the first smart contract;
identify, based on the entity, a second smart contract;
determine, based on executing a second code of the second smart contract, a second state of the second smart contract;
determine, based on comparing the first state and the second state, whether a conflict exists between the first smart contract and the second smart contract; and
perform, based on whether the conflict exists between the first smart contract and the second smart contract, an action.
2 . The device of claim 1 , wherein the first code corresponds to a first state machine defining a plurality of states of the first smart contract, and
wherein the second code corresponds to a second state machine stored in the distributed ledger.
3 . The device of claim 1 , wherein the one or more processors, to perform the action, are configured to prevent the first smart contract from being added to the distributed ledger based on determining that the conflict exists between the first smart contract and the second smart contract.
4 . The device of claim 3 , wherein the one or more processors are further configured to:
determine that the conflict no longer exists based on at least one of:
the first state changing, or
the second state changing; and
store the first smart contract in the distributed ledger based on determining that the conflict no longer exists.
5 . The device of claim 1 , wherein the distributed ledger comprises a blockchain,
wherein the second smart contract is stored in a first block of the blockchain, and wherein the one or more processors, to perform the action, are configured to:
store the first smart contract in a second block of the blockchain regardless of whether the conflict exists between the first smart contract and the second smart contract.
6 . The device of claim 1 , wherein the first state is defined based on a first condition and a variable, and
wherein the first condition causes the first smart contract to be compliant or non-compliant based on the variable.
7 . The device of claim 1 , wherein the first smart contract is executed by providing a first input to the first smart contract, and
wherein the second smart contract is executed by providing at least a portion of the first input to the second smart contract.
8 . The device of claim 1 , wherein the conflict is determined based on at least one of the first smart contract or the second smart contract being in violation of a respective term of at least one of the first smart contract or the second smart contract
9 . A method, comprising:
receiving, by a device, a first smart contract,
wherein the first smart contract is associated with an entity that stores a plurality of smart contracts in a distributed ledger;
determining, by the device and based on executing a first code of the first smart contract, a first state of the first smart contract; identifying, by the device and based on the entity, a second smart contract of the plurality of smart contracts; determining, by the device and based on executing a second code of the second smart contract, a second state of the second smart contract; determining, by the device and based on comparing the first state and the second state, whether a conflict exists between the first smart contract and the second smart contract; and performing, by the device and based on whether the conflict exists between the first smart contract and the second smart contract, an action.
10 . The method of claim 9 , wherein the first code corresponds to a first state machine defining a plurality of states of the first smart contract, and
wherein the second code corresponds to a second state machine stored in the distributed ledger.
11 . The method of claim 9 , wherein performing the action comprises preventing the first smart contract from being added to the distributed ledger based on determining that the conflict exists between the first smart contract and the second smart contract.
12 . The method of claim 11 , further comprising:
determining that the conflict no longer exists based on at least one of:
the first state changing, or
the second state changing; and
storing the first smart contract in the distributed ledger based on determining that the conflict no longer exists.
13 . The method of claim 9 , wherein the distributed ledger comprises a blockchain,
wherein the second smart contract is stored in a first block of the blockchain, and wherein performing the action comprises:
storing the first smart contract in a second block of the blockchain regardless of whether the conflict exists between the first smart contract and the second smart contract.
14 . The method of claim 9 , wherein the first state is defined based on a first condition and a variable, and
wherein the first condition causes the first smart contract to be compliant or non-compliant based on the variable.
15 . The method of claim 9 , wherein the first smart contract is executed by providing a first input to the first smart contract, and
wherein the second smart contract is executed by providing at least a portion of the first input to the second smart contract.
16 . A non-transitory computer-readable medium storing instructions, the instructions comprising:
one or more instructions that, when executed by one or more processors, cause the one or more processors to:
receive a first smart contract,
wherein the first smart contract is associated with an entity that stores a plurality of smart contracts in a distributed ledger;
determine, based on executing a first code of the first smart contract, a first state of the first smart contract;
determine, based on executing a second code of a second smart contract of the plurality of smart contracts, a second state of the second smart contract;
determine, based on comparing the first state and the second state, whether a conflict exists between the first smart contract and the second smart contract; and
perform, based on whether the conflict exists between the first smart contract and the second smart contract, an action.
17 . The non-transitory computer-readable medium of claim 16 , wherein the first code corresponds to a first state machine defining a plurality of states of the first smart contract, and
wherein the second code corresponds to a second state machine stored in the distributed ledger.
18 . The non-transitory computer-readable medium of claim 16 , wherein performing the action includes preventing the first smart contract from being added to the distributed ledger based on determining that the conflict exists between the first smart contract and the second smart contract.
19 . The non-transitory computer-readable medium of claim 18 , wherein the one or more processors are further to:
determine that the conflict no longer exists based on at least one of:
the first state changing, or
the second state changing; and
store the first smart contract in the distributed ledger based on determining that the conflict no longer exists.
20 . The non-transitory computer-readable medium of claim 16 , wherein the distributed ledger comprises a blockchain,
wherein the second smart contract is stored in a first block of the blockchain, and wherein performing the action comprises:
storing the first smart contract in a second block of the blockchain regardless of whether the conflict exists between the first smart contract and the second smart contract.Join the waitlist — get patent alerts
Track US2022005027A1 — get alerts on status changes and closely related new filings.
We store only your email — no account needed. See our privacy policy.