【Hyperledger Fabric】Identity-通过一个简单情境理解身份(identity)的使用

原文:https://hyperledger-fabric.readthedocs.io/en/release-1.1/identity/identity.html

A Simple Scenario to Explain The Use of an Identity

通过一个简单情境理解身份(identity)的使用

Imagine that you visit a supermarket to buy some groceries. At the checkout you see a sign that says that only Visa, Mastercard and AMEX cards are accepted. If you try to pay with a different card – let’s call it an “ImagineCard” – it doesn’t matter whether the card is authentic and you have sufficient funds in your account. It will be not be accepted.

想象你正在超市买东西。在收银处你看见了一个标志,上面说:“信用卡只支持Visa, Mastercard and AMEX”。如果你想通过其他类型的卡支付,让我们把它称作“想象卡”(imaginCard)。因为收银处不支持这张“想象卡”,所以它没有任何用处,无论是否是真的或者你是否有充足的资金在账户上。

【Hyperledger Fabric】Identity-通过一个简单情境理解身份(identity)的使用

Having a valid credit card is not enough – it must also be accepted by the store! PKIs and MSPs work together in the same way – PKI provides a list of identities, and an MSP says which of these are members of a given organization that participates in the network.

拥有一个有效的信用卡是不够的——它必须要被商店认可!通过PKIs和MSP的共同协作,PKI提供一系列的身份,MSP决定哪些身份在这个网络上是被认可的。

PKI certificate authorities and MSPs provide a similar combination of functionalities. A PKI is like a card provider – it dispenses many different types of verifiable identities. An MSP, on the other hand, is like the list of card providers accepted by the store – determining which identities are the trusted members (actors) of the store payment network. MSPs turn verifiable identities into the members of a blockchain network.

PKI 提供权力资质,MSPs提供了一个相似的功能性的结合。PKI就像一个发卡机构,它分发许多不同种类有效的身份;MSP就像被商店认可的卡类表,决定哪些身份能够被支付网络里的成员信任。MSPs把有效的身份转换为区块链网络中的成员。