Documentation ¶
Index ¶
- Variables
- type Account
- type Key
- type Operation
- type Public
- type SecureBuffer
- type Storage
- type Wallet
- func (w *Wallet) ChangeKey(_ context.Context, params ...) (*Operation, error)
- func (w *Wallet) Close() error
- func (w *Wallet) CreateWallet(_ context.Context, params ...) (bool, error)
- func (w *Wallet) GetHandlers() map[string]interface{}
- func (w *Wallet) GetPrivateKeyEncrypted(context.Context, *struct{}) (encryptedHex string, err error)
- func (w *Wallet) GetWalletAccounts(context.Context, *struct{}) ([]Account, error)
- func (w *Wallet) GetWalletAccountsCount(context.Context, *struct{}) (uint, error)
- func (w *Wallet) GetWalletPubKey(context.Context, *struct{}) (*Public, error)
- func (w *Wallet) GetWalletPubKeys(context.Context, *struct{}) ([]*Public, error)
- func (w *Wallet) PayloadDecrypt(_ context.Context, params ...) (string, error)
- func (w *Wallet) PayloadEncrypt(_ context.Context, params ...) (result string, err error)
- func (w *Wallet) SendTo(_ context.Context, params ...) (*Operation, error)
- func (w *Wallet) SetPrivateKey(_ context.Context, params ...) error
Constants ¶
This section is empty.
Variables ¶
View Source
var (
ErrLocked = errors.New("Wallet is locked")
)
Functions ¶
This section is empty.
Types ¶
type Key ¶
type Key struct {
// contains filtered or unexported fields
}
func (*Key) GetEncryptedHex ¶
type Operation ¶
type Operation struct { Account uint32 `json:"account"` Amount float64 `json:"amount"` Block uint32 `json:"block"` Dest_account uint32 `json:"dest_account"` Fee float64 `json:"fee"` Opblock uint32 `json:"opblock"` Ophash string `json:"ophash"` Optxt *string `json:"optxt"` Optype uint8 `json:"optype"` Payload string `json:"payload"` Sender_account uint32 `json:"sender_account"` Time uint32 `json:"time"` }
type SecureBuffer ¶
func NewSecureBuffer ¶
func NewSecureBuffer(data []byte) SecureBuffer
func (*SecureBuffer) With ¶
func (s *SecureBuffer) With(fn func(data []byte))
type Wallet ¶
type Wallet struct {
// contains filtered or unexported fields
}
func (*Wallet) CreateWallet ¶
func (*Wallet) GetHandlers ¶
func (*Wallet) GetPrivateKeyEncrypted ¶
func (*Wallet) GetWalletAccounts ¶
func (*Wallet) GetWalletAccountsCount ¶
func (*Wallet) GetWalletPubKey ¶
func (*Wallet) GetWalletPubKeys ¶
func (*Wallet) PayloadDecrypt ¶
func (*Wallet) PayloadEncrypt ¶
Click to show internal directories.
Click to hide internal directories.