Skip to content

fabric-smart-client · 概述

仓库基本事实

出处
Module pathgithub.com/hyperledger-labs/fabric-smart-clientgo.mod:1
Go 版本1.26.3go.mod:3
Go 文件总数1270find . -name '*.go' 统计
顶层目录cmd/docs/integration/node/platform/pkg/scripts/tools/ci/目录树
主要文件Makefile(208 行)、go.mod(304 行)、deps.gochecks.mk

README 自述

来源:README.md

Fabric Smart Client (FSC) is a next-generation client-side framework for Hyperledger Fabric and Fabric-x. It lets you focus on business logic and distributed workflows, rather than low-level DLT details.

—— README.md:8-11

来源 README,关键事实:

  • 使命README.md:11):抽象 DLT 复杂性,让开发者轻松构建分布式应用。
  • 五大特性README.md:13-18):
    1. 高级 API 抽象 DLT 复杂性
    2. 点对点客户端覆盖
    3. 高级交易编排
    4. Fabric 与 Fabric-x 网络集成(支持多版本)
    5. Token SDK 作为分布式账本应用示例
  • 快速链接README.md:20-23):docs/README.mdintegration/fabric/integration/fabricx/fabric-token-sdk
  • 社区README.md:52-54):LFDT Discord #fabric-smart-client;周三 13:00 CET Zoom。
  • 版本控制README.md:56-58):SemVer。
  • 免责声明README.md:60-62):"as-is,未经正式审计;API 可能变化"。
  • 许可证README.md:64):Apache 2.0(代码)+ CC-BY-4.0(文档)。

FSC 定位(基于 docs/core-concepts.md

来源:docs/core-concepts.md:1-11

next-generation Client SDK for Fabric and Fabric-x,简化开发,把业务流程置于中心,隐藏 Fabric(x) 的不必要复杂性

业务流程定义docs/core-concepts.md:6-11):"相关且结构化的活动集合,由业务方承担,特定步骤序列服务特定业务目标。一个 View 是业务方在流程中需要执行的步骤序列。"

FSC 设计三要素

来源:docs/core-concepts.md:65-88

概念含义
View一个 interactive protocol 中一方的计算单位
Identity身份容器(X.509、ECDSA、Idemix)
Session两方间的双向通信信道,唯一 ID,有建立和维护的生命周期

与生态的位置

下一步

  • 架构 — Platform 分层 / View Platform 内部
  • 快速开始make install-tools + fsccli + Ping Pong 示例
  • 模块详解platform/viewplatform/fabricplatform/fabricxintegration/
  • API 参考 — View / Context / Session / fsccli 子命令