Login
Register
All Activity
Questions
Unanswered
Tags
Users
Ask a Question
Welcome to the Developer Q&A for the
MultiChain
blockchain platform.
Please feel free to ask questions about the platform to receive answers from the MultiChain developers or other members of the community.
Related questions
Storing hashes or files in Multichain
Publishing files in streams
Multichain 1.0.2: Attaching files to the blockchain
Files inside MultiChain
What side chains or version of MC to use for data storage
4,157
questions
4,370
answers
5,718
comments
Most popular tags
multichain
streams
assets
stream
transactions
json-rpc
blockchain
wallet
permissions
error
address
raw-transactions
asset
mining
node
api
issue
multichain-explorer
nodes
connect
multichaind
multisig
transaction
smart-filters
metadata
private-key
atomic-exchange
multichain-cli
multichain-web-demo
data
connection
performance
blocks
demo
web
json
database
storage
native-currency
bitcoin
private-blockchain
network
fee
smart-contracts
wallets
signrawtransaction
off-chain
exchange
multiple-nodes
getnewaddress
Storing files MC vs IPFS
+1
vote
Hi,
I would like to know whats the difference and advantage of storing files on Multichain than in IPFS.
And to store a file on multichain could you help me with the steps.
Thanks.
storage
multichain
files
asked
Mar 19, 2019
by
blkchain_enthu
Please
log in
or
register
to add a comment.
Please
log in
or
register
to answer this question.
1 Answer
0
votes
You could store files in IPFS and then just publish hashes on the MultiChain blockchain. Or you could store files in MultiChain as off-chain stream items. This is conceptually similar, since only hashes are embedded in the blockchain and the data itself is delivered peer-to-peer. But the key advantage is that MultiChain takes care of everything for you. This subject is covered in depth in this blog post:
https://www.multichain.com/blog/2018/06/scaling-blockchains-off-chain-data/
answered
Mar 19, 2019
by
MultiChain
In this case any node which subscribe to a stream will be getting the actual data from the publisher's local storage and store it in its own local storage.
The only difference I can see is Hashing the orginal file and retrieving the file back from Hash is being done by IPFS api's itself, while in multichain we have to handle that manually with own API's.
provide your comments on this.
First the subscriber won't necessarily get the data from the publisher's local storage – they could also get it from another subscriber's local storage. Either way the data is always verified against the on-chain hash to ensure it's unmodified.
With MultiChain you have to do *less* that using IPFS, because the process is fully integrated and transparent as part of publishing a stream item and subscribing to that stream. You don't have to think about hashes at all, it's all taken care of for you.
Please
log in
or
register
to add a comment.
...