Documentation
¶
Index ¶
Constants ¶
View Source
const ( AmIAnEndorserKey = "services.network.fabric.fsc_endorsement.endorser" EndorsersKey = "services.network.fabric.fsc_endorsement.endorsers" PolicyType = "services.network.fabric.fsc_endorsement.policy.type" OneOutNPolicy = "1outn" AllPolicy = "all" )
View Source
const (
FSCEndorsementKey = "services.network.fabric.fsc_endorsement"
)
View Source
const InvokeFunction = "invoke"
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ChaincodeEndorsementService ¶
func NewChaincodeEndorsementService ¶
func NewChaincodeEndorsementService(tmsID token2.TMSID) *ChaincodeEndorsementService
type FSCService ¶
type FSCService struct {
TmsID token.TMSID
Endorsers []view.Identity
ViewManager ViewManager
PolicyType string
}
func NewFSCService ¶
func NewFSCService( fnsp *fabric.NetworkServiceProvider, tmsID token.TMSID, configuration tdriver.Configuration, viewRegistry ViewRegistry, viewManager ViewManager, identityProvider IdentityProvider, keyTranslator translator.KeyTranslator, getTranslator TranslatorProviderFunc, ) (*FSCService, error)
type IdentityProvider ¶
type RWSWrapper ¶
func (*RWSWrapper) DeleteState ¶
func (rwset *RWSWrapper) DeleteState(namespace string, key string) error
type RequestApprovalResponderView ¶
type RequestApprovalResponderView struct {
// contains filtered or unexported fields
}
func NewRequestApprovalResponderView ¶
func NewRequestApprovalResponderView(keyTranslator translator.KeyTranslator, getTranslator TranslatorProviderFunc) *RequestApprovalResponderView
type RequestApprovalView ¶
type RequestApprovalView struct {
TMSID token2.TMSID
TxID driver.TxID
RequestRaw []byte
// RequestAnchor, if not nil it will instruct the approver to verify the token request using this anchor and not the transaction it.
// This is to be used only for testing.
RequestAnchor string
// Nonce, if not nil it will be appended to the messages to sign.
// This is to be used only for testing.
Nonce []byte
// Endorsers are the identities of the FSC node that play the role of endorser
Endorsers []view.Identity
}
type ServiceProvider ¶
func NewServiceProvider ¶
func NewServiceProvider( fnsp *fabric.NetworkServiceProvider, configService common.Configuration, viewManager ViewManager, viewRegistry ViewRegistry, identityProvider IdentityProvider, keyTranslator translator.KeyTranslator, ) *ServiceProvider
type Translator ¶
type TranslatorProviderFunc ¶
type ViewManager ¶
type ViewRegistry ¶
Click to show internal directories.
Click to hide internal directories.