Documentation ¶
Index ¶
- func IsChannelUnknownErr(err error) bool
- func IsUnderfundedErr(err error) bool
- func NewAccountWithSigner(privateKeyPEMPath string) (identity.Sign, *wallet.Account, error)
- func NewGrpcConnection(gatewayPeer, peerEndpoint, peerTLSCertPath string) (*grpc.ClientConn, error)
- func NewIdentity(mspID, certPath string) (*identity.X509Identity, *wallet.Address, adj.AccountID, error)
- func ParseClientErr(err error) string
- func ReadCertificate(filename string) (*x509.Certificate, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func IsChannelUnknownErr ¶
IsChannelUnknownErr checks if the given error indicates the channel is unknown.
func IsUnderfundedErr ¶
IsUnderfundedErr checks if the given error indicates the channel is underfunded.
func NewAccountWithSigner ¶
NewAccountWithSigner generates a new account and singer based on the given path of the private key file.
func NewGrpcConnection ¶
func NewGrpcConnection(gatewayPeer, peerEndpoint, peerTLSCertPath string) (*grpc.ClientConn, error)
NewGrpcConnection creates a gRPC connection to the Gateway server.
func NewIdentity ¶
func NewIdentity(mspID, certPath string) (*identity.X509Identity, *wallet.Address, adj.AccountID, error)
NewIdentity creates a client identity for a Gateway connection using an X.509 certificate. It also returns the corresponding Fabric backend Address.
func ParseClientErr ¶
ParseClientErr parses the full details of err as a fabric client error.
func ReadCertificate ¶
func ReadCertificate(filename string) (*x509.Certificate, error)
ReadCertificate takes the given path to the certificate file, reads it and returns a x509.Certificate.
Types ¶
This section is empty.