fabric 中的系统链码是什么?

What is System Chaincode in fabric?

我正在通过以下 link 来了解 fabric 的架构,他们在其中提到 "There may exist one or more special chain codes for management functions and parameters, collectively called system chain codes."

https://github.com/hyperledger/fabric/blob/master/docs/source/arch-deep-dive.rst

请大神帮我了解一下什么是系统链码,以及系统链码执行了什么样的功能。

官方文档可以帮助您理解它。

System chaincodes are specialized chaincodes that run as part of the peer process as opposed to user chaincodes that run in separate docker containers. As such they have more access to resources in the peer and can be used for implementing features that are difficult or impossible to be implemented through user chaincodes

现有系统链码:

  • LSCC(生命周期系统链码)处理生命周期请求,例如安装、实例化和升级链码。
  • CSCC(配置系统链代码)处理对等端的通道配置。
  • QSCC(Query system chaincode)提供获取区块、交易等账本查询API
  • ESCC(背书系统链码)通过签署交易提案响应来处理背书。
  • VSCC(验证系统链码)处理交易验证,包括检查背书策略和多版本并发控制。

参考页面: