How to test my own business network made on Hyperledger Composer using Hyperledger Caliper - hyperledger

I'm currently working on performance benchmarking using Hyperledger Caliper.
I have tried several samples but it seems that the structure of sample benchmarks are different from that of a business network made on Hyperledger Composer.
Looks like model file and script file are all reproduced into one javascript file as a benchmark.
Could anyone tell me how to test my own business network made on Hyperledger Composer?
Or, Should I reproduce my business network into one javascript file?
I looked at the official website (https://hyperledger.github.io/caliper/)
But, it seems that it is not updated because codes on the website don't work.
Thank you!

Related

Hyperledger fabric fabtoken energy certification use case

I'm developing a blockchain based system to provide energy certificates handled as tokens in hyperledger fabric. I've been doing some research but found no state of art on how to do this. If anyone can provide a useful link on how to bring this use case into hyperledger fabric tokens, I would be grateful. Also, I don't really know how to include the fabtoken functionality in an already deployed blockchain network. Any links or tips on how to start investigating for this will be welcome.
fabtoken was included in the fabric v2.0 alpha, but was reverted from git due to several issues. In other words, it is a method that is no longer supported.
Currently, fabric provides an example implemented in chaincode as a related token. See the link below.
fabric-samples/token-utxo
fabric-samples/token-erc-20
fabric-samples/token-erc-721

hyperledger Composer use after depreciation

Is it alright to use hyperledger composer for a professional project? Since its depreciated.
I have need to solve a problem which can be solved easily with hyperledger composer. My main question is Is it wise to use composer after its been depreciated. Will there be any deployment Issue or anything while im carrying out this project?
I would highly advise you not to try to use hyperledger composer. It is end of life and the community has moved on, all that is left is the source code. The fabric client sdks and the new programming models on the chaincode side provide a much richer experience now and that is where you should focus your efforts.

Equivalent of Hyperledger Composer CTO model file in Hyperledger Fabric 1.4

For my Hyperledger Business Network, have defined all my network objects (Enums, Assets, Participants, Transactions, Events etc) in a Composer CTO Model file. I also use the Concept, Abstract and Relationship (-->) features as well in the cto file.
Is there an equivalent of CTO model file in the new development model in HL 1.4 without Composer. If not what's the best way to achieve the same as a model CTO file?
As per my understanding, There is no alternative the same as the CTO file. Hyperledger Composer follows a Modeling language for the asset, participants creation.
Hyperledger Fabric supports Smart Contact development in general-purpose programming languages, such as JavaScript, Java, Go, and Node.js.
If you are a beginner in Hypelredger fabric development then you have first cleared the concept of the orderer, peer, CA, and organization concept. And then first you have to start IBM Blockchain Platform VS Code extension for fabric. It will provide a local fabric environment to create, test and deploy a fabric smart contract. Also generate 1 peer, 1 orderer, 1 CA service under VS code environment.
Here is a link to start development with VS code extension. So using VS Code extension you can create a transaction for asset and participate creation.
Hope it will help you :)
Thanks for the info Isha. I had already come across the IBM extension and various examples in the fabric-samples suite and creation of main objects ( assets) via Transactions.
I was more wondering on best ( and fast/less code) way to implement other CTO features like Concept, Abstract and Relationship (-->). But looks like there isn’t.

Include external library file in Hyperledger Composer

Is there a way to include an external library in Hyperledger Composer? I would like to use this library for currency computations. I saw in this post (which I think is old and there might be advancements on this since the response is 9 months old) that at the time it was not possible to include external libraries in Hyperledger
If you are referring to business network Transaction Processor functions (which I think you are) then you cannot use require to include an external library. Other people have used things like Webpack to build a monolithic package of javascript to get around this limitation but I don't know the details on that or how practical it is from both an operational and supportable point of view.

What is Hyperledger?

Can you explain Hyperledger for someone who already knows what blockchains are? Their website is really vague and provides minimal information, including a definition as "communities of software developers building blockchain frameworks and platforms". Wikipedia page for Hyperledger gives the impression that it's a set of modular tools that can be adapted for blockchain projects. Then again I've listened to pitches of a few Hyperledger projects and they talk about running their stuff "on" Hyperledger, like they had a distinct blockchain that multiple projects run on. But is it more like a make-your-own-blockchain toolkit?
Hyperledger is a collection of blockchain related projects. Pitches that claim they are running their stuff on Hyperledger most likely means they are using Fabric or Sawtooth, although more likely than not Fabric, to implement the blockchain they are using. Fabric is one of the Hyperledger projects that provides a permissioned blockchain implementation that adheres to the Fabric protocols which define how the network components interact. There is no single Hyperledger blockchain, just like there is no single MySQL databases.
Hyperledger is a technology initiative, not a single project. In fact, several dozen projects are currently in development under that umbrella.
If someone is contrasting Hyperledger with Ethereum, they are probably specifically talking about Hyperledger Fabric. In fact, there is actually an Ethereum node project within Hyperledger-- Hyperledger Burrow! ( You can check that out here: https://github.com/hyperledger/burrow )
So, your first careful question if you are trying to detect bullshit in this space should be to figure out if the person knows what substrate they are using-- Fabric, Burrow, or something else entirely!
Of equal value, make sure they understand that Hyperledger is not just (or even primarily) IBM!
Now, if you ARE talking about Hyperledger Fabric vs. Ethereum, probably the most important difference is to recognize that Fabric does not necessarily inform the entire network about all transactions, whereas for Ethereum this is a given. Fabric allows different chains ("sidechains"-ish) to be spun up on demand between a subset of nodes on the network. This allows, in principle, different competing businesses in an industry to peer-validate public transactions, but also to maintain private smart contracts between a limited set of entities.
More interesting is the potential to build a top-level public contract that requires the results of privately-held parts, so long as they meet certain criteria.
But the super-short version is: Fabric allows privacy; Ethereum mandates global transparency. Which approach is "better" very much depends on the application.
Hyperledger is the open-source blockchain initiative sponsored by the Linux Foundation. The phrase "Hyperledger" is a trademark of Digital Asset Holdings. There are many projects under the umbrella, but the main project contributed by IBM is the Fabric. www.hyperledger.org has more info. Hyperledger focuses on permissioned blockchain technology as compared against public blockchains like Ethereum.
Hyperledger is not a company, not a cryptocurrency. Hyperledger is rather something like a hub for open industrial blockchain development. Hyperledger does not support Bitcoin or any other cryptocurrency. But the platform is thrilled by blockchain technology.
Hyperledger does not intend to establish any kind of Hyperledger coin. Hyperledger Project is an open source, collaborative effort to create a blockchain for business-to-business (B2B) and business-to-customer (B2C) transactions.
Hyperledger blockchains are generally permissioned blockchains, which means that the parties that join the network are authenticated and authorized to participate on the network. Hyperledger does not refer to any specific technology or tool rather it refers to a project where multiple teams are collaborating to develop open source and distributed ledger technology (DLT).

Resources