如何从链代码调用其他库?
How can other libraries be invoked from chaincode?
在 https://hyperledger.github.io/composer/reference/MeetTheModules.html 中说:
composer-client and composer-admin are the two modules that provide APIs for applications. node.js applications should only use APIs that come from these modules. If there are other APIs that are need please contact us.
例如,如果我有需要使用 AWS Node SDK 调用 AWS 服务的链代码,这是我们应该联系开发团队的场景之一吗?我是 node.js 顺便说一句,如果这是一个显而易见的问题,我深表歉意。
链码(或 Composer 术语中的交易处理器函数)在用 Go 编写的 JavaScript 虚拟机中执行,而不是 Node.js。目前无法从事务处理函数导入 Node.js 模块或调用外部服务。
我们对向 Fabric 添加 Node.js 链代码支持非常感兴趣,这是我们计划开始的工作。
在 https://hyperledger.github.io/composer/reference/MeetTheModules.html 中说:
composer-client and composer-admin are the two modules that provide APIs for applications. node.js applications should only use APIs that come from these modules. If there are other APIs that are need please contact us.
例如,如果我有需要使用 AWS Node SDK 调用 AWS 服务的链代码,这是我们应该联系开发团队的场景之一吗?我是 node.js 顺便说一句,如果这是一个显而易见的问题,我深表歉意。
链码(或 Composer 术语中的交易处理器函数)在用 Go 编写的 JavaScript 虚拟机中执行,而不是 Node.js。目前无法从事务处理函数导入 Node.js 模块或调用外部服务。 我们对向 Fabric 添加 Node.js 链代码支持非常感兴趣,这是我们计划开始的工作。