python 中的 Hyperledger Sawtooth 供应链交易示例

Hyperledger Sawtooth Supply Chain transaction example in python

我在 ubuntu 16.04 上成功构建并 运行 用于供应链的 t运行saction 处理器。现在我想使用 python sdk 创建一个客户端 t运行saction。我提到了
https://sawtooth.hyperledger.org/docs/core/nightly/1-2/_autogen/sdk_submit_tutorial_python.htmlhttps://sawtooth.hyperledger.org/docs/supply-chain/nightly/master/family_specification.html#transactions 作为参考。

但到目前为止验证器总是拒绝我的 t运行saction 并认为它无效。我的 TP 运行 正确并且正在接收 t运行saction 但无法反序列化负载。

有人在 python 中有用于创建 t运行saction 的示例脚本吗?例如创建一个新的代理或鱼?

现在可以了。我能够从 https://github.com/hyperledger/sawtooth-supply-chain/tree/master/protos 为 python 生成 .proto 文件。安装 supply-rest-api 后,验证器接受我的有效载荷。