keystore

package
v0.0.0-...-8f649d9 Latest Latest
Warning

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

Go to latest
Published: Aug 14, 2020 License: LGPL-3.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Keystore

type Keystore interface {
	Get() (*ecdsa.PrivateKey, error)
}

Keystore stores the key for the enode

type LocalKeystore

type LocalKeystore struct {
	Path string
}

LocalKeystore loads the key from a local file

func NewLocalKeystore

func NewLocalKeystore(path string) *LocalKeystore

NewLocalKeystore creates a new local key store

func (*LocalKeystore) Get

func (k *LocalKeystore) Get() (*ecdsa.PrivateKey, error)

Get implements the keystore interface

Jump to

Keyboard shortcuts

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