ethereum

package
v0.0.0-...-cc3fa8b Latest Latest
Warning

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

Go to latest
Published: Jan 29, 2020 License: MIT, MPL-2.0 Imports: 25 Imported by: 1

Documentation

Index

Constants

View Source
const (
	ProtocolKeystore    string = "keystore://"
	MaxKeystoreSize     int64  = 1024 // Just a heuristic to prevent reading stupid big files
	RequestPathImport   string = "import"
	RequestPathAccounts string = "accounts"
	PassphraseWords     int    = 9
	PassphraseSeparator string = "-"
)

Variables

This section is empty.

Functions

func Backend

func Backend() *backend

func Factory

func Factory(ctx context.Context, conf *logical.BackendConfig) (logical.Backend, error)

Factory returns a new backend as logical.Backend.

func FactoryType

func FactoryType(backendType logical.BackendType) logical.Factory

func New

func New() (interface{}, error)

New returns a new backend as an interface. This func is only necessary for builtin backend plugins.

Types

type Account

type Account struct {
	Address        string   `json:"address"` // Ethereum account address derived from the key
	Passphrase     string   `json:"passphrase"`
	KeystoreName   string   `json:"keystore_name"`
	RPC            string   `json:"rpc_url"`
	ChainID        string   `json:"chain_id"`
	Whitelist      []string `json:"whitelist"`
	Blacklist      []string `json:"blacklist"`
	JSONKeystore   []byte   `json:"json_keystore"`
	PendingBalance *big.Int `json:"pending_balance"`
	PendingNonce   uint64   `json:"pending_nonce"`
	PendingTxCount uint     `json:"pending_tx_count"`
}

type Contract

type Contract struct {
	Address string `json:"contract_address"`
	Hash    string `json:"tx_hash"`
}

Jump to

Keyboard shortcuts

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