manager

package
v2.0.0-alpha+incompatible Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 9, 2019 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AllIssuingValidator

type AllIssuingValidator struct {
	Deserializer identity.Deserializer
}

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

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

type FabricIdentityDeserializerManager struct {
}

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

func (*FabricIdentityDeserializerManager) Deserializer

type FabricTokenOwnerValidator

type FabricTokenOwnerValidator struct {
	Deserializer identity.Deserializer
}

FabricTokenOwnerValidator checks that an owner is valid identity in a given channel

func (*FabricTokenOwnerValidator) Validate

func (v *FabricTokenOwnerValidator) Validate(owner *token.TokenOwner) error

type Manager

type Manager struct {
	IdentityDeserializerManager identity.DeserializerManager
}

Manager is used to access TMS components.

func (*Manager) GetTxProcessor

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

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

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL