Files
EntitleForge-SDK-go/sdk/doc.go
T
iceking2nd fc4ef4e644
sdk-ci / test (push) Successful in 2m19s
sdk-release / release (push) Failing after 50s
sdk-release / cleanup (push) Successful in 5s
refactor(crypto): 拆分签发与验证,新增 sign 包
- crypto 仅保留验证:验签、信任链、CRL/verdict、指纹
- 新增 sign 包:SignToken/SignBundle、密钥生成、私钥加解密
- TrustChain 移除 SignBundle 方法,改由 Bundle() 导出快照,
  避免反射可达性把 SignToken 链入纯验证二进制
- Bundle 快照单次读锁,修复旧 SignBundle 递归读锁死锁窗口
- 新增 golden token 与 go tool nm 符号级回归测试
2026-11-15 13:26:50 +08:00

13 lines
725 B
Go
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
// Package sdk 是嵌入客户端的益铸(EntitleForge)Go SDK(准公共 API)。
//
// 设计依据:docs/design/07-sdk.md。零第三方依赖(仅标准库 + internal 共享实现),
// 集成三行起步、验证失败走状态机而非 panic、查询走 atomic 快照永不阻塞。
//
// 文件模式:WithLicenseFile + WithTrustChain → Start(mtime 轮询热更新)。
// 远程模式:WithRemoteServer + WithLicenseKey → Start 自动激活 + 心跳循环,
// 断连进入 GRACE(宽限期内查询正常),耗尽转 EXPIRED;terminate 转 REVOKED 终态。
//
// 核心验证逻辑由 license 与 crypto 提供(服务端与 SDK 共享
// 同一份实现,禁止两套)。
package sdk