localwallet

package
v0.0.0-...-bfb9a17 Latest Latest
Warning

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

Go to latest
Published: Jan 28, 2024 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type LocalWallet

type LocalWallet struct {
	// contains filtered or unexported fields
}

LocalWallet is a wallet implementation that stores identities in the local filesystem

func NewLocalWallet

func NewLocalWallet(options ...LocalWalletOption) (*LocalWallet, error)

func (*LocalWallet) Identity

func (w *LocalWallet) Identity() (identity.Identity, error)

Sign returns the signing implementation to use for signing transactions

func (*LocalWallet) Sign

func (w *LocalWallet) Sign() (identity.Sign, error)

Sign returns the signing implementation to use for signing transactions

func (*LocalWallet) TransportCredentials

func (w *LocalWallet) TransportCredentials() (credentials.TransportCredentials, error)

TransportCredentials returns the credentials to use for the gRPC connection

type LocalWalletOption

type LocalWalletOption func(*LocalWallet)

LocalWalletOption is a functional option for configuring the LocalWallet

func WithBaseDir

func WithBaseDir(baseDir string) LocalWalletOption

WithBaseDir sets the base directory for the LocalWallet

func WithKeyStore

func WithKeyStore(keyStore string) LocalWalletOption

WithKeyStore sets the key store for the LocalWallet

func WithMSPId

func WithMSPId(mspID string) LocalWalletOption

WithMSPId sets the MSP ID for the LocalWallet

func WithSignIndentity

func WithSignIndentity(signIdentity string) LocalWalletOption

WithSignIndentityDir sets the sign identity directory for the LocalWallet

func WithTLSFolder

func WithTLSFolder(tlsFolder string) LocalWalletOption

WithTLSFolder sets the TLS folder for the LocalWallet

func WithTLSHostName

func WithTLSHostName(tlsHostName string) LocalWalletOption

WithTLSHostName sets the TLS host name for the LocalWallet

func WithTLSRootCAFile

func WithTLSRootCAFile(tlsRootCAFile string) LocalWalletOption

WithTLSRootCAFile sets the TLS root CA file for the LocalWallet

Jump to

Keyboard shortcuts

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