Documentation ¶
Index ¶
- type ArweaveWallet
- type MockNetwork
- func (_m *MockNetwork) CreateTransaction(amount *big.Int, to string) error
- func (_m *MockNetwork) CurrentHeight() int
- func (_m *MockNetwork) Fee() *big.Int
- func (_m *MockNetwork) Name() string
- func (_m *MockNetwork) PublicKey() string
- func (_m *MockNetwork) SendTransaction(data interface{}) error
- func (_m *MockNetwork) Tx(transactionID string) (network.Transaction, error)
- type Network
- type PrivateKey
- type PublicKey
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) PrivateKeyBytes ¶
func (a *ArweaveWallet) PrivateKeyBytes() []byte
PrivateKeyBytes ...
func (*ArweaveWallet) PublicKeyBytes ¶
func (a *ArweaveWallet) PublicKeyBytes() []byte
PublicKeyBytes ...
type MockNetwork ¶
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 PrivateKey ¶
type PrivateKey []byte
func (PrivateKey) Byte ¶
func (p PrivateKey) Byte() []byte
func (PrivateKey) String ¶
func (p PrivateKey) String() string
Click to show internal directories.
Click to hide internal directories.