keyStore

package
v0.0.0-...-32f009b Latest Latest
Warning

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

Go to latest
Published: Dec 7, 2018 License: MIT Imports: 9 Imported by: 4

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Store

type Store struct {
	// contains filtered or unexported fields
}

func NewFromMnemonic

func NewFromMnemonic(mnemonic mnemonic.Mnemonic) (Store, error)

Create a new store from the mnemonic and migrate it

func UnmarshalStore

func UnmarshalStore(keyStore string) (Store, error)

func (Store) GetKey

func (s Store) GetKey(key string) (string, error)

Get a value from the keystore

func (Store) GetMnemonic

func (s Store) GetMnemonic() mnemonic.Mnemonic

Get the mnemonic

func (Store) Marshal

func (s Store) Marshal() ([]byte, error)

Return the plain keys store

func (Store) WasMigrated

func (s Store) WasMigrated() bool

Did the keystore changed (happen after a migration)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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