ether

package
v0.0.0-...-d73b759 Latest Latest
Warning

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

Go to latest
Published: May 17, 2019 License: Apache-2.0 Imports: 8 Imported by: 2

Documentation

Index

Constants

View Source
const (

	// StandardScryptN is the N parameter of Scrypt encryption algorithm, using 256MB
	// memory and taking approximately 1s CPU time on a modern processor.
	StandardScryptN = 1 << 18

	// StandardScryptP is the P parameter of Scrypt encryption algorithm, using 256MB
	// memory and taking approximately 1s CPU time on a modern processor.
	StandardScryptP = 1

	// LightScryptN is the N parameter of Scrypt encryption algorithm, using 4MB
	// memory and taking approximately 100ms CPU time on a modern processor.
	LightScryptN = 1 << 12

	// LightScryptP is the P parameter of Scrypt encryption algorithm, using 4MB
	// memory and taking approximately 100ms CPU time on a modern processor.
	LightScryptP = 6

	// VeryLightScryptN VeryLightScryptN
	VeryLightScryptN = 2
	// VeryLightScryptP VeryLightScryptP
	VeryLightScryptP = 1
)

Variables

View Source
var EthClient *ethclient.Client

EthClient EthClient

Functions

func GetEthClient

func GetEthClient() *ethclient.Client

GetEthClient GetEthClient

func LoadEthClient

func LoadEthClient()

LoadEthClient LoadEthClient

Types

type Keystore

type Keystore struct {
}

Keystore Keystore

var Ks Keystore

Ks Keystore

func (*Keystore) GenKeystore

func (ks *Keystore) GenKeystore(key *keystore.Key, passphrase string) ([]byte, error)

GenKeystore GenKeystore

func (*Keystore) NewKey

func (ks *Keystore) NewKey() (*keystore.Key, error)

NewKey NewKey

func (*Keystore) Update

func (ks *Keystore) Update(keyjson []byte, passphrase, newPassphrase string) ([]byte, error)

Update Update

Jump to

Keyboard shortcuts

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