Using images in Hyperledger Fabric blockchain network - hyperledger-fabric

I'm using Hyperledger Composer and Hyperledger Fabric to implement a blockchain application. Here, there is a requirement to publish images of a certain asset in the network. According to my knowledge, it's not a good practice to use images in a blockchain network. Any suggestions to achieve this requirement?

It depends on the further application of the your chained data.
Maybe instead of images you can put inside SHA-2/SHA256 of these images.

If you don't store them on the blockchain, you're back to a centralized solution. Depending on your needs, that might be acceptable, or not. If you need to store it on the blockchain, you might use the url:data format, which lets you store them as strings, but any modern browser would be able to display them without additional code.

Related

Is it advisable or appropriate to use IPFS to store files(such as images) for Hyperledger Fabric network?

Hi Fabric & IPFS experts:
I need to store some big files(images, videos) for hyperledger fabric network. It is not a good idea to use the fabric's own couchdb/goleveldb to store such big files. So some alternative solution should be investigated.
As we know, fabric is Consortium Blackchain, which means that the data is only stored in the organizations' peers. But it seems that files stored in IPFS are widely spread around the world(many IPFS peers), it is kind of like public storage.
So the question comes: Is it advisable or appropriate to use IPFS to store files(such as images) for Hyperledger Fabric network? Is there any security problem? Could you please provide some sights on this? Thanks in advance.
Is very useful use IPFS to store large files, and you are right, it is not secure use the public network, but IPFS provide a way to create a private network, check this link
And if you want to replicate data, check ipfs cluster.

Which is best solution for supply chain application fabric or sawtooth?

I am little confused bw fabric and sawtooth for supply chain application development from documentation it appears that sawtooth is best for supply chain but all the validator node keeps the copy of the distributed ledger there is no concept of channels and private data.
Sawtooth has an open source solution for supply chain.
Fabric Channels may solve your use case. It doesn't scale if you need several channels. You can also have multiple blockchains with Sawtooth, which is essentially what a channel is anyway.
The blockchain concept is that all data is transaparent and viewable and auditable by everyone. That doesn't always work in some use cases and is an active research area. Encrypting payload data and storing some data off-chain are some solutions.

Hyperledger Composer, IPFS/Storj, and front end compatibility

I have been researching online a lot, and I have hit a roadblock.
My current situation is that I have a hash inside my blockchain, and this would reference a file that will return this from off chain. My question is that would using IPFS and Storj even be possible using Hyperledger Composer? If so, how would the integration process work? My case right now would require the use of Hyperledger due to its architecture over Ethereum, so it is much preferable to use Hyperledger.
Besides this, I would also like to create a custom front end. Is it possible to work on custom CSS and code, for example, using Angular?
yes - firstly see storage options discussed in this thread -> Best practice to save files in blockchain -
In Composer you could store the hash as a string on an asset in your model etc etc and you can retrieve via IPFS client search etc once you've got your asset (eg by name or ID) etc .- lastly see this announce for current status of Composer FYI

Is there any feasible way to integrate any real payment processing system (not cryptocurrency) while developing a solution using hyperledger composer?

I am developing a micro money-lending platform where I am using hyperledger -composer to model the business network, but I am getting stuck on how to implement the payment processing system in my solution as hyperledger-composer doesn't have any currencies associated with it.
How can I do this?
Hyperledger Fabric might not be the best tool for this task. If you want to use it, you can use it just like a relational database, with your users as Participants, other entities as Assets etc etc. But you can't use it for passing money from one person to another -- you'll have to use other means.

What does Hyperledger composer do .Does that create chaincode for fabric or something else?

I have been working on hyperledger fabric for some time. But I don’t understand where hyperledger composer comes in place . I do understand that it helps in visualizing the logic and transaction. But what I don’t get is how do you integrate it with fabric network? what does it create? Is it chaincode if not then what?
The Compose runtime is chain code that executes the business network archive artefacts created by the end-user.
Perhaps this will help?
https://blog.selman.org/2017/07/08/getting-started-with-blockchain-development/
The tech answer is that Hyperledger Composer is an abstraction layer over Hyperledger Fabric.
The practical answer is that it is awesome. Think how Angular and hundreds of other frameworks make web programming easier.
It is a framework where you can write your blockchain in Javascript and specify your data objects in an easy to understand text file. Throw in some querying, ACL stuff and pathways to use some nice opensource tools that let you do things like generate a Web API automatically and play around in a web environment without installing anything.
We are using it for the Integra Ledger Legal blockchain. (www.integraledger.com). I just spent the day working in it.

Resources