hyperledger-composer

nodejs test hyperledger composer v0.15 fails with Error: Card not found: PeerAdmin@hlfv1

烈酒焚心 提交于 2019-11-29 16:28:56
With the implementation of cards in v0.15, previous versions of test routines which used profiles (obviously) won't work. However, I cannot find an SDK approach to create the necessary cards to run tests. The 'before' section of code up through v0.14 for my tests has looked like the following, which uses an embedded profile, creates a temporary instance of the network and runs the tests: describe('Finance Network', () => { // let adminConnection; let businessNetworkConnection; before(() => { BrowserFS.initialize(new BrowserFS.FileSystem.InMemory()); const adminConnection = new AdminConnection(

Can I use JavaScript libs with require on transaction processor

徘徊边缘 提交于 2019-11-29 15:35:17
Can I use JavaScript libs with require on transaction processor of fabric composer? I'd like to use it with npm install.. at least I couldn't do this on playground now. No, we do not support that. We have tentative plans to move to native Node.js chain code container, which may allow this. It does raise some challenges around lifecycle management of the code however. I have tried to use momentjs and numeraljs in my project . Since i can use many logic js file in my model . I have decided to add numeral.js and moment.js in the lib folder with my logic.js . 1/ Moment.js and numeral.js in lib

How to authenticate to REST API and map to Fabric credentials

拥有回忆 提交于 2019-11-29 15:31:36
问题 How can I create a new user account with username/password to authenticate against composer-rest-server? How would I authenticate with this newly created user account against composer-rest-server? How would I manage the session for that user? How can I map this user to a network participant? Can composer-rest-server user be mapped to more then one network participant (i.e. perform different roles)? Do I need to create a wallet for each composer-rest-server user? How would I share wallets

How to use hyperledger getnative API

老子叫甜甜 提交于 2019-11-29 14:45:19
I came across the getNative API through which one call chaincode from Hyperledger composer. See here: https://github.com/hyperledger/composer/issues/3120 Can someone please tell me exactly how does this work? Say if I have a very simple chaincode with a getter and setter, can I invoke those from the JS code in composer To call the Hyperledger Fabric API in a transaction processor function of composer , the function getNativeAPI must be called. getNativeAPI allow users to call directly of the Fabric shim API which provides the APIs for application developers to implement "Smart Contracts" for

Hyperledger composer for enterprise

僤鯓⒐⒋嵵緔 提交于 2019-11-29 12:48:29
I saw that Hyperledger composer is really easy to work with, also we can deploy the composer code on hyperledger fabric. But I found that they create only one channel, and we will have the flexibility to talk to the specific peers like what we can do in GoLang\fabric, can we call external web services from composer java script code as we can do in Golang on fabric? I'm wondering, can we use hyperledger composer for enterprise blockchain applications? or just we use it to create blockchain POCs. Regards. Bassel Kh Hyperledger Composer is intended to be used for enterprise blockchain

First network in hyperledger

不羁岁月 提交于 2019-11-29 10:24:46
问题 I am trying to work on my first network in Hyperledger Fabric. Using the following documentation http://hyperledger-fabric.readthedocs.io/en/latest/build_network.html I have completed the setup till http://hyperledger-fabric.readthedocs.io/en/latest/build_network.html#create-join-channel but when I run the peer channel create -o orderer.example.com:7050 -c $CHANNEL_NAME -f ./channel-artifacts/channel.tx --tls $CORE_PEER_TLS_ENABLED --cafile /opt/gopath/src/github.com/hyperledger/fabric/peer

Difference between hyperledger composer and hyperledger fabric?

拜拜、爱过 提交于 2019-11-28 19:11:08
I am java developer and new to hyperledger. I am interested in learning it and need to know where to start . fabric vs composer? Hyperledger Composer simplifies application development on top of the Hyperledger Fabric blockchain infrastructure. If you are interested in the blockchain infrastructure, start with the Fabric tutorials . If you are interested in blockchain applications, start with the Composer tutorials . The Fabric tutorials also include samples of low level chaincode development (in golang). Composer is a higher level application development framework. I'd suggest trying both to

Historian for a particular participant

流过昼夜 提交于 2019-11-28 13:09:09
Is there any way in which I can get Historian for a particular participant in hyperledger-composer using node API? I am developing an application based on hyperledger-composer using Node APIs.I want to show the history of transaction of a particular participant in his/her profile. I have created the permission.acl for that and that is working fine in playground. But when i am accessing the historian from node API it is giving complete historian of the network. I don't know how to filter that for a participant. you can return results from REST API calls since v0.20 to the calling client

IBM Blockchain - Simple Application

烂漫一生 提交于 2019-11-28 11:55:35
问题 Alright, I need to develop a simple application in an IBM Blockchain(starter plan). But I can't get it done, after almost 1 month of trial and error and thousands of tutorials. So, my case is really simple(I guess): I have a models.cto file: namespace com.test.models /** * A company asset. */ asset Company identified by company_id { o String company_id o String document_key o String document_value o String name o String telephone o String email } /** * A person_in_charge asset. */ asset

Fabric composer integration with Bluemix blockchain service

浪尽此生 提交于 2019-11-28 08:50:55
Can a composer fabric business network, .bna file, be deployed to the bluemix blockchain service today? If so, is there a connection profile example that someone can share? Thanks. You can use Composer with the Bluemix Blockchain service today. However, you must be running a local copy of the Composer Playground as the version of Composer running on Bluemix (fabric-composer.mybluemix.net) only supports the web connection profile at the moment. You can set up a local copy of the Composer Playground by following the instructions here: https://fabric-composer.github.io/start/getting-started