Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我想知道如何在 Hyperledged 智能合约中存储和发送一些图片或链接到一些资源的交易。
我应该在代码的哪里做?
在 Hyperledger Fabric 链码中将数据存储到区块链的链码函数是:
PutState(key string, value []byte)
该值可以是任何字节数组,可以代表要存储在区块链上的图片,或者是指向区块链外部资源的链接。