ubuntu-16.04 - python中的Hyperledger Sawtooth供应链交易示例
问题描述
我在 ubuntu 16.04 上成功构建并运行了供应链事务处理器。现在我想使用 python sdk 创建一个客户端事务。我提到了
https://sawtooth.hyperledger.org/docs/core/nightly/1-2/_autogen/sdk_submit_tutorial_python.html
和
https://sawtooth.hyperledger.org/docs/supply-chain/nightly/master/family_specification .html#transactions
作为参考。
但到目前为止,验证者总是拒绝我的交易并将其称为无效。我的 TP 运行正常并正在接收事务,但无法反序列化有效负载。
有没有人在 python 中有一个用于创建交易的示例脚本?例如创建一个新的代理或鱼?
解决方案
现在它起作用了。我能够从https://github.com/hyperledger/sawtooth-supply-chain/tree/master/protos为 python 生成 .proto 文件。安装supply-rest-api
验证器后接受我的有效负载。
推荐阅读
- azure - 在 Azure 中迁移集成运行时
- google-apps-script - 基于时间的触发器不触发?
- r - 在ggplot中显示热图问题
- asp.net-web-api2 - 如何提取我的 webhook 请求参数以在 google (WebAPI) 上执行操作
- javascript - 角模块不工作
- android - Kotlin 字节码不适用于 Android DataBinding
- dart - Flutter 复选框类:当我勾选一张卡片时,所有其他卡片也都被选中
- javascript - 如何更改 MUI 单选按钮选中的颜色?
- ios - 在一个视图控制器中强制横向方向后重置 Xcode 中的自动旋转(swift 4)
- r - 安装旧包 R