wallet

package
v0.2.10 Latest Latest
Warning

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

Go to latest
Published: Nov 16, 2023 License: MIT Imports: 41 Imported by: 0

Documentation

Index

Constants

View Source
const (
	Message = int(-1)
)
View Source
const (
	RollPrice = 100
)

Variables

This section is empty.

Functions

func AppendEndpoints

func AppendEndpoints(api *operations.MassaWalletAPI, prompterApp prompt.WalletPrompterInterface, massaClient network.NodeFetcherInterface, AssetsStore *assets.AssetsStore, gc gcache.Cache)

AppendEndpoints appends wallet endpoints to the API Note: the password prompter is mandatory for sign endpoint

func CacheKey

func CacheKey(correlationID models.CorrelationID) [32]byte

func NewAddAsset added in v0.2.1

func NewAddAsset(AssetsStore *assets.AssetsStore, massaClient network.NodeFetcherInterface) operations.AddAssetHandler

func NewDeleteAsset added in v0.2.1

func NewDeleteAsset(AssetsStore *assets.AssetsStore) operations.DeleteAssetHandler

func NewGet

NewGet instantiates a Get Handler The "classical" way is not possible because we need to pass to the handler a wallet.WalletPrompterInterface.

func NewGetAllAssets added in v0.2.1

func NewGetAllAssets(wallet *wallet.Wallet, AssetsStore *assets.AssetsStore, massaClient network.NodeFetcherInterface) operations.GetAllAssetsHandler

func NewSignMessage added in v0.2.5

func NewWalletExportFile added in v0.2.9

func NewWalletExportFile(wallet *wallet.Wallet) operations.ExportAccountFileHandler

func Xor added in v0.2.9

func Xor(bufferA, bufferB *memguard.LockedBuffer) (*memguard.LockedBuffer, error)

Types

type AssetInfoListResponse added in v0.2.1

type AssetInfoListResponse struct {
	Assets []models.AssetInfo `json:"assets"`
}

type KeyPair added in v0.1.5

type KeyPair struct {
	PrivateKey string `json:"privateKey"`
	PublicKey  string `json:"publicKey"`
}

KeyPair represents a pair of private and public keys.

type PromptRequestDeleteData

type PromptRequestDeleteData struct {
	Nickname string
	Balance  string
}

type PromptRequestSignData added in v0.2.2

type PromptRequestSignData struct {
	Description       string
	Fees              string
	OperationType     int
	Coins             string
	Address           string
	Function          string
	MaxCoins          string
	WalletAddress     string
	Nickname          string
	RollCount         uint64
	RecipientAddress  string
	RecipientNickname string
	Amount            string
	PlainText         string
	AllowFeeEdition   bool
}

type PromptRequestSignMessageData added in v0.2.5

type PromptRequestSignMessageData struct {
	Description   string
	OperationType int
	WalletAddress string
	Nickname      string
	PlainText     string
	DisplayData   bool
}

type PromptRequestUpdateAccountData

type PromptRequestUpdateAccountData struct {
	Nickname string
	Balance  string
}

Jump to

Keyboard shortcuts

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