Documentation ¶
Index ¶
- type DCASStubWrapperFactory
- type ProtocolClientChannelProvider
- type SidetreeTxnCC
- func (cc *SidetreeTxnCC) Chaincode() shim.Chaincode
- func (cc *SidetreeTxnCC) GetDBArtifacts([]string) map[string]*ccapi.DBArtifacts
- func (cc *SidetreeTxnCC) Init(stub shim.ChaincodeStubInterface) pb.Response
- func (cc *SidetreeTxnCC) Invoke(stub shim.ChaincodeStubInterface) (resp pb.Response)
- func (cc *SidetreeTxnCC) Name() string
- func (cc *SidetreeTxnCC) Version() string
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type DCASStubWrapperFactory ¶ added in v0.1.5
type DCASStubWrapperFactory interface {
CreateDCASClientStubWrapper(coll string, stub shim.ChaincodeStubInterface) (dcasclient.DCAS, error)
}
DCASStubWrapperFactory creates a DCAS client wrapper around a stub
type ProtocolClientChannelProvider ¶ added in v0.1.5
type ProtocolClientChannelProvider interface {
ProtocolClientProviderForChannel(channelID string) (ctxcommon.ProtocolClientProvider, error)
}
ProtocolClientChannelProvider returns the protocol client provider for a given channel
type SidetreeTxnCC ¶
type SidetreeTxnCC struct { ProtocolClientChannelProvider DCASStubWrapperFactory // contains filtered or unexported fields }
SidetreeTxnCC ...
func New ¶ added in v0.1.1
func New(name string, pccp ProtocolClientChannelProvider, dcasClientFactory DCASStubWrapperFactory) *SidetreeTxnCC
New returns chaincode
func (*SidetreeTxnCC) Chaincode ¶ added in v0.1.1
func (cc *SidetreeTxnCC) Chaincode() shim.Chaincode
Chaincode returns the SidetreeTxn chaincode
func (*SidetreeTxnCC) GetDBArtifacts ¶ added in v0.1.1
func (cc *SidetreeTxnCC) GetDBArtifacts([]string) map[string]*ccapi.DBArtifacts
GetDBArtifacts returns Couch DB indexes for the 'docs' collection
func (*SidetreeTxnCC) Init ¶
func (cc *SidetreeTxnCC) Init(stub shim.ChaincodeStubInterface) pb.Response
Init - nothing to do for now
func (*SidetreeTxnCC) Invoke ¶
func (cc *SidetreeTxnCC) Invoke(stub shim.ChaincodeStubInterface) (resp pb.Response)
Invoke manages metadata lifecycle operations (writeContent, readContent)
func (*SidetreeTxnCC) Name ¶ added in v0.1.1
func (cc *SidetreeTxnCC) Name() string
Name returns the name of this chaincode
func (*SidetreeTxnCC) Version ¶ added in v0.1.2
func (cc *SidetreeTxnCC) Version() string
Version returns the version of this chaincode
Click to show internal directories.
Click to hide internal directories.