util

package
v0.7.4 Latest Latest
Warning

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

Go to latest
Published: May 11, 2022 License: MIT Imports: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrOrdererGroupNotFound = errors.New(`orderer addresses not found`)
)

Functions

func CreateCompositeKey added in v0.1.4

func CreateCompositeKey(objectType string, attributes []string) (string, error)

func GetEventFromEnvelope

func GetEventFromEnvelope(envelopeData []byte) (*peer.ChaincodeEvent, error)

GetEventFromEnvelope Deprecated: use proto.ParseBlock

func GetOrdererHostFromChannelConfig added in v0.4.0

func GetOrdererHostFromChannelConfig(conf *common.Config) (string, error)

func IsErrUnsupportedTxType added in v0.3.0

func IsErrUnsupportedTxType(err error) bool

func LoadKeyPairFromMSP deprecated

func LoadKeyPairFromMSP(mspPath string) (*x509.Certificate, interface{}, error)

Deprecated: use identity.SignerFromMSPPath to create identity legacy method. loads ONLY cert from signcerts dir

func LoadKeypairByCert deprecated added in v0.7.0

func LoadKeypairByCert(mspPath string, certRaw []byte) (*x509.Certificate, interface{}, error)

Deprecated: use identity.KeyPairForCert

func ProceedChannelUpdate added in v0.4.0

func ProceedChannelUpdate(
	ctx context.Context,
	channelName string,
	update *common.ConfigUpdate,
	orderer api.Orderer,
	ids []msp.SigningIdentity,
) error

ProceedChannelUpdate - sends channel update config with signatures of all provided identities

func SplitCompositeKey added in v0.1.4

func SplitCompositeKey(compositeKey string) (string, []string)

Types

type ErrUnsupportedTxType added in v0.3.0

type ErrUnsupportedTxType struct {
	Type string
}

func (*ErrUnsupportedTxType) Error added in v0.3.0

func (e *ErrUnsupportedTxType) Error() string

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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