add input args and events to fabric-x transactions (#14)
this makes the Fabric-X parsed transactions (as long as they are created by the SDK endorser) have the same content as the Fabric transactions. The events and args are stored as blind writes under a known key, marshaled in Fabric-style protobufs.
Signed-off-by: Arne Rutjes arne123@gmail.com
版权所有:中国计算机学会技术支持:开源发展技术委员会
京ICP备13000930号-9
京公网安备 11010802032778号
Fabric-X Client SDK
This SDK provides a modular set of building blocks that can be used to develop client applications, endorsers, and custom components for Fabric-X. Some components are designed to be compatible with classic Fabric as well for easy reuse.
Status
This preview version can be used for testing and prototypes. It does not provide the level of resilience you would need for production yet, and APIs will change without warning.
Components
fabrictestfake network is used. It can also be pointed to real networks.For example, if you were building a block explorer, you would take the
network.Synchronizer, load it with anidentity.Signerand point to the committer sidecar. With help of theblocks.Processor, thefabric(x).Parserand a custom handler, you extract the information you want to store from the blocks that are coming in through the Synchronizer. Then you build your application around it.If you were building a chaincode endorser, you would use the same elements, as well as the
endorsement.ProposalBuilder, world state storage like the providedstate.VersionedDBwith astate.SimulationStoreon top. You might choose to expose the classic Fabric ProcessProposal API. To complete the picture, you could equip your client applications with an endorsement client fromnetwork.Peerand thenetwork.Submitter.