General Question on how to use Quorum blockchain

Blo*_*mer 4 blockchain ethereum solidity quorum

I am very new to quorum programming. I already made some Smart Contracts with solidity on ethereum and made some dapps with Truffle, React and Metamask.

Now I did this Quorum Tutorial: https://truffleframework.com/tutorials/building-dapps-for-quorum-private-enterprise-blockchains

Before I get to the problem I have, I tell you what I am trying to do: Right now we have a database in our school, where the teacher can save the marks of the students, and the students can log in and see the marks they have. I'm trying to make a prototype, where this data is stored on a private blockchain like quorum.

So what I already did is a react front end for the prototype and I want that teachers can log in, save marks for a student and then the students can log in and see their marks. This means that students and teachers all need a login.

The Problems I face:

  1. How can I set up a local productive quorum node?
  2. For ethereum and ganache, you can use metamask and then use the metamask account in the react front-end to make transactions. How does it look like with quorum?

  3. 我怎样才能登录?或者老师和学生是否需要知道他们帐户的私钥?

正如你所看到的,我对这个世界还很陌生,我需要更多地了解这个概念。

感谢您的帮助

Ben*_*eck 5

如何设置本地高效仲裁节点?

Quourum Maker这样的东西可以帮助您快速引导 Quorum 网络,而无需进行繁琐的手动配置。Quorum 文档还提供了大量教程,可以指导您完成此过程。

对于ethereum和ganache,可以使用metamask,然后在react前端使用metamask账户进行交易。法定人数怎么样?

您可以利用类似于ethereumjs-wallet 的东西在代码中创建钱包并通过Quorum web3.js 库发送交易。然后,您需要将这些钱包映射到链外数据库中的用户,这会导致您的下一个问题。

我怎样才能登录?或者老师和学生是否需要知道他们帐户的私钥?

您可以通过 IDP 在 Web 应用程序中处理身份验证,如果您有适当的访问权限,学生和教师已经拥有现有凭据。否则,您可以通过类似于Auth0 的方式将 SSO 与众所周知的 IDP 结合使用。

您的流程本质上包括首先让用户进行身份验证,然后在首次身份验证时将其身份与生成的以太坊钱包绑定,并将这些绑定身份保存到链外数据库。后续的身份验证将从链下数据库中提取持久的钱包信息,并将其用于交易签名。其他考虑因素包括利用适当的密钥管理服务以及利用HSM进行安全交易签名。