标签: hyperledger-composer

Fabric编写器与Bluemix区块链服务集成

今天可以将作曲家结构业务网络.bna文件部署到bluemix区块链服务吗?如果是,是否有人可以共享的连接配置文件示例?谢谢.

blockchain hyperledger-composer ibm-cloud

2
推荐指数
1
解决办法
2280
查看次数

包含ACL条件下的功能

我有一个名为MedicalFile的资产,其中包含对组织的引用.参与者HealthCareProfessional也属于一个组织.

现在,我想定义一个ACL规则,该规则限制医疗保健专业人员仅查看MedicalFile与其组织相关联的医疗文件.

我想出了以下规则:

rule OrganisationMedicalFilePermission {
    description: "An organisation may updates a medical file which they have permission from"
    participant(h): "nl.epd.blockchain.HealthCareProfessional"
    operation: ALL
    resource(m): "nl.epd.blockchain.MedicalFile"
    condition: (m.organisations.includes(h.organisation))
    action: ALLOW
Run Code Online (Sandbox Code Playgroud)

}

一旦我使用Loopback调用RESTful API,这将导致一个空数组.我被认证为医疗保健专业人士.

资产和参与者:

asset Organisation identified by id {
      o String id
      o String name
      o String city
      o String zipCode
      o String street
      o String houseNumber
      o String houseNumberExtra optional
      o OrganisationType organisationType
}

asset MedicalFile identified by bsn {
  o String                 bsn
  --> Patient              owner
  --> Patient[]            mentors …
Run Code Online (Sandbox Code Playgroud)

hyperledger-fabric hyperledger-composer

2
推荐指数
1
解决办法
1176
查看次数

在另一个端口上运行composer-rest-server?

默认情况下,它从3000开始,由另一个进程使用.

有没有办法让它在不同的端口上运行?

~/git/my-test-network$ composer-rest-server -p hlfv1 -n my-test-network -i admin -s adminpw -N never
Discovering types from business network definition ...
Discovered types from business network definition
Generating schemas for all types in business network definition ...
Generated schemas for all types in business network definition
Adding schemas for all types to Loopback ...
Added schemas for all types to Loopback
events.js:160
  throw er; // Unhandled 'error' event
  ^

Error: listen EADDRINUSE 0.0.0.0:3000
at Object.exports._errnoException (util.js:1018:11)
at exports._exceptionWithHostPort (util.js:1041:20)
at …
Run Code Online (Sandbox Code Playgroud)

hyperledger-composer

2
推荐指数
1
解决办法
1319
查看次数

Hyperledger Composer:未为此连接指定任何业务网络

我在本地安装了hyperledger作曲家.但是在localhost上它会出错:

错误:尝试ping时出错.

错误:没有为此连接指定业务网络.

我也无法添加模型和脚本文件.

这是终端中显示的错误

error: [Hyperledger-Composer] undefined:HLFConnection            :ping()                    Error: Error trying to ping. Error: No business network has been specified for this connection
at _checkRuntimeVersions.then.catch (/usr/local/lib/node_modules/composer-playground/node_modules/composer-connector-hlfv1/lib/hlfconnection.js:787:34)
at <anonymous>
at runMicrotasksCallback (internal/process/next_tick.js:121:5)
at _combinedTickCallback (internal/process/next_tick.js:131:7)
at process._tickCallback (internal/process/next_tick.js:180:9) error: [Hyperledger-Composer] undefined:ConnectorServer          :Error: Error trying to pi
Run Code Online (Sandbox Code Playgroud)

blockchain hyperledger hyperledger-composer

2
推荐指数
1
解决办法
3769
查看次数

找不到作曲家运行时安装错误卡peerAdmin

我一直遵循教程的要求,直到遇到错误为止

错误:找不到卡:PeerAdmin @ hlfv1

在下面的命令中:

 composer runtime install --card PeerAdmin@hlfv1 --businessNetworkName tutorial-network
Run Code Online (Sandbox Code Playgroud)

本教程说,通常必须创建一个peerAdmin身份,但他们已经创建了一个。

hyperledger hyperledger-fabric hyperledger-composer

2
推荐指数
1
解决办法
2762
查看次数

Composer-Playground无法在Firefox中使用

在Firefox中,Composer Playground Web应用程序无法正常工作。它给

错误:ID为“ chaincodes”的集合中ID为“ undefined”的对象不存在

在Firefox中运行,但在chrome中运行良好。有任何想法吗?

hyperledger hyperledger-fabric hyperledger-composer

2
推荐指数
1
解决办法
1222
查看次数

Hyperledger Composer的前端?

我正在使用hyperledger作曲家制作区块链应用程序.我可以在反应中编写hyperledger composer应用程序的前端,还是只能以角度编写?

reactjs hyperledger-composer

2
推荐指数
1
解决办法
507
查看次数

如何在Hyperledger Composer中使用单元测试引用一系列产品

我的货件中有一系列产品,但我不知道如何参考该系列产品。我正在尝试设置单元测试环境,并且需要提供测试数据。

装运模块

asset Shipment identified by shipmentId{
  o String shipmentId
  --> Product[] allProducts
  --> participant owner
}
Run Code Online (Sandbox Code Playgroud)

和单元测试

const shipment = factory.newResource(namespace, 'Shipment', '001');
shipment.allProducts = factory.newRelationship(namespace, participant, /** what to do here */ )
Run Code Online (Sandbox Code Playgroud)

或者我可以只传递一系列产品,例如:

shipment.allProducts = products
Run Code Online (Sandbox Code Playgroud)

我对此解决方案表示怀疑的原因是,我需要使用工厂newRelationship函数。如果您有任何建议,那将有所帮助。

unit-testing hyperledger-fabric hyperledger-composer

2
推荐指数
1
解决办法
72
查看次数

错误:无法安装composer-cli

当我运行时,npm install -g composer-cli我收到此错误:

"需要在v0.15或更高版本安装composer-cli".

我怎么解决这个问题?

hyperledger-composer

1
推荐指数
1
解决办法
2748
查看次数

有没有替代 hyperledger-composer 的方法?

问题中所述,Hyperledger Composer 项目自 2019 年 8 月 29 日起处于弃用状态。

因此我会问,是否有替代方案?

hyperledger-composer

1
推荐指数
1
解决办法
1759
查看次数