utils

package
v0.9.2-rc0 Latest Latest
Warning

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

Go to latest
Published: Jan 18, 2021 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func LoadCertificateForAccount

func LoadCertificateForAccount(homedir string, key sdk.Address, keyring keyring.Keyring) (tls.Certificate, error)

LoadCertificateForAccount wraps LoadPEMForAccount and tls.X509KeyPair

Types

type PEMBlocks

type PEMBlocks struct {
	Cert []byte
	Priv []byte
	Pub  []byte
}

func LoadPEMForAccount

func LoadPEMForAccount(homedir string, key sdk.Address, keyring keyring.Keyring) (PEMBlocks, error)

LoadPEMForAccount load certificate/private key from file named as account name supplied in FlagFrom file must contain two PEM blocks, certificate followed by a private key

Jump to

Keyboard shortcuts

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