util

package
v0.0.18 Latest Latest
Warning

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

Go to latest
Published: Feb 7, 2023 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CreateMSPDirectory

func CreateMSPDirectory(directory string, identity *identity.Identity) error

CreateMSPDirectory creates an MSP directory on disk suitable for the peer or orderer to use.

func GetHomeDirectory

func GetHomeDirectory() (string, error)

GetHomeDirectory returns the Microfab home directory.

func MarshalOrPanic

func MarshalOrPanic(pb proto.Message) []byte

MarshalOrPanic marshals the specified Protocol Buffer message into a byte array, and panics on failure.

func UnmarshalOrPanic

func UnmarshalOrPanic(b []byte, m proto.Message)

UnmarshalOrPanic unmarshals the specified byte array into a Protocol Buffer message, and panics on failure.

Types

This section is empty.

Jump to

Keyboard shortcuts

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