Documentation ¶
Index ¶
- type LocalWallet
- type LocalWalletOption
- func WithBaseDir(baseDir string) LocalWalletOption
- func WithKeyStore(keyStore string) LocalWalletOption
- func WithMSPId(mspID string) LocalWalletOption
- func WithSignIndentity(signIdentity string) LocalWalletOption
- func WithTLSFolder(tlsFolder string) LocalWalletOption
- func WithTLSHostName(tlsHostName string) LocalWalletOption
- func WithTLSRootCAFile(tlsRootCAFile string) LocalWalletOption
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