Versions in this module Expand all Collapse all v0 v0.3.0 Dec 25, 2017 Changes in this version + func CmpPrice(x, y string) (int, error) + func DirectoryExists(p string) bool + func EqualAddresses(a, b common.Address) bool + func ExtractMethod(fullMethod string) string + func ForwardMetadata(ctx context.Context) context.Context + func GenerateCert(ethpriv *ecdsa.PrivateKey, validPeriod time.Duration) (cert []byte, key []byte, err error) + func GetAvailableIPs() (availableIPs []net.IP, err error) + func GetPlatformName() string + func GetUserHomeDir() (homeDir string, err error) + func LoadYamlFile(from string, to interface{}) error + func MakeGrpcClient(ctx context.Context, addr string, creds credentials.TransportCredentials, ...) (*grpc.ClientConn, error) + func MakeGrpcServer(creds credentials.TransportCredentials, extraopts ...grpc.ServerOption) *grpc.Server + func MakeWalletAuthenticatedClient(ctx context.Context, creds credentials.TransportCredentials, endpoint string, ...) (*grpc.ClientConn, error) + func NewTLS(c *tls.Config) credentials.TransportCredentials + func NewWalletAccess(wallet *SelfSignedWallet) credentials.PerRPCCredentials + func NewWalletAuthenticator(c credentials.TransportCredentials, wallet ethcommon.Address) credentials.TransportCredentials + func ParseBigInt(s string) (*big.Int, error) + func ParseEndpoint(endpoint string) (string, ethcommon.Address, error) + func ParseEndpointPort(s string) (string, error) + func PubKeyToAddr(key ecdsa.PublicKey) common.Address + func PubKeyToString(key ecdsa.PublicKey) string + func VerifyEqualPrice(x, y string) error + func VerifySelfSignedWallet(signedWallet string) (string, error) + type EthAuthInfo struct + TLS credentials.TLSInfo + Wallet ethcommon.Address + func (e EthAuthInfo) AuthType() string + type HitlessCertRotator interface + Close func() + GetCertificate func(*tls.ClientHelloInfo) (*tls.Certificate, error) + GetClientCertificate func(*tls.CertificateRequestInfo) (*tls.Certificate, error) + func NewHitlessCertRotator(ctx context.Context, ethPriv *ecdsa.PrivateKey) (HitlessCertRotator, *tls.Config, error) + type ImmediateTicker struct + C <-chan time.Time + func NewImmediateTicker(d time.Duration) *ImmediateTicker + func (t *ImmediateTicker) Stop() + type PortBinding interface + Network func() string + Port func() uint16 + func ParsePortBinding(v string) (PortBinding, error) + type SelfSignedWallet struct + Message string + func NewSelfSignedWallet(key *ecdsa.PrivateKey) (*SelfSignedWallet, error) + type WalletAccess struct + func (c WalletAccess) GetRequestMetadata(ctx context.Context, uri ...string) (map[string]string, error) + func (c WalletAccess) RequireTransportSecurity() bool + type WalletAuthenticator struct + Wallet ethcommon.Address + func (w *WalletAuthenticator) ClientHandshake(ctx context.Context, arg string, conn net.Conn) (net.Conn, credentials.AuthInfo, error) + func (w *WalletAuthenticator) ServerHandshake(conn net.Conn) (net.Conn, credentials.AuthInfo, error) v0.2.1 Aug 4, 2017 Changes in this version + func GetLocalIP() string + func GetPublicIP() (net.IP, error)