wallet

package
v0.0.0-...-9b281af Latest Latest
Warning

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

Go to latest
Published: Jan 29, 2022 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ArweaveWallet

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

func Arweave

func Arweave(jwk []byte) (*ArweaveWallet, error)

func (*ArweaveWallet) PrivateKey

func (a *ArweaveWallet) PrivateKey() PrivateKey

PrivateKey ...

func (*ArweaveWallet) PrivateKeyBytes

func (a *ArweaveWallet) PrivateKeyBytes() []byte

PrivateKeyBytes ...

func (*ArweaveWallet) PublicKey

func (a *ArweaveWallet) PublicKey() PublicKey

PublicKey ...

func (*ArweaveWallet) PublicKeyBytes

func (a *ArweaveWallet) PublicKeyBytes() []byte

PublicKeyBytes ...

type MockNetwork

type MockNetwork struct {
	mock.Mock
}

MockNetwork is an autogenerated mock type for the Network type

func (*MockNetwork) CreateTransaction

func (_m *MockNetwork) CreateTransaction(amount *big.Int, to string) error

CreateTransaction provides a mock function with given fields: amount, to

func (*MockNetwork) CurrentHeight

func (_m *MockNetwork) CurrentHeight() int

CurrentHeight provides a mock function with given fields:

func (*MockNetwork) Fee

func (_m *MockNetwork) Fee() *big.Int

Fee provides a mock function with given fields:

func (*MockNetwork) Name

func (_m *MockNetwork) Name() string

Name provides a mock function with given fields:

func (*MockNetwork) PublicKey

func (_m *MockNetwork) PublicKey() string

PublicKey provides a mock function with given fields:

func (*MockNetwork) SendTransaction

func (_m *MockNetwork) SendTransaction(data interface{}) error

SendTransaction provides a mock function with given fields: data

func (*MockNetwork) Tx

func (_m *MockNetwork) Tx(transactionID string) (network.Transaction, error)

Tx provides a mock function with given fields: transactionID

type Network

type Network interface {
	Name() string
	Tx(transactionID string) (network.Transaction, error)
	CurrentHeight() int
	Fee() *big.Int
	SendTransaction(data interface{}) error
	CreateTransaction(amount *big.Int, to string) error
	PublicKey() string
}

type PrivateKey

type PrivateKey []byte

func (PrivateKey) Byte

func (p PrivateKey) Byte() []byte

func (PrivateKey) String

func (p PrivateKey) String() string

type PublicKey

type PublicKey []byte

func (PublicKey) Byte

func (p PublicKey) Byte() []byte

func (PublicKey) String

func (p PublicKey) String() string

Jump to

Keyboard shortcuts

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