Files
admin 3ad3f30929 docs(tools): 国密链真链复现脚本与证据入库,避免散落 /tmp 后丢失
- 新增 tools/fisco-realnode/:真链实证期用过的 Python SDK 发送器
  (fj-sdk/)、Java JNI 独立交叉验证探针 (jni/)、TARS 编解码辅助 (tars/),
  作为审计轨迹留档,便于回看签名口径根因。
- 新增 example.chain.json(非密钥,可入库)与 README.md 索引:明确
  规范入口 (selftest-fisco-contract.py 主门禁第22条) 与审计轨迹的分工、
  复现所需环境变量、下载项、密钥与诚实边界。
- .gitignore 屏蔽私钥 (*.pem/*.key)、下载型二进制 (jar/tar.gz) 与大证据
  blob,防止密钥或体积大的文件进 git 历史。
2026-11-08 14:53:51 +08:00

11 lines
535 B
Python
Raw Permalink 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.
import re
p = '/tmp/fj-sdk/src/org/fisco/bcos/sdk/v3/transaction/manager/transactionv1/ProxySignTransactionManager.java'
s = open(p, encoding='utf-8', errors='replace').read()
# 找 TARS 字段声明(形如: private X field; / @TarsField ...)
for m in re.finditer(r'(dataHash|signature|abi|attribute|input|to|value|gasPrice|gasLimit|maxFeePerGas|maxPriorityFeePerGas|blockLimit|nonce|chainId|groupId|version|extension|extraData|txType)\s*;', s):
a = max(0, m.start() - 320)
print(repr(s[a:m.end()]))
print('-----')