keystore

package
v0.9.0 Latest Latest
Warning

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

Go to latest
Published: Jul 21, 2022 License: GPL-3.0 Imports: 13 Imported by: 0

Documentation

Overview

Package keystore provides functions to store and load private keys to/from EIP 2335 (https://eips.ethereum.org/EIPS/eip-2335) compatible keystore files. Passwords are expected/created in files with same identical names as the keystores, except with txt extension.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func LoadKeys

func LoadKeys(dir string) ([]*bls_sig.SecretKey, error)

LoadKeys returns all secrets stored in dir/keystore-*.json 2335 keystore files using password stored in dir/keystore-*.txt.

func StoreKeys

func StoreKeys(secrets []*bls_sig.SecretKey, dir string) error

StoreKeys stores the secrets in dir/keystore-%d.json EIP 2335 keystore files with new random passwords stored in dir/keystore-%d.txt.

Types

This section is empty.

Jump to

Keyboard shortcuts

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