keystore

package
v0.3.5 Latest Latest
Warning

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

Go to latest
Published: Nov 27, 2019 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DumpPrivKey

func DumpPrivKey(outDir string, privKey *ecdsa.PrivateKey) error

DumpPrivKey converts an ecdsa private key into a hex string and writes it to a file with UNIX permissions 600.

func GetKey

func GetKey(keystore, moniker, passwordFile string) (*ecdsa.PrivateKey, error)

GetKey looks in the keystore for a keyfile corresponding to the provided moniker. If it exists, it decrypts it and returns the private key. Otherwise, it returns an error

Types

This section is empty.

Jump to

Keyboard shortcuts

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