ethereum

package
v0.0.0-...-392a4b4 Latest Latest
Warning

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

Go to latest
Published: Aug 28, 2018 License: Apache-2.0 Imports: 9 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Account

type Account struct {
	PrivateKey *ecdsa.PrivateKey
	Address    common.Address
}

type EthereumGenerator

type EthereumGenerator struct {
	SearchPrefix     string
	RunTimeInSeconds int64
}

func InitializeEthereumGenerator

func InitializeEthereumGenerator(searchPrefix string, runTimeInSeconds int64) *EthereumGenerator

InitializeEthereumGenerator is used to initialize our ethereum address generation service

func (*EthereumGenerator) CreateAccount

func (eg *EthereumGenerator) CreateAccount() (*Account, error)

CreateAccount is used to create an ethereum account

func (*EthereumGenerator) Match

func (eg *EthereumGenerator) Match(acct *Account) bool

Match is used to check if the provided ethereum account matches our search

func (*EthereumGenerator) Run

func (eg *EthereumGenerator) Run() (*Success, error)

Run is used to execute our ethereum address generation service when called from our distributor

func (*EthereumGenerator) RunAPI

func (eg *EthereumGenerator) RunAPI(c *gin.Context)

RunAPI is used to execute our ethereum address generation service

type Success

type Success struct {
	Address       string
	Key           string
	TotalAttempts int64
}

Jump to

Keyboard shortcuts

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