eth

package
v0.0.0-...-f5bbbf4 Latest Latest
Warning

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

Go to latest
Published: May 2, 2023 License: Apache-2.0 Imports: 22 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Connector

type Connector struct {
	// contains filtered or unexported fields
}

func NewConnector

func NewConnector(store stores.KeyStore, db database.ETHAccounts, authorizator auth.Authorizator, logger log.Logger) *Connector

func (Connector) Create

func (Connector) Decrypt

func (c Connector) Decrypt(ctx context.Context, addr common.Address, data []byte) ([]byte, error)

func (Connector) Delete

func (c Connector) Delete(ctx context.Context, addr ethcommon.Address) error

func (Connector) Destroy

func (c Connector) Destroy(ctx context.Context, addr ethcommon.Address) error

func (Connector) Encrypt

func (c Connector) Encrypt(ctx context.Context, addr ethcommon.Address, data []byte) ([]byte, error)

func (Connector) Get

func (Connector) GetDeleted

func (c Connector) GetDeleted(ctx context.Context, addr ethcommon.Address) (*entities.ETHAccount, error)

func (Connector) Import

func (c Connector) Import(ctx context.Context, id string, privKey []byte, attr *entities.Attributes) (*entities.ETHAccount, error)

func (Connector) List

func (c Connector) List(ctx context.Context, limit, offset uint64) ([]common.Address, error)

func (Connector) ListDeleted

func (c Connector) ListDeleted(ctx context.Context, limit, offset uint64) ([]common.Address, error)

func (Connector) Restore

func (c Connector) Restore(ctx context.Context, addr ethcommon.Address) error

func (Connector) Sign

func (c Connector) Sign(ctx context.Context, addr common.Address, data []byte) ([]byte, error)

func (Connector) SignEEA

func (c Connector) SignEEA(ctx context.Context, addr common.Address, chainID *big.Int, tx *types.Transaction, args *ethereum.PrivateArgs) ([]byte, error)

func (Connector) SignMessage

func (c Connector) SignMessage(ctx context.Context, addr common.Address, data []byte) ([]byte, error)

func (Connector) SignPrivate

func (c Connector) SignPrivate(ctx context.Context, addr common.Address, tx *quorumtypes.Transaction) ([]byte, error)

func (Connector) SignTransaction

func (c Connector) SignTransaction(ctx context.Context, addr common.Address, chainID *big.Int, tx *types.Transaction) ([]byte, error)

func (Connector) SignTypedData

func (c Connector) SignTypedData(ctx context.Context, addr common.Address, typedData *core.TypedData) ([]byte, error)

func (Connector) Update

Jump to

Keyboard shortcuts

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