Skip to content

优化:发布 @bfchain/core* 到 npm 并整合 SDK 源代码 #101

@Gaubee

Description

@Gaubee

背景

当前 BioForest SDK 使用预编译的 bioforest-chain-bundle.cjs 文件。为了项目「自举」和代码透明,需要整合源代码。

阻塞原因

@bfchain/core* 系列包未发布到 npm,且有复杂的内部依赖关系:

  • @bfchain/core-crypto 依赖 @bfchain/core-crypto-tweetnacl, @bfchain/core-crypto-ed2curve
  • 这些子包不在 legacy-apps/internal/@bfchain/ 中

待办

  1. 整理 @bfchain/core* 系列包的依赖关系
  2. 发布 @bfchain/core* 系列包到 npm
  3. 删除 bioforest-chain-bundle.cjs
  4. 从源代码整合 SDK 到 src/services/bioforest-sdk/internal/
  5. 配置 Vite 构建支持 tree-shaking

当前改进(Issue #97

  • ✅ 创世块移至 public/configs/genesis/,按需 fetch
  • ✅ SDK 支持多链(通过 chainId 加载对应创世块)
  • ✅ 白皮书文档已更新

相关

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions