...

Package manager

import "github.com/hyperledger/fabric/token/tms/manager"
Overview
Index

Overview ▾

type AllIssuingValidator

AllIssuingValidator allows all members of a channel to issue new tokens.

type AllIssuingValidator struct {
    Deserializer identity.Deserializer
}

func (*AllIssuingValidator) Validate

func (p *AllIssuingValidator) Validate(creator identity.PublicInfo, tokenType string) error

Validate returns no error if the passed creator can issue tokens of the passed type,, an error otherwise.

type FabricIdentityDeserializerManager

FabricIdentityDeserializerManager implements an DeserializerManager by routing the call to the msp/mgmt package

type FabricIdentityDeserializerManager struct {
}

func (*FabricIdentityDeserializerManager) Deserializer

func (*FabricIdentityDeserializerManager) Deserializer(channel string) (identity.Deserializer, error)

type Manager

Manager is used to access TMS components.

type Manager struct {
    IdentityDeserializerManager identity.DeserializerManager
}

func (*Manager) GetTxProcessor

func (m *Manager) GetTxProcessor(channel string) (transaction.TMSTxProcessor, error)

GetTxProcessor returns a TMSTxProcessor that is used to process token transactions.