Systems and methods for writing updates to and/or reading previously stored updates of assets implemented as smart contracts on a decentralized database
Systems and methods for writing updates to and/or reading previously stored updates of assets that are implemented as smart contracts on a decentralized database are disclosed. Exemplary implementations may: receive a first request, from a first client computing device associated with a first user, to write a first update to an individual asset, or to read one or more previously stored updates; transfer the first request to the decentralized database; responsive to transferring the first request, receive the first reference from the decentralized database; generate a second file and a second reference; store the second file on the content-addressable file system; and record the second reference in the state of the individual asset on the decentralized database.
1 . A system configured to modify assets that are stored (i) in part on a decentralized database that implements a blockchain, and (ii) in part on a file system that is distinct and separate from the blockchain, wherein the assets include a particular asset that has a state, wherein the state includes a first part of the state and a second part of the state, wherein the first part of the state of the particular asset has been stored on a content-addressable file system at a file address, and wherein the second part of the state of the particular asset has been stored on the blockchain with the file address, the system comprising:
one or more hardware processors configured by machine-readable instructions to:
receive a request to make a modification to the first part of the state of the particular asset;
generate a file that reflects the modification to the first part of the state, wherein the file includes the file address;
store the file to the content-addressable file system at an updated file address on the content-addressable file system, wherein inclusion of the file address in the file causes the file address to be reflected in the updated file address of the content- addressable file system at which the file is stored;
record, on the blockchain, the updated file address with the second part of the state of the particular asset; and
subsequent to recording the updated file address on the blockchain, verify the updated file address correctly reflects the file address, and
wherein the asset is implemented as a smart contract on the decentralized database.
2 . The system of claim 1 , wherein the request has been received from a first client computing device that is associated with a user.
3 . The system of claim 1 , wherein the one or more hardware processors are further configured by the machine-readable instructions to:
responsive to receiving the request, access the blockchain to obtain the file address.
4 . The system of claim 3 , wherein the inclusion of the file address in the updated file is based on the accessing of the blockchain to obtain the file address.
5 . The system of claim 1 , wherein the request is received from a computing device, and wherein the one or more hardware processors are further configured by the machine-readable instructions to verify the computing device is permissioned to make the request.
6 . The system of claim 1 , wherein recording the updated file address on the blockchain by the smart contract effectuates a subsequent change in the second part of the state of the particular asset.
7 . The system of claim 1 , wherein the one or more hardware processors are further configured by the machine-readable instructions to compare the modification to predefined criteria stored in the smart contract.
8 . The system of claim 7 , wherein the recording of the updated file address on the blockchain is performed responsive to the predefined criteria being met by the modification.
9 . The system of claim 1 , wherein the content-addressable file system is an Inter-Planetary File System, and wherein the updated file address is a hash value produced by a hashing function based on the contents of the updated file including the file address.
10 . A method of modifying assets that are stored (i) in part on a decentralized database that implements a blockchain, and (ii) in part on a file system that is distinct and separate from the blockchain, wherein the assets include a particular asset that has a state, wherein the state includes a first part of the state and a second part of the state, wherein the first part of the state of the particular asset has been stored on a content-addressable file system at a file address, and wherein the second part of the state of the particular asset has been stored on the blockchain with the file address, the method comprising:
receiving a request to make a modification to the first part of the state of the particular asset;
generating a file that reflects the modification to the first part of the state, wherein the file includes the file address;
storing the file to the content-addressable file system at an updated file address on the content-addressable file system, wherein inclusion of the file address in the file causes the file address to be reflected in the updated file address of the content-addressable file system at which the file is stored; and
recording the updated file address with the second part of the state of the particular asset on the blockchain; and
subsequent to recording the updated file address on the blockchain, verifying the updated file address correctly reflects the file address; and
wherein the asset is implemented as a smart contract on the decentralized database.
11 . The method of claim 10 , wherein the request is received from a first client computing device that is associated with a user.
12 . The method of claim 10 , further comprising, responsive to receiving the request, accessing the blockchain to obtain the file address.
13 . The method of claim 12 , wherein the inclusion of the file address in the updated file is based on accessing of the blockchain to obtain the file address.
14 . The method of claim 10 , wherein the request is received from a computing device, and wherein the method further comprises verifying the computing device is permissioned to make the request.
15 . The method of claim 10 , wherein recording the updated file address on the blockchain by the smart contract effectuates a subsequent change in the second part of the state of the particular asset.
16 . The method of claim 10 , further comprising comparing the modification to predefined criteria stored in the smart contract.
17 . The method of claim 16 , wherein the recording of the updated file address on the blockchain is performed responsive to the predefined criteria being met by the modification.
18 . The method of claim 10 , wherein the content-addressable file system is an Inter-Planetary File System, and wherein the updated file address is a hash value produced by a hashing function based on the contents of the updated file including the file address.