utils

package
v0.0.0-...-82e382c Latest Latest
Warning

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

Go to latest
Published: Jun 10, 2021 License: Apache-2.0 Imports: 15 Imported by: 0

Documentation

Index

Constants

View Source
const (
	Prohibited      = "p"
	TrustedPeer     = "P"
	ValidCA         = "c"
	TrustedCAClient = "T"
	TrustedCAServer = "C"
	UserCert        = "u"
	SendWarning     = "w"
	None            = ""
)

Variables

This section is empty.

Functions

func GenerateAuthBind

func GenerateAuthBind(privateKey *ecdsa.PrivateKey, client *ethclient.Client, gasLimit uint64) *bind.TransactOpts

func GenerateTrustAttrs

func GenerateTrustAttrs(SSL string, SMIME string, JARXPI string) string

func LoadPrivateKey

func LoadPrivateKey(config *Config) *ecdsa.PrivateKey

func VerboseTime

func VerboseTime(category string, verbose bool)

Types

type CertEntry

type CertEntry struct {
	Nickname string
	SSL      string
	SMIME    string
	JARXPI   string
}

type CertUtil

type CertUtil struct {
	NssDatabaseDirectory string
}

func (CertUtil) AddSSL

func (certutil CertUtil) AddSSL(nickname string, certPath string, trustAttrs string) error

func (CertUtil) List

func (certutil CertUtil) List() ([]*CertEntry, error)

type Config

type Config struct {
	EthClientUrl         string
	EthPrivateKey        string
	EthPrivateKeyFile    string
	SizzleAddress        string
	NssDatabaseDirectory string
}

func LoadConfig

func LoadConfig() *Config

Jump to

Keyboard shortcuts

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