具有自定义环回实现的 Hyperledger Composer

莱昂纳多·卡拉罗

我想创建一个自定义环回服务器来处理与用户关联的超级账本作曲家卡。

在我想要创建的场景中,有不同的用户能够在区块链中执行交易。

用户应该能够登录到 Web 门户并提交交易。

这要求 Web 门户的凭据(用户名和密码)存储在数据库中,而卡片则存储在服务器的文件系统中。

一旦用户登录,服务器应识别他并选择与该特定用户相关联的对应卡。

在此处输入图片说明

有谁知道这可能是实现这一点的最佳方法?

Paul O'Mahony
  1. you might well consider using a Cloud store location for your business network cards, that contain the blockchain identities (but your chosen strategy overrides that, eg cards persisted to a REST server instance) - a business network card (for the designated user) is then accessible to that application user (once authenticated, see item 4 below) to be able to connect to, then interact with, the protected business network, and ledger - as the specified identity. An example of one cloud strategy is shown here - more info on cloud wallets here

  2. You would create participants in Composer (the class(es) for which are defined in your model file) in the business network, and issue identities through Composer (mapped to the participant above) - or indeed from your CA server, as an administrator (eg the user goes through some application user registration process then activates the account, their blockchain identity, via a link to their email id etc etc or as suits) . Your Composer identity (in the business network) could possibly map to the web portal user id in some way (meaning: whether you want that to be direct or indirect, you'll know your security architecture better).

  3. Some of what you are asking about is answered in this Stack -> Hyperledger Composer Web application user authentication

  4. 您显然会使用身份验证策略来验证您的 Web 应用程序用户 - 例如,如果您的应用程序使用 Composer REST API 与区块链上的业务网络进行交互。有关示例,请参阅此 Google OAUTH2(基于客户端身份验证)教程 -> https://hyperledger.github.io/composer/latest/tutorials/google_oauth2_rest

本文收集自互联网,转载请注明来源。

如有侵权,请联系[email protected] 删除。

编辑于
0

我来说两句

0条评论
登录后参与评论

相关文章

来自分类Dev

带有 javascript 的 Hyperledger Composer

来自分类Dev

带有自定义 IBM Cloudant 钱包的 Hyperledger Composer 失败 - 实体太大

来自分类Dev

Hyperledger Composer - 具有条件功能的 ACL 规则

来自分类Dev

Hyperledger Composer 网络安装

来自分类Dev

Hyperledger Composer Playground 查询

来自分类Dev

Hyperledger Composer 检查数组

来自分类Dev

如何使用nodejs自己实现Hyperledger composer rest api?

来自分类Dev

未为类型定义 hyperledger composer 命名空间

来自分类Dev

带有 Web 服务的 hyperledger composer 的 JS 文件

来自分类Dev

Hyperledger Composer Playground本地文件

来自分类Dev

Hyperledger Composer 文件权限问题?

来自分类Dev

错误版本的 Hyperledger Composer Playground

来自分类Dev

Hyperledger Composer 添加新节点

来自分类Dev

Hyperledger Composer 中的 ACL 范围

来自分类Dev

hyperledger composer 部署和启动

来自分类Dev

在 Hyperledger Composer 中签署交易

来自分类Dev

Hyperledger Composer 查询资产的参数

来自分类Dev

Hyperledger Composer 系统命名空间

来自分类Dev

在没有护照的情况下使用 Hyperledger Composer REST Server 多用户

来自分类Dev

Hyperledger Composer Couchdb 不会在所有对等点上复制

来自分类Dev

Hyperledger composer-cli 无法卸载,没有那个文件或目录

来自分类Dev

hyperledger-composer nodejs sdk ping 失败

来自分类Dev

hyperledger composer 部署示例代码失败

来自分类Dev

使用 hyperledger composer 部署业务网络

来自分类Dev

在 Hyperledger Composer 中检索资产数组

来自分类Dev

Hyperledger Composer 调用外部 REST API

来自分类Dev

Hyperledger composer install 未安装业务网络

来自分类Dev

保存后更新 Hyperledger Composer Contract

来自分类Dev

通过 Hyperledger composer ACL 控制交易的运行

Related 相关文章

热门标签

归档