keystore

package
v0.0.0-...-868bdbc Latest Latest
Warning

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

Go to latest
Published: Sep 8, 2020 License: AGPL-3.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func MarshalJSON

func MarshalJSON(key *Key) (j []byte, err error)

MarshalJSON ...

func UnmarshalJSON

func UnmarshalJSON(j []byte, key *Key) (err error)

UnmarshalJSON - ...

Types

type CryptoJSON

type CryptoJSON struct {
	KDF       string                 `json:"kdf"`
	KDFParams map[string]interface{} `json:"kdfparams"`
}

CryptoJSON ...

type Key

type Key struct {
	PrivKeySP secp256k1.PrivKeySecp256k1 `json:"privKeySp"`
}

Key ...

func LoadKeyUsingPrivKey

func LoadKeyUsingPrivKey(filePath string) (*Key, error)

LoadKeyUsingPrivKey - Loads and decrypts the key from disk.

Jump to

Keyboard shortcuts

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